data_peer_bot_command.h 523 B

1234567891011121314151617181920212223
  1. /*
  2. This file is part of Telegram Desktop,
  3. the official desktop application for the Telegram messaging service.
  4. For license and copyright information please follow this link:
  5. https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
  6. */
  7. #pragma once
  8. namespace Data {
  9. struct BotCommand final {
  10. QString command;
  11. QString description;
  12. friend inline bool operator==(
  13. const BotCommand &,
  14. const BotCommand &) = default;
  15. };
  16. [[nodiscard]] BotCommand BotCommandFromTL(const MTPBotCommand &result);
  17. } // namespace Data