/telegram-login

Primary LanguageJavaScriptBSD 2-Clause "Simplified" LicenseBSD-2-Clause

telegram-login

note

Not support logout.

npm install

npm install --registry=https://registry.npmmirror.com

Create telegram bot and setdomain

  1. t.me/BotFather
  2. /start
  3. /newbot
  4. enter your bot name
  5. /setdomain
  6. enter your bot name
  7. enter your domain name or ip with port
  8. Widget configuration: https://core.telegram.org/widgets/login#widget-configuration

ref

  1. Telegram(电报)授权登录(web)第三方
  2. https://github.com/revenkroz/telegram-web-app-bot-example
  3. https://edisonchee.com/writing/telegram-login-with-node.js/