ttgram

2.0.1 • Public • Published

TTgram

NPM

Integration with Twitter <-> Telegram

Installation

  1. Clone repo :)

  2. Get twitter token in https://apps.twitter.com/app

  3. Get Telegram token in https://t.me/BotFather

  4. Set environment variables

telegram_token = 'ABCD:0123456789'
admin_id = '0123456789'
cron_job = '60 * * * * *'
DEBUG = 'TTgram:bot, TTgram:error'
  1. Install dependencies
$ yarn install
  1. Run the TTgram
$ npm start
  1. Send /add

  2. Set tokens

  3. Done :)

Dependencies

  • cron: Cron jobs for your node
  • debug: small debugging utility
  • env-cmd: Executes a command using the envs in the provided env file
  • graceful-fs: A drop-in replacement for fs, making various improvements.
  • jsonfile: Easily read/write JSON files.
  • telegraf: 📡 Modern Telegram bot framework
  • twitter: Twitter API client library for node.js

License

MIT

Package Sidebar

Install

npm i ttgram

Weekly Downloads

6

Version

2.0.1

License

MIT

Unpacked Size

27.3 kB

Total Files

9

Last publish

Collaborators

  • tiagodanin