public static class TdApi.SendMessage extends TdApi.Function<TdApi.Message>
Returns Message
| 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, the 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.
|
TdApi.InputMessageReplyTo |
replyTo
Information about the message or story to be replied; pass null if none.
|
| Constructor and Description |
|---|
SendMessage()
Default constructor for a function, which sends a message.
|
SendMessage(long chatId,
long messageThreadId,
TdApi.InputMessageReplyTo replyTo,
TdApi.MessageSendOptions options,
TdApi.ReplyMarkup replyMarkup,
TdApi.InputMessageContent inputMessageContent)
Creates a function, which sends a message.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic long chatId
public long messageThreadId
public TdApi.InputMessageReplyTo replyTo
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,
TdApi.InputMessageReplyTo replyTo,
TdApi.MessageSendOptions options,
TdApi.ReplyMarkup replyMarkup,
TdApi.InputMessageContent inputMessageContent)
Returns Message
chatId - Target chat.messageThreadId - If not 0, the message thread identifier in which the message will be sent.replyTo - Information about the message or story to be replied; pass null if none.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()
TdApi.ObjectgetConstructor in class TdApi.Object