电报网络登录小部件/setdomain 不起作用 [英] telegram web login widget /setdomain does not work
问题描述
我正在尝试使用 Telegrom 网络登录小部件.
I'm trying to use the telegrom web login widget.
我已按照此处的说明进行操作:
I have followed the instructions here:
https://core.telegram.org/widgets/login
我已经设置了我的机器人并使用 BotFather 选择了它,但是当我输入/setdomain 时,它只是将我指向上面的 url.我似乎无法在任何地方实际配置我的域.
And I have set up my bot and selected it with the BotFather, but when I enter /setdomain it just points me back to the url above. I don't seem to be able to actually configure my domain anywhere.
当我在我的网站上使用在该页面上创建的代码段时,它只会显示:
When I use the code snippet created on that page on my web site, it just displays:
Bot 域无效.
有没有其他人在他们的网站上设置过电报登录?
Has anyone else had luck setting up telegram login on their site?
推荐答案
所以,事实证明 bot 使用的措辞有点令人困惑:
So, it turns out the wording that the bot uses is a bit confusing:
以下是对话的过程,以及您需要如何回应 Botfather:
Here is how the dialog goes, and how you need to respond to Botfather:
我:
/setdomain
Botfather:
选择一个机器人来设置或更改其链接域.有关详细信息,请参阅登录小部件文档:https://core.telegram.org/widgets/login
Choose a bot to set or change its linked domain. See Login Widget documentation for details: https://core.telegram.org/widgets/login
我:
@thenameofthe_bot
@thenameofthe_bot
BotFather:
将您的网站与您的机器人链接以使用 Telegram 登录小部件.小部件文档:https://core.telegram.org/widgets/login使用/empty 删除.
Link your website with your bot to use the Telegram Login Widget. Widget documentation: https://core.telegram.org/widgets/login Use /empty to remove.
我:
https://www.thenameofmysite.com/
BotFather:
成功!域已更新./帮助
Success! Domain updated. /help
我可能犯的错误是:a) 机器人没有使用@ 符号?b) 点击该网站的链接并希望在那里看到进一步的配置,而不是在出现令人困惑的响应后输入网站.
The mistakes I might have been making were: a) Not using the @ sign for the bot? b) Following the link to the site and expecting to see further configuration there, rather than typing in the website after that confusing response.
这篇关于电报网络登录小部件/setdomain 不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!