Download the PHP package tueen/telegram without Composer
On this page you can find all versions of the php package tueen/telegram. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tueen/telegram
More information about tueen/telegram
Files in tueen/telegram
Package telegram
Short Description The Royal Telegram Bot SDK for Modern PHP โ declarative, stateful, and resilient.
License MIT
Informations about the package telegram
Tueen Telegram ๐
The Royal Telegram Bot SDK for Modern PHP
Part of the Tueen ecosystem โ "The Queen of Telegram"
tueen/telegram is a high-performance, strictly-typed Telegram Bot SDK crafted for modern PHP (8.4+). Built with zero legacy overhead, it pairs complete Bot API coverage with declarative attribute routing, stateful conversation flows, an embedded real-time web dashboard, reusable connection pooling, and royal developer ergonomics.
โก Highlights
- ๐ Zero-Config App & Web Dashboard: Instant boot with
App::run(), CLI toolkit, and a live web UI for webhook inspection and bot health. - ๐ Complete Coverage: All Telegram Bot API 10.3 methods and types with 100% strict typing.
- ๐ Modern PHP Architecture: Property hooks, asymmetric visibility (
private(set)), pipe operator support, and typed enums. - ๐งญ Expressive Routing & Groups: Declarative routing with
#[OnCommand],group(), route-level middlewares, parameter regex constraints (where), and automatic dependency injection. - ๐ฌ Conversation Flows: Stateful multi-step user dialogues (
to(),stay(),back(),finish()) with pluggable state stores. - ๐ Adaptive Running Modes: Seamlessly switch between
WebhookMode(with secret token &safeResponse),PollingMode, andAutoMode. - โจ๏ธ Fluent Keyboards & Formatting: Intuitive Inline/Reply keyboard builders with direct JSON serialization and Telegram-compliant HTML/MarkdownV2 builders.
- ๐ Resilient Pipeline & Connection Pooling: Persistent TCP/TLS cURL handle pooling, token-bucket 429 rate limiting, automatic retries, and PSR-3 logging.
- ๐ฏ Thread-Safe Scoped Execution: Isolate concurrent requests in persistent worker engines (
FrankenPHP,RoadRunner,Swoole,Laravel Octane) via$bot->scoped($update). - ๐ก๏ธ Dual Error Modes & ok(): Universal
ok()checks across all models. Choose between standard exceptions or typedErrorobjects. - ๐งช In-Memory Testing: Test bots with zero HTTP calls using
TelegramFake, stub responses, and expressive assertions (assertSent,assertReplyText).
๐ฆ Requirements & Installation
- PHP 8.4+ (with full PHP 8.5+ support)
- Composer 2.x
๐ Quickstart
1. Simple Polling Bot
2. Zero-Config App with Web Dashboard & Webhooks
๐ Documentation
All detailed guides, real-world examples, configuration options, and running modes are available in our official documentation:
๐ Explore Full Documentation
To run the interactive docs locally:
๐ License
Licensed under the MIT License.
All versions of telegram with dependencies
guzzlehttp/guzzle Version ^7.8
psr/http-client Version ^1.0
psr/http-factory Version ^1.0
psr/http-message Version ^1.0 || ^2.0
psr/log Version ^3.0
psr/event-dispatcher Version ^1.0