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

Errors when the voice chat is Ended #56

Closed Sunda001 closed 3 years ago

Sunda001 commented 3 years ago

so when admin click end voice chat, it throws some errors

here is the full traceback:

'GroupCallDiscarded' object has no attribute 'params'
Traceback (most recent call last):
  File "/home/sakty/pytgcalls-beta/sakt4/lib/python3.9/site-packages/pyrogram/dispatcher.py", line 208, in handler_worker
    await handler.callback(self.client, *args)
  File "/home/sakty/pytgcalls-beta/sakt4/lib/python3.9/site-packages/pytgcalls/group_call_native.py", line 168, in _process_update
    await self._update_to_handler[type(update)](update)
  File "/home/sakty/pytgcalls-beta/sakt4/lib/python3.9/site-packages/pytgcalls/group_call_native.py", line 157, in _process_group_call_update
    if update.call.params:
AttributeError: 'GroupCallDiscarded' object has no attribute 'params'

pytgcalls version: 0.0.13