DEV Community

Discussion on: Sending Media Files | Telegram Bot Development | Part 4

Collapse
 
klaukele profile image
klaukele

Thank you, Ishan so much for this valuable information! Loved this series of videos great job!
I have one question, when using sendMediaGroup I figured I can't add audio and photo together...is there a way how to fix this? Below is the code I wrote but it won't work...

ctx.telegram.sendMediaGroup(ctx.chat.id,[
{
type:'photo',
media:{
source:'images/image1.jpg'
}
},
{
type:'audio',
media:{
source:'audio/audio1.jpg'
}
}

Thank you in advance for your time!