Package it.tdlight.jni
Class TdApi.SendMessage
java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Function
it.tdlight.jni.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 long
chatId
Target chat.static int
CONSTRUCTOR
TdApi.InputMessageContent
inputMessageContent
The content of the message to be sent.long
messageThreadId
If not 0, a message thread identifier in which the message will be sent.TdApi.MessageSendOptions
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 Summary
Constructors Constructor Description SendMessage()
Sends a message.SendMessage(long chatId, long messageThreadId, long replyToMessageId, TdApi.MessageSendOptions options, TdApi.ReplyMarkup replyMarkup, TdApi.InputMessageContent inputMessageContent)
Sends a message.SendMessage(DataInput input)
-
Method Summary
Modifier and Type Method Description boolean
equals(Object o)
int
getConstructor()
int
hashCode()
void
serialize(DataOutputStream output)
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 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. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
- Constant Field Values
-
-
Constructor Details
-
SendMessage
public SendMessage()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)Sends a message. Returns the sent message.Returns
Message
- 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 message to reply to or 0.options
- MessageSendOptions Options to be used to send the message.replyMarkup
- ReplyMarkup Markup for replying to the message; for bots only.inputMessageContent
- InputMessageContent The content of the message to be sent.
-
SendMessage
- 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()
-