PyTgCalls
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
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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file py_tgcalls-0.7.4-cp39-cp39-win_amd64.whl.
File metadata
- Download URL: py_tgcalls-0.7.4-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 15.6 MB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.7.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
671541a283e6f742d7c152948f27876654b135782c7e79c780eebf67f7967186
|
|
| MD5 |
e2a6d2616b4e325d8c989da81a4e9675
|
|
| BLAKE2b-256 |
4b747315fb2954daf89f5bf938dc2d05cf2942f207b2edad93718b9fa1ef9758
|
File details
Details for the file py_tgcalls-0.7.4-cp39-cp39-manylinux2014_x86_64.whl.
File metadata
- Download URL: py_tgcalls-0.7.4-cp39-cp39-manylinux2014_x86_64.whl
- Upload date:
- Size: 18.2 MB
- Tags: CPython 3.9
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.7.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
50019768bca0621faf73aeb5bf014510bee7c7a67e0a3654c6817bce43e31504
|
|
| MD5 |
8322304a0d5210fa1e37e5025c8bb888
|
|
| BLAKE2b-256 |
35a8f99ec2d660d35a203f95fa084b623dd14ad730fa35a7438b73db46b847a5
|
File details
Details for the file py_tgcalls-0.7.4-cp39-cp39-manylinux2014_aarch64.whl.
File metadata
- Download URL: py_tgcalls-0.7.4-cp39-cp39-manylinux2014_aarch64.whl
- Upload date:
- Size: 17.6 MB
- Tags: CPython 3.9
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.7.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c1a39761a2bb5cf68f826346d3053223ea7bbc51fd7aa46693319381bf8d3ac9
|
|
| MD5 |
78a2a72e33cf5d6ce0fe50ccb239ec76
|
|
| BLAKE2b-256 |
3965bd6163d6522ff88339189f205bd4d57dad6ff9afb8745aae3a7163fb21a0
|
File details
Details for the file py_tgcalls-0.7.4-cp39-cp39-macosx_10_14_x86_64.whl.
File metadata
- Download URL: py_tgcalls-0.7.4-cp39-cp39-macosx_10_14_x86_64.whl
- Upload date:
- Size: 17.8 MB
- Tags: CPython 3.9, macOS 10.14+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.7.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a01eef7eef05417d641c1f9830eb832d7c645b19d3b2c5832675fc6d501cbc34
|
|
| MD5 |
ec902ac3754d5c0b4a54d6fbb51a1221
|
|
| BLAKE2b-256 |
246519acb0724c924c0a8101daf9899367bace8883dadba9be01d8b58e99621c
|
File details
Details for the file py_tgcalls-0.7.4-cp38-cp38-win_amd64.whl.
File metadata
- Download URL: py_tgcalls-0.7.4-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 15.6 MB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.7.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cb29fc134088229151a2a08241408da93da0769875e9de32c7cc2603d79e236e
|
|
| MD5 |
a0f2ae6c7e9dfefdbf82231bf701a50a
|
|
| BLAKE2b-256 |
585b101e5b25d41cb517e246482576a2c7ad42885180569726c5810cd59ae967
|
File details
Details for the file py_tgcalls-0.7.4-cp38-cp38-manylinux2014_x86_64.whl.
File metadata
- Download URL: py_tgcalls-0.7.4-cp38-cp38-manylinux2014_x86_64.whl
- Upload date:
- Size: 18.2 MB
- Tags: CPython 3.8
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.7.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
52b61250de2d59d4edef7412ffae4a9698c0c67bfe7ae4f5286c769c5bb18fa6
|
|
| MD5 |
8070e2c8b9efd47253b9fb5fdb117ba9
|
|
| BLAKE2b-256 |
0f5dfd965c4ce6f85dec6c4fba64c1fa8e94b13b908e1417f1233c3ad4675612
|
File details
Details for the file py_tgcalls-0.7.4-cp38-cp38-manylinux2014_aarch64.whl.
File metadata
- Download URL: py_tgcalls-0.7.4-cp38-cp38-manylinux2014_aarch64.whl
- Upload date:
- Size: 17.6 MB
- Tags: CPython 3.8
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.7.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6aec1d596d9a22cd6ef659637fb1a97bd264757944f00d4a061add6f43cf761f
|
|
| MD5 |
03648f4655c03482112cf76e675bc088
|
|
| BLAKE2b-256 |
86bd0efef3f7b9c885be0000058268e6c7fce1abcd3f2ac3b5871bcc16ddbcaf
|
File details
Details for the file py_tgcalls-0.7.4-cp38-cp38-macosx_10_14_x86_64.whl.
File metadata
- Download URL: py_tgcalls-0.7.4-cp38-cp38-macosx_10_14_x86_64.whl
- Upload date:
- Size: 17.8 MB
- Tags: CPython 3.8, macOS 10.14+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.7.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f737ef82208bc0069c31ce39901656a16718e9e332aa0786536c7debb8f345f9
|
|
| MD5 |
93d3fef5a2f488624e818e54826a3a5c
|
|
| BLAKE2b-256 |
867a75479fc5831df1799f4c5905db077e64c78fce37359e0a7442cfa13bb764
|
File details
Details for the file py_tgcalls-0.7.4-cp37-cp37m-win_amd64.whl.
File metadata
- Download URL: py_tgcalls-0.7.4-cp37-cp37m-win_amd64.whl
- Upload date:
- Size: 15.6 MB
- Tags: CPython 3.7m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.7.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
064420f5d7af4dcf8abc50c956844271723fdd3f8a9f2882fc4829b1d880672c
|
|
| MD5 |
ac36a24230fb045cb0a2a3c5053fbf4a
|
|
| BLAKE2b-256 |
f5b69dd73ac4a7ff9b85e08c5ee2e62c6badbcc1930bd027c3a750dbd36fd193
|
File details
Details for the file py_tgcalls-0.7.4-cp37-cp37m-manylinux2014_x86_64.whl.
File metadata
- Download URL: py_tgcalls-0.7.4-cp37-cp37m-manylinux2014_x86_64.whl
- Upload date:
- Size: 18.2 MB
- Tags: CPython 3.7m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.7.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fbf184334deddf5257411f4fc79e4201202af21b470f47fddd0b591a044309c6
|
|
| MD5 |
ec675a64d5008593d0aca98bd176c562
|
|
| BLAKE2b-256 |
78edb527fe94cf62612f0037a7fd206501fd6ce973733862518446fcb8b60f04
|
File details
Details for the file py_tgcalls-0.7.4-cp37-cp37m-manylinux2014_aarch64.whl.
File metadata
- Download URL: py_tgcalls-0.7.4-cp37-cp37m-manylinux2014_aarch64.whl
- Upload date:
- Size: 17.6 MB
- Tags: CPython 3.7m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.7.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ee80100ea5666f7085f53137a598747dffe8b7b02ea530094dd328b65834dd6
|
|
| MD5 |
e5daa1bc99eed30f40753ec9366b2274
|
|
| BLAKE2b-256 |
4ec0a34a2e2105aa89797bb9fa694808203de2732d9ca5bdf08ed4e0bd04270a
|
File details
Details for the file py_tgcalls-0.7.4-cp37-cp37m-macosx_10_14_x86_64.whl.
File metadata
- Download URL: py_tgcalls-0.7.4-cp37-cp37m-macosx_10_14_x86_64.whl
- Upload date:
- Size: 17.8 MB
- Tags: CPython 3.7m, macOS 10.14+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.7.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e0ad06d6bf0d4c1153ab18a76f087d7cd00151c9e6ea7e4c7d10588c18811458
|
|
| MD5 |
2dc44d4d1328c57671fb77000e328b36
|
|
| BLAKE2b-256 |
08095f5b3785484e4f71727617e9e163e2e4ccc02d7f567c6dd07f4b1c998e1f
|
File details
Details for the file py_tgcalls-0.7.4-cp36-cp36m-win_amd64.whl.
File metadata
- Download URL: py_tgcalls-0.7.4-cp36-cp36m-win_amd64.whl
- Upload date:
- Size: 15.6 MB
- Tags: CPython 3.6m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.7.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4642116a7df11363c6ebcb2817394bbe68049c7e0577951ec82fc0bb644186ce
|
|
| MD5 |
7d029cab7c1f6c25b849e13724929e2f
|
|
| BLAKE2b-256 |
4e163c900a3cb6eff2cf0b953bceebc449ccd139f036eed5ef389a93a1c65c50
|
File details
Details for the file py_tgcalls-0.7.4-cp36-cp36m-manylinux2014_x86_64.whl.
File metadata
- Download URL: py_tgcalls-0.7.4-cp36-cp36m-manylinux2014_x86_64.whl
- Upload date:
- Size: 18.2 MB
- Tags: CPython 3.6m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.7.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
223afa1080286e81e8c0fa7af001f9c91ca4c2c42dea50c2f8580d748eae7d22
|
|
| MD5 |
2f836dc441f3c91a9f3f56a7b46bad56
|
|
| BLAKE2b-256 |
cf01cb82a766ae21a3eea62bc6b54c1ad0fc151816428d22bff155e92586f311
|
File details
Details for the file py_tgcalls-0.7.4-cp36-cp36m-manylinux2014_aarch64.whl.
File metadata
- Download URL: py_tgcalls-0.7.4-cp36-cp36m-manylinux2014_aarch64.whl
- Upload date:
- Size: 17.6 MB
- Tags: CPython 3.6m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.7.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f90605c0c3e141496a075b30770f0a0dfa243e96511303de1d1cda2c9a8d4a1
|
|
| MD5 |
8f8ab17e7d16116ce215107ce55e6ecf
|
|
| BLAKE2b-256 |
0f076f41721e47fc50a6866063c9547a7b19c64a2a68e7fd4c7f20054e50c9f3
|
File details
Details for the file py_tgcalls-0.7.4-cp36-cp36m-macosx_10_14_x86_64.whl.
File metadata
- Download URL: py_tgcalls-0.7.4-cp36-cp36m-macosx_10_14_x86_64.whl
- Upload date:
- Size: 17.8 MB
- Tags: CPython 3.6m, macOS 10.14+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.7.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c4936aa6788d974d1ac87c72b1755ca51852c1adba72a4406e103f4b7550d5d9
|
|
| MD5 |
d5db30f15d242937ce5e4cc1fb392a8b
|
|
| BLAKE2b-256 |
b62d22fad19641defba52c73d1f61a5387a78c80a7f2228a3670d16b6002f4e3
|