Class: TD::Types::MessageContent::PremiumGiveaway
- Inherits:
-
TD::Types::MessageContent
- Object
- Dry::Struct
- Base
- TD::Types::MessageContent
- TD::Types::MessageContent::PremiumGiveaway
- Defined in:
- lib/tdlib/types/message_content/premium_giveaway.rb
Overview
A Telegram Premium giveaway.
Instance Attribute Summary collapse
-
#month_count ⇒ Integer
Number of months the Telegram Premium subscription will be active after code activation.
-
#parameters ⇒ TD::Types::PremiumGiveawayParameters
Giveaway parameters.
-
#sticker ⇒ TD::Types::Sticker?
A sticker to be shown in the message; may be null if unknown.
-
#winner_count ⇒ Integer
Number of users which will receive Telegram Premium subscription gift codes.
Method Summary
Methods inherited from Base
Instance Attribute Details
#month_count ⇒ Integer
Number of months the Telegram Premium subscription will be active after code activation.
9 10 11 |
# File 'lib/tdlib/types/message_content/premium_giveaway.rb', line 9 def month_count @month_count end |
#parameters ⇒ TD::Types::PremiumGiveawayParameters
Giveaway parameters.
9 10 11 |
# File 'lib/tdlib/types/message_content/premium_giveaway.rb', line 9 def parameters @parameters end |
#sticker ⇒ TD::Types::Sticker?
A sticker to be shown in the message; may be null if unknown.
9 10 11 |
# File 'lib/tdlib/types/message_content/premium_giveaway.rb', line 9 def sticker @sticker end |
#winner_count ⇒ Integer
Number of users which will receive Telegram Premium subscription gift codes.
9 10 11 |
# File 'lib/tdlib/types/message_content/premium_giveaway.rb', line 9 def winner_count @winner_count end |