Class TdApi.NotificationTypeNewPushMessage

  • Enclosing class:
    TdApi

    public static class TdApi.NotificationTypeNewPushMessage
    extends TdApi.NotificationType
    New message was received through a push notification.
    • 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.
      • 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.