yamstr-telegram-bot-api
v1.0.0
Published
Telegram Bot API Wrapper
Downloads
3
Readme
yamstr-telegram-bot-api
Telegram Bot API Wrapper
Installation
$ npm install yamstr-telegram-bot-api
Example
var Telegram = require('yamstr-telegram-bot-api');
var telegram = new Telegram({
token: '<token>'
});
telegram.request('sendMessage', {
chat_id: '<chat_id>',
text: '<text>'
}, function(error, response) {
if (error) {
console.error(error);
} else {
console.log(response);
}
});