Telegram Login Widget - gilpanal/beatbytebot_webapp GitHub Wiki

The widget (https://core.telegram.org/widgets/login) is introduced to allow giving permission to users at the website to modify content hosted in their Telegram channels or groups.

To properly test this feature in your localhost is important to follow these 2 rules:

This is the only way to test the Login Widget locally

  1. In Telegram start a conversation with @BotFather
  2. Type the command /mybots
  3. Select the bot you want to edit
  4. Go to Bot Settings
  5. Select Domain
  6. Choose Edit Domain or in case is the first time click Set Domain

Set Bot Domain for the first time

  1. Type http://127.0.0.1:80/ and press enter

Type 127.0.0.1:80

  1. If the operation is correct you will see a success message

The domain was set successfully

NOTE: The info generated is set in a Cookie. In the current project is also stored at localStorage and you can use it to test some API methods which require user info validation, in example: https://github.com/gilpanal/beatbytebot_api#b2-get-song-info-by-id-and-user-logged