I use telegram login widget in MVC App , and follow steps as in post
telegram-web-login-widget-setdomain-does-not-work
Steps As in Post
Here is how the dialog goes, and how you need to respond to Botfather:
Me:
/setdomain
Botfather:
Choose a bot to set or change its linked domain. See Login Widget documentation for details: https://core.telegram.org/widgets/login
Me:
@thenameofthe_bot
BotFather:
Link your website with your bot to use the Telegram Login Widget. Widget > documentation: https://core.telegram.org/widgets/login Use /empty to remove.
Me:
https://www.thenameofmysite.com/
BotFather:
Success! Domain updated. /help
But it still renders “Bot domain invalid” instead of telegram login button.
2
Answers
You have to create a telegram bot
and give the username of the bot, on the https://core.telegram.org/widgets/login page.
3)Then telegram will create a JS code for you. Place it wherever you want it in the HTML file.
then send
/setdomain
command to BotFather(@BotFather).then select your bot
then send your domain. Eg:-
edupara.lk
(Telegram Widget only works with HTTPS)
I have a Django server I added to settings
this helped solve the problem for me