Package org.drinkless.tdlib
Class TdApi.EditEphemeralMessage
- Enclosing class:
- TdApi
Edits the text, caption or reply markup of an ephemeral message sent by the bot; for bots only.
Returns Ok
-
Field Summary
FieldsModifier and TypeFieldDescriptionlongThe chat the message belongs to.static final intIdentifier uniquely determining type of the object.intIdentifier of the ephemeral message.New content of the message; pass null to edit only reply markup.longIdentifier of the user who received the message.The new message reply markup; pass null if none. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for a function, which edits the text, caption or reply markup of an ephemeral message sent by the bot; for bots only.EditEphemeralMessage(long chatId, long receiverUserId, int ephemeralMessageId, TdApi.ReplyMarkup replyMarkup, TdApi.InputMessageContent inputMessageContent) Creates a function, which edits the text, caption or reply markup of an ephemeral message sent by the bot; for bots only. -
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 chatIdThe chat the message belongs to. -
receiverUserId
public long receiverUserIdIdentifier of the user who received the message. -
ephemeralMessageId
public int ephemeralMessageIdIdentifier of the ephemeral message. -
replyMarkup
The new message reply markup; pass null if none. -
inputMessageContent
New content of the message; pass null to edit only reply markup. Must be one of the following types: inputMessageText, inputMessageAnimation, inputMessageAudio, inputMessageDocument, inputMessagePhoto, inputMessageSticker, inputMessageVideo, inputMessageVideoNote, inputMessageVoiceNote. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
EditEphemeralMessage
public EditEphemeralMessage()Default constructor for a function, which edits the text, caption or reply markup of an ephemeral message sent by the bot; for bots only.Returns
Ok -
EditEphemeralMessage
public EditEphemeralMessage(long chatId, long receiverUserId, int ephemeralMessageId, TdApi.ReplyMarkup replyMarkup, TdApi.InputMessageContent inputMessageContent) Creates a function, which edits the text, caption or reply markup of an ephemeral message sent by the bot; for bots only.Returns
Ok- Parameters:
chatId- The chat the message belongs to.receiverUserId- Identifier of the user who received the message.ephemeralMessageId- Identifier of the ephemeral message.replyMarkup- The new message reply markup; pass null if none.inputMessageContent- New content of the message; pass null to edit only reply markup. Must be one of the following types: inputMessageText, inputMessageAnimation, inputMessageAudio, inputMessageDocument, inputMessagePhoto, inputMessageSticker, inputMessageVideo, inputMessageVideoNote, inputMessageVoiceNote.
-
-
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
-