Answer the question
In order to leave comments, you need to log in
How to send a photo from one user to another via telegram?
To forward. you have to download the photo first, right?
I switched from the TeleBot library to teleegram
and this code stopped working, and I can’t think of / find an alternative
def download_photo(self, bot, update, message, photo_id):
raw = photo_id
path = raw + ".jpg"
print("Download")
print(message)
file_id = update.message.photo[-1].file_id
newFile = bot.getFile(file_id)
downloaded_file = newFile.download(str(raw) + 'test.jpg')
return downloaded_file
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