2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Add an "Open App" button for bot app link previews.

This commit is contained in:
John Preston
2023-03-03 17:37:17 +04:00
committed by 23rd
parent b95ea28e12
commit 1b3cf0a654
4 changed files with 24 additions and 8 deletions

View File

@@ -162,16 +162,18 @@ WebPageType ParseWebPageType(
} else if (type == u"telegram_megagroup_request"_q
|| type == u"telegram_chat_request"_q) {
return WebPageType::GroupWithRequest;
} else if (type == u"telegram_message"_q) {
} else if (type == u"telegram_message"_q) {
return WebPageType::Message;
} else if (type == u"telegram_bot"_q) {
} else if (type == u"telegram_bot"_q) {
return WebPageType::Bot;
} else if (type == u"telegram_voicechat"_q) {
} else if (type == u"telegram_voicechat"_q) {
return WebPageType::VoiceChat;
} else if (type == u"telegram_livestream"_q) {
} else if (type == u"telegram_livestream"_q) {
return WebPageType::Livestream;
} else if (type == u"telegram_user"_q) {
} else if (type == u"telegram_user"_q) {
return WebPageType::User;
} else if (type == u"telegram_botapp"_q) {
return WebPageType::BotApp;
} else if (hasIV) {
return WebPageType::ArticleWithIV;
} else {