Reverse engineered prompt

GitHub

Build me a Laravel package that makes it easy to use a Telegram Mini App inside a Laravel project.

I want it to verify the data coming from Telegram the right way, using the official Mini App rules, so requests can be trusted and I can easily get the Telegram user info from that request data. It should have a simple config I can publish with things like an on or off switch for validation, my bot token, a custom error status and message when validation fails, the Telegram script location, and an optional lifetime check for the auth date.

Please also include a ready to extend Blade layout for the Mini App frontend that automatically loads the Telegram Web App script when enabled. On top of that, I want a clean way to call Telegram Bot API methods from Laravel, both through a facade style option and an injectable service, so things like bot info or sending messages are straightforward.

Add tests and basic package setup so it feels production ready. You can check the latest Telegram Mini App docs online if needed.

Have a live product UI? Try website reverse