Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Update message function to support different message types
The updateMessage function was updated to support different message types such as text, image, and video. A new private function formatUpdateMessage was added to handle the logic of formatting the message based on its type. The function checks the message type and returns the corresponding format for the message. If the message type is not supported, it will return null and throw a BadRequestException. The createJid function is now called in the updateMessage function to get the jid of the recipient. This change improves the flexibility of the updateMessage function and ensures that it can handle different types of messages.
- Loading branch information