Traceback (most recent call last):


 "/*/.dev/test.py", line 12, in <module>

asyncio.run(main())


 "/usr/local/lib/python3.9/asyncio/runners.py", line 44, in run

return loop.run_until_complete(main)


 "/usr/local/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete

return future.result()


 "/*/.dev/test.py", line 9, in main

await client.download_media(message, thumb=0)


 "/*/.dev/venv/lib/python3.9/site-packages/telethon/client/downloads.py", line 397, in download_media

return await self._download_document(


 "/*/.dev/venv/lib/python3.9/site-packages/telethon/client/downloads.py", line 857, in _download_document

file_size=size.size if size else document.size,
AttributeError: 'PhotoPathSize' object has no attribute 'size'

Traceback (most recent call last):


 "<path>/tracing.py", line 1, in <module>

from opentelemetry import trace


 "<path>/lib/python3.9/site-packages/opentelemetry/trace/__init__.py", line 79, in <module>

import typing


 "<path>/.pyenv/versions/3.9.0/lib/python3.9/typing.py", line 26, in <module>

import re as stdlib_re
# Avoid confusion with the re we export.


 "/<path>/.pyenv/versions/3.9.0/lib/python3.9/re.py", line 145, in <module>

class RegexFlag(enum.IntFlag):
AttributeError: module 'enum' has no attribute 'IntFlag'
