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.

hikkalls-0.1.10-cp312-cp312-win_amd64.whl (17.2 MB view details)

Uploaded CPython 3.12Windows x86-64

hikkalls-0.1.10-cp312-cp312-manylinux2014_x86_64.whl (19.8 MB view details)

Uploaded CPython 3.12

hikkalls-0.1.10-cp312-cp312-manylinux2014_aarch64.whl (19.2 MB view details)

Uploaded CPython 3.12

hikkalls-0.1.10-cp311-cp311-win_amd64.whl (17.2 MB view details)

Uploaded CPython 3.11Windows x86-64

hikkalls-0.1.10-cp311-cp311-manylinux2014_x86_64.whl (19.8 MB view details)

Uploaded CPython 3.11

hikkalls-0.1.10-cp311-cp311-manylinux2014_aarch64.whl (19.2 MB view details)

Uploaded CPython 3.11

hikkalls-0.1.10-cp310-cp310-win_amd64.whl (17.2 MB view details)

Uploaded CPython 3.10Windows x86-64

hikkalls-0.1.10-cp310-cp310-manylinux2014_x86_64.whl (19.8 MB view details)

Uploaded CPython 3.10

hikkalls-0.1.10-cp310-cp310-manylinux2014_aarch64.whl (19.2 MB view details)

Uploaded CPython 3.10

hikkalls-0.1.10-cp39-cp39-win_amd64.whl (17.2 MB view details)

Uploaded CPython 3.9Windows x86-64

hikkalls-0.1.10-cp39-cp39-manylinux2014_x86_64.whl (19.8 MB view details)

Uploaded CPython 3.9

hikkalls-0.1.10-cp39-cp39-manylinux2014_aarch64.whl (19.2 MB view details)

Uploaded CPython 3.9

hikkalls-0.1.10-cp38-cp38-win_amd64.whl (17.2 MB view details)

Uploaded CPython 3.8Windows x86-64

hikkalls-0.1.10-cp38-cp38-manylinux2014_x86_64.whl (19.8 MB view details)

Uploaded CPython 3.8

hikkalls-0.1.10-cp38-cp38-manylinux2014_aarch64.whl (19.2 MB view details)

Uploaded CPython 3.8

File details

Details for the file hikkalls-0.1.10-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: hikkalls-0.1.10-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.0.1 CPython/3.12.8

File hashes

Hashes for hikkalls-0.1.10-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ac5ba9e6b77341864e31bc5da4b486b01a47a5b8fb410db48b61690dc62816a4
MD5 3ead1325c0f5e927fc0c5bf618e135d0
BLAKE2b-256 eeb59669e81b31252948eda94c74eb73356a88c626c95315763e2e29ed5c0dac

See more details on using hashes here.

File details

Details for the file hikkalls-0.1.10-cp312-cp312-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for hikkalls-0.1.10-cp312-cp312-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4be6e454b8fdc6aa0bc7732032231665511e6bfb7eaae079225214b79646fb27
MD5 85cbf9fc6a2ae5662c2da3d397abec73
BLAKE2b-256 e3c423c6d303032ccbb53e7ad4ad606ede5d7f1741554a67fe7b558b95e04329

See more details on using hashes here.

File details

Details for the file hikkalls-0.1.10-cp312-cp312-manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for hikkalls-0.1.10-cp312-cp312-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 e8df2d875cda16be4539aa96b701d02fbd80ccecdc11bfcc505e1ca9e5d8e221
MD5 0810d026ec9463b22e60d47813053a44
BLAKE2b-256 326371b469c318f31b1f261cf43144301d2eb666d239473136f5b60456baf615

See more details on using hashes here.

File details

Details for the file hikkalls-0.1.10-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: hikkalls-0.1.10-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.0.1 CPython/3.12.8

File hashes

Hashes for hikkalls-0.1.10-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 67bb1833f08d534e9a8d193e5192dee7fdb15d4e82a5989df12f7f8f6212f6df
MD5 95cc9ef861dfc8740a9de76b8522e504
BLAKE2b-256 f954ddc4842d5bba8fbffe06fff63f2fe948cfe8abf46404107d75dbf65d941e

See more details on using hashes here.

File details

Details for the file hikkalls-0.1.10-cp311-cp311-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for hikkalls-0.1.10-cp311-cp311-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a2a57a61e907f0fade394e0d9bc443f884fa9eeb46cd3dceb950e4e6c1ecb0c5
MD5 c6ec7cbdafcdc603c456d95fe33740f1
BLAKE2b-256 4ffdb242e801363f24d84f5035efea316f7d8a0c87cd5e49b2c56ce470bb96ac

See more details on using hashes here.

File details

Details for the file hikkalls-0.1.10-cp311-cp311-manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for hikkalls-0.1.10-cp311-cp311-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 4f73fe352878d28632b6ee5a01d0c4efe8cd46d07c1e5d4c2097e7e4281ebdc2
MD5 fe665af149f5421d4c3bbd2da578b04d
BLAKE2b-256 f7b1d4c5f69c0c03ea61424d9ffdaeed3ecab2cb6dba86cf3b57a7b930955e1a

See more details on using hashes here.

File details

Details for the file hikkalls-0.1.10-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: hikkalls-0.1.10-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.0.1 CPython/3.12.8

File hashes

Hashes for hikkalls-0.1.10-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d432035a84802a129a0d8441dbc95150f4288bd29a15f5ab40a10d2392918407
MD5 a5e759429980f698f51cf0057925218a
BLAKE2b-256 abfb2cb2ab61717a13f837ab8e7c84529f55b9284b3a8dff328413d28a4ddbbf

See more details on using hashes here.

File details

Details for the file hikkalls-0.1.10-cp310-cp310-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for hikkalls-0.1.10-cp310-cp310-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8356ebbc93a23e9c0e60160554d006e6ab697e8e43c099c98992daefc456f292
MD5 a465c293fdca07c0c9c5c1ccd1c70999
BLAKE2b-256 aa6f64a4fdcebaa60bd107707ee40e6783f23ee6ce1537ccf0a4169cede46389

See more details on using hashes here.

File details

Details for the file hikkalls-0.1.10-cp310-cp310-manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for hikkalls-0.1.10-cp310-cp310-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 8150374b5d2b53e6e19641a83bd8a725e19f6bc3a9c75d5acafc6bb8f840bb10
MD5 57bd57618d686779a49d526c70720348
BLAKE2b-256 9f805e2fcb9111a3603ffd942f33e587bf96e672093f95649eaa7f24ba8b2819

See more details on using hashes here.

File details

Details for the file hikkalls-0.1.10-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: hikkalls-0.1.10-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.0.1 CPython/3.12.8

File hashes

Hashes for hikkalls-0.1.10-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 fd6614452d1ae1f36d28077c3189399f75daddeba0e1e49bd312e5bdec798f7e
MD5 7c046fd86341169410b863b2de24686a
BLAKE2b-256 cc95a9acfe46553600e82e6e1547ce92e329ec338b60982a20ae59b8b7451a00

See more details on using hashes here.

File details

Details for the file hikkalls-0.1.10-cp39-cp39-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for hikkalls-0.1.10-cp39-cp39-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 47a364cdd3a2f1563f2730369add08b3cb503b16a80162da7d4fd6f8279e527e
MD5 cee61acb84c60d5f9c471adfc4e70847
BLAKE2b-256 2fcb239617807e4a17e2ff054706de1dff74a6f66c70eb8652145b151413643d

See more details on using hashes here.

File details

Details for the file hikkalls-0.1.10-cp39-cp39-manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for hikkalls-0.1.10-cp39-cp39-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 19351f8726de975daabfe4dbcc53dfc788db2aed1142ebc392b0c8d77ba0eb20
MD5 23eb9ae73c511d4a637006fa2309cf65
BLAKE2b-256 12c2f68b1cadd78885836b20e4b3e6407574dc99d9a59986aad092981e52a66a

See more details on using hashes here.

File details

Details for the file hikkalls-0.1.10-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: hikkalls-0.1.10-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.0.1 CPython/3.12.8

File hashes

Hashes for hikkalls-0.1.10-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 ef9aa22224e8b5eb07874e06213da633be6cedaa4775ac6c4f511a12b2708d68
MD5 79fe7f0ea711908f2caaad7b07bc90d2
BLAKE2b-256 d45026ac3f622358dfb27fd1878e132ebe574c78de93fd3e38e4c8776a552c2e

See more details on using hashes here.

File details

Details for the file hikkalls-0.1.10-cp38-cp38-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for hikkalls-0.1.10-cp38-cp38-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 eaab19b2173ad97c36ffca19b99c9dc8281a06a1861ae2cb6b07e1cf0027fc67
MD5 5d050d87f8976fd6d053eef559a87996
BLAKE2b-256 234423db750e8060bdb494a288ebb8b865c6a8d9c5cea543bc99983d02373db0

See more details on using hashes here.

File details

Details for the file hikkalls-0.1.10-cp38-cp38-manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for hikkalls-0.1.10-cp38-cp38-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 2bbf3354aeb7ce4b09ba8038a172c1b3f092d2283f43139dc33a975ddd604de7
MD5 e19981aa9308ee1ca1c3fa53c84e1d0b
BLAKE2b-256 727d8c04846775b5327323b9513aee715156e0cfbe3b093642b39d11561508bf

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