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. 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 int
Identifier uniquely determining type of the object.New content of the message.long
Identifier of the message.int
Unique 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 TypeMethodDescriptionint
Returns 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: inputMessageText, inputMessageAnimation, inputMessageAudio, inputMessageDocument, inputMessagePhoto 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. 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. 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: inputMessageText, inputMessageAnimation, inputMessageAudio, inputMessageDocument, inputMessagePhoto or inputMessageVideo.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-