Add show_caption_above_media to messagePaidMedia.
This commit is contained in:
parent
f23e47b3e4
commit
f8bf2d5370
@ -3127,7 +3127,8 @@ messageDocument document:document caption:formattedText = MessageContent;
|
|||||||
//@star_count Number of stars needed to buy access to the media in the message
|
//@star_count Number of stars needed to buy access to the media in the message
|
||||||
//@media Information about the media
|
//@media Information about the media
|
||||||
//@caption Media caption
|
//@caption Media caption
|
||||||
messagePaidMedia star_count:int53 media:vector<MessageExtendedMedia> caption:formattedText = MessageContent;
|
//@show_caption_above_media True, if the caption must be shown above the media; otherwise, the caption must be shown below the media
|
||||||
|
messagePaidMedia star_count:int53 media:vector<MessageExtendedMedia> caption:formattedText show_caption_above_media:Bool = MessageContent;
|
||||||
|
|
||||||
//@description A photo message
|
//@description A photo message
|
||||||
//@photo The photo
|
//@photo The photo
|
||||||
|
@ -7657,7 +7657,7 @@ tl_object_ptr<td_api::MessageContent> get_message_content_object(const MessageCo
|
|||||||
return td_api::make_object<td_api::messagePaidMedia>(
|
return td_api::make_object<td_api::messagePaidMedia>(
|
||||||
m->star_count,
|
m->star_count,
|
||||||
transform(m->media, [&](const auto &media) { return media.get_message_extended_media_object(td); }),
|
transform(m->media, [&](const auto &media) { return media.get_message_extended_media_object(td); }),
|
||||||
get_formatted_text_object(m->caption, skip_bot_commands, max_media_timestamp));
|
get_formatted_text_object(m->caption, skip_bot_commands, max_media_timestamp), invert_media);
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
UNREACHABLE();
|
UNREACHABLE();
|
||||||
|
@ -156,6 +156,7 @@ StringBuilder &operator<<(StringBuilder &string_builder, MessageContentType cont
|
|||||||
bool is_allowed_invert_caption_message_content(MessageContentType content_type) {
|
bool is_allowed_invert_caption_message_content(MessageContentType content_type) {
|
||||||
switch (content_type) {
|
switch (content_type) {
|
||||||
case MessageContentType::Animation:
|
case MessageContentType::Animation:
|
||||||
|
case MessageContentType::PaidMedia:
|
||||||
case MessageContentType::Photo:
|
case MessageContentType::Photo:
|
||||||
case MessageContentType::Video:
|
case MessageContentType::Video:
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user