This repository was archived by the owner on Aug 18, 2026. It is now read-only.
Conversation
…e keyboards to subdir; drop FormatHelper - Fix inheritance: 25 RichText subclasses now extend `RichText` instead of `Entity`, preventing PHP type coercion to string in `string|RichText|array` union hints - Add `type` field to `InputRichBlockTable` in `Table::build()` (was missing, causing Telegram "Can't find field 'type'" error) - Add `Factories/RichMessage.php` — fluent builder with `block()`, `html()`, `markdown()`, `rtl()`, `build()` methods - Add `Factories/Rich/Block.php` — factory for all 20 rich block types (paragraph, heading, table, photo, video, etc.) - Add `Factories/Rich/Table.php` — table builder with `header()`, `body()`, `footer()`, `bordered()`, `striped()`, `caption()` chain - Add `Text.php` — replaces `FormatHelper` with string helpers (`bold()`, `italic()`, etc.) and rich object methods (`richBold()`, `richItalic()`, etc.) - Move keyboard factories to `Factories/Keyboard/` (Inline, Reply, InlineButton, ReplyButton) with namespaced classes; update `Keyboard` facade - Delete `FormatHelper.php` and its test - Update constants in `InputRichBlock.php` and `RichBlock.php` to match Telegram API 7.0+: `heading`, `pre`, `blockquote`, `pullquote` - Add `tests/Unit/TextTest.php`; update `KeyboardTest.php` and docs
- Regenerate all entity subclasses via updated devkit so they extend their correct base type (RichText*, InputRichBlock*, RichBlock*, BackgroundType*, ChatMember*, MessageOrigin*, InlineQueryResult*, InputMedia*, etc.) instead of Entity directly - This prevents PHP type coercion in union hints (e.g. string|RichText|array was silently converting RichTextBold to its JSON string representation) - Bump version to 4.6.0
…atetime type, and document keyboards and rich message examples
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.