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.
|
TdApi.SendMessageOptions |
options
Options to be used to send the message.
|
TdApi.ReplyMarkup |
replyMarkup
Markup for replying to the message; 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 replyToMessageId,
TdApi.SendMessageOptions 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 replyToMessageId
public TdApi.SendMessageOptions options
public TdApi.ReplyMarkup replyMarkup
public TdApi.InputMessageContent inputMessageContent
public static final int CONSTRUCTOR
public SendMessage()
Returns Message
public SendMessage(long chatId, long replyToMessageId, TdApi.SendMessageOptions options, TdApi.ReplyMarkup replyMarkup, TdApi.InputMessageContent inputMessageContent)
Returns Message
chatId
- Target chat.replyToMessageId
- Identifier of the message to reply to or 0.options
- Options to be used to send the message.replyMarkup
- Markup for replying to the message; for bots only.inputMessageContent
- The content of the message to be sent.public int getConstructor()
getConstructor
in class TdApi.Function