You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for (const row of rows) { for (const btn of row.buttons) { const res = await client.invoke( new Api.messages.RequestAppWebView({ peer: "WardyBot", platform: "web", writeAllowed: true, app: new Api.InputBotAppShortName({ // @ts-ignore botId: await client.getInputEntity( "https://t.me/WardyBot/app?startapp=" + btn.url.split("?startapp=")[1] ), shortName: "app", }), }) ); } }
how i can insert params to bot mini app link nodejs
The text was updated successfully, but these errors were encountered:
const result = await client.invoke(
new Api.messages.RequestWebView({
bot: "@wardybot",
platform: "web",
fromBotMenu: true,
url: "https://wardbot.com",
peer: "@wardybot",
themeParams: new Api.DataJSON({
data: '{"bg_color":"#ffffff","button_color":"#3390ec","button_text_color":"#ffffff","hint_color":"#707579","link_color":"#00488f","secondary_bg_color":"#f4f4f5","text_color":"#000000","header_bg_color":"#ffffff","accent_text_color":"#3390ec","section_bg_color":"#ffffff","section_header_text_color":"#3390ec","subtitle_text_color":"#707579","destructive_text_color":"#df3f40"}'
})
})
)
// result will have full app URL with params
for (const row of rows) { for (const btn of row.buttons) { const res = await client.invoke( new Api.messages.RequestAppWebView({ peer: "WardyBot", platform: "web", writeAllowed: true, app: new Api.InputBotAppShortName({ // @ts-ignore botId: await client.getInputEntity( "https://t.me/WardyBot/app?startapp=" + btn.url.split("?startapp=")[1] ), shortName: "app", }), }) ); } }
how i can insert params to bot mini app link nodejs
The text was updated successfully, but these errors were encountered: