A
A
Anonymous Coder2020-10-31 17:34:53
css
Anonymous Coder, 2020-10-31 17:34:53

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

3 answer(s)
P
Pavel Gogolinsky, 2016-05-25
@gogolinsky

You can fill the background with green, and below and above two triangles on css gray

M
Maxim Timofeev, 2016-05-25
@webinar

better svg stretch

A
Anonym Coder, 2020-11-24
@Geza420

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 question

Ask a Question

731 491 924 answers to any question