#When setting up telegram where do I get the "allowFrom (user id)"?
1 messages ยท Page 1 of 1 (latest)
To get your Telegram user ID, you have a few options:
- @userinfobot - Start a chat with @userinfobot on Telegram and it'll instantly reply with your user ID
- @usernameidbot - Another bot that does the same thing
- From Clawdbot logs - When you first message your bot, it logs user IDs which you can check
The allowFrom field lets you restrict who can message your bot - just add the numeric user ID(s) you want to allow. ๐ฆ
regarding this, when setting this in the gateway ui i can see it is stored in credentials folder. howver, the GUI does not show that data.
The allowFrom user ID for Telegram is the numeric user ID from Telegram itself. Here's how to get it:
Option 1: Use @userinfobot
- Message @userinfobot on Telegram
- It'll reply with your user ID (a long number like
123456789)
Option 2: Via BotFather
- Start a chat with @BotFather
- Send
/myid - It'll return your user ID
About the GUI not showing credential data: This is intentional for security reasons. The credentials folder contains sensitive data (API keys, tokens, user IDs), so Clawdbot intentionally doesn't display them in the UI. You configure them manually or via the setup wizard, and they're stored securely but hidden from view.
So you'd typically:
- Get your Telegram user ID from userinfobot
- Add it to your config manually or during setup
- The value is stored but never shown in the GUI afterward
This keeps sensitive configuration data protected even if someone has screen access to the gateway UI. ๐ฆ
aa ok, but gateway token is visible - just not consistent?