0.0.11 • Published 9 months ago

node-tele-bot-api v0.0.11

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

A lightweight Node.js library for building Telegram bots. Easily manage messages, commands, and events with a simple and intuitive API.

Features

  • Simple API for creating and managing Telegram bots
  • Support for handling commands and events
  • Flexible and scalable architecture
  • Easy to integrate with existing Node.js applications
  • Supporting Only Common Type (CJS)

Installation

npm i node-tele-bot-api

🚀 Usage

Here’s a quick example of how to get started:

const { NodeTeleBotAPI } = require("node-tele-bot-api");

// replace the value below with the Telegram token you receive from @BotFather
const BOT_TOKEN = "YOUR_BOT_TOKEN";

const bot = new NodeTeleBotAPI(BOT_TOKEN);

bot.onCommand("start", function (message) {
  bot.telegram.sendMessage({
    chat_id: message.chat.id,
    text: `Hello! <b>I'm</b> a simple bot that responds to /start command with a greeting message.`,
  });
});

bot.startBot(() => {
  console.log("Bot Started");
});

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

License

The MIT License (MIT)

Copyright © 2019 Pr0fess0r-99 (Muhammed RT)

This project is licensed under the MIT License. See the LICENSE file for details.

0.0.11

9 months ago

0.0.10

9 months ago

0.0.9

9 months ago

0.0.8

9 months ago

0.0.7

9 months ago

0.0.6

10 months ago

0.0.5

10 months ago

0.0.4

10 months ago

0.0.3

10 months ago

0.0.2

10 months ago

0.0.1

10 months ago