moonshine / telegram-mini-app
MoonShine Telegram MiniApp integration
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 0
Forks: 1
Open Issues: 0
pkg:composer/moonshine/telegram-mini-app
Requires
- php: ^8.2
- ext-curl: *
- ext-json: *
Conflicts
- laravel/framework: <10.48.0
- moonshine/moonshine: <3.0
This package is auto-updated.
Last update: 2025-11-14 18:37:58 UTC
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"
TELEGRAM_BOT_TOKEN=<TOKEN_HERE>
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