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.
      • messageThreadId

        public long messageThreadId
        If not 0, a message thread identifier in which the message will be sent.
      • replyToMessageId

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

        public TdApi.MessageSendOptions options
        Options to be used to send the message; pass null to use default options.
      • replyMarkup

        public TdApi.ReplyMarkup replyMarkup
        Markup for replying to the message; pass null if none; 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 for a function, which sends a message. Returns the sent message.

        Returns Message

      • SendMessage

        public SendMessage​(long chatId,
                           long messageThreadId,
                           long replyToMessageId,
                           TdApi.MessageSendOptions options,
                           TdApi.ReplyMarkup replyMarkup,
                           TdApi.InputMessageContent inputMessageContent)
        Creates a function, which sends a message. Returns the sent message.

        Returns Message

        Parameters:
        chatId - Target chat.
        messageThreadId - If not 0, a message thread identifier in which the message will be sent.
        replyToMessageId - Identifier of the message to reply to or 0.
        options - Options to be used to send the message; pass null to use default options.
        replyMarkup - Markup for replying to the message; pass null if none; for bots only.
        inputMessageContent - The content of the message to be sent.