Class: TD::Types::PushMessageContent::PremiumGiveaway
- Inherits:
-
TD::Types::PushMessageContent
- Object
- Dry::Struct
- Base
- TD::Types::PushMessageContent
- TD::Types::PushMessageContent::PremiumGiveaway
- Defined in:
- lib/tdlib/types/push_message_content/premium_giveaway.rb
Overview
A message with a Telegram Premium giveaway.
Instance Attribute Summary collapse
-
#is_pinned ⇒ Boolean
True, if the message is a pinned message with the specified content.
-
#month_count ⇒ Integer
Number of months the Telegram Premium subscription will be active after code activation; 0 for pinned message.
-
#winner_count ⇒ Integer
Number of users which will receive Telegram Premium subscription gift codes; 0 for pinned message.
Method Summary
Methods inherited from Base
Instance Attribute Details
#is_pinned ⇒ Boolean
True, if the message is a pinned message with the specified content.
9 10 11 |
# File 'lib/tdlib/types/push_message_content/premium_giveaway.rb', line 9 def is_pinned @is_pinned end |
#month_count ⇒ Integer
Number of months the Telegram Premium subscription will be active after code activation; 0 for pinned message.
9 10 11 |
# File 'lib/tdlib/types/push_message_content/premium_giveaway.rb', line 9 def month_count @month_count end |
#winner_count ⇒ Integer
Number of users which will receive Telegram Premium subscription gift codes; 0 for pinned message.
9 10 11 |
# File 'lib/tdlib/types/push_message_content/premium_giveaway.rb', line 9 def winner_count @winner_count end |