Giter Club home page Giter Club logo

thangar's Introduction

https://ipfs.io/ipfs/QmeByEj99cRBRHZnNMGov98DXctf4cUMfX4ywsPD1QYpWY

thangar

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!

thangar's People

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.