Package org.drinkless.tdlib
Class TdApi.SendMessage
- Enclosing class:
- TdApi
Sends a message. Returns the sent message.
Returns Message
-
Field Summary
FieldsModifier and TypeFieldDescriptionlongTarget chat.static final intIdentifier uniquely determining type of the object.The content of the message to be sent.Options to be used to send the message; pass null to use default options.Markup for replying to the message; pass null if none; for bots only.Information about the message or story to be replied; pass null if none.Topic in which the message will be sent; pass null if none. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for a function, which sends a message.SendMessage(long chatId, TdApi.MessageTopic topicId, TdApi.InputMessageReplyTo replyTo, TdApi.MessageSendOptions options, TdApi.ReplyMarkup replyMarkup, TdApi.InputMessageContent inputMessageContent) Creates a function, which sends a message. -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
Field Details
-
chatId
public long chatIdTarget chat. -
topicId
Topic in which the message will be sent; pass null if none. -
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. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
SendMessage
public SendMessage()Default constructor for a function, which sends a message. Returns the sent message.Returns
Message -
SendMessage
public SendMessage(long chatId, TdApi.MessageTopic topicId, TdApi.InputMessageReplyTo replyTo, 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.topicId- Topic in which the message will be sent; pass null if none.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.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-