MarshalX / tgcalls

Voice chats, private incoming and outgoing calls in Telegram for Developers
https://t.me/tgcallslib
GNU Lesser General Public License v3.0
515 stars 91 forks source link

Update to MTProto layer 126 (join_as, peer instead of user_id) #61

Closed MarshalX closed 3 years ago

MarshalX commented 3 years ago

Since the pyrogram was not released, this feature will be in a separate branch. pypi versions will come out as dev.

MarshalX commented 3 years ago

Branch: https://github.com/MarshalX/tgcalls/tree/mtproto-layer-126

To use dev version u need to install pyrogram from git:

pip uninstall pyrogram
pip3 install git+https://github.com/pyrogram/pyrogram

and install dev version of pytgcalls:

pip install pytgcalls==0.0.15.dev1

If u get ERROR: No matching distribution found for pytgcalls==0.0.15.dev1 then run install command again

To join to channel as channel:

group_call = GroupCall(client, 'input.raw')
await group_call.start('@MarshalR', '@MarshalR')     # the second param is join_as
MarshalX commented 3 years ago

Issues: Duplicate SSRC (need to properly rejoin). To fix restart script. Occurred when u try to change join_as from channel to another one