Usage
Prerequisites
- You will need to have the Magic SDK installed into your web app
- You will need to have the Magic SDK - OAuth Extension installed into your web app
Telegram Setup
After installing the OAuth extension, you can now enable Telegram Login for your Magic app:- Follow Telegram instructions to create a bot
- Provide Bot name and Bot Token in your Magic developer dashboard
- Optionally enable Seamless login with Mini App
- Copy the Redirect URI field from your Magic Dashboard and set it as your bot domain using command
/setdomain
in @BotFather
If you have CSP enforcement, allow the following script-src:
Implementation
JavaScript
Keep your token secure and store it safely, it can be used by anyone to control your bot