Giter VIP home page Giter VIP logo

feh_bot's Introduction

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

feh_bot's People

Contributors

realrichardparker avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.