Skip to content

pasynkov/tg_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Async-oriented Telegram Bot

Bot has simplify interface for fast creating telegram bots. Events, expect and other.

Installation

npm install tg_bot

Integration

var TelegramBot = require('tg_bot');
var bot = new TelegramBot('YOUR_TELEGRAM_BOT_TOKEN');

bot.on('*',function(message, chat){ //In all events callback receive objects [Message](#Message) and [Chat](#Chat)
    // your logic here ...
    
    chat.sendMessage("Hello!",function(error){
        console.error(error);
    });
    
})

#API

Telegram Bot builded on node-telegram-bot-api

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published