Last active
November 15, 2020 17:56
-
-
Save anttti/96a451442708a572522cfbc7fe581e19 to your computer and use it in GitHub Desktop.
looby-bot-1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const TelegramBot = require('node-telegram-bot-api'); | |
const token = 'token-goes-here'; | |
const bot = new TelegramBot(token, { polling: true }); | |
bot.onText(/\/hai/, (message) => { | |
bot.sendMessage(message.chat.id, 'hello looby'); | |
}); | |
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
Ezfn.dev