Skip to content

Commit

Permalink
fix: properly formatted output and updated readme file
Browse files Browse the repository at this point in the history
  • Loading branch information
en9inerd committed Nov 20, 2023
1 parent b507670 commit 00f1e8c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -11,7 +11,7 @@ pip install tgeraser
tgeraser
```

To use TgEraser, you'll need to provide your API credentials, which you can obtain from [here](https://my.telegram.org/auth?to=apps).
To use TgEraser, you'll need to provide `api_id` and `api_hash`, which you can obtain from [here](https://my.telegram.org/auth?to=apps).

There are two methods to define `api_id` and `api_hash`:
1. Set them as environment variables (`TG_API_ID` and `TG_API_HASH`).
Expand All @@ -20,7 +20,7 @@ There are two methods to define `api_id` and `api_hash`:
## Usage

```
Tool deletes all your messages from chat/channel/conversation on Telegram.
TgEraser deletes all your messages from a chat, channel, or conversation on Telegram without requiring admin privileges.
Usage:
tgeraser [(session <session_name>) --entity-type TYPE -l NUM [-d PATH] -p PEER_ID] | [-k]
Expand All @@ -42,7 +42,7 @@ Options:
--version Show version.
```

Executing the tool without options will guide you through the creation of your first user session. You can create sessions for multiple users using the `tgeraser session <new_session_name>` command.
Executing the tool without options will guide you through the creation of your first user session. After that you can create sessions for multiple users using the `tgeraser session <new_session_name>` command.

## Contributing

Expand Down
2 changes: 1 addition & 1 deletion tgeraser/utils.py
Expand Up @@ -98,7 +98,7 @@ async def choose_session(directory: str) -> str:
for i, session in enumerate(sessions):
print(f"{i + 1}. {session}")
session_number = cast_to_int(
await async_input("Enter session number: "), "session number"
await async_input("\nEnter session number: "), "session number"
)
return sessions[session_number - 1]
else:
Expand Down

0 comments on commit 00f1e8c

Please sign in to comment.