tdlib-obf API
Reference documentation for the public tdlib-obf API, generated from TDLib schemas and public headers
Loading...
Searching...
No Matches
td::td_api::starSubscription Class Referencefinal

#include </home/runner/work/tdlib-obf/tdlib-obf/td/generate/auto/td/telegram/td_api.h>

Inheritance diagram for td::td_api::starSubscription:
td::td_api::Object td::TlObject

Public Member Functions

 starSubscription ()
 
 starSubscription (string const &id_, int53 chat_id_, int32 expiration_date_, bool is_canceled_, bool is_expiring_, object_ptr< starSubscriptionPricing > &&pricing_, object_ptr< StarSubscriptionType > &&type_)
 
void store (TlStorerToString &s, const char *field_name) const final
 
- Public Member Functions inherited from td::TlObject
virtual void store (TlStorerUnsafe &s) const
 
virtual void store (TlStorerCalcLength &s) const
 
 TlObject ()=default
 
 TlObject (const TlObject &)=delete
 
TlObjectoperator= (const TlObject &)=delete
 
 TlObject (TlObject &&)=default
 
TlObjectoperator= (TlObject &&)=default
 
virtual ~TlObject ()=default
 

Public Attributes

string id_
 Unique identifier of the subscription.
 
int53 chat_id_
 Identifier of the chat that is subscribed.
 
int32 expiration_date_
 Point in time (Unix timestamp) when the subscription will expire or expired.
 
bool is_canceled_
 True, if the subscription was canceled.
 
bool is_expiring_
 True, if the subscription expires soon and there are no enough Telegram Stars on the user&#x27;s balance to extend it.
 
object_ptr< starSubscriptionPricingpricing_
 The subscription plan.
 
object_ptr< StarSubscriptionTypetype_
 Type of the subscription.
 

Static Public Attributes

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

Detailed Description

Contains information about subscription to a channel chat, a bot, or a business account that was paid in Telegram Stars.

Definition at line 64711 of file td_api.h.

Constructor & Destructor Documentation

◆ starSubscription() [1/2]

td::td_api::starSubscription::starSubscription ( )

Contains information about subscription to a channel chat, a bot, or a business account that was paid in Telegram Stars.

◆ starSubscription() [2/2]

td::td_api::starSubscription::starSubscription ( string const &  id_,
int53  chat_id_,
int32  expiration_date_,
bool  is_canceled_,
bool  is_expiring_,
object_ptr< starSubscriptionPricing > &&  pricing_,
object_ptr< StarSubscriptionType > &&  type_ 
)

Contains information about subscription to a channel chat, a bot, or a business account that was paid in Telegram Stars.

Parameters
[in]id_Unique identifier of the subscription.
[in]chat_id_Identifier of the chat that is subscribed.
[in]expiration_date_Point in time (Unix timestamp) when the subscription will expire or expired.
[in]is_canceled_True, if the subscription was canceled.
[in]is_expiring_True, if the subscription expires soon and there are no enough Telegram Stars on the user&#x27;s balance to extend it.
[in]pricing_The subscription plan.
[in]type_Type of the subscription.

Member Function Documentation

◆ store()

void td::td_api::starSubscription::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 td::TlObject.

Member Data Documentation

◆ chat_id_

int53 td::td_api::starSubscription::chat_id_

Identifier of the chat that is subscribed.

Definition at line 64724 of file td_api.h.

◆ expiration_date_

int32 td::td_api::starSubscription::expiration_date_

Point in time (Unix timestamp) when the subscription will expire or expired.

Definition at line 64726 of file td_api.h.

◆ ID

const std::int32_t td::td_api::starSubscription::ID = 976753141
static

Identifier uniquely determining a type of the object.

Definition at line 64755 of file td_api.h.

◆ id_

string td::td_api::starSubscription::id_

Unique identifier of the subscription.

Definition at line 64722 of file td_api.h.

◆ is_canceled_

bool td::td_api::starSubscription::is_canceled_

True, if the subscription was canceled.

Definition at line 64728 of file td_api.h.

◆ is_expiring_

bool td::td_api::starSubscription::is_expiring_

True, if the subscription expires soon and there are no enough Telegram Stars on the user&#x27;s balance to extend it.

Definition at line 64730 of file td_api.h.

◆ pricing_

object_ptr<starSubscriptionPricing> td::td_api::starSubscription::pricing_

The subscription plan.

Definition at line 64732 of file td_api.h.

◆ type_

object_ptr<StarSubscriptionType> td::td_api::starSubscription::type_

Type of the subscription.

Definition at line 64734 of file td_api.h.


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