Package org.drinkless.tdlib
Class TdApi.SendEphemeralMessage
- Enclosing class:
- TdApi
Sends an ephemeral message which will be received only by one bot in a chat. Currently, only ephemeral bot commands and replies to bot ephemeral messages can be sent using the method. The message is persistent across application restarts only if the message database is used. Returns the sent message.
Returns Message
-
Field Summary
FieldsModifier and TypeFieldDescriptionlongIdentifier of the callback query which triggered the message; for bots only.longTarget chat.static final intIdentifier uniquely determining type of the object.The content of the message to be sent.booleanPass true to get a fake message instead of actually sending them.longIdentifier of the user who will receive the message.Markup for replying to the message; pass null if none; for bots only.Information about the message to be replied; pass null if none.intNon-persistent identifier, which will be returned back in messageSendingStatePending object and can be used to match sent messages and corresponding updateNewMessage updates.Topic in which the message will be sent; pass null if none. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for a function, which sends an ephemeral message which will be received only by one bot in a chat.SendEphemeralMessage(long chatId, TdApi.MessageTopic topicId, long receiverUserId, long callbackQueryId, TdApi.InputMessageReplyTo replyTo, int sendingId, boolean onlyPreview, TdApi.ReplyMarkup replyMarkup, TdApi.InputMessageContent inputMessageContent) Creates a function, which sends an ephemeral message which will be received only by one bot in a chat. -
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. -
receiverUserId
public long receiverUserIdIdentifier of the user who will receive the message. -
callbackQueryId
public long callbackQueryIdIdentifier of the callback query which triggered the message; for bots only. -
replyTo
Information about the message to be replied; pass null if none. The message can be an incoming ephemeral message. -
sendingId
public int sendingIdNon-persistent identifier, which will be returned back in messageSendingStatePending object and can be used to match sent messages and corresponding updateNewMessage updates. -
onlyPreview
public boolean onlyPreviewPass true to get a fake message instead of actually sending them. -
replyMarkup
Markup for replying to the message; pass null if none; for bots only. -
inputMessageContent
The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageAnimation, inputMessageAudio, inputMessageDocument, inputMessagePhoto, inputMessageSticker, inputMessageVideo, inputMessageVideoNote, inputMessageVoiceNote, inputMessageLocation, inputMessageVenue, inputMessageContact. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
SendEphemeralMessage
public SendEphemeralMessage()Default constructor for a function, which sends an ephemeral message which will be received only by one bot in a chat. Currently, only ephemeral bot commands and replies to bot ephemeral messages can be sent using the method. The message is persistent across application restarts only if the message database is used. Returns the sent message.Returns
Message -
SendEphemeralMessage
public SendEphemeralMessage(long chatId, TdApi.MessageTopic topicId, long receiverUserId, long callbackQueryId, TdApi.InputMessageReplyTo replyTo, int sendingId, boolean onlyPreview, TdApi.ReplyMarkup replyMarkup, TdApi.InputMessageContent inputMessageContent) Creates a function, which sends an ephemeral message which will be received only by one bot in a chat. Currently, only ephemeral bot commands and replies to bot ephemeral messages can be sent using the method. The message is persistent across application restarts only if the message database is used. Returns the sent message.Returns
Message- Parameters:
chatId- Target chat.topicId- Topic in which the message will be sent; pass null if none.receiverUserId- Identifier of the user who will receive the message.callbackQueryId- Identifier of the callback query which triggered the message; for bots only.replyTo- Information about the message to be replied; pass null if none. The message can be an incoming ephemeral message.sendingId- Non-persistent identifier, which will be returned back in messageSendingStatePending object and can be used to match sent messages and corresponding updateNewMessage updates.onlyPreview- Pass true to get a fake message instead of actually sending them.replyMarkup- Markup for replying to the message; pass null if none; for bots only.inputMessageContent- The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageAnimation, inputMessageAudio, inputMessageDocument, inputMessagePhoto, inputMessageSticker, inputMessageVideo, inputMessageVideoNote, inputMessageVoiceNote, inputMessageLocation, inputMessageVenue, inputMessageContact.
-
-
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
-