httd1 / printmethods
Json response to Telegram Webhook
v1.0.0
2025-09-14 16:44 UTC
Requires
- php: >=7.0
Requires (Dev)
- phpunit/phpunit: ^9.5
This package is auto-updated.
Last update: 2026-02-14 17:48:26 UTC
README
You may use this package with httd1/TelegramPhp
Installation
composer require httd1/PrintMethods
Example
use PrintMethods\PrintMethods; // Simulate sending a message PrintMethods::sendMessage([ 'chat_id' => 123456789, 'text' => 'Hello, world!' ]);
Output:
{
"method": "sendMessage",
"chat_id": 123456789,
"text": "Hello, world!"
}