C
C
complucter2020-06-12 14:57:00
Python
complucter, 2020-06-12 14:57:00

How to make the telegram bot accept photos?

I'm trying to write a simple telegram bot in python. I am using the pyTelegramBotAPI library. I can’t figure out how to make it so that the bot could send a picture as a message and receive it at the code level for further work with the image. Figured out so far that you need to use this:

@bot.message_handler(content_types=['photo'])

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