how do I implement the following: I am sending a message to the user, after which I need to wait for the photos to be sent (from 1 to 10)?
that is, I need to build a chain of actions and expectations of a response from the user
I tried to use next(), but it didn't help, because the ctx doesn't change
i wait photos only after user click the button (or other not important action)
example result:
bot: send me photo (or several):
user: photo or mediagroup
bot: thk u!
code example:
async (ctx, next) => {
try {
ctx.reply(' Приложите фотографии отправляемого заказа для передачи курьеру\n' +
'ℹ Максимальное количество принимаемых фотографий = 10' +
'\n❔ После отправки всех фотографий отправьте команду /finish');
next();
} catch {
this.restartBot();
}
}
After this block I must waiting photos from user