Telegram
Chat with your agent from anywhere via Telegram.
Setup
- Open Telegram and search for @BotFather
- Send
/newbot - Follow the prompts to name your bot
- Copy the bot token (format:
123456789:ABC-DEF...) - Enable Telegram in Pocket Agent settings
- Paste the token and click Test
Settings
| Enable Telegram | Toggle the bot on/off |
| Bot Token | Your bot token from @BotFather |
| Allowed Users | Comma-separated Telegram user IDs that can use the bot. Leave empty to allow anyone (not recommended) |
| Default Chat | Chat ID for proactive notifications |
Get Your User ID
To find your Telegram user ID:
- Message @userinfobot
- It will reply with your user ID
- Add this ID to Allowed Users
Commands
Use these slash commands to control your bot:
/start | Welcome message with your user ID and available commands |
/help | Detailed help and usage tips |
/new | Fresh start — clears conversation history but keeps your facts and reminders |
/model | View available models or switch with /model sonnet |
/status | Show agent stats: messages, facts, cron jobs, memory usage |
/facts | Browse what the agent remembers about you, or search with /facts query |
/mychatid | Get your Chat ID and User ID for scheduling notifications |
/link | Link a group to a session with /link session-name (groups only) |
/unlink | Remove group-to-session linking (groups only) |
Group Chats
Create Telegram groups to isolate different conversations. Each group syncs to a matching chat tab in the app.
Create a Linked Group
- Create a new Telegram group
- Add your bot to the group
- Name the group exactly the same as your chat tab in Pocket Agent
- Messages in that group will now sync to that specific chat
Example: If your chat tab is named "Work", create a Telegram group called "Work" and add your bot. That group will be linked to that chat session.
Disable Privacy Mode
By default, bots can only see messages that start with / or mention the bot. To let your agent see all messages in a group:
- Open @BotFather
- Send
/mybots - Select your bot
- Tap Bot Settings
- Tap Group Privacy
- Tap Turn off
Note: After disabling privacy mode, remove and re-add the bot to existing groups for the change to take effect.