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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12

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

Uploaded CPython 3.12

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11

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

Uploaded CPython 3.11

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10

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

Uploaded CPython 3.10

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9

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

Uploaded CPython 3.9

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8

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

Uploaded CPython 3.8

File details

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

File metadata

  • Download URL: hikkalls-0.1.9-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.9-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 af6b127d1153fb9a2bb4162a58e336dc8ef7cfdf0bbbd4654e9c91fabdf3ff7e
MD5 f6c34fbac3359a522f0ab81de225352a
BLAKE2b-256 4e4aed2e329771e00dc6b7ed28b0a8df6d0f98aa2ab33fecd201880b11c2c73d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hikkalls-0.1.9-cp312-cp312-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1e3146ef46556c81373ddcb5477d16e6726789694f2831a7fdf396ba1abb39d4
MD5 8e5943bfaec41d1d4c09c67914d93011
BLAKE2b-256 2f550a90bdb480bcf4e970cfd1514cc4d9517b56ed0f5461764acadc60081087

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hikkalls-0.1.9-cp312-cp312-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 c9b3a57a55367c655dd5261aeb456f7ab8708745ad199ebee1a1727dce961121
MD5 330e1c3205455e5589db950d7aaaa280
BLAKE2b-256 04bbc5a9e9e4da7932431797527a69e5eb08784092dd87ce4d198a45f92716ce

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hikkalls-0.1.9-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.9-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 523fb1c99cbd9575c0de03dc73db39733cd1297569c321675c6968a8c9ac9fc1
MD5 ff6ce0f6fc1150b9422fea6113051cc2
BLAKE2b-256 e4e3a3095f4e6db4a2a713655bbf93aae18e2e0a9e9a2f00166b9b74e3318f9b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hikkalls-0.1.9-cp311-cp311-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ed1b643c73a022d6a3627876613c5e678665446fee9d917f5f640e037521516f
MD5 7d5f0b45889355e3c5bbf4e6ef27c640
BLAKE2b-256 5f666068439532d67e2591ca6cb2a3b50d9638df57dddb9ed86333f08b1d8a37

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hikkalls-0.1.9-cp311-cp311-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 de2b1f329549b83d598839e7caa34b7601644c29a2aaeeb5d004faa69531a2de
MD5 c1dca69fcaf9a930da6e4b8c4d1d8bfb
BLAKE2b-256 d0825eb0346988dc558d1ed92955daffed30e5d276cd44d482f62894c94660c7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hikkalls-0.1.9-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.9-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 9068b16bc901ce11f141195a3bf6f39aebf531488c1ffaf49e92c4dcf4b1708a
MD5 3e1208db815362a5c259c57b6e55b1a9
BLAKE2b-256 3458f901cbf530591f026b207037a7287e5e749a0a515851b24dab70ac487841

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hikkalls-0.1.9-cp310-cp310-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e37bab97261c76be0a148e13006685bc471b71a1669d1892e3500265392bf975
MD5 c066b9eec5f49f0d07fc1c94be7db5bd
BLAKE2b-256 fdb613c5662fae4871d2d71a056c910ec10a764444643108afc7f0c6700cb6d7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hikkalls-0.1.9-cp310-cp310-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 61245fd3e35826276fcf43ac4875fc71dfc24a9bea34cdcdbea6c817ab9c7892
MD5 87d71527ef94a1709d2e770cc09cc49f
BLAKE2b-256 68a3d77ec34c178a7470e541152a901ac43fc28eccb61787d9ba725a183f9816

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hikkalls-0.1.9-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.9-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 c979f083e7b8c4cbf75def6ab12e09c588bbeb0ae84952aa4738661191f4c25f
MD5 88790709a34d0090eed40b1acdd4b1b0
BLAKE2b-256 8f63399a79840b9215e41ead63ec80dd961fc0857b91ab5a3ecaa94d152080ba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hikkalls-0.1.9-cp39-cp39-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e595dc0a192c018a7e52f256871188eb14545dfa31928daaa99bfc1b03a8f0d0
MD5 547044eaa4d4eadcbdf62cdd20d79d14
BLAKE2b-256 32f6ef9559ae6b80e7a952954c221f799bc395a2e995dea1957c1696cf9fa3d2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hikkalls-0.1.9-cp39-cp39-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 3ad3e531dafca2173111bf7b97f89083442b64cb626545c743ac411488c8b21c
MD5 d3bb6f0d5b7bfc9a538c1dec70f16ae6
BLAKE2b-256 ccd45df650e6749c3d56b44bb5abef39e55e54c1a5f71a9149c24d16c0110fd7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hikkalls-0.1.9-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.9-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 b4d7aef50b0372206a1c76a5fe833ed30f13e4d8315319a1d1a2cc0f5eeff495
MD5 b14b81ac06f706d2112748992fc3a01c
BLAKE2b-256 d1f4cde25a8b7c9583989cf374e825ce97aa2df5c4fb15f60ad8394e5dd1debe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hikkalls-0.1.9-cp38-cp38-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4500c5cc38711dab2987e71f0673cc66bc27788209e54e3f839e6005ccb8ba8d
MD5 c37659d7a135c6f4658b35640e6e89e3
BLAKE2b-256 ef6e2282aa0760754bff942fba95d429fb79bc22033bc1922ec997e0b41e4dc6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hikkalls-0.1.9-cp38-cp38-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 2f9a626ae64788567f58e1161b7f418c963fcebeda83b377dd84e2da19779507
MD5 6bb6db9a61c6ad7a21bdd2d4c76fef44
BLAKE2b-256 9f40bff4aa8804db47768c1933654d0dd91d3b83cf3dc914c80cbf2e9cd2b99e

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