$response = [];
foreach($getrrrecord->data=>$record) {
array_push($response, [
'id' => $record->id,
'owner' => $record->owner,
....
])
}
echo json_encode($response);
composer require irazasyed/telegram-bot-sdk ^2.0
<?php
require __DIR__.'/vendor/autoload.php';
use Telegram\Bot\Api;
$telegram = new Api('BOT TOKEN');
$response = $telegram->setWebhook(['url' => 'https://example.com/<token>/webhook']);