seatplus / telegram-channel
实现了对Telegram的推送通知
0.1.1
2021-08-17 19:02 UTC
Requires
- php: ^8.0
- composer/composer: ^2.1
- illuminate/contracts: ^8.37
- laravel-notification-channels/telegram: ^0.5.1
- seatplus/notifications: ^0.1
- socialiteproviders/telegram: ^4.1.2
Requires (Dev)
- brianium/paratest: ^6.2
- nunomaduro/collision: ^5.3
- orchestra/testbench: ^6.15
- pestphp/pest: ^1.11
- pestphp/pest-plugin-laravel: ^1.1
- pestphp/pest-plugin-watch: 1.x-dev
- phpunit/phpunit: ^9.3
README
这里应该放置你的描述。限制在一段或两段话内。考虑添加一个小示例。
安装
您可以通过composer安装此包
composer require seatplus/telegram-channel
您可以使用以下命令运行迁移
php artisan migrate
配置
- 通过联系 @BotFather (在新窗口中打开) (https://core.telegram.org/bots#6-botfather) 创建一个机器人
- 使用
/setdomain设置您的网站域名(例如 http://yourdomain.tld) - 设置
.env变量
TELEGRAM_BOT_NAME= TELEGRAM_TOKEN= TELEGRAM_REDIRECT_URI=http://yourdomain.tld/auth/telegram/callback
确保将 yourdomain.tld 替换为您的实际域名。
测试
composer test
变更日志
请参阅 CHANGELOG 了解最近更改的更多信息。
贡献
请参阅 CONTRIBUTING 了解详细信息。
安全漏洞
请查阅 我们的安全策略 了解如何报告安全漏洞。
鸣谢
许可证
MIT许可证(MIT)。请参阅 许可证文件 了解更多信息。