fix: use Cloudflare Worker relay for Telegram, fix phone format
- contact.php: route Telegram API via tg-relay.it-resheniya-2018.workers.dev - translations: fix phone format (909) 945-44-56 -> +7 909 945-44-56 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -39,7 +39,7 @@ if ($email) $text .= "📧 <b>Email:</b> {$email}\n";
|
||||
$text .= "\n💬 <b>Сообщение:</b>\n{$message}\n";
|
||||
$text .= "\n⏰ " . date('d.m.Y H:i', time() + 3 * 3600) . " MSK";
|
||||
|
||||
$ch = curl_init("https://api.telegram.org/bot{$BOT_TOKEN}/sendMessage");
|
||||
$ch = curl_init("https://tg-relay.it-resheniya-2018.workers.dev/bot{$BOT_TOKEN}/sendMessage");
|
||||
curl_setopt_array($ch, [
|
||||
CURLOPT_POST => true,
|
||||
CURLOPT_POSTFIELDS => json_encode(['chat_id' => $CHAT_ID, 'text' => $text, 'parse_mode' => 'HTML']),
|
||||
|
||||
Reference in New Issue
Block a user