Skip to content

Commit b0015e0

Browse files
committed
docs: update Telegram Chat Surface Adapter and OAuth documentation with detailed bot setup instructions
1 parent 24f53ba commit b0015e0

2 files changed

Lines changed: 18 additions & 1 deletion

File tree

adminforth/documentation/docs/tutorial/05-Adapters/09-chat-surface-adapters.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,14 @@ pnpm i @adminforth/chat-surface-adapter-telegram
1616
pnpm 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"
2229
TELEGRAM_BOT_TOKEN=your_bot_token

adminforth/documentation/docs/tutorial/08-Plugins/11-oauth.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,16 @@ Install Adapter:
311311
pnpm 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+
314324
Add the credentials to your `.env` file:
315325

316326
```bash

0 commit comments

Comments
 (0)