- Enclosing class:
- TdApi
Sends a message. Returns the sent message.
Returns Message
-
Field Summary
Modifier and TypeFieldDescriptionlong
Target chat.static final int
Identifier uniquely determining type of the object.The content of the message to be sent.long
If not 0, a message thread identifier in which the message will 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. -
Constructor Summary
ConstructorDescriptionSends a message.SendMessage
(long chatId, long messageThreadId, TdApi.InputMessageReplyTo replyTo, TdApi.MessageSendOptions options, TdApi.ReplyMarkup replyMarkup, TdApi.InputMessageContent inputMessageContent) Sends a message.SendMessage
(DataInput input) Sends a message. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
Returns an identifier uniquely determining type of the object.int
hashCode()
void
serialize
(DataOutput output) Serialize the TDLib classMethods inherited from class it.tdlight.jni.TdApi.Function
toString
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize
-
Field Details
-
chatId
public long chatIdTarget chat. -
messageThreadId
public long messageThreadIdIf not 0, a 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. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
SendMessage
public SendMessage()Sends a message. Returns the sent message.Returns
Message
-
SendMessage
public SendMessage(long chatId, long messageThreadId, TdApi.InputMessageReplyTo replyTo, TdApi.MessageSendOptions options, TdApi.ReplyMarkup replyMarkup, TdApi.InputMessageContent inputMessageContent) 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.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.Returns
Message
-
SendMessage
Sends a message. Returns the sent message.Returns
Message
- Parameters:
input
- Serialized input- Throws:
IOException
- the deserialization failed
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-
serialize
Serialize the TDLib class- Specified by:
serialize
in classTdApi.Object
- Parameters:
output
- output data stream- Throws:
IOException
- the serialization failed
-
equals
-
hashCode
public int hashCode()
-