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

Inherits td::td_api::NotificationType.

Public Member Functions

 notificationTypeNewPushMessage ()
 
 notificationTypeNewPushMessage (int53 message_id_, object_ptr< MessageSender > &&sender_id_, string const &sender_name_, bool is_outgoing_, object_ptr< PushMessageContent > &&content_)
 
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

int53 message_id_
 The message identifier. The message will not be available in the chat history, but the identifier can be used in viewMessages, or as a message to reply.
 
object_ptr< MessageSendersender_id_
 Identifier of the sender of the message. Corresponding user or chat may be inaccessible.
 
string sender_name_
 Name of the sender.
 
bool is_outgoing_
 True, if the message is outgoing.
 
object_ptr< PushMessageContentcontent_
 Push message content.
 

Static Public Attributes

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

Detailed Description

New message was received through a push notification.

Constructor & Destructor Documentation

◆ notificationTypeNewPushMessage() [1/2]

td::td_api::notificationTypeNewPushMessage::notificationTypeNewPushMessage ( )

New message was received through a push notification.

◆ notificationTypeNewPushMessage() [2/2]

td::td_api::notificationTypeNewPushMessage::notificationTypeNewPushMessage ( int53  message_id_,
object_ptr< MessageSender > &&  sender_id_,
string const &  sender_name_,
bool  is_outgoing_,
object_ptr< PushMessageContent > &&  content_ 
)

New message was received through a push notification.

Parameters
[in]message_id_The message identifier. The message will not be available in the chat history, but the identifier can be used in viewMessages, or as a message to reply.
[in]sender_id_Identifier of the sender of the message. Corresponding user or chat may be inaccessible.
[in]sender_name_Name of the sender.
[in]is_outgoing_True, if the message is outgoing.
[in]content_Push message content.

Member Function Documentation

◆ get_id()

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

Returns identifier uniquely determining a type of the object.

Returns
this->ID.

Implements td::TlObject.

◆ store()

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