Skip to content

Commit

Permalink
edit README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
kanewi11 committed Oct 17, 2022
1 parent 85d8c3e commit 9a4034e
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
7. `mkdir sessions`
8. **Sessions must be for [pyrogram](https://github.com/pyrogram/pyrogram)!**

Add the session file and its configuration file to the /sessions directory ( _which we created in step 7_ ).
Add the session file and its configuration file to the `/sessions` directory ( _which we created in step 7_ ).

**These two files must have the same name!** Here is an example:

Expand All @@ -39,13 +39,27 @@
```
9. `nohup python reactionbot.py &`
## Create a session file manually.
Create a file `my_account.json` ( _the file name can be anything_ ) in the directory `/sessions` :
```
{
"api_id": "your_api_id",
"api_hash": "your_api_hash",
"phone_number": "your_phone_number"
}
```
After `$ python reactionbot.py`, in the console go through the account authorization steps and that's it, the session file will be created, you don't need to do this for the next times.
## Where do I get `api_id` and `api_hash`?
[🔗 Click me.](https://my.telegram.org/auth)
## Sample configuration file *.ini
You can add more parameters that [pyrogram](https://github.com/pyrogram/pyrogram) supports.
```
[pyrogram]
api_id = you_api_id
api_hash = you_api_hash
api_id = your_api_id
api_hash = your_api_hash

# optional parameters
app_version = '8.8.5'
Expand All @@ -57,8 +71,8 @@ system_version = 'Android'
You can add more parameters that [pyrogram](https://github.com/pyrogram/pyrogram) supports.
```
{
"api_id": "you_api_id",
"api_hash": "you_api_hash",
"api_id": "your_api_id",
"api_hash": "your_api_hash",
...
}
```
Expand Down

0 comments on commit 9a4034e

Please sign in to comment.