1.0.1 • Published 2 years ago

telegram-api-package v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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.

1.0.1

2 years ago

1.0.0

2 years ago