Skip to main content

No project description provided

Project description

https://ipfs.io/ipfs/QmeByEj99cRBRHZnNMGov98DXctf4cUMfX4ywsPD1QYpWY

thangar

https://badge.fury.io/py/thangar.svg

Hangar of Telegram accounts.

Have you ever had more accounts than Telegram client allows to store at the same time? I have. So I build this little script which does:

  1. kind of “park” new accounts,

  2. store secret tokens in database,

  3. show last service message from Telegram to let you log in through normal client.

Try it out yourself!

Installation

python -m pip install thangar

Usage

export API_ID=...  # get from https://my.telegram.org/apps
export API_HASH=...  # ^^
thangar [OPTIONS] COMMAND [ARG]

Use “thangar --help” for more information:

Usage: thangar [OPTIONS] COMMAND [ARGS]...

  Hangar of Telegram accounts.

Options:
  --install-completion [bash|zsh|fish|powershell|pwsh]
                                  Install completion for the specified shell.
  --show-completion [bash|zsh|fish|powershell|pwsh]
                                  Show completion for the specified shell, to
                                  copy it or customize the installation.

  --help                          Show this message and exit.

Commands:
  export   Export data with secret tokens.
  import   Erase database and import exported before data.
  park     Add an account in database.
  repark   Update information about parked accounts.
  soar     Show last service messages of an account.
  track    Show a table with every parked account.
  unpark   Remove an account from database.
  version  Print version.

Example

% thangar track

                          Accounts
┏━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┓
┃ Id         ┃ Name           ┃ Phone       ┃ Username     ┃
┡━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━━━━━━━┩
│ 1234567890 │ Oskar Sharipov │ +7123456789 │ oskar        │
│ 1297676593 │ Oskar Again    │ +3456776543 │ oskar2       │
│ 1578935718 │ Bobby          │ +1212123421 │ FlamingoSays │
└────────────┴────────────────┴─────────────┴──────────────┘

% thangar export > my_dump.hjson

% thangar import < my_dump.hjson
Data is imported successfully.

Tip

Export environment variables in a ~/.zshenv or other shell file!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

thangar-0.1.3.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

thangar-0.1.3-py3-none-any.whl (13.4 kB view details)

Uploaded Python 3

File details

Details for the file thangar-0.1.3.tar.gz.

File metadata

  • Download URL: thangar-0.1.3.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.7.9

File hashes

Hashes for thangar-0.1.3.tar.gz
Algorithm Hash digest
SHA256 eda9f45be60f018af1b7e5ccc1f49e1d0962168b98eee7ae47e111f0d531acd5
MD5 8afc2f13da1e7efc5142471db2da9438
BLAKE2b-256 deb174c1e2ebae0804064a5f5478d4ce434512752495e3b0ef8e457af57f83d4

See more details on using hashes here.

File details

Details for the file thangar-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: thangar-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 13.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.7.9

File hashes

Hashes for thangar-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 12839d0fba0133155ca949e4a0d18e24c5e07dcd955ac6848f8452d411b33740
MD5 974b70e16ed25cce5b0461403a613722
BLAKE2b-256 eee21de5669191e533d2f759e02573decdc234b3bde60fce5ebb205e60c9559c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page