Module tdlight.api

Class TdApi.SendMessage

Enclosing class:
TdApi

public static final class TdApi.SendMessage extends TdApi.Function<TdApi.Message>
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 replied message; 0 if none.
    • 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.
    • inputMessageContent

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

      public static final int CONSTRUCTOR
      See Also:
  • 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 replied message; 0 if none.
      options - MessageSendOptions Options to be used to send the message; pass null to use default options.
      replyMarkup - ReplyMarkup Markup for replying to the message; pass null if none; for bots only.
      inputMessageContent - InputMessageContent The content of the message to be sent.
    • SendMessage

      public SendMessage(DataInput input) throws IOException
      Sends a message. Returns the sent message. Returns Message
      Throws:
      IOException
  • Method Details