Last active
November 27, 2020 23:01
-
-
Save iamnotstatic/b8fd68e4744ec5677e3a133dbade2cf4 to your computer and use it in GitHub Desktop.
This file contains 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'); | |
// Be sure to replace YOUR_BOT_TOKEN with your actual bot token on this line. | |
const bot = new TelegramBot("YOUR_BOT_TOKEN", { polling: true }); | |
bot.on("text", (message) => { | |
bot.sendMessage(message.chat.id, "Hey there"); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment