Install
Install the package and boot the Kernel in your entry point.
composer require aicrion/tandroidA framework for building Telegram bots with an Android-inspired architecture: Activities, Intents, ViewModels, lifecycles, and a navigation back stack — plus Doctrine, cache/Redis, plugin, and automatic migration support.
Install the package and boot the Kernel in your entry point.
composer require aicrion/tandroidA fluent facade for every Bot API method.
Telegram::message()
->to($chatId)
->text('Hello from Aicrion')
->send();Boots the Container, discovers plugins, runs automatic migrations, connects Telegram, and routes Updates.
A screen-like unit of interaction, with onCreate/onResume/onPause and NavigationRequest chaining.
Holds structured state across multiple Activities, persisted in the StateStore (cache).
| Area | Sample methods | Use case |
|---|---|---|
| Messaging | message, edit, message_ (forward/copy) | Core conversation flow |
| Media | photo, video, document, mediaGroup | Sending rich content |
| Administration | chat, inviteLinks, forum | Group/channel management |
| Payments | invoice, preCheckout, starTransactions | Selling digital goods |
| Inline | inline, webApp, guestQuery | Cross-chat interactions |
The complete, exact table is in the full Telegram API reference.
A linear multi-step form with validation and state recovery.
Multiple pages with explicit Previous/Next buttons.
Tables, quotes, code blocks, maps, and slideshows.
A multi-select checkbox group, stateless between taps.
Full details in Views and Widgets.
Unit tests cover Intent, Translator, ViewModel, and ActivityManager's navigation chain, plus an overall project health smoke test.
vendor/bin/phpunitFull testing guide in Testing.
A step-by-step guide for deploying to shared hosting (no CLI) and VPS/Docker is in Deployment.