mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/telegramdesktop/tdesktop
synced 2026-09-20 16:13:46 +08:00
45 lines
1.2 KiB
C++
45 lines
1.2 KiB
C++
/*
|
|
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
|
|
|
|
struct ClickHandlerContext;
|
|
class HistoryItem;
|
|
struct HistoryMessageMarkupButton;
|
|
|
|
namespace Window {
|
|
class SessionController;
|
|
} // namespace Window
|
|
|
|
namespace Api {
|
|
|
|
using BotButtonLookup = Fn<const HistoryMessageMarkupButton*()>;
|
|
|
|
void SendBotCallbackData(
|
|
not_null<Window::SessionController*> controller,
|
|
not_null<HistoryItem*> item,
|
|
BotButtonLookup lookup);
|
|
|
|
void SendBotCallbackDataWithPassword(
|
|
not_null<Window::SessionController*> controller,
|
|
not_null<HistoryItem*> item,
|
|
BotButtonLookup lookup);
|
|
|
|
bool SwitchInlineBotButtonReceived(
|
|
not_null<Window::SessionController*> controller,
|
|
const QByteArray &queryWithPeerTypes,
|
|
UserData *samePeerBot = nullptr,
|
|
MsgId samePeerReplyTo = 0);
|
|
|
|
void ActivateBotButton(ClickHandlerContext context, BotButtonLookup lookup);
|
|
void ActivateBotCommand(ClickHandlerContext context, int row, int column);
|
|
void ActivateRichPageBotButton(
|
|
ClickHandlerContext context,
|
|
const HistoryMessageMarkupButton &button);
|
|
|
|
} // namespace Api
|