Class TdApi.SendMessage

Enclosing class:
TdApi

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

Returns Message

  • Field Details

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

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

      public TdApi.InputMessageContent inputMessageContent
      The content of the message to be sent.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      See Also:
      Constant Field Values
  • Constructor Details

    • SendMessage

      public SendMessage()
      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)
      Sends a message. Returns the sent message.

      Returns Message

      Parameters:
      chatId - long Target chat.
      messageThreadId - long If not 0, a message thread identifier in which the message will be sent.
      replyToMessageId - long Identifier of the message to reply to or 0.
      options - MessageSendOptions Options to be used to send the message.
      replyMarkup - ReplyMarkup Markup for replying to the message; for bots only.
      inputMessageContent - InputMessageContent The content of the message to be sent.
    • SendMessage

      public SendMessage​(DataInput input) throws IOException
      Throws:
      IOException
  • Method Details