Add td_api::linkPreviewTypeWebApp.
This commit is contained in:
parent
2d0d07aaae
commit
f1a08b3559
@ -2553,8 +2553,7 @@ webPageInstantView page_blocks:vector<PageBlock> view_count:int32 version:int32
|
||||
|
||||
//@class LinkPreviewType @description Describes type of a link preview
|
||||
|
||||
//@description The link is a link to a background. Link preview title and description are available only for filled backgrounds
|
||||
//@document Document with the background; may be null for filled backgrounds
|
||||
//@description The link is a link to a background. Link preview title and description are available only for filled backgrounds @document Document with the background; may be null for filled backgrounds
|
||||
linkPreviewTypeBackground document:document = LinkPreviewType;
|
||||
|
||||
//@description The link is a link to boost a channel chat @photo Photo of the chat; may be null
|
||||
@ -2595,6 +2594,9 @@ linkPreviewTypeUser photo:chatPhoto is_bot:Bool = LinkPreviewType;
|
||||
//@is_live_stream True, if the video chat is expected to be a live stream in a channel or a broadcast group
|
||||
linkPreviewTypeVideoChat photo:chatPhoto is_live_stream:Bool = LinkPreviewType;
|
||||
|
||||
//@description The link is a link to a Web App @photo Web App photo
|
||||
linkPreviewTypeWebApp photo:photo = LinkPreviewType;
|
||||
|
||||
//@description The link preview type is unsupported yet @type String type of the link preview. Can be: article, photo, audio, video, document, profile, app, or something else
|
||||
linkPreviewTypeOther type:string = LinkPreviewType;
|
||||
|
||||
|
@ -1347,6 +1347,10 @@ td_api::object_ptr<td_api::LinkPreviewType> WebPagesManager::get_link_preview_ty
|
||||
return td_api::make_object<td_api::linkPreviewTypeUser>(
|
||||
get_chat_photo_object(td_->file_manager_.get(), web_page->photo_), true);
|
||||
}
|
||||
if (type == "botapp") {
|
||||
return td_api::make_object<td_api::linkPreviewTypeWebApp>(
|
||||
get_photo_object(td_->file_manager_.get(), web_page->photo_));
|
||||
}
|
||||
if (type == "channel" || type == "channel_request") {
|
||||
return td_api::make_object<td_api::linkPreviewTypeChat>(
|
||||
td_api::make_object<td_api::inviteLinkChatTypeChannel>(),
|
||||
|
Loading…
Reference in New Issue
Block a user