Package org.drinkless.tdlib
Class TdApi.SendMessage
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.Function
-
- org.drinkless.tdlib.TdApi.SendMessage
-
- Enclosing class:
- TdApi
public static class TdApi.SendMessage extends TdApi.Function
Sends a message. Returns the sent message.Returns
Message
-
-
Field Summary
Fields Modifier and Type Field Description longchatIdTarget chat.static intCONSTRUCTORIdentifier uniquely determining type of the object.TdApi.InputMessageContentinputMessageContentThe content of the message to be sent.longmessageThreadIdIf not 0, a message thread identifier in which the message will be sent.TdApi.MessageSendOptionsoptionsOptions to be used to send the message; pass null to use default options.TdApi.ReplyMarkupreplyMarkupMarkup for replying to the message; pass null if none; for bots only.longreplyToMessageIdIdentifier of the message to reply to or 0.
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
-
-
-
Field Detail
-
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; 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
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SendMessage
public SendMessage()
Default constructor for a function, which 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)Creates a function, which sends a message. Returns the sent message.Returns
Message- Parameters:
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.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-