/* 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 #include "data/data_peer_bot_command.h" namespace Data { struct BotCommands final { UserId userId; std::vector commands; }; struct ChatBotCommands final : public base::flat_map< UserId, std::vector> { public: using Changed = bool; using base::flat_map>::flat_map; Changed update(const std::vector &list); }; [[nodiscard]] BotCommands BotCommandsFromTL(const MTPBotInfo &result); } // namespace Data