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💬 <b>Сообщение:</b>\n{$message}\n";
|
||||||
$text .= "\n⏰ " . date('d.m.Y H:i', time() + 3 * 3600) . " MSK";
|
$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, [
|
curl_setopt_array($ch, [
|
||||||
CURLOPT_POST => true,
|
CURLOPT_POST => true,
|
||||||
CURLOPT_POSTFIELDS => json_encode(['chat_id' => $CHAT_ID, 'text' => $text, 'parse_mode' => 'HTML']),
|
CURLOPT_POSTFIELDS => json_encode(['chat_id' => $CHAT_ID, 'text' => $text, 'parse_mode' => 'HTML']),
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ export const en = {
|
|||||||
contact: {
|
contact: {
|
||||||
title: 'Contact Us',
|
title: 'Contact Us',
|
||||||
subtitle: 'Tell us about your challenge — we will propose a solution',
|
subtitle: 'Tell us about your challenge — we will propose a solution',
|
||||||
phones: ['+7 495 363-74-76', '+7 495 363-73-35', '(909) 945-44-56'],
|
phones: ['+7 495 363-74-76', '+7 495 363-73-35', '+7 909 945-44-56'],
|
||||||
phone: 'Phone',
|
phone: 'Phone',
|
||||||
email: 'Email',
|
email: 'Email',
|
||||||
address: 'Address',
|
address: 'Address',
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ export const ru = {
|
|||||||
contact: {
|
contact: {
|
||||||
title: 'Свяжитесь с нами',
|
title: 'Свяжитесь с нами',
|
||||||
subtitle: 'Расскажите о задаче — предложим решение',
|
subtitle: 'Расскажите о задаче — предложим решение',
|
||||||
phones: ['+7 495 363-74-76', '+7 495 363-73-35', '(909) 945-44-56'],
|
phones: ['+7 495 363-74-76', '+7 495 363-73-35', '+7 909 945-44-56'],
|
||||||
phone: 'Телефон',
|
phone: 'Телефон',
|
||||||
email: 'Email',
|
email: 'Email',
|
||||||
address: 'Адрес',
|
address: 'Адрес',
|
||||||
|
|||||||
Reference in New Issue
Block a user