Class: TD::Types::ChatBoostSource::GiftCode
- Inherits:
-
TD::Types::ChatBoostSource
- Object
- Dry::Struct
- Base
- TD::Types::ChatBoostSource
- TD::Types::ChatBoostSource::GiftCode
- 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
-
#gift_code ⇒ TD::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.
-
#user_id ⇒ Integer
Identifier of a user, for which the gift code was created.
Method Summary
Methods inherited from Base
Instance Attribute Details
#gift_code ⇒ TD::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.
7 8 9 |
# File 'lib/tdlib/types/chat_boost_source/gift_code.rb', line 7 def gift_code @gift_code end |
#user_id ⇒ Integer
Identifier of a user, for which the gift code was created.
7 8 9 |
# File 'lib/tdlib/types/chat_boost_source/gift_code.rb', line 7 def user_id @user_id end |