class
Hamilton::Types::ChatBoostSourceGiveaway
- Hamilton::Types::ChatBoostSourceGiveaway
- Reference
- Object
Overview
The boost was obtained by the creation of a Telegram Premium or a Telegram Star giveaway. This boosts the chat 4 times for the duration of the corresponding Telegram Premium subscription for Telegram Premium giveaways and prize_star_count / 500 times for one year for Telegram Star giveaways.
Included Modules
- Hamilton::Types::Common
- JSON::Serializable
Defined in:
types/chat_boost_source.crConstructors
- .new(pull : JSON::PullParser)
- .new(params)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
- .new(**params)
Instance Method Summary
-
#giveaway_message_id : Int32
Identifier of a message in the chat with the giveaway; the message could have been deleted already.
-
#giveaway_message_id=(giveaway_message_id : Int32)
Identifier of a message in the chat with the giveaway; the message could have been deleted already.
-
#is_unclaimed : Bool | Nil
True, if the giveaway was completed, but there was no user to win the prize.
-
#is_unclaimed=(is_unclaimed : Bool | Nil)
True, if the giveaway was completed, but there was no user to win the prize.
-
#non_nil_fields : Array(String)
List of available non-nil fields.
-
#non_nil_fields=(non_nil_fields : Array(String))
List of available non-nil fields.
-
#prize_star_count : Int32 | Nil
The number of Telegram Stars to be split between giveaway winners; for Telegram Star giveaways only.
-
#prize_star_count=(prize_star_count : Int32 | Nil)
The number of Telegram Stars to be split between giveaway winners; for Telegram Star giveaways only.
-
#source : String
Source of the boost, always "giveaway".
-
#source=(source : String)
Source of the boost, always "giveaway".
-
#user : Hamilton::Types::User | Nil
User that won the prize in the giveaway if any; for Telegram Premium giveaways only.
-
#user=(user : Hamilton::Types::User | Nil)
User that won the prize in the giveaway if any; for Telegram Premium giveaways only.
Instance methods inherited from class Reference
==(other : Hamilton::Any)
==
Instance methods inherited from class Object
===(other : Hamilton::Any)
===
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.
True, if the giveaway was completed, but there was no user to win the prize.
True, if the giveaway was completed, but there was no user to win the prize.
The number of Telegram Stars to be split between giveaway winners; for Telegram Star giveaways only.
The number of Telegram Stars to be split between giveaway winners; for Telegram Star giveaways only.
User that won the prize in the giveaway if any; for Telegram Premium giveaways only.
User that won the prize in the giveaway if any; for Telegram Premium giveaways only.