Reducing Voice Command Friction for Telegram AI Agent with iOS Back Tap

Problem and Solution
A developer using OpenClaw, an AI agent named Kazim within Telegram, wanted to reduce friction for sending voice commands on the go. The original process required unlocking the phone, opening Telegram, finding the correct chat, and holding the record button. The goal was to interact with the agent without launching the Telegram app.
Technical Implementation
The working setup uses three main components:
- iPhone Back Tap: Configured to trigger on a double-tap of the phone's back.
- iOS Shortcut: Activated by the Back Tap to start dictation and handle the command.
- Vercel Function: A serverless function that processes the command.
The workflow is: double-tap the back of the phone from any screen → dictation starts → the spoken command is sent to the Vercel function → the function uses GPT-4o-mini for processing → Kazim replies in the Telegram chat.
Debugging Details
The developer encountered and resolved two specific technical issues during the approximately two-hour setup:
- Vercel Environment Variable Error: The Vercel function returned a 500 error because environment variables set via the command
echo "value" | vercel env addincluded a trailing newline. This was fixed by adding.trim()to the variable in the code. - Empty Authentication Token: An authentication token passed in the JSON body of the request was arriving empty (length: 0 in error responses). The cause was unclear, potentially an iOS 26 bug or Shortcut configuration issue. The fix was to move the token to the URL query string instead of the request body.
Alternative solutions considered but not implemented included Siri integration (the required setting could not be found on iOS 26) and native Telegram Siri support.
📖 Read the full source: r/openclaw
👀 See Also

Building a 200k LOC Production App via Vibe Coding from a Phone
A developer built Vibe Remote, a mobile vibe-coding tool with ~200,000 lines of code (140k Go, 60k Swift), primarily by messaging Claude Code through the app from their phone. The project revealed key challenges like DRY violations and E2E test bottlenecks.

Building a Fantasy Baseball Analytics App with Claude Code: A Law Student's Experience
A law student with a 2017 CS degree built Ball Knower, a fantasy baseball analytics iOS app, using Claude Code for implementation while handling all product and domain decisions. The app features 1,313 MLB player profiles, daily streaming pitcher picks, and dynasty rankings, with a backend running 30 cron jobs pulling from 9 data sources.

Claude + Remotion: Building a Product Launch Video with Zero Animation Skills
A developer used Claude's deep knowledge of Remotion's API to build a 30-second animated product launch video for a stock market app — no CSS transitions, spring physics, typewriter effects, and staggered animations across 10 scene files.

Using AI to Untangle 10,000 Brazilian Property Titles: A Technical Case Study
A Brazilian real estate company is using Claude, Gemini 3.1 Pro, and OCR tools to analyze 10,000 property titles with decades of inconsistencies, including duplicate sales, fraudulent contracts, and 500 active lawsuits.