2022-05-14 23:50:02 +03:00
|
|
|
/*
|
|
|
|
This file is part of Telegram Desktop,
|
|
|
|
the official desktop application for the Telegram messaging service.
|
|
|
|
|
|
|
|
For license and copyright information please follow this link:
|
|
|
|
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
namespace Data {
|
|
|
|
|
|
|
|
struct BotCommand final {
|
|
|
|
QString command;
|
|
|
|
QString description;
|
|
|
|
|
2024-08-13 15:51:32 +02:00
|
|
|
friend inline bool operator==(
|
|
|
|
const BotCommand &,
|
|
|
|
const BotCommand &) = default;
|
2022-05-14 23:50:02 +03:00
|
|
|
};
|
|
|
|
|
2022-05-15 00:27:21 +03:00
|
|
|
[[nodiscard]] BotCommand BotCommandFromTL(const MTPBotCommand &result);
|
2022-05-14 23:50:02 +03:00
|
|
|
|
|
|
|
} // namespace Data
|