Add td_api::linkPreviewTypeSticker.
This commit is contained in:
parent
31f489372e
commit
cf8f72c07d
@ -2623,6 +2623,9 @@ linkPreviewTypePremiumGiftCode = LinkPreviewType;
|
||||
//@description The link is a link to a shareable chat folder
|
||||
linkPreviewTypeShareableChatFolder = LinkPreviewType;
|
||||
|
||||
//@description The link is a link to a sticker message @sticker The sticker
|
||||
linkPreviewTypeSticker sticker:sticker = LinkPreviewType;
|
||||
|
||||
//@description The link is a link to a sticker set @stickers Up to 4 stickers from the sticker set
|
||||
linkPreviewTypeStickerSet stickers:vector<sticker> = LinkPreviewType;
|
||||
|
||||
|
@ -1569,6 +1569,10 @@ td_api::object_ptr<td_api::LinkPreviewType> WebPagesManager::get_link_preview_ty
|
||||
return td_api::make_object<td_api::linkPreviewTypeUnsupported>();
|
||||
}
|
||||
}
|
||||
if (web_page->document_.type == Document::Type::Sticker && web_page->type_ == "document") {
|
||||
auto sticker = td_->stickers_manager_->get_sticker_object(web_page->document_.file_id);
|
||||
return td_api::make_object<td_api::linkPreviewTypeSticker>(std::move(sticker));
|
||||
}
|
||||
if (web_page->type_ == "video" ||
|
||||
(web_page->document_.type == Document::Type::Video && web_page->type_ == "document")) {
|
||||
auto video = web_page->document_.type == Document::Type::Video
|
||||
|
Loading…
Reference in New Issue
Block a user