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
- Host: GitHub
- URL: https://github.com/httd1/printmethods
- Owner: httd1
- Created: 2025-09-14T16:30:14.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2025-09-14T16:47:47.000Z (9 months ago)
- Last Synced: 2025-09-17T01:24:58.902Z (9 months ago)
- Language: PHP
- Size: 5.86 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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!"
}
```