2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-06 01:16:12 +00:00

Support attach webview bots in topics.

This commit is contained in:
John Preston
2022-10-28 11:57:09 +04:00
parent b3f9b16eb2
commit aa5f9467f2
11 changed files with 165 additions and 66 deletions

View File

@@ -441,7 +441,7 @@ void ActivateBotCommand(ClickHandlerContext context, int row, int column) {
if (const auto bot = item->getMessageBot()) {
bot->session().attachWebView().request(
controller,
bot,
Api::SendAction(bot->owner().history(bot)),
bot,
{ .text = button->text, .url = button->data });
}