Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try:
- file_info = bot.get_file(message.photo[len(message.photo) - 1].file_id)
- downloaded_file = bot.download_file(file_info.file_path)
- src = MEDIA_URL + file_info.file_path
- with open(src, 'wb') as new_file:
- new_file.write(downloaded_file)
- bot.register_next_step_handler(send,photo_in)
- except Exception as e:
- bot.reply_to(message, e)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement