When I receive one of the following, I get an error: [Client ERROR] Event handler panicked while handling a *events.Message: runtime error: index out of range [0] with length 0
GIF as image
Audio
Video
All files other than JSON, PDF, GIF, JPG and PNG as document
Reproduction Steps
1. Connect webhook to the application
2. Login to your WhatsApp using application
3. Send yourself one of the following:
- GIF as image
- Audio
- Video
- All files other than JSON and PDF
What happened?
When I receive one of the following, I get an error:
[Client ERROR] Event handler panicked while handling a *events.Message: runtime error: index out of range [0] with length 0
Reproduction Steps
Relevant log output
Screenshots or Additional Context
No response
Application Version
4.14.0
Verification