troia-account / telegram-bot
PHP Telegram bot
dev-master
2024-08-03 08:47 UTC
Requires
- php: ^8.1
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- ext-pdo: *
This package is auto-updated.
Last update: 2025-05-31 00:23:34 UTC
README
A PHP package to easily integrate Telegram Bot functionalities into your project.
Installation
Install the package via Composer:
composer require troia-account/telegram-bot
Ensure your PHP version is 8.0 or higher.
Usage
Initialize the Bot with your Telegram Bot token:
<?php require 'vendor/autoload.php'; use TroiaAccount\TelegramBot\Bot; $bot = new Bot('your-telegram-bot-token');
Features
- Easy setup and integration
- Send and receive messages
- Handle different types of Telegram updates
- Extendable for custom commands and functionalities
Requirements
- PHP 8.0 or higher
- Composer
Getting Started
- Create a new bot: Talk to BotFather to create a new bot and get the API token.
- Install the package: Use Composer to install the package as shown above.
- Initialize the bot: Use the provided example to initialize the bot with your token.
Contributing
Contributions are welcome! Please fork the repository and submit a pull request with your changes. Make sure to follow the coding standards and write tests for your new features.
Contact
For any questions or support, please open an issue on GitHub.
Thank you for using Troia Account Telegram Bot! We hope it makes your development experience with Telegram Bots easier and more enjoyable.