DirectMessagePriceChanged¶
- class telegram.DirectMessagePriceChanged(are_direct_messages_enabled, direct_message_star_count=None, *, api_kwargs=None)[source]¶
Bases:
telegram.TelegramObjectDescribes a service message about a change in the price of direct messages sent to a channel chat.
Available In
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, anddirect_message_star_countare equal.- Parameters:
are_direct_messages_enabled (
bool) –True, if direct messages are enabled for the channel chat;Falseotherwise.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 to0.