List of all members | Public Fields | Public Instance Methods | Static Public Attributes
messageSuggestedPostPaid Class Referencefinal

Inherits MessageContent.

Description

A suggested post was published for getOption("suggested_post_lifetime_min") seconds and payment for the post was received.

Public Fields

int53 suggested_post_message_id_
 Identifier of the message with the suggested post; can be 0 if the message was deleted.
 
object_ptr< starAmountstar_amount_
 The amount of received Telegram Stars.
 
int53 ton_amount_
 The amount of received Toncoins; in the smallest units of the cryptocurrency.
 

Public Instance Methods

 messageSuggestedPostPaid ()
 
 messageSuggestedPostPaid (int53 suggested_post_message_id_, object_ptr< starAmount > &&star_amount_, int53 ton_amount_)
 
void store (TlStorerToString &s, const char *field_name) const final
 
- Public Instance Methods inherited from 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
 

Static Public Attributes

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

Constructor & Destructor Documentation

◆ messageSuggestedPostPaid() [1/2]

A suggested post was published for getOption("suggested_post_lifetime_min") seconds and payment for the post was received.

◆ messageSuggestedPostPaid() [2/2]

messageSuggestedPostPaid ( int53  suggested_post_message_id_,
object_ptr< starAmount > &&  star_amount_,
int53  ton_amount_ 
)

A suggested post was published for getOption("suggested_post_lifetime_min") seconds and payment for the post was received.

Parameters
[in]suggested_post_message_id_Identifier of the message with the suggested post; can be 0 if the message was deleted.
[in]star_amount_The amount of received Telegram Stars.
[in]ton_amount_The amount of received Toncoins; in the smallest units of the cryptocurrency.

Method 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: