Giter Site home page Giter Site logo

tgarc's People

Contributors

aduchimergen avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

tgarc's Issues

'charmap' codec can't encode character '\U0001f449' i

При запуске команды
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>

TypeError: Client.__init__() got an unexpected keyword argument 'config_file'

$ ./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'

Pictures not downloaded with 503 error

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".

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.