Skip to content

Instantly share code, notes, and snippets.

@hongthaiphi
Last active May 20, 2016
Embed
What would you like to do?
'use strict'
var tg = require('telegram-node-bot')('YOUR_TOKEN')
tg.router.
when(['ping'], 'PingController')
tg.controller('PingController', ($) => {
tg.for('ping', () => {
console.log($);
$.sendMessage('pong')
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment