telegram bot in multiple files code example
Example 1: telegram bot in multiple files
var bot = new TelegramBot(token, { polling: true });
includeHere('./CommandGroup1.js')
includeHere('./TestGroup.js')
Example 2: telegram bot in multiple files
bot.onText(/\/test1/,function(msg){...})
bot.onText(/\/AnotherTest/,function(msg){...})
Example 3: telegram bot in multiple files
bot.onText(/\/start/,function(msg){...})
bot.onText(/\/echo/,function(msg){...})