File tree Expand file tree Collapse file tree
adminforth/documentation/docs/tutorial Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,7 +16,14 @@ pnpm i @adminforth/chat-surface-adapter-telegram
1616pnpm i @adminforth/oauth-adapter-telegram
1717```
1818
19- Create a Telegram bot with BotFather and add the token to ` .env ` :
19+ Create a Telegram bot with BotFather and copy the token:
20+
21+ 1 . Open [ BotFather] ( https://t.me/BotFather ) .
22+ 2 . Click ** Open** and open it in the Telegram app.
23+ 3 . Select or Create your bot.
24+ 4 . Copy the bot token shown at the top.
25+
26+ Add the token to ` .env ` :
2027
2128``` env title=".env"
2229TELEGRAM_BOT_TOKEN=your_bot_token
Original file line number Diff line number Diff line change @@ -311,6 +311,16 @@ Install Adapter:
311311pnpm install @adminforth/oauth-adapter-telegram --save
312312```
313313
314+ Create Telegram OpenID Connect credentials in BotFather:
315+
316+ 1 . Open [ BotFather] ( https://t.me/BotFather ) .
317+ 2 . Click ** Open** and open it in the Telegram app.
318+ 3 . Select or Create your bot.
319+ 4 . Open ** Login Widget** .
320+ 5 . Click ** Switch to OpenID Connect Login** .
321+ 6 . Copy the client ID and client secret shown at the top.
322+ 7 . Set ** Redirect URI** to ` https://example.com/oauth/callback ` .
323+
314324Add the credentials to your ` .env ` file:
315325
316326``` bash
You can’t perform that action at this time.
0 commit comments