content
Push message content.
public static class TdApi.NotificationTypeNewPushMessage extends TdApi.NotificationType
Modifier and Type | Field | Description |
---|---|---|
static int |
CONSTRUCTOR |
|
TdApi.PushMessageContent |
content |
Push message content.
|
boolean |
isOutgoing |
True, if the message is outgoing.
|
long |
messageId |
The message identifier.
|
TdApi.MessageSender |
sender |
The sender of the message.
|
String |
senderName |
Name of the sender.
|
Constructor | Description |
---|---|
NotificationTypeNewPushMessage() |
New message was received through a push notification.
|
NotificationTypeNewPushMessage(long messageId,
TdApi.MessageSender sender,
String senderName,
boolean isOutgoing,
TdApi.PushMessageContent content) |
New message was received through a push notification.
|
NotificationTypeNewPushMessage(DataInput input) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(Object o) |
|
int |
getConstructor() |
|
int |
hashCode() |
|
void |
serialize(DataOutput output) |
serialize, toString
messageId
- long The message identifier. The message
will not be available in the chat
history, but the ID can be used in
viewMessages, or as replyToMessageId.sender
- MessageSender The sender of the message. Corresponding
user or chat may be inaccessible.senderName
- String Name of the sender.isOutgoing
- boolean True, if the message is outgoing.content
- PushMessageContent Push message content.IOException
getConstructor
in class TdApi.Object
serialize
in class TdApi.Object
IOException