telegram-api-package

1.0.1 • Public • Published

Telegram API Package for Node.js

npm version License

Node.js package for interacting with the Telegram Bot API. Easily send messages, photos, documents, and more using this library.

Installation

Install the package via npm:

npm install telegram-api-package

Usage

const TelegramBot = require('telegram-api-package');

// Initialize your bot with the token
const bot = new TelegramBot('YOUR_TELEGRAM_BOT_TOKEN');

// Example: Sending a message
bot.sendMessage('123456789', 'Hello from your Telegram bot!')
  .then(response => {
    console.log('Message sent:', response);
  })
  .catch(error => {
    console.error('Error sending message:', error);
  });

Features

  • Send text messages
  • Send photos
  • Send documents
  • Send locations
  • Edit message text
  • Delete messages

API Documentation

For detailed API documentation, refer to the Telegram Bot API Documentation.

Contributing

Contributions are welcome! Please read the Contributing Guidelines first.

License

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

Readme

Keywords

Package Sidebar

Install

npm i telegram-api-package

Weekly Downloads

51

Version

1.0.1

License

MIT

Unpacked Size

22.8 kB

Total Files

5

Last publish

Collaborators

  • rk_dev