I
I
Ivan Grebnev2021-06-04 19:01:29
Python
Ivan Grebnev, 2021-06-04 19:01:29

How to fix a bug in the telegram bot code?

Hello! I'm programming a telegram bot, all text messages work fine, but when I need to upload a photo, a big error is thrown that refers to different lines of the telebot library code. Tried everything already, what's wrong??
part of the code with uploading a photo:
def repeat_all_messages6(message):
p = open('images/ai6.png', 'rb')
bot.send_photo(message.chat.id, p)
the error will be in the image
60ba4e1e69101816875169.png

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