Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/evmv/evmvtelegrambundle
Bundle for creating telegram bots
https://github.com/evmv/evmvtelegrambundle
bot bundle flexible php symfony telegram telegram-bot
Last synced: 9 days ago
JSON representation
Bundle for creating telegram bots
- Host: GitHub
- URL: https://github.com/evmv/evmvtelegrambundle
- Owner: EvMV
- License: mit
- Created: 2023-01-21T15:27:20.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-10-02T17:59:52.000Z (about 1 year ago)
- Last Synced: 2024-10-27T09:50:29.543Z (11 days ago)
- Topics: bot, bundle, flexible, php, symfony, telegram, telegram-bot
- Language: PHP
- Homepage:
- Size: 33.2 KB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
## About
The bundle uses annotations, which allows you to create
flexible telegram bot systems.## Install
Require the bundle and its dependencies with composer:
```bash
$ composer require evmv/telegram-bundle
```Register the bundle:
```php
// config/bundles.php
return [
Evmv\TelegramBot\TelegramBundle::class => ['all' => true]
];
```Add your bot key to .env:
```dotenv
BOT_KEY=your_telegram_bot_key
```And add route to config/routes.yaml:
```yaml
telegram:
path: /handle
controller: Evmv\TelegramBot\Controller\Handle::__invoke
```## Usage ##
- [COMMAND](docs/COMMAND.md)
- [KEYBOARD](docs/KEYBOARD.md)
- [TEXT](docs/TEXT.md)
- [MIDDLEWARE](docs/MIDDLEWARE.md)
- [EVENT](docs/EVENT.md)### 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.