pytgcalls / pytgcalls

Async client API for the Telegram Calls
http://pytgcalls.github.io/
GNU Lesser General Public License v3.0
284 stars 163 forks source link

The call user function doesn't work on Python 3.8 but works on 3.12 #230

Closed Dante4 closed 5 months ago

Dante4 commented 5 months ago

Describe the bug On Python 3.8 the call to user is stuck on Exchanging Encryption Keys image On Python 3.12 the call goes thought and start playing pre-recorded message image

To Reproduce Steps to reproduce the behavior:

  1. Clear ubuntu pip3 install -U git+https://github.com/pytgcalls/pytgcalls@dev pip3 install https://github.com/PyrogramMod/PyrogramMod/archive/refs/heads/main.zip pip3 install TgCrypto
  2. use https://github.com/pytgcalls/pytgcalls/blob/dev/example/piped_audio_calls/example_piped_audio.py
  3. python3 ./example_piped_audio.py

Expected behavior The call is working

Environment

Additional context Also fails on both version if I add @app.on_raw_update() async def onupdate(, update, __, chats): print(update) Logs: Python 3.8 - https://pastebin.com/FLcRPs5U

Python 3.12 - https://pastebin.com/GyMNSSxM

chernyakoff commented 5 months ago

if you try to start a p2p call every hour without changing anything in the code, then sometimes it will work