Module tdlight.api

Class TdApi.NotificationTypeNewPushMessage

java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.NotificationType
it.tdlight.jni.TdApi.NotificationTypeNewPushMessage
Enclosing class:
TdApi

public static final class TdApi.NotificationTypeNewPushMessage extends TdApi.NotificationType
New message was received through a push notification.
  • Field Details

    • 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
      See Also:
  • Constructor Details

    • 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 - 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.
      senderId - MessageSender Identifier of 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.
    • NotificationTypeNewPushMessage

      public NotificationTypeNewPushMessage(DataInput input) throws IOException
      New message was received through a push notification.
      Throws:
      IOException
  • Method Details