pywa
pywa copied to clipboard
[handlers] fix handle `tracker`
Time: 2024-05-15 11:32:28,814 | Level: ERROR | Module: server | Func: _call_handlers() Message: An error occurred while handle_status_msg_log_failed was handling an update
Traceback (most recent call last):
File "C:\Users\User\PycharmProjects\bot\venv\Lib\site-packages\pywa\server.py", line 214, in _call_handlers
handler.handle(self, constructed_update)
File "C:\Users\User\PycharmProjects\bot\venv\Lib\site-packages\pywa\handlers.py", line 410, in handle
_call_callback_handler(self, wa, status, "tracker")
File "C:\Users\User\PycharmProjects\bot\venv\Lib\site-packages\pywa\handlers.py", line 140, in _call_callback_handler
update = dataclasses.replace(
^^^^^^^^^^^^^^^^^^^^
File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\dataclasses.py", line 1579, in replace
return obj.__class__(**changes)
^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: MessageStatus.__init__() got an unexpected keyword argument 'data'