Web Bots: Fix after updating layer
This commit is contained in:
parent
86dc074d7d
commit
9732c16fc9
@ -179,6 +179,7 @@ export async function requestWebView({
|
|||||||
startParam,
|
startParam,
|
||||||
themeParams: theme ? buildInputThemeParams(theme) : undefined,
|
themeParams: theme ? buildInputThemeParams(theme) : undefined,
|
||||||
fromBotMenu: isFromBotMenu || undefined,
|
fromBotMenu: isFromBotMenu || undefined,
|
||||||
|
platform: 'web',
|
||||||
...(sendAs && { sendAs: buildInputPeer(sendAs.id, sendAs.accessHash) }),
|
...(sendAs && { sendAs: buildInputPeer(sendAs.id, sendAs.accessHash) }),
|
||||||
}));
|
}));
|
||||||
|
|
||||||
@ -203,6 +204,7 @@ export async function requestSimpleWebView({
|
|||||||
url,
|
url,
|
||||||
bot: buildInputPeer(bot.id, bot.accessHash),
|
bot: buildInputPeer(bot.id, bot.accessHash),
|
||||||
themeParams: theme ? buildInputThemeParams(theme) : undefined,
|
themeParams: theme ? buildInputThemeParams(theme) : undefined,
|
||||||
|
platform: 'web',
|
||||||
}));
|
}));
|
||||||
|
|
||||||
return result?.url;
|
return result?.url;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user