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

Managing Context Limits in Long Claude Runs: AC Tree Pattern
A developer shares a failure pattern in long Claude runs where auto-compact causes information loss and context limits prevent continuation, then describes a solution using an AC tree dependency graph with isolated sessions per node.

OpenClaw user shares macOS desktop automation setup with Discord integration
A developer describes their OpenClaw configuration that enables Discord communication, website opening, local state inspection, screen capture, and desktop automation on macOS, noting macOS permission challenges with Screen Recording when running as a LaunchAgent.

From Zero Code to 25M Game Plays: A Non-Engineer's Journey Building with Claude + Cursor
A developer with no coding experience built three browser games (25M total plays, 200K daily) using Claude via Cursor. Two games are single 8,000-line HTML files. Total tool cost: ~$2K/month.

Developer Uses Claude AI for C++ Game Development in Unreal Engine
A developer reports using Claude Opus for planning and Sonnet for implementation to build a cyberpunk city-builder game in C++ with Unreal Engine, replacing marketplace assets with AI-generated code for features like AI traffic control with distance-based ticking and frustum culling.