Skip to content

csprl/telegram-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

telegram-bot

Running the bot

  • Install dependencies with npm install
  • Rename config.json.dist to config.json and fill in your settings
  • Run the bot with node bot.js

Writing modules

Each module should have its dedicated folder inside the modules directory, and have an index.js file. This file can export the following:

  • newMessage - This is called when a message is observed by the bot
  • newCommand - This is called when a command was parsed See the example module for more information.

About

Modular Telegram bot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published