You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello. Right now in Telegram API (as I understand), if you send multiple photos in a single message, you will receive multiple updates with :media filter. I think it happens in conversations too. What would be a correct way to wait for multiple photos, or just receive them all in a single waitFor call?
The text was updated successfully, but these errors were encountered:
Thank you for explaining it so thoroughly :) Do you maybe have in mind how to make a workaround for this? I want to make a "profile pictures" functionality for my bot. Should I use some persistent storage/sessions to accumulate photos with switch to check whether they are for this feature? I would of course be very happy with doing
I would personally use a conversation with a loop that pushes photos to an array until
the maximum number of photos is received, or
the user sends /done or clicks a button or so
I would always handle an album with 3 photos the same way I would handle three individual messages. I don't like bots that distinguish between these two types of input anyway. But this is more of a personal recommendation, you are free to build whichever bot you like :)
Hello. Right now in Telegram API (as I understand), if you send multiple photos in a single message, you will receive multiple updates with
:media
filter. I think it happens in conversations too. What would be a correct way to wait for multiple photos, or just receive them all in a singlewaitFor
call?The text was updated successfully, but these errors were encountered: