feat: cleanup

This commit is contained in:
2025-08-31 11:48:02 +07:00
parent 4fc2fe6176
commit f7250ff365

View File

@@ -44,21 +44,19 @@ export default {
? `https://www.google.com/maps?q=${latitude},${longitude}`
: null;
const requestInfo = `URL: ${url}
IP: ${clientIP}
Browser: ${userAgent}
Country: ${country}
Region: ${region}
City: ${city}
Coordinates: ${latitude}, ${longitude}
Timezone: ${timezone}
Timestamp: ${timestamp}
Original text:`;
const requestInfo = `<b>IP</b>: <code>${clientIP}</code>
<b>Browser</b>: <code>${userAgent}</code>
<b>Country</b>: <code>${country}</code>
<b>Region</b>: <code>${region}</code>
<b>City</b>: <code>${city}</code>
<b>Coordinates</b>: <code>${latitude}, ${longitude}</code>${mapLink ? ` <a href="${mapLink}">📍</a>` : ''}
<b>Timezone</b>: <code>${timezone}</code>
<b>Timestamp</b>: <code>${timestamp}</code>
<b>Original text</b>:`;
const formattedMessage = `<code>
${requestInfo}
</code>
${mapLink ? `<a href="${mapLink}">📍 View Location on Map</a>\n\n` : ''}${text}`;
const formattedMessage = `${requestInfo}
${text}`;
const telegramToken = env.TELEGRAM_TOKEN;
const telegramChatId = env.TELEGRAM_CHAT_ID;