TDLib
Loading...
Searching...
No Matches
chatInviteLinkSubscriptionInfo Class Referencefinal

Inherits Object.

Description

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

Public Member Functions

 chatInviteLinkSubscriptionInfo ()
 chatInviteLinkSubscriptionInfo (object_ptr< starSubscriptionPricing > &&pricing_, bool can_reuse_, int64 form_id_)
void store (TlStorerToString &s, const char *field_name) const final
Public Member Functions inherited from TlObject
TlObject & operator= (const TlObject &)=delete
TlObject & operator= (TlObject &&)=default
virtual void store (TlStorerCalcLength &s) const
virtual void store (TlStorerUnsafe &s) const
 TlObject ()=default
 TlObject (const TlObject &)=delete
 TlObject (TlObject &&)=default
virtual ~TlObject ()=default

Public Attributes

bool can_reuse_
 True, if the user has already paid for the subscription and can use joinChatByInviteLink to join the subscribed chat again.
int64 form_id_
 Identifier of the payment form to use for subscription payment; 0 if the subscription can't be paid.
object_ptr< starSubscriptionPricing > pricing_
 Information about subscription plan that must be paid by the user to use the link.

Static Public Attributes

static const std::int32_t ID = 953119592
 Identifier uniquely determining a type of the object.

Constructor & Destructor Documentation

◆ chatInviteLinkSubscriptionInfo() [1/2]

chatInviteLinkSubscriptionInfo ( )

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

◆ chatInviteLinkSubscriptionInfo() [2/2]

chatInviteLinkSubscriptionInfo ( object_ptr< starSubscriptionPricing > && pricing_,
bool can_reuse_,
int64 form_id_ )

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

Parameters
[in]pricing_Information about subscription plan that must be paid by the user to use the link.
[in]can_reuse_True, if the user has already paid for the subscription and can use joinChatByInviteLink to join the subscribed chat again.
[in]form_id_Identifier of the payment form to use for subscription payment; 0 if the subscription can't be paid.

Member Function Documentation

◆ store()

void store ( TlStorerToString & s,
const char * field_name ) const
finalvirtual

Helper function for to_string method. Appends string representation of the object to the storer.

Parameters
[in]sStorer to which object string representation will be appended.
[in]field_nameObject field_name if applicable.

Implements TlObject.


The documentation for this class was generated from the following file: