Skip to main content

pytgcalls logo

PyTgCalls

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

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, socketio-client 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:

# 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 -acodec pcm_s16le -ar {BITRATE} {OUTPUT_FILE}

From stream link to raw format

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

From youtube video/live-stream to raw format

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

Credits

Big thanks to @evgeny-nadymov for allowing us to use their code from telegram-react

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

Release files for py-tgcalls 0.4.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for py-tgcalls 0.4.9
File Size Uploaded
py_tgcalls-0.4.9.tar.gz 17.9 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for py-tgcalls 0.4.9
File Interpreter ABI Platform
py_tgcalls-0.4.9-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 36.3 MB

Release files / py_tgcalls-0.4.9.tar.gz

Download URL py_tgcalls-0.4.9.tar.gz
Size 17.9 MB
Tags Source
SHA-256 checksum
How to use checksums
3026bcc67662107af441536e882055bf1472fb5e56adbc421155c511c409b69f
BLAKE2b-256 checksum
How to use checksums
d07d847d9c98c8775fc27d9c39a035b9eb62f45df58cccff0ba449ca84fd0208
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5

Release files / py_tgcalls-0.4.9-py2.py3-none-any.whl

Download URL py_tgcalls-0.4.9-py2.py3-none-any.whl
Size 18.4 MB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
a2d9c5265bd67b22553fbf636beb3ee37027ff823f7209731d2c656ec35715fb
BLAKE2b-256 checksum
How to use checksums
996f89962dc4c74d89202b65e2887c3bb0ce782ab88249477a3dcffbc8bcc899
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5

Release history Release notifications | RSS feed

2.3.3

1 release file

2.3.0

1 release file

2.2.11

1 release file

2.2.10

1 release file

2.2.8

1 release file

2.2.7

1 release file

2.2.6

1 release file

2.2.5

1 release file

2.2.4

1 release file

2.2.3

1 release file

2.2.2

1 release file

2.2.1

1 release file

2.2.0

1 release file

2.1.1

1 release file

2.1.0

1 release file

2.0.6

1 release file

2.0.5

1 release file

2.0.4

1 release file

2.0.3

1 release file

2.0.2

1 release file

2.0.1

1 release file

2.0.0

1 release file

1.2.9

1 release file

1.2.8

1 release file

1.2.7

1 release file

1.2.4

1 release file

1.2.3

1 release file

1.2.2

1 release file

1.2.1

1 release file

1.1.6

1 release file

1.0.9

1 release file

0.8.6

25 release files

0.7.4

16 release files

0.6.0

2 release files

0.5.5

2 release files

This release

0.4.9 This release

2 release files

0.3.9

2 release files

0.2.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page