Inherits NotificationType.
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< MessageSender > | sender_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< PushMessageContent > | content_ |
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 | |
TlObject & | operator= (const TlObject &)=delete |
TlObject (TlObject &&)=default | |
TlObject & | operator= (TlObject &&)=default |
virtual | ~TlObject ()=default |
Static Public Attributes | |
static const std::int32_t | ID = -711680462 |
Identifier uniquely determining a type of the object. | |
New message was received through a push notification.
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.
[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. |
|
inlinefinalvirtual |
|
finalvirtual |