telegram-api-package
v1.0.1
Published
A Node.js wrapper for interact with telegram bot
Downloads
303
Readme
Telegram API Package for Node.js
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.