Class Message<T>

    • Constructor Detail

      • Message

        public Message()
    • Method Detail

      • getContent

        public abstract T getContent()
      • getSender

        public User getSender()
      • toForwardRequest

        public ForwardMessage.ForwardMessageBuilder toForwardRequest()
        Creates a request builder for forwarding this message to another chat.
        Returns:
        the request builder
      • getMessageId

        public int getMessageId()
      • getFrom

        public User getFrom()
      • getDate

        public long getDate()
      • getChat

        public Chat getChat()
      • getReplyToMessage

        public Message getReplyToMessage()
      • getEditDate

        public long getEditDate()
      • getAuthorSignature

        public java.lang.String getAuthorSignature()
        CHANNEL FIELDS *
      • getForwardedFrom

        public User getForwardedFrom()
        FORWARDING FIELDS *
      • getForwardedFromChat

        public Chat getForwardedFromChat()
      • getForwardedFromMessageId

        public int getForwardedFromMessageId()
      • getForwardSignature

        public java.lang.String getForwardSignature()
      • getForwardDate

        public long getForwardDate()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object