#telegram fitlering in topic groups

1 messages ยท Page 1 of 1 (latest)

hollow arch
#

do we have telegram fitlering in topic groups?

stoic ginkgoBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> โœ… Mark Solution

chilly flickerBOT
# hollow arch do we have telegram fitlering in topic groups?

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:

  1. Check the docs: https://docs.clawd.bot/ (search for "telegram" or "filter")
  2. 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! ๐Ÿฆ

hollow arch
#

@wind lion can you only reply to a telegram topic in a group?

chilly flickerBOT
# hollow arch <@1456406468898197625> 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:

  1. Each topic gets its own isolated session โ€” Clawdbot appends :topic:<threadId> to the group session key

  2. Topic-specific configuration is available:

    channels.telegram.groups.<chatId>.topics.<threadId>
    

    Options include: skills, allowlists, auto-reply, system prompts, disable

  3. 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: true to require @mentions
  • Or disable the topic entirely with disable: true
  • Use groupAllowFrom to filter senders within that topic

Let me know if you need help with the specific config! ๐Ÿฆ

hollow arch
#

bet thank u

#

lemme try it now

chilly flickerBOT
#

Good luck! ๐Ÿš€ Let me know if you hit any snags! ๐Ÿฆ

hollow arch
#

tell me how to set up

#

the

#

claude anthropic token

chilly flickerBOT
# hollow arch tell me how to set up

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 @mentioned
  • disable: true โ€” completely disable this topic
  • autoReply: false โ€” turn off auto-replies
  • systemPrompt: "..." โ€” custom system prompt for this topic
  • allowFrom: [...] โ€” specific users who can interact
  • skills: [...] โ€” 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 @userinfobot in Telegram to get IDs

After editing config, run:

clawdbot gateway call config.apply

Need help finding your group/topic IDs first? ๐Ÿฆ

hollow arch
#

plz

chilly flickerBOT
#

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

๐Ÿฆ

hollow arch
#

tell me how ot set up claude anthropic token

chilly flickerBOT
#

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:

Once configured, you can use Claude models like:

  • opus (Claude Opus 4)
  • sonnet (Claude Sonnet 4)
  • haiku (Claude Haiku 3.5)

๐Ÿฆ

chilly flickerBOT
#
    "apiKey": "sk-ant-api03-..."
  }
}

Then reload:

clawdbot gateway call config.apply

๐Ÿฆ

hollow arch
#

cant we just use

#

oauth from claude code

chilly flickerBOT
#

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/

hollow arch
#

cant we just use
oauth from claude code

chilly flickerBOT
hollow arch
#

what about setup_token

chilly flickerBOT
# hollow arch 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 --help to see available commands
  • Try clawdbot configure --help for configure options

If it's not showing up, Peter would know! ๐Ÿฆ

hollow arch
#

what command for auth anthrophic