Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: 'Message' object is not subscriptable #14

Open
rajil opened this issue Jan 14, 2023 · 1 comment
Open

TypeError: 'Message' object is not subscriptable #14

rajil opened this issue Jan 14, 2023 · 1 comment

Comments

@rajil
Copy link

rajil commented Jan 14, 2023

$ python3 tgmount.py --download /tmp/files/ --id blahblah --files 17525,17526
INFO    [root]  Download files [17525, 17526] from blahblah to /tmp/files/
Traceback (most recent call last):
  File "tgmount.py", line 168, in <module>
    loop.run_until_complete(main())
  File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
    return future.result()
  File "tgmount.py", line 81, in main
    await download(await client(),
  File "/home/media/tgmount/tgmount/tgmount/actions.py", line 156, in download
    ([d['attributes']['file_name'] for m, d in documents],))
  File "/home/media/tgmount/tgmount/tgmount/actions.py", line 156, in <listcomp>
    ([d['attributes']['file_name'] for m, d in documents],))
TypeError: 'Message' object is not subscriptable
@nktknshn
Copy link
Owner

nktknshn commented Feb 2, 2023

Try new version of tgmount https://github.com/nktknshn/tgmount-ng

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants