This is a NodeJS module helps programmers to create bots without dealing with Telegram API document Directly and will provide many useful features to write Better telegram bots Faster
An Instructor to implement this package on your code
NodeJS 8 or higher
run this code to install the package:
npm install telegram-bot-manager --save
You should require the package in your code and create an instance of the Bot class like this:
const Bot = require('telegram-bot-manager')
const bot = new Bot(<YOUR-TOKEN-AS-STRING>);
use this code to send a message with your bot It should paste in start function
bot.senMessage({
chat_id : 12345678 , //your target chat_id
text : "this a test bot"
})
.then((result) => {
console.log(result);
});
This project is licensed under the MIT License.
All of the telegram's bot developers.
We are glad to hear about your feedbacks, usages and problems to enhance the package. You can directly message the authors in Telegram Massenger or creating issue here.