/tg-channels-publisher

Telegram messenger posts publisher

Primary LanguageJavaScript

Telegram Channels Publisher

Developer Cats Updated Badge

Creepy Cat

➕ See also

⭐️ Features

  • Posting by schedule
  • Security: Receives posts only from admins
  • Simple running: 100% configuration placed in one config

⚙️ Stack

  • Language: Node.JS 17.9.0
  • Telegram Client API library: Telegraf 3.39

Running

  1. Clone this repo:
git clone https://github.com/ExposedCat/tg-channels-publisher.git
  1. Go to project root:
cd tg-channels-publisher
  1. Rename example.env to .env and replace example data with with yours. API credentials should be registered here: Bot Father
  2. Run app:
node src/index.js

Or you can use PM2 to run in background:

pm2 start src/index.js --name=tgpublisher

Done.
You can stop PM2 process via

pm2 stop tgpublisher