Closed un-hongly closed 7 months ago
Hi , is there any update on this ?
Use example:
const chatId = "XXXX";
bot.setChatMenuButton({
chat_id: chatId,
menu_button: JSON.stringify({ type: 'web_app', text: 'Hello', web_app: { url: 'https://webappcontent.telegram.org/cafe' } }),
})
Use example:
const chatId = "XXXX"; bot.setChatMenuButton({ chat_id: chatId, menu_button: JSON.stringify({ type: 'web_app', text: 'Hello', web_app: { url: 'https://webappcontent.telegram.org/cafe' } }), })
This is work!. In typescript, cast json string to any.
JSON.stringify({ type: 'web_app', text: 'Hello', web_app: { url: 'https://webappcontent.telegram.org/cafe' } }) as any
Below code is not working