TDLib
Loading...
Searching...
No Matches
td::td_api::messageSendingStateFailed Class Referencefinal

Inherits td::td_api::MessageSendingState.

Public Member Functions

 messageSendingStateFailed ()
 
 messageSendingStateFailed (object_ptr< error > &&error_, bool can_retry_, bool need_another_sender_, double retry_after_)
 
std::int32_t get_id () const final
 
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

object_ptr< errorerror_
 The cause of the message sending failure.
 
bool can_retry_
 True, if the message can be re-sent.
 
bool need_another_sender_
 True, if the message can be re-sent only on behalf of a different sender.
 
double retry_after_
 Time left before the message can be re-sent, in seconds. No update is sent when this field changes.
 

Static Public Attributes

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

Detailed Description

The message failed to be sent.

Constructor & Destructor Documentation

◆ messageSendingStateFailed() [1/2]

td::td_api::messageSendingStateFailed::messageSendingStateFailed ( )

The message failed to be sent.

◆ messageSendingStateFailed() [2/2]

td::td_api::messageSendingStateFailed::messageSendingStateFailed ( object_ptr< error > &&  error_,
bool  can_retry_,
bool  need_another_sender_,
double  retry_after_ 
)

The message failed to be sent.

Parameters
[in]error_The cause of the message sending failure.
[in]can_retry_True, if the message can be re-sent.
[in]need_another_sender_True, if the message can be re-sent only on behalf of a different sender.
[in]retry_after_Time left before the message can be re-sent, in seconds. No update is sent when this field changes.

Member Function Documentation

◆ get_id()

std::int32_t td::td_api::messageSendingStateFailed::get_id ( ) const
inlinefinalvirtual

Returns identifier uniquely determining a type of the object.

Returns
this->ID.

Implements td::TlObject.

◆ store()

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


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