evmv / telegram-bundle
为Telegram机器人提供的扩展包
v1.1.2
2023-10-02 17:55 UTC
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: 2024-10-01 00:07:20 UTC
README
此扩展包使用注解,允许您创建灵活的Telegram机器人系统。
安装
使用composer安装此扩展包及其依赖项
$ composer require evmv/telegram-bundle
注册扩展包
// config/bundles.php return [ Evmv\TelegramBot\TelegramBundle::class => ['all' => true] ];
将您的机器人密钥添加到.env文件中
BOT_KEY=your_telegram_bot_key
并将路由添加到config/routes.yaml文件中
telegram: path: /handle controller: Evmv\TelegramBot\Controller\Handle::__invoke
使用方法
如何贡献
要贡献,只需提交一个带有您新代码的Pull Request。请注意,如果您添加了新功能或修改了现有功能,您必须在README中说明其功能。如果您破坏了BC,也必须进行记录。