Installation
Requirements
- Python 3.8 or higher
- FFmpeg (for media processing)
- A Telegram account and API credentials
System Dependencies
Ubuntu/Debian
CentOS/RHEL/Fedora
macOS
Windows
- Download FFmpeg from https://ffmpeg.org/download.html
- Add FFmpeg to your system PATH
- Install Microsoft Visual C++ Build Tools
Python Package Installation
Basic Installation
With Media Support
With Audio Processing
With Advanced Features
Complete Installation
Verify Installation
Expected Output:
๐งช Testing TgCaller installation...
โ
Pyrogram imported successfully
โ
TgCaller types imported successfully
๐ TgCaller installation test completed successfully!
Getting API Credentials
- Go to my.telegram.org
- Log in with your phone number
- Go to "API Development Tools"
- Create a new application
- Note down your
api_id
andapi_hash
Docker Installation
FROM python:3.11-slim
# Install system dependencies
RUN apt-get update && apt-get install -y \
ffmpeg \
libopus-dev \
libffi-dev \
libnacl-dev \
python3-dev \
gcc \
&& rm -rf /var/lib/apt/lists/*
# Install TgCaller
RUN pip install tgcaller[all]
# Copy your bot
COPY . /app
WORKDIR /app
CMD ["python", "bot.py"]
Troubleshooting
Common Issues
FFmpeg not found
# Check if FFmpeg is installed
ffmpeg -version
# If not installed, install it using your package manager
Permission errors on Linux
Build errors on Windows
- Install Microsoft Visual C++ Build Tools
- Use pre-compiled wheels:
pip install --only-binary=all tgcaller
Import errors
Getting Help
If you encounter issues:
- Check the GitHub Issues
- Join our Telegram Group
- Read the troubleshooting guide
Development Installation
For contributing to TgCaller: