Skip to content
New issue

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

sendMediaGroup Bad Request: expected an Array of InputMedia #214

Open
skvair opened this issue Nov 2, 2021 · 1 comment
Open

sendMediaGroup Bad Request: expected an Array of InputMedia #214

skvair opened this issue Nov 2, 2021 · 1 comment

Comments

@skvair
Copy link

skvair commented Nov 2, 2021

Help please. What am I doing wrong?

Error: Bad Request: expected an Array of InputMedia

const zz = [
{
type: 'photo',
media: 'https://web.ru/spec/salon/z1.jpg'
},
{
type: 'photo',
media: 'https://web.ru/spec/salon/z2.jpg'
}
]
bot.sendMediaGroup( msg.from.id , {mediaList:zz} ).then(function(data){
startgame(msg)
}).catch(err => {
console.log(err)
});

@exander77
Copy link

Send media group doesn't work. I can confirm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants