Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bestmatteo/Telegram-Bot
Telegram auto forwarder messages with Selenium
https://github.com/bestmatteo/Telegram-Bot
Last synced: about 1 month ago
JSON representation
Telegram auto forwarder messages with Selenium
- Host: GitHub
- URL: https://github.com/bestmatteo/Telegram-Bot
- Owner: bestmatteo
- License: bsd-3-clause
- Created: 2020-06-24T22:51:48.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-07-22T11:34:04.000Z (5 months ago)
- Last Synced: 2024-08-01T20:47:49.059Z (4 months ago)
- Language: Python
- Size: 8.91 MB
- Stars: 9
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome - bestmatteo/Telegram-Bot - Telegram auto forwarder messages with Selenium (Python)
README
Telegram-Bot
#### DISCLAMER: When I created this bot, I was 17 and learning code, JS files are meant to be JSON files. You may change it if you want, but the code works.
### A Selenium-way to forward messages automatically
## Get started
1. Install the requirements
```
pip install -r requirements.txt
```2. Setup your new account
```
python setup.py
```
Enter any key beside 0, chrome will open up and after that you must enter your telegram account.
After 30 seconds or more, you will be able to continue the process after entering your telegram account by pressing any key.3. Setup groups/channels and PMs
Enter any key beside 0 and type:
```
0 to exit
1 to setup group 1
2 to setup group 2
3...
4...
5 to setup group 5
9 to setup ALL the five groups
```
Enter the url of your group/channels or PM one by one (With https://)Chrome will open up and setup the group.
4. Find your chrome's profile path
Open webscraping.py with a text editor, go to line 92 and edit the path to your user's path.
Example:
```C:\\Users\\gusta\\AppData\\Local\\Google\\Chrome\\User Data\\Default```## Setup the group that will receive the messages
Open Telegram via cellphone app and Pin the group at the top of your conversation history (Must the the first one pinned).
## Start Forwarding
Enter:```python webscraping.py```
Now the bot will keep tracking your new messages.
The end