Skip to main content

No project description provided

Project description

pytgcalls logo

PyTgCalls

pre-commit.ci status PyPI PyPI - Python Version GitHub OS Node Version

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, socketio-client 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

Read the docs!

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
pip install py-tgcalls -U

Conversion commands

From file to raw format

ffmpeg -i {INPUT_FILE} -f s16le -ac 1 -acodec pcm_s16le -ar {BITRATE} {OUTPUT_FILE}

From stream link to raw format

ffmpeg -y -i {STREAM_LINK} -f s16le -ac 1 -acodec pcm_s16le -ar {BITRATE} {OUTPUT_FILE}

From youtube video/live-stream to raw format

ffmpeg -i "$(youtube-dl -x -g "{YOUTUBE_LINK}")" -f s16le -ac 1 -acodec pcm_s16le -ar {BITRATE} {OUTPUT_FILE}

Credits

Big thanks to @evgeny-nadymov for allowing us to use their code from telegram-react

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 Distribution

py_tgcalls-0.4.9.tar.gz (17.9 MB view details)

Uploaded Source

Built Distribution

py_tgcalls-0.4.9-py2.py3-none-any.whl (18.4 MB view details)

Uploaded Python 2Python 3

File details

Details for the file py_tgcalls-0.4.9.tar.gz.

File metadata

  • Download URL: py_tgcalls-0.4.9.tar.gz
  • Upload date:
  • Size: 17.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5

File hashes

Hashes for py_tgcalls-0.4.9.tar.gz
Algorithm Hash digest
SHA256 3026bcc67662107af441536e882055bf1472fb5e56adbc421155c511c409b69f
MD5 a1286c42718817eb6a3b5b1c88535129
BLAKE2b-256 d07d847d9c98c8775fc27d9c39a035b9eb62f45df58cccff0ba449ca84fd0208

See more details on using hashes here.

File details

Details for the file py_tgcalls-0.4.9-py2.py3-none-any.whl.

File metadata

  • Download URL: py_tgcalls-0.4.9-py2.py3-none-any.whl
  • Upload date:
  • Size: 18.4 MB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5

File hashes

Hashes for py_tgcalls-0.4.9-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a2d9c5265bd67b22553fbf636beb3ee37027ff823f7209731d2c656ec35715fb
MD5 729d01a5752027a44e6f049d6cb969a7
BLAKE2b-256 996f89962dc4c74d89202b65e2887c3bb0ce782ab88249477a3dcffbc8bcc899

See more details on using hashes here.

Supported by

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