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

Inherits NotificationType.

Description

New message was received through a push notification.

Public Fields

int53 message_id_
 The message identifier. The message will not be available in the chat history, but the ID can be used in viewMessages, or as reply_to_message_id.
 
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.
 

Public Instance Methods

 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 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 = -711680462
 Identifier uniquely determining a type of the object.
 

Constructor & Destructor Documentation

◆ notificationTypeNewPushMessage() [1/2]

New message was received through a push notification.

◆ notificationTypeNewPushMessage() [2/2]

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 ID can be used in viewMessages, or as reply_to_message_id.
[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.

Method Documentation

◆ get_id()

std::int32_t get_id ( ) const
inlinefinalvirtual

Returns identifier uniquely determining a type of the object.

Returns
this->ID.

Implements TlObject.

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