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 8e486b7 commit c4f92fd
Showing 1 changed file with 28 additions and 14 deletions.
42 changes: 28 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Bot for posting reactions to a Telegram post.
**Bot puts reactions only to new posts!**
## Bot for posting reactions to a Telegram post.

<p align="center">
<img width="50" src="https://telegram.org/img/website_icon.svg?4" alt="Telegram">
&nbsp;&nbsp;&nbsp;&nbsp;
<a href="https://github.com/pyrogram/pyrogram" target="_blank">
<img width="35" src="https://camo.githubusercontent.com/23bd8586f8d0549172b03886618d5337c7c3f655220d81d35ce837b62639419d/68747470733a2f2f646f63732e7079726f6772616d2e6f72672f5f7374617469632f7079726f6772616d2e706e67" alt="Pyrogram">
</a>
</p>

**This script sends reactions to a new post or message in selected open groups and channels, as well as automatically subscribes to them.**

## Launch Instructions:
1. Create an empty directory
Expand All @@ -9,21 +18,26 @@
5. `pip install -r requirements.txt`
6. Add your channel name to `config.py`
7. `mkdir sessions`
8. **Sessions must be for Pyrogram!** Add the session file and its configuration file to the `/sessions` directory. **These two files must have the same name!** Here is an example:
```
/sessions
│ 8888888888.ini
│ 8888888888.session
│ 9999999999.ini
│ 9999999999.session
│ 98767242365.json
│ 98767242365.session
```
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_ ).

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

```
/sessions
│ 8888888888.ini
│ 8888888888.session
│ 9999999999.ini
│ 9999999999.session
│ 98767242365.json
│ 98767242365.session
```
9. `nohup python reactionbot.py &`
## Sample configuration file *.ini
You can add more parameters that Pyrogram supports.
You can add more parameters that [pyrogram](https://github.com/pyrogram/pyrogram) supports.
```
[pyrogram]
api_id = you_api_id
Expand All @@ -36,7 +50,7 @@ system_version = 'Android'
```
## Sample configuration file *.json
You can add more parameters that Pyrogram supports.
You can add more parameters that [pyrogram](https://github.com/pyrogram/pyrogram) supports.
```
{
"api_id": "you_api_id",
Expand Down

0 comments on commit c4f92fd

Please sign in to comment.