Skip to content

Instantly share code, notes, and snippets.

@iamnotstatic

iamnotstatic/app.js

Last active Nov 27, 2020
Embed
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(message.chat.id, "Hey there");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment