Metadata-Version: 2.1
Name: tg-login
Version: 0.0.3
Summary: A command line tool to login into Telegram with user or bot accounts.
Home-page: https://github.com/aahnik/tg-login
License: MIT
Author: aahnik
Author-email: daw@aahnik.dev
Requires-Python: >=3.10,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Requires-Dist: Telethon (>=1.25.1,<2.0.0)
Requires-Dist: python-dotenv (>=0.21.0,<0.22.0)
Requires-Dist: typer (>=0.6.1,<0.7.0)
Project-URL: Repository, https://github.com/aahnik/tg-login
Description-Content-Type: text/markdown

# tg-login

A command line tool to login into Telegram with user or bot accounts and generate session string.

## Installation

```shell
pip install tg-login
```

## Usage

```shell
Usage: tg-login [OPTIONS]

  A command line tool to login into Telegram with user or bot accounts.

Options:
  --API_ID INTEGER  API ID obtained from my.telegram.org  [env var: API_ID;
                    required]

  --API_HASH TEXT   API HASH obtained from my.telegram.org  [env var:
                    API_HASH; required]

  -v, --version     Show version and exit.
  --help            Show this message and exit.
```

## Repl

You may run this `tg-login` online by using this repl.

[![run on repl](https://docs.replit.com/images/repls/run-on-replit.svg)](https://replit.com/@aahnik/tg-login)

Note:

- A python virtual environment is created before execution and deleted post execution.
- All sensitive user input is hidden.
- The session string is not printed on screen, but sent to user.

