Add td_api::linkPreviewTypeInvoice.
This commit is contained in:
parent
d913fdbb83
commit
7489967137
@ -2566,6 +2566,9 @@ linkPreviewTypeChannelBoost photo:chatPhoto = LinkPreviewType;
|
||||
//@creates_join_request True, if the link only creates join request
|
||||
linkPreviewTypeChat type:InviteLinkChatType photo:chatPhoto creates_join_request:Bool = LinkPreviewType;
|
||||
|
||||
//@description The link is a link to an invoice
|
||||
linkPreviewTypeInvoice = LinkPreviewType;
|
||||
|
||||
//@description The link is a link to a Telegram Premium gift code
|
||||
linkPreviewTypePremiumGiftCode = LinkPreviewType;
|
||||
|
||||
|
@ -1367,6 +1367,9 @@ td_api::object_ptr<td_api::LinkPreviewType> WebPagesManager::get_link_preview_ty
|
||||
return td_api::make_object<td_api::linkPreviewTypeSupergroupBoost>(
|
||||
get_chat_photo_object(td_->file_manager_.get(), web_page->photo_));
|
||||
}
|
||||
if (type == "invoice") {
|
||||
return td_api::make_object<td_api::linkPreviewTypeInvoice>();
|
||||
}
|
||||
if (type == "livestream") {
|
||||
return td_api::make_object<td_api::linkPreviewTypeVideoChat>(
|
||||
get_chat_photo_object(td_->file_manager_.get(), web_page->photo_), true);
|
||||
|
Loading…
Reference in New Issue
Block a user