/* 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; void SendBotCallbackData( not_null controller, not_null item, BotButtonLookup lookup); void SendBotCallbackDataWithPassword( not_null controller, not_null item, BotButtonLookup lookup); bool SwitchInlineBotButtonReceived( not_null 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