feh_bot
feh_bot is a bot that forwards tweets in real-time to Telegram group chats or individuals.
Currently, my instance of the bot is nonoperational due to bugs.
Getting Started
Prerequisites
Python 3.6 is required for this project, found here
Install the python packages python-telegram-bot and tweepy
pip install python-telegram-bot --upgrade
pip install tweepy --upgrade
Installing
Clone this repository
git clone https://github.com/RealRichardParker/feh_bot.git
Run the script generate_config.py
python3 generate_config.py
A file called config.cfg will be created, open it and replace all the 0 with the Twitter and Telegram API keys.
Twitter keys can be obtained by
- Visiting https://apps.twitter.com/ and logging in
- Clicking "Create App"
- Filling out the form and agreeing to the Terms and Conditions
- Click on “Keys and Access Tokens”. The Consumer Key and Secret are found here
- Click on "Create my access token". The Access Token and Secret will be generated for you
Telegram API key can be obtained from the @Botfather
Usage
Starting the bot
-
Add @feh_bot
-
Run the /start command
-
Start following Twitter accounts
Commands
Command | Description | Usage |
---|---|---|
/start | Starts the bot in the current chat | /start |
/follow | Follows the given Twitter account if it exists and forwards any tweets in realtime | /follow <username> |
/list_followed | Lists any Twitter Accounts that this chat is following | /list_followed |
/help | Displays a help message | /help |
Releases
Changelog can be found here
Built With
License
This project is licensed under the MIT License - see the LICENSE.txt file for details