Git Product home page Git Product logo

telegram-channel-twitter-bot's Introduction

Post New Tweets By A User to A Telegram Channel

What it does

  • Fetches tweets every X minutes from the specified twitter user.
  • Posts them to a Telegram Channel.

Why

To make it easier for twitter accounts to have their own Telegram channel without writing a lot of code. Most of the config is in config.js.

Uses

  • Node.js
  • npm:twitter
  • npm:telegraf (Planning to extend on it, but it could have been done with the native Telegram wrapper)

Required

  • Telegram Bot Token (Use @BotFather Telegram Bot to create one)
  • Twitter Consumer Token, Secret, Access Token & Secret.

Steps

  • Get the required Credentials and populate config.js (Use ENV vars if you want to, but through the config file)
  • Create a Telegram Channel
  • Add the bot you created in the first step to the Telegram Channel as an Administrator. (Don't try to add as user and promote, doesn't work that way)
  • Set up a cron job to run cron.js every X minutes (Will update this with heroku setup)

Why did you do it?

If someone tells you that to create a Telegram bot you have to use another bot with a name like @BotFather, you have to give it a try.

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.