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.11-cp312-cp312-win_amd64.whl (17.2 MB view details)

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12

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

Uploaded CPython 3.12

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11

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

Uploaded CPython 3.11

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10

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

Uploaded CPython 3.10

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9

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

Uploaded CPython 3.9

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8

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

Uploaded CPython 3.8

File details

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

File metadata

  • Download URL: herokulls-0.1.11-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.11-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6401a39f021ec9800d8c9fba87d62f81100834d0093feb08c6da34f2750e249b
MD5 48c9c3bb5a06e8902f2d982f698025b4
BLAKE2b-256 16d92b57b9125683c4485418d97ea8b343f4bcb5387873acd87bc49fcd5fdd22

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for herokulls-0.1.11-cp312-cp312-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 19ef631cec31510806ecf37bf7bc02c3d6af2d7b3083861ba1fda75b076ca427
MD5 efdd21e51ae0200a1594e3dbb549fe69
BLAKE2b-256 f933907aec116b7ddc5d172aa531c3a9817f80e1e69e585322f1b7d0eb068d71

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for herokulls-0.1.11-cp312-cp312-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 641f8181a45314e4512c496c8c52f5cadc8ee0ded0e6f961a663b4624d3fcdbb
MD5 ff61ea9c071d3a30281191a85d0708af
BLAKE2b-256 cf370f7d6fc5dc5d55179595412f4a9b954fc2c92054d5f7e1e05424ec31e9d7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: herokulls-0.1.11-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.11-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 516d75a8dd2621f8c69c6b162a5d180b74b88ff8757e31b764f4c8388a647bd5
MD5 94626147cf7b4fb6288394b57f726449
BLAKE2b-256 19f6a97d6863ce29fe626fa9a550fa7efcb42c9159f2f4dd519aa338e64f88d2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for herokulls-0.1.11-cp311-cp311-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 766bd4b9dc893a291a108a42649a51d00a3b80c7b4b0fb3ece90f835addf852e
MD5 2f4c040a7a7361efb1e973ce0f89cea7
BLAKE2b-256 ac7918cb661b6e321b281f1f62b5f5a352ac77f93f4ac508b5bca6f89ead43bc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for herokulls-0.1.11-cp311-cp311-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 96a57218c298cc24534f2495dfe0ec1fa1cd111a05e4dfd841972bd7f3b3f8e6
MD5 222dfcec7834682594593425e4035a64
BLAKE2b-256 d2b859de2e186eaf84d4fb0de6c6acfceda69b5b27915e805a6a9b16bf6c3076

See more details on using hashes here.

File details

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

File metadata

  • Download URL: herokulls-0.1.11-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.11-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 1bd59729d9e0a6b22def014cea593552b0b9700cc255c2eb8fdcadb40e774175
MD5 33c21b1757c633d06539d7e6d54d203d
BLAKE2b-256 76bb7bcfa59c8d233de39207a327879576395ab52493df0cbbcb11ef90f4bc3e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for herokulls-0.1.11-cp310-cp310-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b47e302200f86f40938fc6669e50552464f39f93281b1ddb69cb95146d61d6a7
MD5 6e16b91440dbc9443cea2d22182bf8f4
BLAKE2b-256 4376c9a09c6c5e907b027ccd853ec244002d7a78f41dff2be3aada01ce06d7bc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for herokulls-0.1.11-cp310-cp310-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 70ecc15a24b513c1bfbeb45cad225ed21ac5b9e0c0dd1ff9a0af99a34b45d3f3
MD5 8f9eb3169950c5cedcab65d82f8486df
BLAKE2b-256 2179064d1b30f6e569987eb05a23738303aadd3bbfd8900dbebde344d39b4bde

See more details on using hashes here.

File details

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

File metadata

  • Download URL: herokulls-0.1.11-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.11-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 7246822697e963980ff144cdadba41e5dc34e7e8cca46016bd5086646988f255
MD5 d80a02815f926c3aa6395c0190b28002
BLAKE2b-256 d7c395990368fa5140a36df331199f372e57df0723bd26f3a21d63966dffd7b7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for herokulls-0.1.11-cp39-cp39-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 362ecd25ca5fd83d438feba3252d5a45ad31e18b14881465b6d137b1fd3ac299
MD5 252c70b1b4c1b1989be0f293269c19cd
BLAKE2b-256 594a9b2ee9f6480ccf4e6cc3abb26ef7ad09093ec693b2c678956d39406e56d7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for herokulls-0.1.11-cp39-cp39-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 06f65c720eb537ca708c8290387a454996bd361b0d88c1eb36e7292ea34fe388
MD5 0189419af5e6e8030218cad209b7bbbf
BLAKE2b-256 20aea8eb908bd0946b402658ee2fce1a5fc33bdbee48c32b9b5a7d3b083b6647

See more details on using hashes here.

File details

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

File metadata

  • Download URL: herokulls-0.1.11-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.11-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 ab87f442cadaac67c9c81447174ddcec6390779a054fd47ae61a693918f1e3b0
MD5 b585eda209331a8b2314aea9b1f2ce8d
BLAKE2b-256 ba525a2aeb17da27c6a58c1b24fb60390c03db008e3df986d249625b5e7a8402

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for herokulls-0.1.11-cp38-cp38-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 fd8969b8d7048405c23323da6ea41db4657a6f90c46fbb2eb95758fa8916227d
MD5 9c2971de068d9c573ffd57567d7040df
BLAKE2b-256 0402f6d8cb698ef05ce4b17fbe558e58689c8bdab0e80cc854bf4bfe996e0317

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for herokulls-0.1.11-cp38-cp38-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 8387195431fcbd04390b51938c852661c5307f3011d05a163f8aa726b74b88da
MD5 974c25cd85e7d5e9e203832b6ea198a2
BLAKE2b-256 40a1a14814d3beb7bc16b78ceda1dc6f4463bc83a527a8cfc709987b0e0ffcc1

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