Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kanewi11 committed Dec 4, 2022
1 parent d99ea45 commit 953a441
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
18 changes: 11 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,15 @@ _This script sends reactions to a new post or message in selected open groups an
4. `source venv/bin/activate`
5. `pip install -r requirements.txt`
6. Add your channel name to `config.py`
7. `mkdir sessions`
8. **Sessions must be for [pyrogram](https://github.com/pyrogram/pyrogram)!**
7. **IF YOU PLAN TO USE THE TDATA CONVERTER** go to the file `converters/tdata_to_telethon.py` and insert your `API_HASH` and `API_ID` (lines 19 and 20)
8. `mkdir sessions`
9. **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:
**These two files must have the same name!** Here is an example:

```
```
your_dir
└───reactionbot.py
Expand All @@ -49,8 +50,8 @@ _This script sends reactions to a new post or message in selected open groups an
│ └───your_tdata
│ │ │ ...
...
```
9. `nohup python reactionbot.py &`
```
10. `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` :
Expand Down Expand Up @@ -89,3 +90,6 @@ You can add more parameters that [pyrogram](https://github.com/pyrogram/pyrogram
...
}
```

## TODO:
- code refactoring 🫣
5 changes: 3 additions & 2 deletions converters/tdata_to_telethon.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@

from .telethon_to_pyrogram import SessionConvertor

API_HASH = 'f2417bb89325164867e779bf8dbb34f8'
API_ID = 29702912

API_HASH = 'api_hash'
API_ID = 123456789

DC_TABLE = {
1: ('149.154.175.50', 443),
Expand Down

0 comments on commit 953a441

Please sign in to comment.