api_bot.h 944 B

123456789101112131415161718192021222324252627282930313233343536373839
  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. struct ClickHandlerContext;
  9. class HistoryItem;
  10. namespace Window {
  11. class SessionController;
  12. } // namespace Window
  13. namespace Api {
  14. void SendBotCallbackData(
  15. not_null<Window::SessionController*> controller,
  16. not_null<HistoryItem*> item,
  17. int row,
  18. int column);
  19. void SendBotCallbackDataWithPassword(
  20. not_null<Window::SessionController*> controller,
  21. not_null<HistoryItem*> item,
  22. int row,
  23. int column);
  24. bool SwitchInlineBotButtonReceived(
  25. not_null<Window::SessionController*> controller,
  26. const QByteArray &queryWithPeerTypes,
  27. UserData *samePeerBot = nullptr,
  28. MsgId samePeerReplyTo = 0);
  29. void ActivateBotCommand(ClickHandlerContext context, int row, int column);
  30. } // namespace Api