Package org.drinkless.tdlib
Class TdApi.EditQuickReplyMessage
- Enclosing class:
- TdApi
Asynchronously edits the text, media or caption of a quick reply message. Use quickReplyMessage.canBeEdited to check whether a message can be edited. Media message can be edited only to a media message. Checklist messages can be edited only to a checklist message. The type of message content in an album can't be changed with exception of replacing a photo with a video or vice versa.
Returns Ok
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIdentifier uniquely determining type of the object.New content of the message.longIdentifier of the message.intUnique identifier of the quick reply shortcut with the message. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for a function, which asynchronously edits the text, media or caption of a quick reply message.EditQuickReplyMessage(int shortcutId, long messageId, TdApi.InputMessageContent inputMessageContent) Creates a function, which asynchronously edits the text, media or caption of a quick reply message. -
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
-
shortcutId
public int shortcutIdUnique identifier of the quick reply shortcut with the message. -
messageId
public long messageIdIdentifier of the message. -
inputMessageContent
New content of the message. Must be one of the following types: inputMessageAnimation, inputMessageAudio, inputMessageChecklist, inputMessageDocument, inputMessagePhoto, inputMessageText, or inputMessageVideo. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
EditQuickReplyMessage
public EditQuickReplyMessage()Default constructor for a function, which asynchronously edits the text, media or caption of a quick reply message. Use quickReplyMessage.canBeEdited to check whether a message can be edited. Media message can be edited only to a media message. Checklist messages can be edited only to a checklist message. The type of message content in an album can't be changed with exception of replacing a photo with a video or vice versa.Returns
Ok -
EditQuickReplyMessage
public EditQuickReplyMessage(int shortcutId, long messageId, TdApi.InputMessageContent inputMessageContent) Creates a function, which asynchronously edits the text, media or caption of a quick reply message. Use quickReplyMessage.canBeEdited to check whether a message can be edited. Media message can be edited only to a media message. Checklist messages can be edited only to a checklist message. The type of message content in an album can't be changed with exception of replacing a photo with a video or vice versa.Returns
Ok- Parameters:
shortcutId- Unique identifier of the quick reply shortcut with the message.messageId- Identifier of the message.inputMessageContent- New content of the message. Must be one of the following types: inputMessageAnimation, inputMessageAudio, inputMessageChecklist, inputMessageDocument, inputMessagePhoto, inputMessageText, or inputMessageVideo.
-
-
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
-