An open API service indexing awesome lists of open source software.

https://github.com/httd1/printmethods

Json response to telegram webhook
https://github.com/httd1/printmethods

Last synced: 9 months ago
JSON representation

Json response to telegram webhook

Awesome Lists containing this project

README

          

# PrintMethods

You may use this package with ```httd1/TelegramPhp```

## Installation
```shell
composer require httd1/PrintMethods
```

## Example

```php
use PrintMethods\PrintMethods;

// Simulate sending a message
PrintMethods::sendMessage([
'chat_id' => 123456789,
'text' => 'Hello, world!'
]);
```

**Output:**
```json
{
"method": "sendMessage",
"chat_id": 123456789,
"text": "Hello, world!"
}
```