Class: TD::Types::MessageContent::PremiumGiveaway

Inherits:
TD::Types::MessageContent show all
Defined in:
lib/tdlib/types/message_content/premium_giveaway.rb

Overview

A Telegram Premium giveaway.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#month_countInteger

Number of months the Telegram Premium subscription will be active after code activation.

Returns:

  • (Integer)

    the current value of month_count



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

def month_count
  @month_count
end

#parametersTD::Types::PremiumGiveawayParameters

Giveaway parameters.

Returns:



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

def parameters
  @parameters
end

#stickerTD::Types::Sticker?

A sticker to be shown in the message; may be null if unknown.

Returns:



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

def sticker
  @sticker
end

#winner_countInteger

Number of users which will receive Telegram Premium subscription gift codes.

Returns:

  • (Integer)

    the current value of winner_count



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

def winner_count
  @winner_count
end