2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 22:46:10 +00:00

Moved out BotCommand struct to separated file.

This commit is contained in:
23rd
2022-05-14 23:50:02 +03:00
committed by John Preston
parent 8347318c90
commit 5f8608ed90
16 changed files with 160 additions and 105 deletions

View File

@@ -11,6 +11,10 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "data/data_chat_participant_status.h"
#include "dialogs/dialogs_key.h"
namespace Data {
struct BotCommand;
} // namespace Data
struct BotInfo {
bool inited = false;
bool readsAllHistory = false;
@@ -18,7 +22,7 @@ struct BotInfo {
bool supportsAttachMenu = false;
int version = 0;
QString description, inlinePlaceholder;
std::vector<BotCommand> commands;
std::vector<Data::BotCommand> commands;
Ui::Text::String text = { int(st::msgMinWidth) }; // description
QString botMenuButtonText;