Class: TD::Types::InternalLinkType::PremiumGiftCode

Inherits:
TD::Types::InternalLinkType show all
Defined in:
lib/tdlib/types/internal_link_type/premium_gift_code.rb

Overview

The link is a link with a Telegram Premium gift code. Call checkPremiumGiftCode with the given code to process the link. If the code is valid and the user wants to apply it, then call applyPremiumGiftCode.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#codeTD::Types::String

The Telegram Premium gift code.

Returns:

  • (TD::Types::String)

    the current value of code



7
8
9
# File 'lib/tdlib/types/internal_link_type/premium_gift_code.rb', line 7

def code
  @code
end