evmv / telegram-bundle
A bundle for telegram bot
Installs: 32
Dependents: 0
Suggesters: 0
Security: 0
Stars: 7
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=8.1.0
- ext-ctype: *
- ext-dom: *
- ext-libxml: *
- symfony/framework-bundle: 6.2.*
- telegram-bot-api/for-bundle: v1.0
This package is auto-updated.
Last update: 2025-04-29 01:38:43 UTC
README
The bundle uses annotations, which allows you to create flexible telegram bot systems.
Install
Require the bundle and its dependencies with composer:
$ composer require evmv/telegram-bundle
Register the bundle:
// config/bundles.php return [ Evmv\TelegramBot\TelegramBundle::class => ['all' => true] ];
Add your bot key to .env:
BOT_KEY=your_telegram_bot_key
And add route to config/routes.yaml:
telegram: path: /handle controller: Evmv\TelegramBot\Controller\Handle::__invoke
Usage
How To Contribute
To contribute just open a Pull Request with your new code taking into account that if you add new features or modify existing ones you have to document in this README what they do. If you break BC then you have to document it as well.