Class TdApi.EditInlineMessageCaption
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.EditInlineMessageCaption
- Enclosing class:
- TdApi
Edits the caption of an inline message sent via a bot; for bots only.
Returns Ok
-
Field Summary
Modifier and TypeFieldDescriptionNew message content caption; pass null to remove caption; 0-getOption("message_caption_length_max") characters.static final int
Identifier uniquely determining type of the object.Inline message identifier.The new message reply markup; pass null if none.boolean
Pass true to show the caption above the media; otherwise, the caption will be shown below the media. -
Constructor Summary
ConstructorDescriptionDefault constructor for a function, which edits the caption of an inline message sent via a bot; for bots only.EditInlineMessageCaption
(String inlineMessageId, TdApi.ReplyMarkup replyMarkup, TdApi.FormattedText caption, boolean showCaptionAboveMedia) Creates a function, which edits the caption of an inline message sent via a bot; for bots only. -
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
-
inlineMessageId
Inline message identifier. -
replyMarkup
The new message reply markup; pass null if none. -
showCaptionAboveMedia
public boolean showCaptionAboveMediaPass true to show the caption above the media; otherwise, the caption will be shown below the media. Can be true only for animation, photo, and video messages. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
EditInlineMessageCaption
public EditInlineMessageCaption()Default constructor for a function, which edits the caption of an inline message sent via a bot; for bots only.Returns
Ok
-
EditInlineMessageCaption
public EditInlineMessageCaption(String inlineMessageId, TdApi.ReplyMarkup replyMarkup, TdApi.FormattedText caption, boolean showCaptionAboveMedia) Creates a function, which edits the caption of an inline message sent via a bot; for bots only.Returns
Ok
- Parameters:
inlineMessageId
- Inline message identifier.replyMarkup
- The new message reply markup; pass null if none.caption
- New message content caption; pass null to remove caption; 0-getOption("message_caption_length_max") characters.showCaptionAboveMedia
- Pass true to show the caption above the media; otherwise, the caption will be shown below the media. Can be true only for animation, photo, and video messages.
-
-
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
-