Class TdApi.EditQuickReplyMessage
java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.Function<TdApi.Ok>
dev.voroby.springframework.telegram.client.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. Text message can be edited only to a text 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
Modifier 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
ConstructorDescriptionDefault 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 dev.voroby.springframework.telegram.client.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. Text message can be edited only to a text 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. Text message can be edited only to a text 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
-