A simple and elegant client that allows you to make group voice calls quickly and easily.
Examples
•
Documentation
•
PyPi
•
Channel
•
Chat
PyTgCalls
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 hikkalls 0.1.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
Total release size: 280.4 MB
Release files / hikkalls-0.1.10-cp312-cp312-win_amd64.whl
| Download URL | hikkalls-0.1.10-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 17.2 MB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
ac5ba9e6b77341864e31bc5da4b486b01a47a5b8fb410db48b61690dc62816a4
|
|
BLAKE2b-256 checksum How to use checksums |
eeb59669e81b31252948eda94c74eb73356a88c626c95315763e2e29ed5c0dac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / hikkalls-0.1.10-cp312-cp312-manylinux2014_x86_64.whl
| Download URL | hikkalls-0.1.10-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 |
4be6e454b8fdc6aa0bc7732032231665511e6bfb7eaae079225214b79646fb27
|
|
BLAKE2b-256 checksum How to use checksums |
e3c423c6d303032ccbb53e7ad4ad606ede5d7f1741554a67fe7b558b95e04329
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / hikkalls-0.1.10-cp312-cp312-manylinux2014_aarch64.whl
| Download URL | hikkalls-0.1.10-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 |
e8df2d875cda16be4539aa96b701d02fbd80ccecdc11bfcc505e1ca9e5d8e221
|
|
BLAKE2b-256 checksum How to use checksums |
326371b469c318f31b1f261cf43144301d2eb666d239473136f5b60456baf615
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / hikkalls-0.1.10-cp311-cp311-win_amd64.whl
| Download URL | hikkalls-0.1.10-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 17.2 MB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
67bb1833f08d534e9a8d193e5192dee7fdb15d4e82a5989df12f7f8f6212f6df
|
|
BLAKE2b-256 checksum How to use checksums |
f954ddc4842d5bba8fbffe06fff63f2fe948cfe8abf46404107d75dbf65d941e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / hikkalls-0.1.10-cp311-cp311-manylinux2014_x86_64.whl
| Download URL | hikkalls-0.1.10-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 |
a2a57a61e907f0fade394e0d9bc443f884fa9eeb46cd3dceb950e4e6c1ecb0c5
|
|
BLAKE2b-256 checksum How to use checksums |
4ffdb242e801363f24d84f5035efea316f7d8a0c87cd5e49b2c56ce470bb96ac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / hikkalls-0.1.10-cp311-cp311-manylinux2014_aarch64.whl
| Download URL | hikkalls-0.1.10-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 |
4f73fe352878d28632b6ee5a01d0c4efe8cd46d07c1e5d4c2097e7e4281ebdc2
|
|
BLAKE2b-256 checksum How to use checksums |
f7b1d4c5f69c0c03ea61424d9ffdaeed3ecab2cb6dba86cf3b57a7b930955e1a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / hikkalls-0.1.10-cp310-cp310-win_amd64.whl
| Download URL | hikkalls-0.1.10-cp310-cp310-win_amd64.whl |
|---|---|
| Size | 17.2 MB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
d432035a84802a129a0d8441dbc95150f4288bd29a15f5ab40a10d2392918407
|
|
BLAKE2b-256 checksum How to use checksums |
abfb2cb2ab61717a13f837ab8e7c84529f55b9284b3a8dff328413d28a4ddbbf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / hikkalls-0.1.10-cp310-cp310-manylinux2014_x86_64.whl
| Download URL | hikkalls-0.1.10-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 |
8356ebbc93a23e9c0e60160554d006e6ab697e8e43c099c98992daefc456f292
|
|
BLAKE2b-256 checksum How to use checksums |
aa6f64a4fdcebaa60bd107707ee40e6783f23ee6ce1537ccf0a4169cede46389
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / hikkalls-0.1.10-cp310-cp310-manylinux2014_aarch64.whl
| Download URL | hikkalls-0.1.10-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 |
8150374b5d2b53e6e19641a83bd8a725e19f6bc3a9c75d5acafc6bb8f840bb10
|
|
BLAKE2b-256 checksum How to use checksums |
9f805e2fcb9111a3603ffd942f33e587bf96e672093f95649eaa7f24ba8b2819
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / hikkalls-0.1.10-cp39-cp39-win_amd64.whl
| Download URL | hikkalls-0.1.10-cp39-cp39-win_amd64.whl |
|---|---|
| Size | 17.2 MB |
| Tags | CPython 3.9 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
fd6614452d1ae1f36d28077c3189399f75daddeba0e1e49bd312e5bdec798f7e
|
|
BLAKE2b-256 checksum How to use checksums |
cc95a9acfe46553600e82e6e1547ce92e329ec338b60982a20ae59b8b7451a00
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / hikkalls-0.1.10-cp39-cp39-manylinux2014_x86_64.whl
| Download URL | hikkalls-0.1.10-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 |
47a364cdd3a2f1563f2730369add08b3cb503b16a80162da7d4fd6f8279e527e
|
|
BLAKE2b-256 checksum How to use checksums |
2fcb239617807e4a17e2ff054706de1dff74a6f66c70eb8652145b151413643d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / hikkalls-0.1.10-cp39-cp39-manylinux2014_aarch64.whl
| Download URL | hikkalls-0.1.10-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 |
19351f8726de975daabfe4dbcc53dfc788db2aed1142ebc392b0c8d77ba0eb20
|
|
BLAKE2b-256 checksum How to use checksums |
12c2f68b1cadd78885836b20e4b3e6407574dc99d9a59986aad092981e52a66a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / hikkalls-0.1.10-cp38-cp38-win_amd64.whl
| Download URL | hikkalls-0.1.10-cp38-cp38-win_amd64.whl |
|---|---|
| Size | 17.2 MB |
| Tags | CPython 3.8 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
ef9aa22224e8b5eb07874e06213da633be6cedaa4775ac6c4f511a12b2708d68
|
|
BLAKE2b-256 checksum How to use checksums |
d45026ac3f622358dfb27fd1878e132ebe574c78de93fd3e38e4c8776a552c2e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / hikkalls-0.1.10-cp38-cp38-manylinux2014_x86_64.whl
| Download URL | hikkalls-0.1.10-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 |
eaab19b2173ad97c36ffca19b99c9dc8281a06a1861ae2cb6b07e1cf0027fc67
|
|
BLAKE2b-256 checksum How to use checksums |
234423db750e8060bdb494a288ebb8b865c6a8d9c5cea543bc99983d02373db0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / hikkalls-0.1.10-cp38-cp38-manylinux2014_aarch64.whl
| Download URL | hikkalls-0.1.10-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 |
2bbf3354aeb7ce4b09ba8038a172c1b3f092d2283f43139dc33a975ddd604de7
|
|
BLAKE2b-256 checksum How to use checksums |
727d8c04846775b5327323b9513aee715156e0cfbe3b093642b39d11561508bf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|