DirectMessagePriceChanged

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

Bases: telegram.TelegramObject

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

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[source]

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

Type:

bool

direct_message_star_count[source]

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