public static class TdApi.EditMessageCaption extends TdApi.Function<TdApi.Message>
Returns Message
| Modifier and Type | Field and Description |
|---|---|
TdApi.FormattedText |
caption
New message content caption; 0-getOption("message_caption_length_max") characters; pass null to remove caption.
|
long |
chatId
The chat the message belongs to.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
long |
messageId
Identifier of the message.
|
TdApi.ReplyMarkup |
replyMarkup
The new message reply markup; pass null if none; for bots only.
|
boolean |
showCaptionAboveMedia
Pass true to show the caption above the media; otherwise, the caption will be shown below the media.
|
| Constructor and Description |
|---|
EditMessageCaption()
Default constructor for a function, which edits the message content caption.
|
EditMessageCaption(long chatId,
long messageId,
TdApi.ReplyMarkup replyMarkup,
TdApi.FormattedText caption,
boolean showCaptionAboveMedia)
Creates a function, which edits the message content caption.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic long chatId
public long messageId
public TdApi.ReplyMarkup replyMarkup
public TdApi.FormattedText caption
public boolean showCaptionAboveMedia
public static final int CONSTRUCTOR
public EditMessageCaption()
Returns Message
public EditMessageCaption(long chatId,
long messageId,
TdApi.ReplyMarkup replyMarkup,
TdApi.FormattedText caption,
boolean showCaptionAboveMedia)
Returns Message
chatId - The chat the message belongs to.messageId - Identifier of the message. Use messageProperties.canBeEdited to check whether the message can be edited.replyMarkup - The new message reply markup; pass null if none; for bots only.caption - New message content caption; 0-getOption("message_caption_length_max") characters; pass null to remove caption.showCaptionAboveMedia - Pass true to show the caption above the media; otherwise, the caption will be shown below the media. May be true only for animation, photo, and video messages.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object