Answer the question
In order to leave comments, you need to log in
How to request a photo multiple times in Telebot?
I am making a registration bot that should request a photo of documents, and then either save it to the database, and from there to the admin for consideration, or immediately to the admin. Not the point ..
I wrote a handler for the photo, saved the photo, and I don’t understand how, after receiving different photos, I can split it into different files? That is, if I specify a function for a photo - so that the function is distributed exclusively to the photo that was sent last.
Answer the question
In order to leave comments, you need to log in
You can fill the background with green, and below and above two triangles on css gray
found a solution!
just created a global stage variable, which I changed depending on the situation.
After filtering the message by photo, I registered
if stage == "че либо":
#сохранить фото там то
elif stage == "че либо другое":
#сохранить фото в другом месте
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question