Add td_api::linkPreviewTypeSupergroup.
This commit is contained in:
parent
78d6adf837
commit
85758c069d
@ -2569,6 +2569,9 @@ linkPreviewTypeStickerSet stickers:vector<sticker> = LinkPreviewType;
|
|||||||
//@description The link is a link to a story. Link preview description is unavailable @story_sender_chat_id The identifier of the chat that posted the story @story_id Story identifier
|
//@description The link is a link to a story. Link preview description is unavailable @story_sender_chat_id The identifier of the chat that posted the story @story_id Story identifier
|
||||||
linkPreviewTypeStory story_sender_chat_id:int53 story_id:int32 = LinkPreviewType;
|
linkPreviewTypeStory story_sender_chat_id:int53 story_id:int32 = LinkPreviewType;
|
||||||
|
|
||||||
|
//@description The link is a link to a supergroup chat @photo Photo of the chat
|
||||||
|
linkPreviewTypeSupergroup photo:chatPhoto = LinkPreviewType;
|
||||||
|
|
||||||
//@description The link is a link to a cloud theme. TDLib has no theme support yet @documents The list of files with theme description
|
//@description The link is a link to a cloud theme. TDLib has no theme support yet @documents The list of files with theme description
|
||||||
linkPreviewTypeTheme documents:vector<document> = LinkPreviewType;
|
linkPreviewTypeTheme documents:vector<document> = LinkPreviewType;
|
||||||
|
|
||||||
|
@ -1353,6 +1353,10 @@ td_api::object_ptr<td_api::LinkPreviewType> WebPagesManager::get_link_preview_ty
|
|||||||
return td_api::make_object<td_api::linkPreviewTypeVideoChat>(
|
return td_api::make_object<td_api::linkPreviewTypeVideoChat>(
|
||||||
get_chat_photo_object(td_->file_manager_.get(), web_page->photo_), true);
|
get_chat_photo_object(td_->file_manager_.get(), web_page->photo_), true);
|
||||||
}
|
}
|
||||||
|
if (type == "megagroup") {
|
||||||
|
return td_api::make_object<td_api::linkPreviewTypeSupergroup>(
|
||||||
|
get_chat_photo_object(td_->file_manager_.get(), web_page->photo_));
|
||||||
|
}
|
||||||
if (type == "stickerset") {
|
if (type == "stickerset") {
|
||||||
auto stickers = transform(web_page->sticker_ids_, [&](FileId sticker_id) {
|
auto stickers = transform(web_page->sticker_ids_, [&](FileId sticker_id) {
|
||||||
return td_->stickers_manager_->get_sticker_object(sticker_id);
|
return td_->stickers_manager_->get_sticker_object(sticker_id);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user