tg-archive
tg-archive copied to clipboard
Error: duplicate column name: takeout_id
Hello, could someone please help me with his issue. Doing a fresh install but getting below error:
Thanks so much for your help and the great tool. Marcus
root@xxx# tg-archive --sync
2022-07-20 18:29:51,555: cryptg detected, it will be used for encryption
2022-07-20 18:29:51,952: starting Telegram sync (batch_size=2000, limit=100, wait=5, mode=standard)
Traceback (most recent call last):
File "/usr/local/bin/tg-archive", line 33, in
hm, this looks like a bug in the Telethon library, something to do with the takeout mode. Can you try setting use_takeout
to False
in the config file?
Doesn't change the result. - Same error.
Following your suggestion, I've reinstalled telethon itself from git.
Now, the error changes:
tg-archive --sync --config ./config.yaml
2022-07-21 07:46:42,395: cryptg detected, it will be used for encryption
Traceback (most recent call last):
File "/usr/local/bin/tg-archive", line 33, in
So, I'm digging deeper for the "sync" module. :-)
When you reinstalled, did you delete data.sqlite
and the session file too? If not, should delete both and retry with takeout disabled.