Add td_api::linkPreviewTypeInvoice.

This commit is contained in:
levlam 2024-07-04 00:32:00 +03:00
parent d913fdbb83
commit 7489967137
2 changed files with 6 additions and 0 deletions

View File

@ -2566,6 +2566,9 @@ linkPreviewTypeChannelBoost photo:chatPhoto = LinkPreviewType;
//@creates_join_request True, if the link only creates join request //@creates_join_request True, if the link only creates join request
linkPreviewTypeChat type:InviteLinkChatType photo:chatPhoto creates_join_request:Bool = LinkPreviewType; 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 //@description The link is a link to a Telegram Premium gift code
linkPreviewTypePremiumGiftCode = LinkPreviewType; linkPreviewTypePremiumGiftCode = LinkPreviewType;

View File

@ -1367,6 +1367,9 @@ td_api::object_ptr<td_api::LinkPreviewType> WebPagesManager::get_link_preview_ty
return td_api::make_object<td_api::linkPreviewTypeSupergroupBoost>( return td_api::make_object<td_api::linkPreviewTypeSupergroupBoost>(
get_chat_photo_object(td_->file_manager_.get(), web_page->photo_)); 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") { if (type == "livestream") {
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);