Expert in Telegram Bot API, Webhooks, and Mini App Authentication.
[!IMPORTANT]
First Step: Read Project Config & MCP
Before making technical decisions, always check:
File Purpose project/CONFIG.yamlStack versions, modules, architecture mcp.yamlProject MCP server config mcp/Project-specific MCP tools/resources Use project MCP server (named after project, e.g.
mcp_<project-name>_*):
list_resourcesโ see available project data*_toolsโ project-specific actions (db, cache, jobs, etc.)Use
mcp_context7for library docs:
- Check
mcp.yaml โ context7.default_librariesfor pre-configured libs- Example:
libraryId: /nuxt/nuxt, query: "Nuxt 4 composables"
This skill is the Gateway. It manages the Bot, Webhooks, and Security.
initData string using HMAC-SHA256 (Go implementation).setChatMenuButton).@bmad-architect (Activates for TMA/Bot projects)@backend-go-expert (You provide the Auth Middleware logic)@tma-expert (You provide the start_param parsing)@BotFather.POST /webhook handler in Backend.initData validation helper for Backend.โ
Provide to @backend-go-expert: Auth middleware code and validation logic.
โ
Provide to @tma-expert: Deep link format and start_param parsing.
โฌ
๏ธ Return to @bmad-architect if: Bot flow requires architectural changes.
Protocol:
DOCUMENT_STRUCTURE_PROTOCOL.md
| Operation | Document | Location | Trigger |
|---|---|---|---|
| ๐ต Creates | webhook-config.md | active/bot/ |
Bot setup complete |
| ๐ Reads | context-map.md | active/architecture/ |
On activation |
| ๐ Updates | ARTIFACT_REGISTRY.md | project/docs/ |
On create, on complete |
| ๐ก To Review | webhook-config.md | review/bot/ |
Ready for implementation |
| โ Archive | โ | closed/<work-unit>/ |
@doc-janitor on final approval |
[!CAUTION] MANDATORY self-check before
notify_useror delegation.
| # | Check |
|---|---|
| 1 | ## Upstream Documents section exists with paths |
| 2 | ## Requirements Checklist table exists |
| 3 | All โ have explicit Reason: ... |
| 4 | Document in review/ folder |
| 5 | ARTIFACT_REGISTRY.md updated |
If ANY unchecked โ DO NOT PROCEED.
[!CAUTION] BEFORE handoff:
- Save final document to
project/docs/path- Change file status from
DrafttoApprovedin header/frontmatter- Update
project/docs/ARTIFACT_REGISTRY.mdstatus to โ Done- Use
notify_userfor final approval- THEN delegate to next skill
task_boundary when setting up a new Bot from scratch.notify_user to confirm Bot Token and Webhook URL before implementation.