Skip to content

lucaoflaif/fullstack-broadcast-bot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fullstack-broadcast-bot

A Telegram companion bot for https://t.me/fullstackbroadcast

Features

  • Forwards every channel post to a group.
  • Receive messages from users and send 'em to a group.
  • Delete duplicated links posted on the channel.

Installation

Clone this repository:

git clone https://github.com/domcorvasce/fullstack-broadcast-bot

Then install project dependencies using your favourite Node package manager:

cd fullstack-broadcast-bot
npm i

Configuration

The bot requires a set of environment variable to configure itself.

Copy .env.example to .env and fill it with the necessary information.

The WELCOME_MESSAGE environment variable must contain the %s placeholder that'll be replaced with the new user's name. Otherwise, the name will be appended at the end of the message.

Getting Started

Once you've filled the .env file, you're ready to start the bot.

By default, the bot will use long polling instead of webhooks so you don't need any other configuration:

node index.js

Authors

License

This repository is licensed under GNU/GPL v3.

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%