Class: TD::Types::ChatBoostSource::GiftCode

Inherits:
TD::Types::ChatBoostSource show all
Defined in:
lib/tdlib/types/chat_boost_source/gift_code.rb

Overview

The chat created a Telegram Premium gift code for a user.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#gift_codeTD::Types::String

The created Telegram Premium gift code, which is known only if this is a gift code for the current user, or it has already been claimed.

Returns:

  • (TD::Types::String)

    the current value of gift_code



7
8
9
# File 'lib/tdlib/types/chat_boost_source/gift_code.rb', line 7

def gift_code
  @gift_code
end

#user_idInteger

Identifier of a user, for which the gift code was created.

Returns:

  • (Integer)

    the current value of user_id



7
8
9
# File 'lib/tdlib/types/chat_boost_source/gift_code.rb', line 7

def user_id
  @user_id
end