Skip to main content

No project description provided

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

herokulls-0.1.12-cp312-cp312-win_amd64.whl (17.2 MB view details)

Uploaded CPython 3.12Windows x86-64

herokulls-0.1.12-cp312-cp312-manylinux2014_x86_64.whl (19.8 MB view details)

Uploaded CPython 3.12

herokulls-0.1.12-cp312-cp312-manylinux2014_aarch64.whl (19.2 MB view details)

Uploaded CPython 3.12

herokulls-0.1.12-cp311-cp311-win_amd64.whl (17.2 MB view details)

Uploaded CPython 3.11Windows x86-64

herokulls-0.1.12-cp311-cp311-manylinux2014_x86_64.whl (19.8 MB view details)

Uploaded CPython 3.11

herokulls-0.1.12-cp311-cp311-manylinux2014_aarch64.whl (19.2 MB view details)

Uploaded CPython 3.11

herokulls-0.1.12-cp310-cp310-win_amd64.whl (17.2 MB view details)

Uploaded CPython 3.10Windows x86-64

herokulls-0.1.12-cp310-cp310-manylinux2014_x86_64.whl (19.8 MB view details)

Uploaded CPython 3.10

herokulls-0.1.12-cp310-cp310-manylinux2014_aarch64.whl (19.2 MB view details)

Uploaded CPython 3.10

herokulls-0.1.12-cp39-cp39-win_amd64.whl (17.2 MB view details)

Uploaded CPython 3.9Windows x86-64

herokulls-0.1.12-cp39-cp39-manylinux2014_x86_64.whl (19.8 MB view details)

Uploaded CPython 3.9

herokulls-0.1.12-cp39-cp39-manylinux2014_aarch64.whl (19.2 MB view details)

Uploaded CPython 3.9

herokulls-0.1.12-cp38-cp38-win_amd64.whl (17.2 MB view details)

Uploaded CPython 3.8Windows x86-64

herokulls-0.1.12-cp38-cp38-manylinux2014_x86_64.whl (19.8 MB view details)

Uploaded CPython 3.8

herokulls-0.1.12-cp38-cp38-manylinux2014_aarch64.whl (19.2 MB view details)

Uploaded CPython 3.8

File details

Details for the file herokulls-0.1.12-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: herokulls-0.1.12-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 17.2 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for herokulls-0.1.12-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 deedd2dde410f6dc8dde415c01db84323b977a0eb097506c747fc6cada206e4e
MD5 4d7a778be647018da790888c20c772d8
BLAKE2b-256 6bc2bd3dd9b18bbdc7063ad516cbb9e38cba30e37e3810a6ed9a19721b473403

See more details on using hashes here.

File details

Details for the file herokulls-0.1.12-cp312-cp312-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for herokulls-0.1.12-cp312-cp312-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 529e66401cc1b8349a0cd10a1d2c6806addd969e5061b54fc80898cf6c43184b
MD5 7b31f14f35db24a2c811143e3fe50684
BLAKE2b-256 9acf2c7c8653e50b3e8b423883541b1a14a81038492d1d2a7fe37c360b9ee06b

See more details on using hashes here.

File details

Details for the file herokulls-0.1.12-cp312-cp312-manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for herokulls-0.1.12-cp312-cp312-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 8a398f3f76cee54e2abe2decd25e590167929ee6643cd9ee54d7f9dbbc77d111
MD5 282c4543b4e30c3ba0fba6695c9e9c9a
BLAKE2b-256 6434d8cc0032726d1eabbbe8f3694591132e9081cb768da8d4aff6e2c9a45484

See more details on using hashes here.

File details

Details for the file herokulls-0.1.12-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: herokulls-0.1.12-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 17.2 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for herokulls-0.1.12-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a1c3017cdbd046dc3802ed7f955786912db3d7de0ba0bbca0a56aeab60f3fe26
MD5 dc5adb3c269f707976e428c9867f3e4b
BLAKE2b-256 d76b056ff8a8e47bcd7f6cfe6d04dec330ba1237bce79f2e633e935fde8f0237

See more details on using hashes here.

File details

Details for the file herokulls-0.1.12-cp311-cp311-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for herokulls-0.1.12-cp311-cp311-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 90cc9a4aeb4f8288fa5856ed33d8f456dea6ca1a7bac7a91c182cbcf60133fc2
MD5 e65ec8c053c4de4aebfb1c7d24b91e5e
BLAKE2b-256 63b86ae3b21936464c598a34e0c2eeb5e6b5a9b1ece23bb838a8511a1419254d

See more details on using hashes here.

File details

Details for the file herokulls-0.1.12-cp311-cp311-manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for herokulls-0.1.12-cp311-cp311-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 aabaabc796d5c6bd701d2cf3aef6375bb348c9de7d4b78ac2e47d26a3bd19a8e
MD5 989e0aa4ad9fca4a79be3a6da903ed6a
BLAKE2b-256 d2a82a9ef2441856cc530dc3e95c0e5b04850f57b417043541cba5f2fa848435

See more details on using hashes here.

File details

Details for the file herokulls-0.1.12-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: herokulls-0.1.12-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 17.2 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for herokulls-0.1.12-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 1f22ac5c2c72f1ad1bf2c94095c2e5c1b515205d6d3d17a85b5b1b1409835af3
MD5 ca4e4009907d08eed00699c4dc1ddb40
BLAKE2b-256 bb115457951d18ec811cec95a5b29b96bcdb9c352532b1a6d5f133bb49d15c72

See more details on using hashes here.

File details

Details for the file herokulls-0.1.12-cp310-cp310-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for herokulls-0.1.12-cp310-cp310-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ba5609dd7d4bf68d05cee7488766cee511f4570665e69ea9294faf3e8098b2aa
MD5 8c2ad8e338fbb670d9a7e571d29abc87
BLAKE2b-256 dd180efa31f725b67f241a794f8f27023532a142080692bdf7b78d64e750bfe0

See more details on using hashes here.

File details

Details for the file herokulls-0.1.12-cp310-cp310-manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for herokulls-0.1.12-cp310-cp310-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 ff90838efcaaa883eaf9b136b66a1ee304b8794958ca4e1e68f9b8b3e5315f7b
MD5 9b6cd2f2704f60679ef506d8f0440025
BLAKE2b-256 9a0d0d8cf05ba5149b93bd60647110475be4372d80748fd6ba99f49acbbd39c9

See more details on using hashes here.

File details

Details for the file herokulls-0.1.12-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: herokulls-0.1.12-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 17.2 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for herokulls-0.1.12-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 d19f2f944f75e8168aa55f06dc76dcc164c499d26c187637c043870cd5e85470
MD5 1be7525dc2959328935014f3577bcebe
BLAKE2b-256 2677f6cb80533cf8e810a42083b5e3d26f6df47853bd5006145e478e972ed7d4

See more details on using hashes here.

File details

Details for the file herokulls-0.1.12-cp39-cp39-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for herokulls-0.1.12-cp39-cp39-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9bd02827e3a2c8c33b630b0af53d7db1849ce15bc7143c95704656dbd26bbdab
MD5 659a8ae112e3b76bf5e66fd9120adf57
BLAKE2b-256 69c2ee64acb3a4091b9feb7a322a402db838f025a1bbb9bc9898286c6642ffbc

See more details on using hashes here.

File details

Details for the file herokulls-0.1.12-cp39-cp39-manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for herokulls-0.1.12-cp39-cp39-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 98a54d7fcbb48503994bf041bb8beb8c8c2cbb9a39e4963b49368568e2a200a9
MD5 34a2372283e10f224ea22e4b9dfe1150
BLAKE2b-256 9d9a82d4a4975e54098ff2684a165b10e0401131c0538354908c363386a9e4c1

See more details on using hashes here.

File details

Details for the file herokulls-0.1.12-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: herokulls-0.1.12-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 17.2 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for herokulls-0.1.12-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 7946b7c89853003012705b9fb30930b0ce89397b7299d8aebf1cc87266a92b65
MD5 963222991b6397671f837e3031b5f041
BLAKE2b-256 fc930c08bc16d775d766ac3225c645018a1d45142d25b9dce005136591665ccd

See more details on using hashes here.

File details

Details for the file herokulls-0.1.12-cp38-cp38-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for herokulls-0.1.12-cp38-cp38-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7ee6d40364823425ff1a9e06dbeb20596fac2b32e6bffdd5d7a3d3f02f3c1174
MD5 30ed18f8ee9b801559ed34256724f342
BLAKE2b-256 58bb70b29c04500d5e72e0ea82daf35f23aea21c960d8a470f37e3bffed5c0f9

See more details on using hashes here.

File details

Details for the file herokulls-0.1.12-cp38-cp38-manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for herokulls-0.1.12-cp38-cp38-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 4a7fbd21f1a68dba5605556c8875b2f9797e4579ec57e442241478c64a85eb62
MD5 bad218a52e35c4546b0641f19cce98e9
BLAKE2b-256 0cf1616931212c6e97dc18a54ad25d2bf9f120b451fb4e19580cf0cceb988fb6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page