-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
31 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Bot for posting reactions to a Telegram post. | ||
**Bot puts reactions only to new posts!** | ||
|
||
**Sessions must be for Pyrogram!** | ||
|
||
## Launch Instructions: | ||
1. `git clone https://github.com/kanewi11/telegram-reaction-bot.git` | ||
2. `python3 -m venv venv` | ||
3. `source venv/bin/activate` | ||
4. `pip install -r requirements.txt` | ||
5. Add your channel name to `config.py`. | ||
6. 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 | ||
``` | ||
7. `nohup python reactionbot.py &` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
channels = ['you_channel_name'] | ||
channels = ['werqrewqrqwr'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters