Class: TD::Types::ChatInviteLinkSubscriptionInfo

Inherits:
Base
  • Object
show all
Defined in:
lib/tdlib/types/chat_invite_link_subscription_info.rb

Overview

Contains information about subscription plan that must be paid by the user to use a chat invite link.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#can_reuseBoolean

True, if the user has already paid for the subscription and can use joinChatByInviteLink to join the subscribed chat again.

Returns:

  • (Boolean)

    the current value of can_reuse



10
11
12
# File 'lib/tdlib/types/chat_invite_link_subscription_info.rb', line 10

def can_reuse
  @can_reuse
end

#form_idInteger

Identifier of the payment form to use for subscription payment; 0 if the subscription can’t be paid.

Returns:

  • (Integer)

    the current value of form_id



10
11
12
# File 'lib/tdlib/types/chat_invite_link_subscription_info.rb', line 10

def form_id
  @form_id
end

#pricingTD::Types::StarSubscriptionPricing

Information about subscription plan that must be paid by the user to use the link.

Returns:



10
11
12
# File 'lib/tdlib/types/chat_invite_link_subscription_info.rb', line 10

def pricing
  @pricing
end