aduchimergen / tgarc Goto Github PK
View Code? Open in Web Editor NEWA command line tool for archiving Telegram JSON
License: Creative Commons Zero v1.0 Universal
A command line tool for archiving Telegram JSON
License: Creative Commons Zero v1.0 Universal
При запуске команды
tgarc save --format json -o rosnano rosnanoinfo
Среда: Windows 10, Python 3.8.10
Возвращает ошибку
Traceback (most recent call last):
File "C:\Python38\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Python38\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Python38\Scripts\tgarc.exe\__main__.py", line 7, in <module>
File "C:\Python38\lib\site-packages\click\core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "C:\Python38\lib\site-packages\click\core.py", line 782, in main
rv = self.invoke(ctx)
File "C:\Python38\lib\site-packages\click\core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "C:\Python38\lib\site-packages\click\core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "C:\Python38\lib\site-packages\click\core.py", line 610, in invoke
return callback(*args, **kwargs)
File "C:\Python38\lib\site-packages\main.py", line 128, in save
new_offset_id = save_chat(app, chat, kwargs, offset_id)
File "C:\Python38\lib\site-packages\main.py", line 181, in save_chat
f.write(json.dumps(message, default=Object.default, ensure_ascii=False))
File "C:\Python38\lib\encodings\cp1251.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\U0001f449' in position 1129: character maps to <undefined>
$ ./main.py configure
TgCrypto is missing! Pyrogram will work the same, but at a much slower speed. More info: https://docs.pyrogram.org/topics/speedups
Api id: 611335
Api hash: d524b414d21f4d37f08684c1df41ac9c
Traceback (most recent call last):
File "/home/test/tgarc/./main.py", line 223, in <module>
cli()
File "/usr/lib/python3.10/site-packages/click/core.py", line 1130, in __call__
return self.main(*args, **kwargs)
File "/usr/lib/python3.10/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/usr/lib/python3.10/site-packages/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3.10/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/home/test/tgarc/./main.py", line 55, in configure
with get_pyrogram_client() as app:
File "/home/test/tgarc/./main.py", line 38, in get_pyrogram_client
return Client("tgarc", workdir=str(get_work_dir()), config_file=str(get_config_path()))
TypeError: Client.__init__() got an unexpected keyword argument 'config_file'
Used command
tgarc save --format json --no-video --pictures --files -o gov2021 government_rus
All messages downloaded but no one picture, instead got error -503 Timeout "Telegram is having internal problems. Please try again later".
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.