moonshine/telegram-mini-app
最新稳定版本:0.2.1
Composer 安装命令:
composer require moonshine/telegram-mini-app
包简介
MoonShine Telegram MiniApp integration
README 文档
README
Telegram MiniApp integration for MoonShine
Requirements
- MoonShine 3+
- Laravel 10+
- PHP 8.2+
Installation
composer require moonshine/telegram-mini-app
php artisan vendor:publish --provider="MoonShine\TlgMiniApp\Providers\TlgMiniAppServiceProvider"
Configure your bot token in .env
TELEGRAM_BOT_TOKEN=<TOKEN_HERE>
To disable vertical swipe, add a parameter (default is false) to .env
DISABLE_VERTICAL_SWITCHES=<true or false>
Using the plugin requires the telegram_id field to be present in the table used to store users. If the default table (moonshine_users) is used, then simply running migrations is sufficient.
php artisan migrate
If you are using a non-standard table, you need to find the migration 2025_10_31_144332_add_telegram_id_to_moonshine_users.php and replace the name of the moonshine_users table with the one you are using.
Usage
Set MiniApp url
<YOUR_HOST>/<MOONSHINE_ROUTE_PREFIX>/telegram-startapp
统计信息
- 总下载量: 41
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-11-05