#telegram fitlering in topic groups
1 messages ยท Page 1 of 1 (latest)
I don't have specific information about Telegram topic group filtering in Clawdbot. This is a Clawd question ๐ฆ
From my memory searches, I see mentions of Telegram message ordering issues and other Telegram features, but nothing about topic group filtering specifically.
Your best bets:
- Check the docs: https://docs.clawd.bot/ (search for "telegram" or "filter")
- Ask Peter or Clawd directly - they would know the current state of this feature
Let me know if you want me to dig into the docs or docs folder to search for this! ๐ฆ
@wind lion can you only reply to a telegram topic in a group?
Found it! Here's what I learned from the docs:
โ Yes! Telegram topic filtering is supported
From the docs: https://docs.clawd.bot/channels/telegram#topics-forum-supergroups
Clawdbot can filter/reply to specific Telegram topics:
-
Each topic gets its own isolated session โ Clawdbot appends
:topic:<threadId>to the group session key -
Topic-specific configuration is available:
channels.telegram.groups.<chatId>.topics.<threadId>Options include: skills, allowlists, auto-reply, system prompts, disable
-
Require mention per topic โ
channels.telegram.groups.<id>.topics.<threadId>.requireMention
Example routing key: agent:main:telegram:group:-1001234567890:topic:42
So if you want to only reply to a specific topic in a group, you can:
- Configure
channels.telegram.groups.<chatId>.topics.<threadId>.requireMention: trueto require @mentions - Or disable the topic entirely with
disable: true - Use
groupAllowFromto filter senders within that topic
Let me know if you need help with the specific config! ๐ฆ
Happy to help! ๐ฆ Good luck with the Telegram topic config!
Good luck! ๐ Let me know if you hit any snags! ๐ฆ
Here's a quick config example for Telegram topic filtering:
Add this to your ~/.clawdbot/clawdbot.json:
{
"channels": {
"telegram": {
"groups": {
"-1001234567890": { // Your group ID
"topics": {
"42": { // The topic/thread ID you want to filter
"requireMention": true, // Only reply when mentioned
"skills": ["help"] // Optional: limit skills for this topic
}
}
}
}
}
}
}
Key options per topic:
requireMention: trueโ only reply when @mentioneddisable: trueโ completely disable this topicautoReply: falseโ turn off auto-repliessystemPrompt: "..."โ custom system prompt for this topicallowFrom: [...]โ specific users who can interactskills: [...]โ limit which skills are available
To find your topic/thread ID:
- Check the gateway logs when a message comes in โ it'll show
message_thread_id - Or DM
@userinfobotin Telegram to get IDs
After editing config, run:
clawdbot gateway call config.apply
Need help finding your group/topic IDs first? ๐ฆ
plz
No worries! Here's a simple step-by-step:
Step 1: Find your IDs
In Telegram:
- Your group ID: Forward a message from the group to
@userinfobotโ it'll tell you the chat ID - Your topic ID: Check the gateway logs when a message comes into the topic โ look for
message_thread_id
Step 2: Edit your config
clawdbot configure
Or manually edit ~/.clawdbot/clawdbot.json:
{
"channels": {
"telegram": {
"groups": {
"-1001234567890": {
"topics": {
"42": {
"requireMention": true
}
}
}
}
}
}
}
Step 3: Reload
clawdbot gateway call config.apply
That's it! Now Clawdbot will only reply to that topic when mentioned with @.
Need help finding the IDs? Check your logs with:
clawdbot logs --tail | grep -i telegram
๐ฆ
tell me how ot set up claude anthropic token
Here's how to set up your Anthropic/Claude token:
Quick setup:
clawdbot configure
Then select Anthropic and enter your API key.
Or manually add to ~/.clawdbot/clawdbot.json:
{
"anthropic": {
"apiKey": "sk-ant-api03-xxxxx"
}
}
To get an Anthropic API key:
- Go to: https://console.anthropic.com/
- Sign up / log in
- Create an API key
Once configured, you can use Claude models like:
opus(Claude Opus 4)sonnet(Claude Sonnet 4)haiku(Claude Haiku 3.5)
๐ฆ
Easiest way:
clawdbot configure
Then follow the interactive wizard and enter your Anthropic API key when prompted.
Where to get the key:
- https://console.anthropic.com/ โ API Keys
Manual config in ~/.clawdbot/clawdbot.json:
{
"anthropic": {
"apiKey": "sk-ant-api03-..."
}
}
Then reload:
clawdbot gateway call config.apply
๐ฆ
Yep! Just run:
clawdbot configure
It opens an interactive wizard โ super simple. ๐ฆ
I'm not sure if Clawdbot supports direct OAuth from Claude Code โ that's a Clawd question ๐ฆ
From my docs knowledge, clawdbot configure mostly supports API key entry. OAuth might be available for some providers (like Google/GitHub), but I'm not certain about Anthropic.
Best bet: Ask Peter or check the docs:
But if clawdbot configure doesn't offer OAuth for Anthropic, you'll need an API key from:
https://console.anthropic.com/
cant we just use
oauth from claude code
I don't know if Clawdbot supports OAuth from Claude Code โ that's outside my knowledge scope.
Best options:
- Try
clawdbot configureand see if OAuth appears as an option for Anthropic - Check the docs: https://docs.clawd.bot/start/setup
- Ask Peter โ he built it and would know! ๐ฆ
what about setup_token
I'm not familiar with setup_token โ that might be something Peter added or it could be a custom thing.
Quick checks:
- Try
clawdbot --helpto see available commands - Try
clawdbot configure --helpfor configure options
If it's not showing up, Peter would know! ๐ฆ
what command for auth anthrophic