using-telegram-bot
Installation
SKILL.md
Telegram (Telegraf) Skill — Node.js
Short guide to build Telegram bots with telegraf (Node.js).
Overview
- Library: https://github.com/telegraf/telegraf
- Install:
npm install telegraf - Get a bot token from BotFather and store it in
BOT_TOKEN.
Minimal polling bot
// bot.js
const { Telegraf, Markup } = require('telegraf');
const bot = new Telegraf(process.env.BOT_TOKEN);
bot.start(ctx => ctx.reply('Welcome! I can help with commands.'));