public static class TdApi.SendMessage extends TdApi.Function
Returns Message
TdApi.Function.Constructors
Modifier and Type | Field and Description |
---|---|
long |
chatId
Target chat.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
TdApi.InputMessageContent |
inputMessageContent
The content of the message to be sent.
|
long |
messageThreadId
If not 0, a message thread identifier in which the message will be sent.
|
TdApi.MessageSendOptions |
options
Options to be used to send the message; pass null to use default options.
|
TdApi.ReplyMarkup |
replyMarkup
Markup for replying to the message; pass null if none; for bots only.
|
long |
replyToMessageId
Identifier of the message to reply to or 0.
|
Constructor and Description |
---|
SendMessage()
Default constructor for a function, which sends a message.
|
SendMessage(long chatId,
long messageThreadId,
long replyToMessageId,
TdApi.MessageSendOptions options,
TdApi.ReplyMarkup replyMarkup,
TdApi.InputMessageContent inputMessageContent)
Creates a function, which sends a message.
|
Modifier and Type | Method and Description |
---|---|
int |
getConstructor() |
toString
public long chatId
public long messageThreadId
public long replyToMessageId
public TdApi.MessageSendOptions options
public TdApi.ReplyMarkup replyMarkup
public TdApi.InputMessageContent inputMessageContent
public static final int CONSTRUCTOR
public SendMessage()
Returns Message
public SendMessage(long chatId, long messageThreadId, long replyToMessageId, TdApi.MessageSendOptions options, TdApi.ReplyMarkup replyMarkup, TdApi.InputMessageContent inputMessageContent)
Returns Message
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.public int getConstructor()
getConstructor
in class TdApi.Function