class Tourmaline::ChatBoostSourceGiveaway
- Tourmaline::ChatBoostSourceGiveaway
- Reference
- Object
Overview
The boost was obtained by the creation of a Telegram Premium giveaway. This boosts the chat 4 times for the duration of the corresponding Telegram Premium subscription.
Included Modules
- JSON::Serializable
Defined in:
tourmaline/types/api.crConstructors
- .new(source : String, giveaway_message_id : Int32 | Int64, user : Tourmaline::User | Nil = nil, is_unclaimed : Bool | Nil = nil)
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#giveaway_message_id : Int32 | Int64
Identifier of a message in the chat with the giveaway; the message could have been deleted already.
-
#giveaway_message_id=(giveaway_message_id : Int32 | Int64)
Identifier of a message in the chat with the giveaway; the message could have been deleted already.
-
#is_unclaimed=(is_unclaimed : Bool | Nil)
Optional.
-
#is_unclaimed? : Bool | Nil
Optional.
-
#source : String
Source of the boost, always "giveaway"
-
#source=(source : String)
Source of the boost, always "giveaway"
-
#user : Tourmaline::User | Nil
Optional.
-
#user=(user : Tourmaline::User | Nil)
Optional.
Constructor Detail
Instance Method Detail
Identifier of a message in the chat with the giveaway; the message could have been deleted already. May be 0 if the message isn't sent yet.
Identifier of a message in the chat with the giveaway; the message could have been deleted already. May be 0 if the message isn't sent yet.
Optional. True, if the giveaway was completed, but there was no user to win the prize
Optional. True, if the giveaway was completed, but there was no user to win the prize