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

Inherits Update.

Description

Subscription of a user to the bot was changed; for bots only.

Public Member Functions

void store (TlStorerToString &s, const char *field_name) const final
 updateUserSubscription ()
 updateUserSubscription (int53 user_id_, string const &payload_, bool is_canceled_, bool is_restored_, bool is_payment_failed_)
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 is_canceled_
 True, if the subscription was canceled.
bool is_payment_failed_
 True, if the payment for the subscription has failed.
bool is_restored_
 True, if the subscription was restored.
string payload_
 Bot-specified subscription invoice payload.
int53 user_id_
 Identifier of the user.

Static Public Attributes

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

Constructor & Destructor Documentation

◆ updateUserSubscription() [1/2]

updateUserSubscription ( )

Subscription of a user to the bot was changed; for bots only.

◆ updateUserSubscription() [2/2]

updateUserSubscription ( int53 user_id_,
string const & payload_,
bool is_canceled_,
bool is_restored_,
bool is_payment_failed_ )

Subscription of a user to the bot was changed; for bots only.

Parameters
[in]user_id_Identifier of the user.
[in]payload_Bot-specified subscription invoice payload.
[in]is_canceled_True, if the subscription was canceled.
[in]is_restored_True, if the subscription was restored.
[in]is_payment_failed_True, if the payment for the subscription has failed.

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: