Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Plugins

Plugins let you extend the bot with new functionality without touching source code of the bot.

Using plugins

To use a plugin, put it in this directory and add it's name to plugins array in config.js.

If plugins is undefined, no plugins are loaded. However, this behavior may change, don't rely on it. If you want no plugins to be loaded, explicitly set it to empty array.

Creating a plugin

Plugin is basically "requirable" (JS file, or directory with index.js) which exports a valid Telegraf handler (usually function or Composer instance).

Plugins are similar to micro-bot bots.

Known plugins

  • Captcha: Adds a simple captcha to the bot to kick spam bots on join.
  • Banfiles Ban users that send files with specified extentions.
  • Anti Arabic Bans users that send an Arabic/Persian message.
  • Anti X-POST Removes same messages sent by user across one or multiple groups.