Telegram communication protocol — how to handle messages from Telegram. Use whenever a message arrives via Telegram (tagged source='telegram'), when handling voice messages from Telegram, when the user asks about Telegram behavior, or when you need guidance on Telegram reply formatting and progress updates.
These rules apply when a message arrives via Telegram (tagged with source="telegram"), NOT when the user types directly into the CLI.
When a Telegram message arrives, BEFORE any other tool call:
Only then proceed with the actual work. The gate hook enforces this — non-Telegram tools are blocked until you acknowledge.
download_attachment with the file_id)voice_transcribe with the downloaded file path)