{"library":"py-tgcalls","title":"py-tgcalls","description":"Async client API for Telegram Calls, enabling voice chat functionality in Telegram bots and clients. Current version 2.2.12, requires Python >=3.10. Released regularly via PyPI.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install py-tgcalls"],"cli":null},"imports":["from pytgcalls import PyTgCalls","from pytgcalls.types import MediaStream","from pytgcalls import GroupCallFactory"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import asyncio\nfrom pyrogram import Client\nfrom pytgcalls import PyTgCalls\nfrom pytgcalls.types import MediaStream\n\napp = Client('my_account', api_id=12345, api_hash='abcdef')\npy_tgcalls = PyTgCalls(app)\n\nasync def main():\n    await py_tgcalls.start()\n    await py_tgcalls.join_group_call(\n        -1001234567890,\n        MediaStream(\n            'https://example.com/audio.ogg',\n        )\n    )\n    await asyncio.Event().wait()\n\napp.run(main())","lang":"python","description":"Basic usage: start a voice chat in a group using Pyrogram and py-tgcalls.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}