Skip to content

Instantly share code, notes, and snippets.

Last active Nov 27, 2020
What would you like to do?
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(, "Hey there");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment