This guide will help you create a private Telegram bot to control your Clawdbot remotely, receive notifications, and interact with your local AI from anywhere.
By connecting Clawdbot to Telegram, you can:
- Send commands to your bot from your phone or any device
- Receive proactive notifications (alerts, reminders, updates, etc.)
- Control your local computer remotely (open apps, run scripts, take screenshots)
- Schedule automated tasks via natural language
- Access your AI assistant like ChatGPT, but completely private and running locally
- Automate web research, monitoring, and data collection
- Get real-time updates from automated workflows
Important: This setup creates a PRIVATE bot that only YOU can use. No one else can message it or see your conversations.
- Completed Step 1: Ollama & Clawdbot Setup
- A Telegram account
- Telegram app installed on your phone/computer
- Clawdbot gateway running
BotFather is Telegram's official bot for creating bots:
- Open Telegram
- Search for
@BotFather - Click on the verified BotFather (blue checkmark)
- Click Start
-
Send the command:
/newbot -
Choose a name (this is the display name):
My Clawdbot Assistant -
Choose a username (must end in 'bot'):
my_clawdbot_assistant_bot(If taken, try adding numbers:
my_clawdbot_2026_bot) -
Copy your Bot Token - BotFather will send you a message like:
Done! Here is your bot token: 123456789:ABCdefGHIjklMNOpqrsTUVwxyz123456789Save this token securely! You'll need it in the next steps.
Make your bot more personal:
Set a description:
/setdescription
Choose your bot, then send:
Your personal AI assistant powered by local Ollama models. Private and secure.
Set a profile picture:
/setuserpic
Choose your bot and upload an image.
Set commands:
/setcommands
Choose your bot and send:
start - Start the bot
help - Show available commands
search - Search the web
jobs - Check for new jobs
tasks - View scheduled tasks
stop - Stop current task
status - Check bot status
For security, you need to restrict the bot to only respond to YOU.
-
Search for
@userinfobotin Telegram -
Click Start
-
The bot immediately replies with your information:
Id: 987654321 First Name: Your Name Username: @yourusername -
Copy your User ID (the number, e.g.,
987654321)
Alternative Method:
- Search for
@raw_data_bot - Click Start
- Look for
"id": 987654321in the JSON response
# Set the bot token
clawdbot config set channels.telegram.botToken "123456789:ABCdefGHIjklMNOpqrsTUVwxyz123456789"
# Restrict to only YOUR user ID (replace with your actual ID)
clawdbot config set channels.telegram.allowFrom ["987654321"]
# Set DM policy to restricted (extra security)
clawdbot config set gateway.dmPolicy "restricted"Open your Clawdbot configuration file:
- Windows:
%APPDATA%\clawdbot\config.yaml - macOS/Linux:
~/.config/clawdbot/config.yaml
Add or update the Telegram configuration:
channels:
telegram:
enabled: true
botToken: "123456789:ABCdefGHIjklMNOpqrsTUVwxyz123456789"
allowFrom:
- 987654321 # Your User ID only
# Optional: Add more user IDs for family members
# - 111222333 # Another trusted user
gateway:
dmPolicy: "restricted" # Only approved users can chatImportant: Replace the botToken with YOUR token from Part 1 and the allowFrom ID with YOUR User ID from Part 2.
clawdbot gateway stop
clawdbot gateway start --daemon-
Open Telegram
-
Search for your bot (e.g.,
@my_clawdbot_assistant_bot) -
Click Start
-
You should receive a pairing code like:
Welcome! Your pairing code is: JN4MSY Please ask the administrator to approve this pairing.
On your computer, run:
clawdbot pairing approve telegram JN4MSY(Replace JN4MSY with your actual pairing code)
You should see:
✓ Approved telegram sender 987654321
In Telegram, send a message to your bot:
Hello!
Your bot should respond! If it does, your setup is complete.
Try these messages:
-
Basic AI question:
What is 2+2? -
Current information (requires Brave MCP from Step 2):
Search the web for today's weather in Tokyo -
Browser automation (requires Playwright from Step 3):
Open my browser and go to google.com -
System status:
/status
- Open Clawdbot dashboard:
http://localhost:18789 - Navigate to Channels or Telegram section
- You should see:
- Status: Connected
- Active Users: 1
- Recent Messages: Your test messages
Now that Telegram is connected, you can configure various automated workflows.
Send this message to your bot in Telegram:
Set your system instruction to:
You are my News Digest Assistant. Your goal is to keep me informed about topics I care about.
Your Rules:
1. Use the Brave Search tool to find recent news articles
2. Focus on articles from the last 24 hours
3. Filter for reputable sources
4. Provide a brief summary (2-3 sentences) and a link for each article
5. Organize by topic
6. If nothing significant is found, send a brief "No major updates today" message
My Topics of Interest:
- Artificial Intelligence and Machine Learning
- Space Exploration
- Renewable Energy
- [Add your interests]
Schedule the news digest:
Schedule a task: Every day at 8:00 AM, search for news on my topics of interest and send me a digest.
Schedule a task: Every 6 hours, check the price of [Product Name] on [Website]. If it drops below $[amount], alert me immediately with a link.
Schedule a task: Every day at 2:00 PM, check [website URL] for new content. If there are updates, send me a summary of what's new.
Schedule a task: Every 4 hours, search Twitter for mentions of "[your brand/keyword]" and send me any posts with significant engagement.
Schedule a task: Every day at 9:00 AM and 5:00 PM, search [job boards] for [Job Title] positions matching my criteria and send me the top 3 matches.
The bot should confirm:
✓ Understood. I've scheduled your automated task.
/tasks
or
What tasks do you have scheduled?
Stop the daily job search task
/stopall
Change the job search schedule to only once per day at 10 AM
Beyond job searches, you can set up any automated notifications:
News Digest:
Every morning at 8 AM, search for the top 3 AI news stories and send me a summary
Price Tracking:
Every 4 hours, check the price of Bitcoin and alert me if it goes above $50,000
Reminders:
Every Friday at 5 PM, remind me to review my weekly goals
If you completed Step 3 (Playwright), you can control your computer's browser:
Open and Search:
Open LinkedIn and search for Remote Python Developer jobs
Take Screenshots:
Navigate to github.com/trending and send me a screenshot
Automated Workflows:
Open my email, check for unread messages, and tell me how many I have
With appropriate MCP servers, you can:
Open Applications:
Open Spotify and play my Chill Mix playlist
System Information:
Check my computer's CPU and RAM usage
File Operations:
Create a new file called 'meeting-notes.txt' on my desktop
Test with another account:
- Ask a friend to search for your bot
- Have them send a message
- They should receive NO response
Check allowed users:
clawdbot config get channels.telegram.allowFromShould only show YOUR User ID.
If you want to share with trusted people:
clawdbot config set channels.telegram.allowFrom ["987654321", "111222333"]Or edit config.yaml:
allowFrom:
- 987654321 # You
- 111222333 # Trusted personRemove a user ID from the allowFrom list and restart:
clawdbot gateway restartView recent messages:
clawdbot logs telegramDashboard monitoring:
Open dashboard at http://localhost:18789 > Telegram section
Never share your bot token:
- It grants full control of your bot
- Anyone with the token can send messages as your bot
If compromised:
- Go to BotFather on Telegram
- Send
/token - Choose your bot
- Generate new token
- Update Clawdbot config with new token
Check gateway is running:
clawdbot gateway statusVerify bot token:
clawdbot config get channels.telegram.botTokenShould match the token from BotFather.
Check logs:
clawdbot gateway logs | grep telegramLook for connection errors.
Verify your User ID is in allowFrom list:
clawdbot config get channels.telegram.allowFromRe-pair the bot:
clawdbot pairing list telegram
clawdbot pairing approve telegram [YOUR_PAIRING_CODE]Check bot username is correct:
- Search for the exact username from BotFather
- Ensure it ends with
_bot
Restart gateway:
clawdbot gateway restartCheck Telegram connection in dashboard:
Open http://localhost:18789 and verify Telegram status.
Verify Brave MCP is configured: See Step 2: Brave MCP Setup
Check system instructions:
Show me your current system instructions
Test search manually:
Search the web for React Developer jobs
If this works but scheduled tasks don't, check task logs:
clawdbot logs tasksThis is normal for complex tasks:
- Ollama needs time to process
- Web searches add latency
- Browser automation can take 10-30 seconds
To improve speed:
- Use a faster model (e.g.,
mistral-small) - Simplify your prompts
- Increase RAM allocated to Ollama
Check internet connection: Both your computer and phone need internet.
Verify Telegram isn't blocked: Some corporate networks block Telegram.
Check gateway firewall: Ensure outbound connections to Telegram API are allowed.
Good:
Search LinkedIn for Remote Senior React Developer jobs posted in the last 24 hours that mention TypeScript
Bad:
Find me a job
I'm looking for a React Developer role. My skills include React, TypeScript, Node.js, and GraphQL. I have 5 years of experience and I'm open to remote positions with a salary range of $100k-$140k.
Search for jobs that match this profile.
Instead of:
Search for jobs, filter them, apply to the top 3, and send me confirmation
Do:
1. Search for jobs matching my profile
2. [Wait for results]
3. Apply to the first job from the list you sent
To avoid notifications at night:
Don't send me job alerts between 10 PM and 8 AM
Congratulations! Your complete Clawdbot system is now operational. You have:
✅ Local AI powered by Ollama (no cloud costs)
✅ Internet search via Brave MCP
✅ Browser automation via Playwright
✅ Secure remote access via Tailscale
✅ Private bot control via Telegram
-
Customize your job search prompts based on your actual requirements
-
Experiment with automation:
- News digests
- Price tracking
- Productivity reminders
-
Explore additional MCP servers:
- Spotify control
- Calendar integration
- Email monitoring
- File management
-
Join the community:
- Share your setup
- Learn from others
- Contribute improvements
Here's an example of a fully automated daily assistant workflow:
Morning Routine:
- 7:00 AM: Bot sends weather forecast and calendar reminders
- 8:00 AM: Bot sends personalized news digest on your topics
- 9:00 AM: Bot checks your monitoring tasks (prices, websites, social media)
Afternoon Check:
- 2:00 PM: Bot checks for website updates you're tracking
- 3:00 PM: Bot sends a summary of any price drops on items you're watching
Evening:
- 6:00 PM: Bot sends a digest of the day's findings
- 8:00 PM: You can ask for specific research or automation tasks
- Bot executes browser automation for any ad-hoc requests
Custom Automations:
- Job searching (if actively looking)
- Social media monitoring
- Content creation reminders
- System maintenance tasks
- File management
- Any workflow you can describe
All completely automated, private, and running on your own hardware.
- Telegram Bot API Documentation
- BotFather Commands
- Telegram Privacy Settings
- Clawdbot Community (check official repo)
Found this guide helpful? Have suggestions for improvements?
- Open an issue on this repository
- Submit a pull request with enhancements
- Share your setup with the community
← Back to Step 4 | Main README
🎉 Setup Complete! Enjoy your private, local AI assistant!