moonshine/telegram-mini-app

MoonShine Telegram MiniApp integration

Installs: 9

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 1

Forks: 1

Open Issues: 0

pkg:composer/moonshine/telegram-mini-app

0.2.1 2025-11-28 12:41 UTC

This package is auto-updated.

Last update: 2025-11-28 12:42:08 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"

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