Skip to content

This bots forwards tweets from Twitter accounts to Telegram chats. Made by the Stakely.io team

License

Notifications You must be signed in to change notification settings

Stakely/twitter-to-telegram-bot

Repository files navigation

Twitter to Telegram bot

This bots forwards tweets from Twitter accounts to Telegram chats.


Installation

Node 12 or higher with NPM must be installed.

Rename the env.example file to .env and set the project variables.

Create a subscriptions.db SQLite database file with the following schema

CREATE TABLE "subscriptions" (
	"subscription_id"	INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT UNIQUE,
	"twitter_account"	TEXT NOT NULL,
	"telegram_chat"	NUMERIC NOT NULL,
	"last_check"	TEXT NOT NULL
)

Install dependencies

npm i

Run the Telegram bot

node telegram.js

Run the bot in the background using PM2

npm i -g pm2
pm2 start telegram.js --name TwitterToTelegramBot

About

This bots forwards tweets from Twitter accounts to Telegram chats. Made by the Stakely.io team

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published