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

Support media covers for bot descriptions.

For that replace custom handling of _botAbout by a fake message.
This commit is contained in:
John Preston
2023-03-03 20:52:21 +04:00
parent 59c66d1f49
commit 221b0d19c7
10 changed files with 325 additions and 205 deletions

View File

@@ -24,9 +24,13 @@ struct BotInfo {
bool cantJoinGroups = false;
bool supportsAttachMenu = false;
int version = 0;
QString description, inlinePlaceholder;
int descriptionVersion = 0;
QString description;
QString inlinePlaceholder;
std::vector<Data::BotCommand> commands;
Ui::Text::String text;
PhotoData *photo = nullptr;
DocumentData *document = nullptr;
QString botMenuButtonText;
QString botMenuButtonUrl;