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 -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
Release files for tg-newcalls 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
Total release size: 478.5 MB
Release files / tg_newcalls-0.0.2-cp311-cp311-win_amd64.whl
| Download URL | tg_newcalls-0.0.2-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 17.5 MB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
7b14e8b0c2fb204f9d9042068a31a210f153578c6235957dd5e3013c5059f6c9
|
|
BLAKE2b-256 checksum How to use checksums |
781629235560ed90eceb89d9ee8fded3b4d712c19a8b2fca69a69b53d120f7b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.10
|
Release files / tg_newcalls-0.0.2-cp311-cp311-manylinux2014_x86_64.whl
| Download URL | tg_newcalls-0.0.2-cp311-cp311-manylinux2014_x86_64.whl |
|---|---|
| Size | 20.1 MB |
| Tags | CPython 3.11 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
e28fb5455452128ef2e28539b06830f8246ecb01db3d87acd170500f3367172a
|
|
BLAKE2b-256 checksum How to use checksums |
bb0a5274130f0d7cdace739de2f425c3a0e7d3a0cbb1a19ba44a71cc9ef5ce57
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.10
|
Release files / tg_newcalls-0.0.2-cp311-cp311-manylinux2014_armv7l.whl
| Download URL | tg_newcalls-0.0.2-cp311-cp311-manylinux2014_armv7l.whl |
|---|---|
| Size | 19.0 MB |
| Tags | CPython 3.11 Linux glibc 2.17+ ARMv7l |
|
SHA-256 checksum How to use checksums |
94929885433f8c8471a8846d6ca36efd3f362dbceeeb3be5bb7e05ab510de418
|
|
BLAKE2b-256 checksum How to use checksums |
3b8506f32e217bf22547a3a40e2b9be394e0ae85719f2ea6f9e7aca177d26cff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.10
|
Release files / tg_newcalls-0.0.2-cp311-cp311-manylinux2014_aarch64.whl
| Download URL | tg_newcalls-0.0.2-cp311-cp311-manylinux2014_aarch64.whl |
|---|---|
| Size | 19.5 MB |
| Tags | CPython 3.11 Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
25e86904c131e648d0f2232a93679a8eae1eeae5875a4a978114a72243d6e4b2
|
|
BLAKE2b-256 checksum How to use checksums |
3d4ba3a2566af8d5dc7b42e87236b68ed49a27c74aa3f6555e1fbfcaeb05dd68
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.10
|
Release files / tg_newcalls-0.0.2-cp311-cp311-macosx_10_9_universal2.whl
| Download URL | tg_newcalls-0.0.2-cp311-cp311-macosx_10_9_universal2.whl |
|---|---|
| Size | 19.7 MB |
| Tags | CPython 3.11 macOS 10.9+ universal2 (ARM64, x86-64) |
|
SHA-256 checksum How to use checksums |
f8fd204b966c9da0d337f0dc720e216659912e7f2afbb9c1741dd5b4f800c959
|
|
BLAKE2b-256 checksum How to use checksums |
0dcf1d6e7a2d419facdc82ec0aea63160c07b73140b4d8169c6433f52f1bed74
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.10
|
Release files / tg_newcalls-0.0.2-cp310-cp310-win_amd64.whl
| Download URL | tg_newcalls-0.0.2-cp310-cp310-win_amd64.whl |
|---|---|
| Size | 17.5 MB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
5df06e1739943f1f37372532256ed03aa16de014257987a0bdb27c9a8778b35b
|
|
BLAKE2b-256 checksum How to use checksums |
777df41a17eaba1dc0d704c92a34adb765ec4e81c75279f447a60d17fc678218
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.10
|
Release files / tg_newcalls-0.0.2-cp310-cp310-manylinux2014_x86_64.whl
| Download URL | tg_newcalls-0.0.2-cp310-cp310-manylinux2014_x86_64.whl |
|---|---|
| Size | 20.1 MB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
4a00f72d63b7db047fc952f08e41ee6083372aa7a2c21fc37b06360ce0362019
|
|
BLAKE2b-256 checksum How to use checksums |
56300239f67e07ff0e633316d8768b31e351d102fbba2d37a6623a62f500bfe8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.10
|
Release files / tg_newcalls-0.0.2-cp310-cp310-manylinux2014_armv7l.whl
| Download URL | tg_newcalls-0.0.2-cp310-cp310-manylinux2014_armv7l.whl |
|---|---|
| Size | 19.0 MB |
| Tags | CPython 3.10 Linux glibc 2.17+ ARMv7l |
|
SHA-256 checksum How to use checksums |
52f1e5b5b9bf029dda7d183eef9c7acda5348e65ed0b5426260c2a1032cfac95
|
|
BLAKE2b-256 checksum How to use checksums |
7056b61ba7edd243348c6152777b1898d88e2a87b24d64d2f18fbd62fca96b52
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.10
|
Release files / tg_newcalls-0.0.2-cp310-cp310-manylinux2014_aarch64.whl
| Download URL | tg_newcalls-0.0.2-cp310-cp310-manylinux2014_aarch64.whl |
|---|---|
| Size | 19.5 MB |
| Tags | CPython 3.10 Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
849aef80fd304c6c62cf4f74bb81a51440e8091430977e9e41ddbc5f49b80e7a
|
|
BLAKE2b-256 checksum How to use checksums |
7be37387791d17447e421fe96e2ce6913574fff58507901ad060d372908447fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.10
|
Release files / tg_newcalls-0.0.2-cp310-cp310-macosx_11_0_x86_64.whl
| Download URL | tg_newcalls-0.0.2-cp310-cp310-macosx_11_0_x86_64.whl |
|---|---|
| Size | 19.7 MB |
| Tags | CPython 3.10 macOS 11.0+ x86-64 |
|
SHA-256 checksum How to use checksums |
4714dabaff529e6b6c76f304ae985f5c965eced14cdd01bf73395e08be5eee32
|
|
BLAKE2b-256 checksum How to use checksums |
fc440253ce62dff5ad49d9f2b922d7ad7b65180fd5f1cb4b3a6451ec5799eae7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.10
|
Release files / tg_newcalls-0.0.2-cp39-cp39-win_amd64.whl
| Download URL | tg_newcalls-0.0.2-cp39-cp39-win_amd64.whl |
|---|---|
| Size | 17.5 MB |
| Tags | CPython 3.9 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
897a5566ff7f78fb278069e8074f2e59ba0a4ffaf42e0d6fc2e65001a4134fb0
|
|
BLAKE2b-256 checksum How to use checksums |
b92fa91de99b225f95f8d961ef45e4aae165345fed78af8ce7947c0221b16c41
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.10
|
Release files / tg_newcalls-0.0.2-cp39-cp39-manylinux2014_x86_64.whl
| Download URL | tg_newcalls-0.0.2-cp39-cp39-manylinux2014_x86_64.whl |
|---|---|
| Size | 20.1 MB |
| Tags | CPython 3.9 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
7eb7c603e362dea7a10b30fe712b6342c0ed4f4334fb02b80db74b896c0e80e5
|
|
BLAKE2b-256 checksum How to use checksums |
08f374eacee190c3430f757e4fcbf6506c2a9ffe358c533c4e7fcaa2909dd98f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.10
|
Release files / tg_newcalls-0.0.2-cp39-cp39-manylinux2014_armv7l.whl
| Download URL | tg_newcalls-0.0.2-cp39-cp39-manylinux2014_armv7l.whl |
|---|---|
| Size | 19.0 MB |
| Tags | CPython 3.9 Linux glibc 2.17+ ARMv7l |
|
SHA-256 checksum How to use checksums |
df8be0cc9e9ccf511fea0115c46e046312bb5832ee02af503772f883f326ad1b
|
|
BLAKE2b-256 checksum How to use checksums |
32b946c7da308b4ec0f9d2a8ad15c71a22cea303e492fdc5c9b47e0562169106
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.10
|
Release files / tg_newcalls-0.0.2-cp39-cp39-manylinux2014_aarch64.whl
| Download URL | tg_newcalls-0.0.2-cp39-cp39-manylinux2014_aarch64.whl |
|---|---|
| Size | 19.5 MB |
| Tags | CPython 3.9 Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
684b77f8eca61a165bcb30cb4b173cb2137ee9267ec95e536a5a0cc55c8a7ba9
|
|
BLAKE2b-256 checksum How to use checksums |
dcc074cc9865db984d6ab2bbcfb87cee40514ca4a9feb5510cdd5edf4a777288
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.10
|
Release files / tg_newcalls-0.0.2-cp39-cp39-macosx_11_0_x86_64.whl
| Download URL | tg_newcalls-0.0.2-cp39-cp39-macosx_11_0_x86_64.whl |
|---|---|
| Size | 19.7 MB |
| Tags | CPython 3.9 macOS 11.0+ x86-64 |
|
SHA-256 checksum How to use checksums |
3c5d9010fbbe05296d14038eb21063053c74600faeb90b604b8ff841d3b1f4ec
|
|
BLAKE2b-256 checksum How to use checksums |
99c74ce4de50be2a4d3aa91b410a8ae51d09d2eff7993e39867bb15548ea439e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.10
|
Release files / tg_newcalls-0.0.2-cp38-cp38-win_amd64.whl
| Download URL | tg_newcalls-0.0.2-cp38-cp38-win_amd64.whl |
|---|---|
| Size | 17.5 MB |
| Tags | CPython 3.8 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
e1169f5c398419a452c570810196a11df19767bdb0d7a5211a934e1ca6168181
|
|
BLAKE2b-256 checksum How to use checksums |
dcbb0b3f2d99d91f8c2240b5e4e9d67c96285393671def2d2b3810d29d4cb443
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.10
|
Release files / tg_newcalls-0.0.2-cp38-cp38-manylinux2014_x86_64.whl
| Download URL | tg_newcalls-0.0.2-cp38-cp38-manylinux2014_x86_64.whl |
|---|---|
| Size | 20.1 MB |
| Tags | CPython 3.8 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
f1f0b4768b6bf5c907c39aad428c785d63ebbe2782bb7372904698efa4fa6df4
|
|
BLAKE2b-256 checksum How to use checksums |
85cfe5b8e4dd0911ec12d87e37a1ced2338faa1828e9326a740398f9a987d3e8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.10
|
Release files / tg_newcalls-0.0.2-cp38-cp38-manylinux2014_armv7l.whl
| Download URL | tg_newcalls-0.0.2-cp38-cp38-manylinux2014_armv7l.whl |
|---|---|
| Size | 19.0 MB |
| Tags | CPython 3.8 Linux glibc 2.17+ ARMv7l |
|
SHA-256 checksum How to use checksums |
6ad6f175d45d875b85fc2503c1c0e0f2c4fed7a1bd30b165e72bb962b4a0d47b
|
|
BLAKE2b-256 checksum How to use checksums |
3d42987100195b0fceebe546c025c3433ee786b48617ccd9ab97fedb3999704e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.10
|
Release files / tg_newcalls-0.0.2-cp38-cp38-manylinux2014_aarch64.whl
| Download URL | tg_newcalls-0.0.2-cp38-cp38-manylinux2014_aarch64.whl |
|---|---|
| Size | 19.5 MB |
| Tags | CPython 3.8 Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
9262d5ab528cdc269ab720107e5a3712893e9032b81563321abd2813f65947f6
|
|
BLAKE2b-256 checksum How to use checksums |
9865d235a89880f6c41735352f8f76582f6435817e9692136e18a044900f8454
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.10
|
Release files / tg_newcalls-0.0.2-cp38-cp38-macosx_11_0_x86_64.whl
| Download URL | tg_newcalls-0.0.2-cp38-cp38-macosx_11_0_x86_64.whl |
|---|---|
| Size | 19.7 MB |
| Tags | CPython 3.8 macOS 11.0+ x86-64 |
|
SHA-256 checksum How to use checksums |
00a9db75ee10b70aeb4e53f7779fd33a7f88556c1328066db3e98633557ccdca
|
|
BLAKE2b-256 checksum How to use checksums |
0fbb84646aa4cd42fb7ebec48b5e4d0b27ebc5f3013635478a8cae794a3d22aa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.10
|
Release files / tg_newcalls-0.0.2-cp37-cp37m-win_amd64.whl
| Download URL | tg_newcalls-0.0.2-cp37-cp37m-win_amd64.whl |
|---|---|
| Size | 17.5 MB |
| Tags | CPython 3.7 CPython 3.7 pymalloc Windows x86-64 |
|
SHA-256 checksum How to use checksums |
c147e3d0456d7d806082fb2d7f2eec22f6b2a0cbb94236a83955355bc088bbfa
|
|
BLAKE2b-256 checksum How to use checksums |
3ce26d4b39e41b34a3d1f9197efd258fcaa9cec5fd0b0ec572321d806c0d56b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.10
|
Release files / tg_newcalls-0.0.2-cp37-cp37m-manylinux2014_x86_64.whl
| Download URL | tg_newcalls-0.0.2-cp37-cp37m-manylinux2014_x86_64.whl |
|---|---|
| Size | 20.1 MB |
| Tags | CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
36603988258709ffb360d39c26d04fe618c58cdad1ae0ddc504f821bd7fb0d59
|
|
BLAKE2b-256 checksum How to use checksums |
00f3d56bd28f6f761754f749aa215e06dfb911ac371164b76579ede412d1c315
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.10
|
Release files / tg_newcalls-0.0.2-cp37-cp37m-manylinux2014_armv7l.whl
| Download URL | tg_newcalls-0.0.2-cp37-cp37m-manylinux2014_armv7l.whl |
|---|---|
| Size | 19.0 MB |
| Tags | CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.17+ ARMv7l |
|
SHA-256 checksum How to use checksums |
e59687a630a4efe7300a69de1c44b853aef50c142198bae72c2a343b59e56b8c
|
|
BLAKE2b-256 checksum How to use checksums |
2b0010530fa6f15cbe63313fa23b77ced89242a4db7420a1943f109d9bbdb404
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.10
|
Release files / tg_newcalls-0.0.2-cp37-cp37m-manylinux2014_aarch64.whl
| Download URL | tg_newcalls-0.0.2-cp37-cp37m-manylinux2014_aarch64.whl |
|---|---|
| Size | 19.5 MB |
| Tags | CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
be6659b73c8498262af85f5db1c176bdce322b945c1c74d7150e88485f9f3b47
|
|
BLAKE2b-256 checksum How to use checksums |
0b95cf0b67785757fb8946d6ab5416e9f87bbdecdc2fd2e2287032d10af5e4db
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.10
|
Release files / tg_newcalls-0.0.2-cp37-cp37m-macosx_11_0_x86_64.whl
| Download URL | tg_newcalls-0.0.2-cp37-cp37m-macosx_11_0_x86_64.whl |
|---|---|
| Size | 19.7 MB |
| Tags | CPython 3.7 CPython 3.7 pymalloc macOS 11.0+ x86-64 |
|
SHA-256 checksum How to use checksums |
249c302b1a10611ea55997a8c5269069d9eb3ee8037e9a3c2ee9fc235f4a0676
|
|
BLAKE2b-256 checksum How to use checksums |
e6c418d585abfc6b57bb499429f2587ac5dc225892f576068c61b6af8fc0b32c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.10
|