UNPKG

telegram-bot-api-wrapper

Version:

A simple wrapper for the Telegram Bot API. Just provide your bot token and start using it.

25 lines (16 loc) 510 B
# Telegram Bot API A simple wrapper for the Telegram Bot API. Just provide your bot token and start using it. ## Installation ```bash npm install telegram-bot-api ``` ## usage ```javascript import { telegramBotAPI } from "telegram-bot-api"; const token = "YOUR_BOT_TOKEN"; const bot = new telegramBotAPI(token); // Send a message bot.sendMessage("chat_id", "Your message here"); // Send a keyboard bot.sendKeyboard("chat_id", "Choose an option:", ["Option 1", "Option 2"]); ```