Required to use DroidClaw as a Telegram bot. Allows remote access from any device (PC, tablet, another phone).
- Open Telegram on your phone or desktop
- Search for @BotFather and start a conversation
- Send
/newbot - Choose a name for the bot (e.g. "My DroidClaw")
- Choose a username (must end with
bot, e.g.my_droidclaw_bot) - BotFather will reply with the bot token (format:
123456789:ABCdef...) - Copy the token
- Settings > Telegram Bot
- Paste the token
- Click Test to verify
- Toggle Enable to start the bot
- Whitelist: add Telegram usernames (without @) to restrict who can talk to the bot. If the whitelist is empty, anyone who finds the bot can use it.
- The bot token is stored in FlutterSecureStorage on the device
- Long polling is used (no webhook, no server needed)
Send these commands to @BotFather:
/setdescription-- set what users see before starting a conversation/setabouttext-- set the "About" section/setuserpic-- set the bot's profile picture/setcommands-- not needed (DroidClaw processes natural language)
- The bot runs via the Android foreground service (persistent notification)
- It works even when the app is in the background or the screen is off
- Each Telegram chat gets its own session (
telegram_<chat_id>)