Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tiagodanin/ttgram
Integration with Twitter <-> Telegram
https://github.com/tiagodanin/ttgram
nodejs telegram telegram-bot twitter
Last synced: 15 days ago
JSON representation
Integration with Twitter <-> Telegram
- Host: GitHub
- URL: https://github.com/tiagodanin/ttgram
- Owner: TiagoDanin
- License: mit
- Created: 2017-12-26T15:22:45.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-04-08T23:16:35.000Z (7 months ago)
- Last Synced: 2024-10-03T12:44:15.029Z (about 1 month ago)
- Topics: nodejs, telegram, telegram-bot, twitter
- Language: JavaScript
- Size: 166 KB
- Stars: 6
- Watchers: 3
- Forks: 3
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TTgram
[![NPM](https://nodei.co/npm/ttgram.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/ttgram/)
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 = '50 * * * * *'
DEBUG = 'TTgram:bot, TTgram:error'
```5. Install dependencies
```bash
$ yarn install
```6. Run the TTgram
```bash
$ npm start
```7. Send `/add`
8. Set tokens
9. Done :)
## Dependencies
- [cron](https://ghub.io/cron): Cron jobs for your node
- [debug](https://ghub.io/debug): small debugging utility
- [env-cmd](https://ghub.io/env-cmd): Executes a command using the envs in the provided env file
- [graceful-fs](https://ghub.io/graceful-fs): A drop-in replacement for fs, making various improvements.
- [jsonfile](https://ghub.io/jsonfile): Easily read/write JSON files.
- [telegraf](https://ghub.io/telegraf): 📡 Modern Telegram bot framework
- [twitter](https://ghub.io/twitter): Twitter API client library for node.js## License
MIT