Skip to content

Updates a Telegram group chat with Tweets from given Twitter Accounts in real time

License

Notifications You must be signed in to change notification settings

5l1v3r1/feh_bot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  1. Visiting https://apps.twitter.com/ and logging in
  2. Clicking "Create App"
  3. Filling out the form and agreeing to the Terms and Conditions
  4. Click on “Keys and Access Tokens”. The Consumer Key and Secret are found here
  5. 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

  1. Add @feh_bot

  2. Run the /start command

  3. 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

python-telegram-bot

tweepy

License

This project is licensed under the MIT License - see the LICENSE.txt file for details

About

Updates a Telegram group chat with Tweets from given Twitter Accounts in real time

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%