#When setting up telegram where do I get the "allowFrom (user id)"?

1 messages ยท Page 1 of 1 (latest)

thick urchin
#

When setting up telegram where do I get the "allowFrom (user id)"?

south creekBOT
#

To get your Telegram user ID, you have a few options:

  1. @userinfobot - Start a chat with @userinfobot on Telegram and it'll instantly reply with your user ID
  2. @usernameidbot - Another bot that does the same thing
  3. 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. ๐Ÿฆ

dapper steppe
#

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.

south creekBOT
# dapper steppe regarding this, when setting this in the gateway ui i can see it is stored in cr...

The allowFrom user ID for Telegram is the numeric user ID from Telegram itself. Here's how to get it:

Option 1: Use @userinfobot

  1. Message @userinfobot on Telegram
  2. It'll reply with your user ID (a long number like 123456789)

Option 2: Via BotFather

  1. Start a chat with @BotFather
  2. Send /myid
  3. 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:

  1. Get your Telegram user ID from userinfobot
#
  1. Add it to your config manually or during setup
  2. 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. ๐Ÿฆ

dapper steppe
#

aa ok, but gateway token is visible - just not consistent?