Class: TD::Types::ChatBoostSource::Giveaway
- Inherits:
-
TD::Types::ChatBoostSource
- Object
- Dry::Struct
- Base
- TD::Types::ChatBoostSource
- TD::Types::ChatBoostSource::Giveaway
- Defined in:
- lib/tdlib/types/chat_boost_source/giveaway.rb
Overview
The chat created a Telegram Premium giveaway.
Instance Attribute Summary collapse
-
#gift_code ⇒ TD::Types::String
The created Telegram Premium gift code if it was used by the user or can be claimed by the current user; an empty string otherwise.
-
#giveaway_message_id ⇒ Integer
Identifier of the corresponding giveaway message; can be an identifier of a deleted message.
-
#is_unclaimed ⇒ Boolean
True, if the winner for the corresponding Telegram Premium subscription wasn’t chosen, because there were not enough participants.
-
#user_id ⇒ Integer
Identifier of a user that won in the giveaway; 0 if none.
Method Summary
Methods inherited from Base
Instance Attribute Details
#gift_code ⇒ TD::Types::String
The created Telegram Premium gift code if it was used by the user or can be claimed by the current user; an empty string otherwise.
11 12 13 |
# File 'lib/tdlib/types/chat_boost_source/giveaway.rb', line 11 def gift_code @gift_code end |
#giveaway_message_id ⇒ Integer
Identifier of the corresponding giveaway message; can be an identifier of a deleted message.
11 12 13 |
# File 'lib/tdlib/types/chat_boost_source/giveaway.rb', line 11 def end |
#is_unclaimed ⇒ Boolean
True, if the winner for the corresponding Telegram Premium subscription wasn’t chosen, because there were not enough participants.
11 12 13 |
# File 'lib/tdlib/types/chat_boost_source/giveaway.rb', line 11 def is_unclaimed @is_unclaimed end |
#user_id ⇒ Integer
Identifier of a user that won in the giveaway; 0 if none.
11 12 13 |
# File 'lib/tdlib/types/chat_boost_source/giveaway.rb', line 11 def user_id @user_id end |