Skip to content
Back to top
View this page

# DirectMessagePriceChanged

class telegram.DirectMessagePriceChanged(are_direct_messages_enabled, direct_message_star_count=None, *, api_kwargs=None)

  Bases: `telegram.TelegramObject`

  Describes a service message about a change in the price of direct messages sent to a channel chat.

  Available In

  `telegram.Message.direct_message_price_changed`

  Added in version 22.3.

  Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their `are_direct_messages_enabled`, and `direct_message_star_count` are equal.

  Parameters:

    - are_direct_messages_enabled (`bool`) – `True`, if direct messages are enabled for the channel chat; `False` otherwise.

    - direct_message_star_count (`int`, optional) – The new number of Telegram Stars that must be paid by users for each direct message sent to the channel. Does not apply to users who have been exempted by administrators. Defaults to `0`.

  are_direct_messages_enabled

    `True`, if direct messages are enabled for the channel chat; `False` otherwise.

    Type:

      `bool`

  direct_message_star_count

    Optional. The new number of Telegram Stars that must be paid by users for each direct message sent to the channel. Does not apply to users who have been exempted by administrators. Defaults to `0`.

    Type:

      `int`