Skip to content

Instantly share code, notes, and snippets.

@iamnotstatic
Last active November 27, 2020 23:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iamnotstatic/b8fd68e4744ec5677e3a133dbade2cf4 to your computer and use it in GitHub Desktop.
Save iamnotstatic/b8fd68e4744ec5677e3a133dbade2cf4 to your computer and use it in GitHub Desktop.
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