본문으로 건너뛰기
TakoAPI
스킬로 돌아가기

tg-groupchat-setup

arekqq 제작

Productivity & Tasks
1.4kclawskills.sh가 보고한 다운로드 수
0조회수
좋아요 0개로그인하면 이 스킬에 좋아요를 누를 수 있습니다
—아직 평가 없음
내 평가

요약

Configure a MoltBot agent to participate in a Telegram group chat.

설명

이 스킬이 하는 일

Configures a MoltBot agent to work inside a Telegram group chat. Patches the gateway config to add the group to the allowlist, set mention patterns from the bot's detected name and username, and restrict which senders can trigger the bot.

Automates bot name detection, config merging, and gateway restart in one step instead of requiring separate manual JSON edits and Telegram API calls.

사용 시점

  • Adding a MoltBot agent to a new Telegram group
  • Restricting group bot responses to specific users
  • Configuring a bot to reply only when explicitly mentioned
  • Running two MoltBot agents in the same Telegram group
  • Updating allowed senders after group membership changes

예시 워크플로

입력

User asks: Set up my bot in Telegram group -1001234567890. Allow users 123456789 and @some_user to trigger it.

에이전트
  1. 1

    Reads the bot token from gateway config and calls the Telegram Bot API to get the bot's display name and @username

  2. 2

    Builds mention patterns from the bot name and username, removing duplicates

  3. 3

    Reads current gateway config and merges any existing groupAllowFrom and mentionPatterns values

  4. 4

    Applies a config patch adding the group to the allowlist, setting groupAllowFrom, and updating mentionPatterns

  5. 5

    After the gateway restarts, sends a confirmation message to the group listing the allowed users

출력

Bot is active in the group, responds only when mentioned by name, and restricts triggers to the specified user IDs and @usernames.

요구 사항

  • Telegram bot created via @BotFather with its token configured in the MoltBot gateway
  • Privacy mode disabled for the bot in @BotFather (Bot Settings > Group Privacy > Turn off)

설치

clawhub install arekqq/tg-groupchat-setup

CLI 명령을 실행하거나, 프롬프트를 Claude Code, Cursor, Codex 등 사용하는 코딩 에이전트에 붙여넣으세요.

링크