我无法通过python中的telethon API从Telegram消息中读取或下载图像。
我从函数中获取图像对象
异步
def getPhotoImage(message):
path = await message.download_media()
return path
我在这里调用函数
if not message.photo is None:
path = getPhotoImage(message)
print(path)
但是无法阅读消息,请帮助从对象中读取图像