{ "name": "tlgr", "version": "2.0.1", "summary": "tlgr: controls a whole Telegram account from the command line (chats, messages, bots, a daemon and webhooks) over Telethon (Python)", "category": "network", "license": "MIT", "homepage": "https://github.com/tlgrcli/tlgr", "source": { "url": "https://files.pythonhosted.org/packages/a2/f4/6ed31dbb3bf7a0fb6fdb62cad1e89c127c03856f2ae2e47170abaed81509/tlgr_cli-2.0.1-py3-none-any.whl", "sha256": "85553a28d98c89cbb8b28afc739cb8e64ce116f4b78e7a964f82c680fbe85421" }, "watch": { "kind": "pypi", "package": "tlgr-cli", "pin": "any" }, "vendor": "vendor.txt", "deps": [ "python", "py-pyaes" ], "env_packages": [], "static": false, "nss": true, "check": "bin/tlgr --version | has -x 'tlgr, version 2.0.1' && t=$(mktemp -d) && export HOME=$t XDG_CONFIG_HOME=$t/.config XDG_DATA_HOME=$t/.data && bin/tlgr --json --no-input account list < /dev/null | has '\"ok\": true, \"op\": \"account.list\", \"result\": \\[\\]' && bin/tlgr --json --no-input config path < /dev/null | has \"\\\"config\\\": \\\"$t/.tlgr/config.toml\\\"\" && LD_LIBRARY_PATH=$PWD/share/tlgr/lib share/tlgr/venv/bin/python3 -c 'import aiohttp, frozenlist, msgspec, multidict, pyaes, yaml, yarl; from telethon.crypto import AES; k = bytes(range(32)); iv = bytes(range(32, 64)); d = bytes(range(64)); assert AES.decrypt_ige(AES.encrypt_ige(d, k, iv), k, iv) == d; print(msgspec.json.decode(msgspec.json.encode({\"bvs\": [1, 2]})))' | has -x \"{'bvs': \\[1, 2\\]}\" && echo 'tlgr 2.0.1: its accounts listed (none) and its paths shown as JSON without signing in; the compiled modules imported, Telethon AES-IGE round-tripped, msgspec JSON round-tripped'" }