Skip to content

Pnlvfx/telegramapis

Repository files navigation

Node.js Telegram Bot API

A lightweight Node.js package for interacting with the official Telegram Bot API, created to address deprecated packages, bugs, and enhance usability.

Bot API npm package Build Status Coverage Status

https://telegram.me/yourtelegramchannel https://t.me/yourtelegramgroup https://telegram.me/YourName

📦 Install

npm install telegramapis

🚀 Why Use Telegram APIs

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.

🚀 Usage

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);

License

The MIT License (MIT)

Copyright © 2023 Simone Gauli

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published