2020-06-29 13:33:27 +00: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
|
|
|
|
|
2022-07-28 17:03:38 +00:00
|
|
|
struct ClickHandlerContext;
|
2020-06-29 13:33:27 +00:00
|
|
|
class HistoryItem;
|
|
|
|
|
2022-06-09 02:51:09 +00:00
|
|
|
namespace Window {
|
|
|
|
class SessionController;
|
|
|
|
} // namespace Window
|
|
|
|
|
2020-06-29 13:33:27 +00:00
|
|
|
namespace Api {
|
|
|
|
|
|
|
|
void SendBotCallbackData(
|
2022-06-09 02:51:09 +00:00
|
|
|
not_null<Window::SessionController*> controller,
|
2020-06-29 13:33:27 +00:00
|
|
|
not_null<HistoryItem*> item,
|
|
|
|
int row,
|
|
|
|
int column);
|
|
|
|
|
2020-08-25 10:57:17 +00:00
|
|
|
void SendBotCallbackDataWithPassword(
|
2022-06-09 02:51:09 +00:00
|
|
|
not_null<Window::SessionController*> controller,
|
2020-08-25 10:57:17 +00:00
|
|
|
not_null<HistoryItem*> item,
|
|
|
|
int row,
|
|
|
|
int column);
|
|
|
|
|
2022-07-05 07:56:29 +00:00
|
|
|
bool SwitchInlineBotButtonReceived(
|
|
|
|
not_null<Window::SessionController*> controller,
|
|
|
|
const QString &query,
|
|
|
|
UserData *samePeerBot = nullptr,
|
|
|
|
MsgId samePeerReplyTo = 0);
|
|
|
|
|
2022-07-28 17:03:38 +00:00
|
|
|
void ActivateBotCommand(ClickHandlerContext context, int row, int column);
|
2022-07-05 07:56:29 +00:00
|
|
|
|
2020-06-29 13:33:27 +00:00
|
|
|
} // namespace Api
|