Class TdApi.SendMessage

  • Enclosing class:
    TdApi

    public static class TdApi.SendMessage
    extends TdApi.Function
    Sends a message. Returns the sent message.

    Returns Message

    • Field Detail

      • chatId

        public long chatId
        Target chat.
      • replyToMessageId

        public long replyToMessageId
        Identifier of the message to reply to or 0.
      • disableNotification

        public boolean disableNotification
        Pass true to disable notification for the message. Not supported in secret chats.
      • fromBackground

        public boolean fromBackground
        Pass true if the message is sent from the background.
      • replyMarkup

        public TdApi.ReplyMarkup replyMarkup
        Markup for replying to the message; for bots only.
      • CONSTRUCTOR

        public static final int CONSTRUCTOR
        Identifier uniquely determining type of the object.
        See Also:
        Constant Field Values
    • Constructor Detail

      • SendMessage

        public SendMessage()
        Default constructor.
      • SendMessage

        public SendMessage​(long chatId,
                           long replyToMessageId,
                           boolean disableNotification,
                           boolean fromBackground,
                           TdApi.ReplyMarkup replyMarkup,
                           TdApi.InputMessageContent inputMessageContent)
        Constructor for initialization of all fields.
        Parameters:
        chatId - Target chat.
        replyToMessageId - Identifier of the message to reply to or 0.
        disableNotification - Pass true to disable notification for the message. Not supported in secret chats.
        fromBackground - Pass true if the message is sent from the background.
        replyMarkup - Markup for replying to the message; for bots only.
        inputMessageContent - The content of the message to be sent.