httd1/printmethods

Json response to Telegram Webhook

v1.0.0 2025-09-14 16:44 UTC

This package is auto-updated.

Last update: 2025-09-14 16:47:49 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!"
}