2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +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

@@ -20,11 +20,6 @@ class ChannelData;
enum class ChatRestriction;
struct BotCommand {
QString command;
QString description;
};
namespace Ui {
class EmptyUserpic;
} // namespace Ui
@@ -100,16 +95,6 @@ struct UnavailableReason {
}
};
bool UpdateBotCommands(
std::vector<BotCommand> &commands,
const MTPVector<MTPBotCommand> *data);
bool UpdateBotCommands(
base::flat_map<UserId, std::vector<BotCommand>> &commands,
UserId botId,
const MTPVector<MTPBotCommand> *data);
bool UpdateBotCommands(
base::flat_map<UserId, std::vector<BotCommand>> &commands,
const MTPVector<MTPBotInfo> &data);
bool ApplyBotMenuButton(
not_null<BotInfo*> info,
const MTPBotMenuButton *button);