File "/path/to/env/lib/python3.11/site-packages/whatsapp/__init__.py", line 97, in verify_endpoint
self.verification_handler(challenge)
TypeError: WhatsApp.__init__.<locals>.base() takes 0 positional arguments but 1 was given
This was solved by using *args argument for base.
Additionally return type for challenge has been changed to int from str since Facebook expects just the number that is not wrapped with \"
Added fix for the following error-
This was solved by using
*args
argument forbase
.Additionally return type for challenge has been changed to
int
fromstr
since Facebook expects just the number that is not wrapped with\"