Web Bots: Fix after updating layer

This commit is contained in:
Alexander Zinchuk 2022-10-17 18:40:04 +02:00
parent 86dc074d7d
commit 9732c16fc9

View File

@ -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;