We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
reply = await ctx.editMessageMedia({ type: 'audio', media: { source: fs.readFileSync(`${title}.mp3`), thumbnail: { source: fs.readFileSync('thumbnail.jpg') } } })
The thumbnail is being edited
The API returns the error below (I use the same syntax to attach thumbnail in sendAudio method and it's working correctly).
Error: 400: Bad Request: can't parse InputMedia: Field "thumbnail" must be of type String
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Context
Minimal Example Code Reproducing the Issue
Expected Behavior
The thumbnail is being edited
Current Behavior
The API returns the error below (I use the same syntax to attach thumbnail in sendAudio method and it's working correctly).
Error Message and Logs
Error: 400: Bad Request: can't parse InputMedia: Field "thumbnail" must be of type String
The text was updated successfully, but these errors were encountered: