class
Tourmaline::DirectMessagePriceChanged
- Tourmaline::DirectMessagePriceChanged
- Reference
- Object
Overview
Describes a service message about a change in the price of direct messages sent to a channel chat.
Included Modules
- JSON::Serializable
Defined in:
tourmaline/types/api.crConstructors
- .new(pull : JSON::PullParser)
- .new(are_direct_messages_enabled : Bool, direct_message_star_count : Int32 | Int64 | Nil = nil)
Instance Method Summary
-
#are_direct_messages_enabled=(are_direct_messages_enabled : Bool)
True, if direct messages are enabled for the channel chat; false otherwise
-
#are_direct_messages_enabled? : Bool
True, if direct messages are enabled for the channel chat; false otherwise
-
#direct_message_star_count : Int32 | Int64 | Nil
Optional.
-
#direct_message_star_count=(direct_message_star_count : Int32 | Int64 | Nil)
Optional.
Constructor Detail
Instance Method Detail
True, if direct messages are enabled for the channel chat; false otherwise
True, if direct messages are enabled for the channel chat; false otherwise
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.
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.