M
M
MagDH2021-12-17 15:51:49
Bots
MagDH, 2021-12-17 15:51:49

Aiogram How to reply to messages with media_group?

The bot must accept:
- a document (photos and files) from the user;
- assignment to the document.

While the user sends 1 file - there are no problems.

If the user sends multiple photos (album), the bot treats each photo as a separate message, which causes any bot response to be multiplied by the number of photos sent by the user.

I'm trying to do the following:
1. Write the id of all incoming photos to the dictionary - it worked;
2. Reply to the user that his message has been received (1 time, but preferably specifying the number of documents sent). Here, for now, it turns out only to send him X answers indicating this very X photos.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question