0.0.6 • Published 9 years ago

tg_bot v0.0.6

Weekly downloads
2
License
GNU
Repository
github
Last release
9 years ago

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

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago