This bots forwards tweets from Twitter accounts to Telegram chats.
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