Package org.drinkless.tdlib
Class TdApi.NotificationTypeNewPushMessage
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.NotificationType
-
- org.drinkless.tdlib.TdApi.NotificationTypeNewPushMessage
-
- Enclosing class:
- TdApi
public static class TdApi.NotificationTypeNewPushMessage extends TdApi.NotificationType
New message was received through a push notification.
-
-
Field Summary
Fields Modifier and Type Field Description static intCONSTRUCTORIdentifier uniquely determining type of the object.TdApi.PushMessageContentcontentPush message content.booleanisOutgoingTrue, if the message is outgoing.longmessageIdThe message identifier.TdApi.MessageSendersenderIdIdentifier of the sender of the message.StringsenderNameName of the sender.
-
Constructor Summary
Constructors Constructor Description NotificationTypeNewPushMessage()New message was received through a push notification.NotificationTypeNewPushMessage(long messageId, TdApi.MessageSender senderId, String senderName, boolean isOutgoing, TdApi.PushMessageContent content)New message was received through a push notification.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
-
-
-
Field Detail
-
messageId
public long messageId
The message identifier. The message will not be available in the chat history, but the ID can be used in viewMessages, or as replyToMessageId.
-
senderId
public TdApi.MessageSender senderId
Identifier of the sender of the message. Corresponding user or chat may be inaccessible.
-
senderName
public String senderName
Name of the sender.
-
isOutgoing
public boolean isOutgoing
True, if the message is outgoing.
-
content
public TdApi.PushMessageContent content
Push message content.
-
CONSTRUCTOR
public static final int CONSTRUCTOR
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
NotificationTypeNewPushMessage
public NotificationTypeNewPushMessage()
New message was received through a push notification.
-
NotificationTypeNewPushMessage
public NotificationTypeNewPushMessage(long messageId, TdApi.MessageSender senderId, String senderName, boolean isOutgoing, TdApi.PushMessageContent content)New message was received through a push notification.- Parameters:
messageId- The message identifier. The message will not be available in the chat history, but the ID can be used in viewMessages, or as replyToMessageId.senderId- Identifier of the sender of the message. Corresponding user or chat may be inaccessible.senderName- Name of the sender.isOutgoing- True, if the message is outgoing.content- Push message content.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-