2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 17:06:03 +00:00

Open type="document" with photo as a photo.

Fixes #25600.
This commit is contained in:
John Preston
2023-01-02 15:08:36 +04:00
parent 741b524d71
commit 19350e3846
4 changed files with 8 additions and 1 deletions

View File

@@ -144,6 +144,8 @@ WebPageType ParseWebPageType(
return WebPageType::Video;
} else if (type == u"photo"_q) {
return WebPageType::Photo;
} else if (type == u"document"_q) {
return WebPageType::Document;
} else if (type == u"profile"_q) {
return WebPageType::Profile;
} else if (type == u"telegram_background"_q) {