call

command
v0.0.0-...-d0d567e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 28, 2026 License: MIT Imports: 15 Imported by: 0

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).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL