bot_command.h 684 B

12345678910111213141516171819202122232425262728293031
  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. class PeerData;
  9. class UserData;
  10. namespace Bot {
  11. struct SendCommandRequest {
  12. not_null<PeerData*> peer;
  13. QString command;
  14. FullMsgId context;
  15. FullReplyTo replyTo;
  16. };
  17. [[nodiscard]] QString WrapCommandInChat(
  18. not_null<PeerData*> peer,
  19. const QString &command,
  20. const FullMsgId &context);
  21. [[nodiscard]] QString WrapCommandInChat(
  22. not_null<PeerData*> peer,
  23. const QString &command,
  24. not_null<UserData*> bot);
  25. } // namespace Bot