Skip to main content

pytgcalls logo
A simple and elegant client that allows you to make group voice calls quickly and easily.
Examples • Documentation • PyPi • Channel • Chat

PyTgCalls

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

This project allows making Telegram group call using MtProto and WebRTC, this is possible thanks to the power of NodeJS's WebRTC library and @evgeny-nadymov

What are the supported clients?

The supported clients for now are Pyrogram and Telethon, but we accept other clients too, you can open a pull request with the edits

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 (Recommended)
pip install py-tgcalls-kaizoku -U

Conversion command (Video)

From file to raw video

ffmpeg -i {INPUT_FILE} -f rawvideo -pix_fmt yuv420p -vf scale=640:-1 {OUTPUT_FILE}

From H264/VP8/VP9 to Audio and Video

ffmpeg -i {INPUT_FILE} -f s16le -ac 1 -ar {BITRATE} {OUTPUT_AUDIO_FILE} -f rawvideo -r {FRAMERATE} -pix_fmt yuv420p -vf scale={SCALING}:-1 {OUTPUT_VIDEO_FILE}

From YouTube video/live-stream to Audio and Video

ffmpeg -i "$(youtube-dl -x -g "{YOUTUBE_LINK}")" -f s16le -ac 1 -ar {BITRATE} {OUTPUT_AUDIO_FILE} -f rawvideo -r {FRAMERATE} -pix_fmt yuv420p -vf scale={SCALING}:-1 {OUTPUT_VIDEO_FILE}

From YouTube Live stream to Video

Important!

The max resolution allowed by Telegram is of 720p at 30 fps Here also listed the scaling format

  • 360p = 640
  • 480p = 854
  • 720p = 1280

If you have any problem with green screen or un-synchronized video, it can be one of these problems:

  • Invalid FFMPEG command
  • The video quality specified to convert is higher than the original video one
  • Invalid PyTgCalls video parameters
  • If you're using fifo, the Fifo max buffer size is too low and this cause the lag problem.

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

Metadata

Release files for herokulls 0.1.12

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

Built distributions (wheels)

Table of built distributions (wheels) for herokulls 0.1.12
File
herokulls-0.1.12-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details
herokulls-0.1.12-cp312-cp312-manylinux2014_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ x86-64 Details
herokulls-0.1.12-cp312-cp312-manylinux2014_aarch64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ ARM64 Details
herokulls-0.1.12-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details
herokulls-0.1.12-cp311-cp311-manylinux2014_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ x86-64 Details
herokulls-0.1.12-cp311-cp311-manylinux2014_aarch64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ ARM64 Details
herokulls-0.1.12-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details
herokulls-0.1.12-cp310-cp310-manylinux2014_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ x86-64 Details
herokulls-0.1.12-cp310-cp310-manylinux2014_aarch64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ ARM64 Details
herokulls-0.1.12-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details
herokulls-0.1.12-cp39-cp39-manylinux2014_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.17+ x86-64 Details
herokulls-0.1.12-cp39-cp39-manylinux2014_aarch64.whl CPython 3.9 CPython 3.9 Linux glibc 2.17+ ARM64 Details
herokulls-0.1.12-cp38-cp38-win_amd64.whl CPython 3.8 CPython 3.8 Windows x86-64 Details
herokulls-0.1.12-cp38-cp38-manylinux2014_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.17+ x86-64 Details
herokulls-0.1.12-cp38-cp38-manylinux2014_aarch64.whl CPython 3.8 CPython 3.8 Linux glibc 2.17+ ARM64 Details

Total release size: 280.5 MB

Release files / herokulls-0.1.12-cp312-cp312-win_amd64.whl

Download URL herokulls-0.1.12-cp312-cp312-win_amd64.whl
Size 17.2 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
deedd2dde410f6dc8dde415c01db84323b977a0eb097506c747fc6cada206e4e
BLAKE2b-256 checksum
How to use checksums
6bc2bd3dd9b18bbdc7063ad516cbb9e38cba30e37e3810a6ed9a19721b473403
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release files / herokulls-0.1.12-cp312-cp312-manylinux2014_x86_64.whl

Download URL herokulls-0.1.12-cp312-cp312-manylinux2014_x86_64.whl
Size 19.8 MB
Tags CPython 3.12 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
529e66401cc1b8349a0cd10a1d2c6806addd969e5061b54fc80898cf6c43184b
BLAKE2b-256 checksum
How to use checksums
9acf2c7c8653e50b3e8b423883541b1a14a81038492d1d2a7fe37c360b9ee06b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release files / herokulls-0.1.12-cp312-cp312-manylinux2014_aarch64.whl

Download URL herokulls-0.1.12-cp312-cp312-manylinux2014_aarch64.whl
Size 19.2 MB
Tags CPython 3.12 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
8a398f3f76cee54e2abe2decd25e590167929ee6643cd9ee54d7f9dbbc77d111
BLAKE2b-256 checksum
How to use checksums
6434d8cc0032726d1eabbbe8f3694591132e9081cb768da8d4aff6e2c9a45484
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release files / herokulls-0.1.12-cp311-cp311-win_amd64.whl

Download URL herokulls-0.1.12-cp311-cp311-win_amd64.whl
Size 17.2 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
a1c3017cdbd046dc3802ed7f955786912db3d7de0ba0bbca0a56aeab60f3fe26
BLAKE2b-256 checksum
How to use checksums
d76b056ff8a8e47bcd7f6cfe6d04dec330ba1237bce79f2e633e935fde8f0237
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release files / herokulls-0.1.12-cp311-cp311-manylinux2014_x86_64.whl

Download URL herokulls-0.1.12-cp311-cp311-manylinux2014_x86_64.whl
Size 19.8 MB
Tags CPython 3.11 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
90cc9a4aeb4f8288fa5856ed33d8f456dea6ca1a7bac7a91c182cbcf60133fc2
BLAKE2b-256 checksum
How to use checksums
63b86ae3b21936464c598a34e0c2eeb5e6b5a9b1ece23bb838a8511a1419254d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release files / herokulls-0.1.12-cp311-cp311-manylinux2014_aarch64.whl

Download URL herokulls-0.1.12-cp311-cp311-manylinux2014_aarch64.whl
Size 19.2 MB
Tags CPython 3.11 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
aabaabc796d5c6bd701d2cf3aef6375bb348c9de7d4b78ac2e47d26a3bd19a8e
BLAKE2b-256 checksum
How to use checksums
d2a82a9ef2441856cc530dc3e95c0e5b04850f57b417043541cba5f2fa848435
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release files / herokulls-0.1.12-cp310-cp310-win_amd64.whl

Download URL herokulls-0.1.12-cp310-cp310-win_amd64.whl
Size 17.2 MB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
1f22ac5c2c72f1ad1bf2c94095c2e5c1b515205d6d3d17a85b5b1b1409835af3
BLAKE2b-256 checksum
How to use checksums
bb115457951d18ec811cec95a5b29b96bcdb9c352532b1a6d5f133bb49d15c72
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release files / herokulls-0.1.12-cp310-cp310-manylinux2014_x86_64.whl

Download URL herokulls-0.1.12-cp310-cp310-manylinux2014_x86_64.whl
Size 19.8 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
ba5609dd7d4bf68d05cee7488766cee511f4570665e69ea9294faf3e8098b2aa
BLAKE2b-256 checksum
How to use checksums
dd180efa31f725b67f241a794f8f27023532a142080692bdf7b78d64e750bfe0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release files / herokulls-0.1.12-cp310-cp310-manylinux2014_aarch64.whl

Download URL herokulls-0.1.12-cp310-cp310-manylinux2014_aarch64.whl
Size 19.2 MB
Tags CPython 3.10 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
ff90838efcaaa883eaf9b136b66a1ee304b8794958ca4e1e68f9b8b3e5315f7b
BLAKE2b-256 checksum
How to use checksums
9a0d0d8cf05ba5149b93bd60647110475be4372d80748fd6ba99f49acbbd39c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release files / herokulls-0.1.12-cp39-cp39-win_amd64.whl

Download URL herokulls-0.1.12-cp39-cp39-win_amd64.whl
Size 17.2 MB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
d19f2f944f75e8168aa55f06dc76dcc164c499d26c187637c043870cd5e85470
BLAKE2b-256 checksum
How to use checksums
2677f6cb80533cf8e810a42083b5e3d26f6df47853bd5006145e478e972ed7d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release files / herokulls-0.1.12-cp39-cp39-manylinux2014_x86_64.whl

Download URL herokulls-0.1.12-cp39-cp39-manylinux2014_x86_64.whl
Size 19.8 MB
Tags CPython 3.9 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
9bd02827e3a2c8c33b630b0af53d7db1849ce15bc7143c95704656dbd26bbdab
BLAKE2b-256 checksum
How to use checksums
69c2ee64acb3a4091b9feb7a322a402db838f025a1bbb9bc9898286c6642ffbc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release files / herokulls-0.1.12-cp39-cp39-manylinux2014_aarch64.whl

Download URL herokulls-0.1.12-cp39-cp39-manylinux2014_aarch64.whl
Size 19.2 MB
Tags CPython 3.9 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
98a54d7fcbb48503994bf041bb8beb8c8c2cbb9a39e4963b49368568e2a200a9
BLAKE2b-256 checksum
How to use checksums
9d9a82d4a4975e54098ff2684a165b10e0401131c0538354908c363386a9e4c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release files / herokulls-0.1.12-cp38-cp38-win_amd64.whl

Download URL herokulls-0.1.12-cp38-cp38-win_amd64.whl
Size 17.2 MB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
7946b7c89853003012705b9fb30930b0ce89397b7299d8aebf1cc87266a92b65
BLAKE2b-256 checksum
How to use checksums
fc930c08bc16d775d766ac3225c645018a1d45142d25b9dce005136591665ccd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release files / herokulls-0.1.12-cp38-cp38-manylinux2014_x86_64.whl

Download URL herokulls-0.1.12-cp38-cp38-manylinux2014_x86_64.whl
Size 19.8 MB
Tags CPython 3.8 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
7ee6d40364823425ff1a9e06dbeb20596fac2b32e6bffdd5d7a3d3f02f3c1174
BLAKE2b-256 checksum
How to use checksums
58bb70b29c04500d5e72e0ea82daf35f23aea21c960d8a470f37e3bffed5c0f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release files / herokulls-0.1.12-cp38-cp38-manylinux2014_aarch64.whl

Download URL herokulls-0.1.12-cp38-cp38-manylinux2014_aarch64.whl
Size 19.2 MB
Tags CPython 3.8 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
4a7fbd21f1a68dba5605556c8875b2f9797e4579ec57e442241478c64a85eb62
BLAKE2b-256 checksum
How to use checksums
0cf1616931212c6e97dc18a54ad25d2bf9f120b451fb4e19580cf0cceb988fb6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release history Release notifications | RSS feed

This release

0.1.12 This release

15 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