david-lev / pywa

🤖 Build WhatsApp Bots in Python
https://pywa.readthedocs.io
MIT License
221 stars 33 forks source link

[handlers] fix handle `tracker` #56

Closed yehuda-lev closed 3 months ago

yehuda-lev commented 4 months ago
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'
david-lev commented 3 months ago

Already fixed Thanks :)