A lightweight Node.js package for interacting with the official Telegram Bot API, created to address deprecated packages, bugs, and enhance usability.
npm install telegramapis
The Telegram APIs package was developed to address the shortcomings of the original Telegram Bot API, which often included deprecated packages and bugs. We designed this package to provide a reliable and streamlined solution. Key features include:
Simplicity: A lightweight package with minimal dependencies.
Robustness: Avoids deprecated packages and known issues.
TypeScript Support: Includes TypeScript typings for enhanced development.
import telegramapis from "telegramapis";
// replace the value below with the Telegram token you receive from @BotFather
const token = "YOUR_TELEGRAM_BOT_TOKEN";
const bot = telegramapis(token);
const chatId = 092; // The chat id
const resp = "Hello, you're great";
// send back the matched "whatever" to the chat
bot.sendMessage(chatId, resp);
The MIT License (MIT)
Copyright © 2023 Simone Gauli