admin管理员组文章数量:1401825
I have the following code:
inline_keyboard: [
[{ text: 'Authorize', callback_data: '1', url: '' }],
],
When I press the button that es out this code, the resulting url is modified to:
tg://unsafe_url?url=https%3A%2F%2Fgoogle%2F
Then, when the user presses the button, a confirmation modal appears.
I've seen other bots with url buttons that don't have that confirmation button. For example connects with telegram and has buttons that I guess are safe.
The telegram documentation doesn't mention unsafe urls:
I'd like to avoid that modal and go straight to the link. Is there some approval process that needs to happen?
I have the following code:
inline_keyboard: [
[{ text: 'Authorize', callback_data: '1', url: 'https://google.' }],
],
When I press the button that es out this code, the resulting url is modified to:
tg://unsafe_url?url=https%3A%2F%2Fgoogle.%2F
Then, when the user presses the button, a confirmation modal appears.
I've seen other bots with url buttons that don't have that confirmation button. For example https://ifttt. connects with telegram and has buttons that I guess are safe.
The telegram documentation doesn't mention unsafe urls: https://core.telegram/bots/api#inlinekeyboardbutton
I'd like to avoid that modal and go straight to the link. Is there some approval process that needs to happen?
Share Improve this question edited Jun 3, 2021 at 21:16 TylerH 21.1k78 gold badges79 silver badges114 bronze badges asked Nov 15, 2017 at 16:29 bernatfortetbernatfortet 2,3325 gold badges25 silver badges29 bronze badges1 Answer
Reset to default 6IFTTT is "verified" bot so it doesn't show any confirmation windows. For any other bot, if you "hide" URL in text, such window will be shown (so that user knows what website he opens).
Some clients (for example, Telegram Desktop) don't show confirmation windows for telegram domain.
本文标签: javascriptHow to show telegram bot inline keyboard button with safe urlStack Overflow
版权声明:本文标题:javascript - How to show telegram bot inline keyboard button with safe url - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744272823a2598267.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论