version 5.0.0 is not working sendVideoAsGif #2251
felipeisalves
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I updated the project to version 5.0.0 and it is not sending message with sendVideoAsGif, the result return undefined. Can someone help me?
this is my code:
async sendVideoAsGif(to: string, path: string, text: string) {
await this.client
.sendVideoAsGif(to, path, "video.gif", text)
.then((result) => {
console.log("Result: ", result); //return object success
})
.catch((erro) => {
console.error("Error when sending: ", erro); //return object error
});
}
Beta Was this translation helpful? Give feedback.
All reactions