Answer the question
In order to leave comments, you need to log in
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
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question