Skip to content
This repository has been archived by the owner on Oct 23, 2019. It is now read-only.

Error running "python3 -m telegram_export" #119

Open
njscorpion opened this issue Jul 20, 2019 · 0 comments
Open

Error running "python3 -m telegram_export" #119

njscorpion opened this issue Jul 20, 2019 · 0 comments

Comments

@njscorpion
Copy link

njscorpion commented Jul 20, 2019

Hi,

I installed clone version of git, using Linux Mint 19 Tara, Kernel: Linux 4.15.0-54-generic. on running python3 -m telegram_export i am presented with the following error :

Traceback (most recent call last):
  File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/**removed**/.local/lib/python3.6/site-packages/telegram_export/__main__.py", line 316, in <module>
    ret = loop.run_until_complete(main(loop)) or 0
  File "/usr/lib/python3.6/asyncio/base_events.py", line 484, in run_until_complete
    return future.result()
  File "/home/**removed**/.local/lib/python3.6/site-packages/telegram_export/__main__.py", line 294, in main
    exporter = Exporter(client, config, dumper, loop)
  File "/home/**removed**/.local/lib/python3.6/site-packages/telegram_export/exporter.py", line 54, in __init__
    self.downloader = Downloader(client, config['Dumper'], dumper, loop)
  File "/home/**removed**/.local/lib/python3.6/site-packages/telegram_export/downloader.py", line 52, in __init__
    assert all(x in VALID_TYPES for x in self.types)
AssertionError

The following is my config :

[TelegramAPI]
ApiId = 123456
ApiHash = 00000000000000000000000000000000
PhoneNumber = +000000000000
SessionName = exporter
[Dumper]
OutputDirectory = /home/**removed**/Downloads/*****_10am
Whitelist = -1234567891234 
MediaWhitelist = "photo", "document", "video", "audio", "sticker", "voice", "chatphoto"
MaxSize = 3000MB
LogLevel = INFO
DBFileName = export
MediaFilenameFmt = usermedia/{name}-{context_id}/{type}-{filename}
InvalidationTime = 7200
LibraryLogLevel = WARNING

By the way "python3 -m telegram_export --list-dialogs" works fine.
Please assist!

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

No branches or pull requests

1 participant