Skip to navigation

Connecting a bot

Your own Telegram bot that opens the sign-in page

Authorizer links open your bot’s Mini App. The person will see the bot’s @username, so pick a clear one. You can have several bots, each with its own links and accounts.

The bot and Mini App in @BotFather

  1. In @BotFather, send /newbot and copy the token that looks like 123456789:AA….
  2. Send /newapp and choose the bot. In Web App URL, paste the address like https://<panel domain>/telegram-auth: TGNOW shows it with a Copy button in the bot connection window.
  3. Enter the short name. The easiest is login, which TGNOW fills in by default. Latin letters, digits and _, 3 to 64 characters.

Without a Mini App, the link opens the bot but doesn’t show the sign-in page. You can fix an existing Mini App with /myapps.

The token gives full access to the bot. If it leaks, issue a new one in @BotFather and paste it into New token in the bot settings.

Connecting to TGNOW

Add a bot → I have a token, fill in Bot token and Mini App short name (the same as in @BotFather), then click Connect the bot.

Bot status

  • Connected: links work.
  • Error: the last check failed, the reason is under the bot’s name.
  • Disabled: links don’t work.

Bot settings

Panel name, up to 128 characters, isn’t visible to the person. If you changed the Mini App short name in @BotFather, change it here too, then reissue the links.

Connection prewarming speeds up the start of sign-in and is set in each link. Each connection takes one thread. It has nothing to do with Warmup.

Disconnect the bot works only when the bot has no links left.

Tips

  • “Telegram rejected this token”: copy the token from @BotFather again.
  • The Check button asks Telegram again whether the token is valid.