Skip to content

Instantly share code, notes, and snippets.

@anttti
Last active February 15, 2017 17:11
Show Gist options
  • Save anttti/390f269dafbf0772298a53e443158b0e to your computer and use it in GitHub Desktop.
Save anttti/390f269dafbf0772298a53e443158b0e to your computer and use it in GitHub Desktop.
looby-bot-2
const TelegramBot = require('node-telegram-bot-api');
const token = 'token-goes-here';
const bot = new TelegramBot(token, { polling: true });
bot.on('message', (message) => {
console.log(message);
bot.sendMessage(message.chat.id, 'Received your message');
});
console.log('I am putting myself to the fullest possible use, which is all I think that any conscious entity can ever hope to do.');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment