public static class TdApi.EditBusinessMessageCaption extends TdApi.Function<TdApi.BusinessMessage>
Returns BusinessMessage
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
businessConnectionId
Unique identifier of business connection on behalf of which the message was sent.
|
TdApi.FormattedText |
caption
New message content caption; pass null to remove caption; 0-getOption("message_caption_length_max") characters.
|
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.
|
boolean |
showCaptionAboveMedia
Pass true to show the caption above the media; otherwise, the caption will be shown below the media.
|
| Constructor and Description |
|---|
EditBusinessMessageCaption()
Default constructor for a function, which edits the caption of a message sent on behalf of a business account; for bots only.
|
EditBusinessMessageCaption(java.lang.String businessConnectionId,
long chatId,
long messageId,
TdApi.ReplyMarkup replyMarkup,
TdApi.FormattedText caption,
boolean showCaptionAboveMedia)
Creates a function, which edits the caption of a message sent on behalf of a business account; for bots only.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic java.lang.String businessConnectionId
public long chatId
public long messageId
public TdApi.ReplyMarkup replyMarkup
public TdApi.FormattedText caption
public boolean showCaptionAboveMedia
public static final int CONSTRUCTOR
public EditBusinessMessageCaption()
Returns BusinessMessage
public EditBusinessMessageCaption(java.lang.String businessConnectionId,
long chatId,
long messageId,
TdApi.ReplyMarkup replyMarkup,
TdApi.FormattedText caption,
boolean showCaptionAboveMedia)
Returns BusinessMessage
businessConnectionId - Unique identifier of business connection on behalf of which the message was sent.chatId - The chat the message belongs to.messageId - Identifier of the message.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. May be true only for animation, photo, and video messages.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object