From 9732c16fc94eb32332512737b27c084392a5bfe0 Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Mon, 17 Oct 2022 18:40:04 +0200 Subject: [PATCH] Web Bots: Fix after updating layer --- src/api/gramjs/methods/bots.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/api/gramjs/methods/bots.ts b/src/api/gramjs/methods/bots.ts index 7aa007fc6..a88156163 100644 --- a/src/api/gramjs/methods/bots.ts +++ b/src/api/gramjs/methods/bots.ts @@ -179,6 +179,7 @@ export async function requestWebView({ startParam, themeParams: theme ? buildInputThemeParams(theme) : undefined, fromBotMenu: isFromBotMenu || undefined, + platform: 'web', ...(sendAs && { sendAs: buildInputPeer(sendAs.id, sendAs.accessHash) }), })); @@ -203,6 +204,7 @@ export async function requestSimpleWebView({ url, bot: buildInputPeer(bot.id, bot.accessHash), themeParams: theme ? buildInputThemeParams(theme) : undefined, + platform: 'web', })); return result?.url;