Class: TD::Types::InternalLinkType::BuyStars

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

Overview

The link is a link to the Telegram Star purchase section of the application.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#purposeTD::Types::String

Purpose of Telegram Star purchase. Arbitrary string specified by the server, for example, “subs” if the Telegram Stars are required to extend channel subscriptions.

Returns:

  • (TD::Types::String)

    the current value of purpose



8
9
10
# File 'lib/tdlib/types/internal_link_type/buy_stars.rb', line 8

def purpose
  @purpose
end

#star_countInteger

The number of Telegram Stars that must be owned by the user.

Returns:

  • (Integer)

    the current value of star_count



8
9
10
# File 'lib/tdlib/types/internal_link_type/buy_stars.rb', line 8

def star_count
  @star_count
end