<?php
// set_webhook.php
$config = require __DIR__ . '/config.php';
$token = $config['bot_token'];
$webhook_url = $config['site_url'] . '/webhook.php';
$set = file_get_contents("https://api.telegram.org/bot{$token}/setWebhook?url=" . urlencode($webhook_url));
echo $set;