- Enclosing class:
- TdApi
Sends a message. Returns the sent message.
Returns
Message
-
Field Summary
Modifier and TypeFieldDescriptionlong
Target chat.static final int
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.long
Identifier of the replied message; 0 if none. -
Constructor Summary
ConstructorDescriptionSends a message.SendMessage
(long chatId, long messageThreadId, long replyToMessageId, TdApi.MessageSendOptions options, TdApi.ReplyMarkup replyMarkup, TdApi.InputMessageContent inputMessageContent) Sends a message.SendMessage
(DataInput input) Sends a message. -
Method Summary
Methods 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. -
replyToMessageId
public long replyToMessageIdIdentifier of the replied message; 0 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 CONSTRUCTOR- See Also:
-
-
Constructor Details
-
SendMessage
public SendMessage()Sends a message. Returns the sent message. ReturnsMessage
-
SendMessage
public SendMessage(long chatId, long messageThreadId, long replyToMessageId, TdApi.MessageSendOptions options, TdApi.ReplyMarkup replyMarkup, TdApi.InputMessageContent inputMessageContent) Sends a message. Returns the sent message. ReturnsMessage
- Parameters:
chatId
- long Target chat.messageThreadId
- long If not 0, a message thread identifier in which the message will be sent.replyToMessageId
- long Identifier of the replied message; 0 if none.options
- MessageSendOptions Options to be used to send the message; pass null to use default options.replyMarkup
- ReplyMarkup Markup for replying to the message; pass null if none; for bots only.inputMessageContent
- InputMessageContent The content of the message to be sent.
-
SendMessage
Sends a message. Returns the sent message. ReturnsMessage
- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-