telegram-pairing-send-code-to-every-start
crazypeace 제작
Coding Agents & IDEs요약
Modify OpenClaw's Telegram pairing logic so unapproved users receive pairing codes on every /start message.
설명
이 스킬이 하는 일
Modifies OpenClaw's internal pairing logic so unapproved Telegram users receive their pairing code on every /start message, not just the first. The change is a one-line edit in the issuePairingChallenge function, replacing a creation check with a code existence check. Requires restarting the OpenClaw gateway after the edit.
Instead of building a separate code-resend command, this repurposes the existing /start flow so users always have a self-service way to retrieve their code.
사용 시점
- User missed the initial pairing code and needs it resent
- Onboarding users who repeatedly send /start before completing setup
- Debugging pairing flows where the first message was dropped
- Support scenarios where users need to confirm their pairing code
- Environments where Telegram message delivery is unreliable
예시 워크플로
User asks: make unapproved Telegram users see their pairing code every time they send /start
- 1
Search /usr/lib/node_modules/openclaw/ for the issuePairingChallenge function
- 2
Locate the line containing if (!created) return { created: false }
- 3
Replace that line with if (!code) return { created: false }
- 4
Back up the original file before saving changes
- 5
Run openclaw gateway restart to apply the modification
Unapproved users now receive their pairing code on every /start message until they are approved
설치
clawhub install crazypeace/telegram-pairing-send-code-to-every-startCLI 명령을 실행하거나, 프롬프트를 Claude Code, Cursor, Codex 등 사용하는 코딩 에이전트에 붙여넣으세요.