Add td_api::linkPreviewTypeApp.
This commit is contained in:
parent
5944fda0d6
commit
243eee3819
@ -2553,6 +2553,9 @@ 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 an app at App Store or Google Play @photo Photo for the app @author Author of the app
|
||||
linkPreviewTypeApp photo:photo author:string = LinkPreviewType;
|
||||
|
||||
//@description The link is a link to an audio
|
||||
//@url URL of the audio; may be empty if none
|
||||
//@mime_type MIME type of the audio file
|
||||
|
@ -1465,6 +1465,10 @@ td_api::object_ptr<td_api::LinkPreviewType> WebPagesManager::get_link_preview_ty
|
||||
LOG(ERROR) << "Have type = " << web_page->type_ << " for embedded " << web_page->url_;
|
||||
return td_api::make_object<td_api::linkPreviewTypeOther>(web_page->type_);
|
||||
}
|
||||
if (web_page->type_ == "app") {
|
||||
return td_api::make_object<td_api::linkPreviewTypeApp>(get_photo_object(td_->file_manager_.get(), web_page->photo_),
|
||||
web_page->author_);
|
||||
}
|
||||
// TODO LOG(ERROR) << "Receive link preview of unsupported type " << web_page->type_;
|
||||
return td_api::make_object<td_api::linkPreviewTypeOther>(web_page->type_);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user