Skip to main content

No project description provided

Project description

pytgcalls logo

PyTgCalls

pre-commit.ci status PyPI PyPI - Python Version GitHub OS Node Version Architectures Downloads

This project allow to make Telegram group call with MTProto Api using Pyrogram and WebRTC, this is possible thanks to the power of NodeJS's WebRTC library and @evgeny-nadymov

Common Problems

Problem with pyrogram?

If do you have problems with pyrogram, reinstall by this command

pip install git+https://github.com/pyrogram/pyrogram -U

Live stream or ffmpeg live conversion stopped?

Check before if is changing the size of file(Is a method to check if ffmpeg is alive).

If is alive and stream is stopped, report to the issue with including last ultra verbose log and put in to nekobin.

Docs

Read the docs!

How to install?

Here's how to install the PyTgCalls lib, the commands are given below:

If you want installation from git

You need to install docker, then enable the experimental mode

# With Git
pip install git+https://github.com/pytgcalls/pytgcalls -U

# With PyPi
pip install py-tgcalls -U

Conversion commands

From file to raw format

ffmpeg -i {INPUT_FILE} -f s16le -ac 1 -ar {BITRATE} {OUTPUT_FILE}

From stream link to raw format

ffmpeg -y -i {STREAM_LINK} -f s16le -ac 1 -ar {BITRATE} {OUTPUT_FILE}

From youtube video/live-stream to raw format

ffmpeg -i "$(youtube-dl -x -g "{YOUTUBE_LINK}")" -f s16le -ac 1 -ar {BITRATE} {OUTPUT_FILE}

Credits

Big thanks to @evgeny-nadymov for allowing us to use their code from telegram-react and thanks to alemidev for helping to rebuild this library

This library is based on tgcallsjs developed @AndrewLaneX and pyservercall by @Laky-64

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

py_tgcalls-0.7.4-cp39-cp39-win_amd64.whl (15.6 MB view hashes)

Uploaded CPython 3.9 Windows x86-64

py_tgcalls-0.7.4-cp39-cp39-manylinux2014_x86_64.whl (18.2 MB view hashes)

Uploaded CPython 3.9

py_tgcalls-0.7.4-cp39-cp39-manylinux2014_aarch64.whl (17.6 MB view hashes)

Uploaded CPython 3.9

py_tgcalls-0.7.4-cp39-cp39-macosx_10_14_x86_64.whl (17.8 MB view hashes)

Uploaded CPython 3.9 macOS 10.14+ x86-64

py_tgcalls-0.7.4-cp38-cp38-win_amd64.whl (15.6 MB view hashes)

Uploaded CPython 3.8 Windows x86-64

py_tgcalls-0.7.4-cp38-cp38-manylinux2014_x86_64.whl (18.2 MB view hashes)

Uploaded CPython 3.8

py_tgcalls-0.7.4-cp38-cp38-manylinux2014_aarch64.whl (17.6 MB view hashes)

Uploaded CPython 3.8

py_tgcalls-0.7.4-cp38-cp38-macosx_10_14_x86_64.whl (17.8 MB view hashes)

Uploaded CPython 3.8 macOS 10.14+ x86-64

py_tgcalls-0.7.4-cp37-cp37m-win_amd64.whl (15.6 MB view hashes)

Uploaded CPython 3.7m Windows x86-64

py_tgcalls-0.7.4-cp37-cp37m-manylinux2014_x86_64.whl (18.2 MB view hashes)

Uploaded CPython 3.7m

py_tgcalls-0.7.4-cp37-cp37m-manylinux2014_aarch64.whl (17.6 MB view hashes)

Uploaded CPython 3.7m

py_tgcalls-0.7.4-cp37-cp37m-macosx_10_14_x86_64.whl (17.8 MB view hashes)

Uploaded CPython 3.7m macOS 10.14+ x86-64

py_tgcalls-0.7.4-cp36-cp36m-win_amd64.whl (15.6 MB view hashes)

Uploaded CPython 3.6m Windows x86-64

py_tgcalls-0.7.4-cp36-cp36m-manylinux2014_x86_64.whl (18.2 MB view hashes)

Uploaded CPython 3.6m

py_tgcalls-0.7.4-cp36-cp36m-manylinux2014_aarch64.whl (17.6 MB view hashes)

Uploaded CPython 3.6m

py_tgcalls-0.7.4-cp36-cp36m-macosx_10_14_x86_64.whl (17.8 MB view hashes)

Uploaded CPython 3.6m macOS 10.14+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page