Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Telegram login widget return "bot domain invalid" in my mvc app

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.

like image 750
Tarek Avatar asked Sep 16 '25 20:09

Tarek


1 Answers

  1. You have to create a telegram bot

  2. 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.

  1. then send /setdomain command to BotFather(@BotFather).

  2. then select your bot

  3. then send your domain. Eg:- edupara.lk

(Telegram Widget only works with HTTPS)

like image 61
Pawan Vikasitha Avatar answered Sep 21 '25 17:09

Pawan Vikasitha



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!