class Tourmaline::ChatBoostSourceGiveaway
inherits Reference
#
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
Constructors#
.new(source, giveaway_message_id, user : Tourmaline::User? = nil, is_unclaimed : Bool? = nil)
#
(source, giveaway_message_id, user : Tourmaline::User? = nil, is_unclaimed : Bool? = nil)
Methods#
#giveaway_message_id : Int32 | Int64
#
: Int32 | Int64
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.
#giveaway_message_id=(giveaway_message_id : Int32 | Int64)
#
(giveaway_message_id : Int32 | Int64)
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.
#is_unclaimed=(is_unclaimed : Bool?)
#
(is_unclaimed : Bool?)
Optional. True, if the giveaway was completed, but there was no user to win the prize
#is_unclaimed? : Bool?
#
: Bool?
Optional. True, if the giveaway was completed, but there was no user to win the prize
#user=(user : Tourmaline::User?)
#
(user : Tourmaline::User?)
Optional. User that won the prize in the giveaway if any