Class: TD::Types::PushMessageContent::PremiumGiveaway

Inherits:
TD::Types::PushMessageContent show all
Defined in:
lib/tdlib/types/push_message_content/premium_giveaway.rb

Overview

A message with a Telegram Premium giveaway.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#is_pinnedBoolean

True, if the message is a pinned message with the specified content.

Returns:

  • (Boolean)

    the current value of is_pinned



9
10
11
# File 'lib/tdlib/types/push_message_content/premium_giveaway.rb', line 9

def is_pinned
  @is_pinned
end

#month_countInteger

Number of months the Telegram Premium subscription will be active after code activation; 0 for pinned message.

Returns:

  • (Integer)

    the current value of month_count



9
10
11
# File 'lib/tdlib/types/push_message_content/premium_giveaway.rb', line 9

def month_count
  @month_count
end

#winner_countInteger

Number of users which will receive Telegram Premium subscription gift codes; 0 for pinned message.

Returns:

  • (Integer)

    the current value of winner_count



9
10
11
# File 'lib/tdlib/types/push_message_content/premium_giveaway.rb', line 9

def winner_count
  @winner_count
end