Documentation
¶
Overview ¶
Binary call answers any incoming message with a Telegram 1:1 voice call back to the sender, streaming an MP3 file as the outgoing audio.
It logs in via QR code (with 2FA fallback), then waits for an incoming message. For each message it places a call to the sender and, once connected, transcodes the MP3 to Opus with ffmpeg and streams it into the call.
Usage:
APP_ID=... APP_HASH=... SESSION_FILE=session.json \
go run ./examples/call -audio song.mp3
Then message the logged-in account from another account to get a call back. Pass -test to run against Telegram's test servers instead of production.
Requirements: ffmpeg on PATH (with libopus).
Click to show internal directories.
Click to hide internal directories.