fix: bot username Chat_n8n_bot → Chat_8n8_bot (правильное имя)

This commit is contained in:
Umbrix Dev
2026-02-09 04:01:49 +03:00
parent f61a029c3a
commit b284d01e14
4 changed files with 8 additions and 8 deletions

View File

@@ -120,7 +120,7 @@ export default function Dashboard() {
};
const shareReferralLink = async () => {
const botUsername = process.env.NEXT_PUBLIC_TELEGRAM_BOT_USERNAME || 'Chat_n8n_bot';
const botUsername = process.env.NEXT_PUBLIC_TELEGRAM_BOT_USERNAME || 'Chat_8n8_bot';
const referralUrl = `https://t.me/${botUsername}?start=ref_${username}`;
const telegramWebApp = (window as any).Telegram?.WebApp;
@@ -287,9 +287,9 @@ export default function Dashboard() {
<ReferralModal
isOpen={isReferralOpen}
onClose={() => setIsReferralOpen(false)}
referralUrl={`https://t.me/${process.env.NEXT_PUBLIC_TELEGRAM_BOT_USERNAME || 'Chat_n8n_bot'}?start=ref_${username}`}
referralUrl={`https://t.me/${process.env.NEXT_PUBLIC_TELEGRAM_BOT_USERNAME || 'Chat_8n8_bot'}?start=ref_${username}`}
onShare={shareReferralLink}
onCopy={() => copyToClipboard(`https://t.me/${process.env.NEXT_PUBLIC_TELEGRAM_BOT_USERNAME || 'Chat_n8n_bot'}?start=ref_${username}`)}
onCopy={() => copyToClipboard(`https://t.me/${process.env.NEXT_PUBLIC_TELEGRAM_BOT_USERNAME || 'Chat_8n8_bot'}?start=ref_${username}`)}
/>
)}

View File

@@ -150,7 +150,7 @@ export default function Home() {
}
// Генерируем реферальную ссылку — используем полный subscriptionToken (= Marzban username)
const userId = subscriptionToken;
const botUsername = process.env.NEXT_PUBLIC_TELEGRAM_BOT_USERNAME || 'Chat_n8n_bot';
const botUsername = process.env.NEXT_PUBLIC_TELEGRAM_BOT_USERNAME || 'Chat_8n8_bot';
const referralUrl = `https://t.me/${botUsername}?start=ref_${userId}`;
const shareText = `🚀 Попробуй Umbrix VPN - быстрый и безопасный VPN!\n\n✨ Получи 7 дней бесплатно по моей ссылке:\n${referralUrl}`;
@@ -539,13 +539,13 @@ export default function Home() {
<ReferralModal
isOpen={isReferralOpen}
onClose={() => setIsReferralOpen(false)}
referralUrl={`https://t.me/${process.env.NEXT_PUBLIC_TELEGRAM_BOT_USERNAME || 'Chat_n8n_bot'}?start=ref_${subscriptionToken}`}
referralUrl={`https://t.me/${process.env.NEXT_PUBLIC_TELEGRAM_BOT_USERNAME || 'Chat_8n8_bot'}?start=ref_${subscriptionToken}`}
onShare={() => {
shareReferralLink();
setIsReferralOpen(false);
}}
onCopy={() => {
const botUsername = process.env.NEXT_PUBLIC_TELEGRAM_BOT_USERNAME || 'Chat_n8n_bot';
const botUsername = process.env.NEXT_PUBLIC_TELEGRAM_BOT_USERNAME || 'Chat_8n8_bot';
const referralUrl = `https://t.me/${botUsername}?start=ref_${subscriptionToken}`;
copyToClipboard(referralUrl);
setIsReferralOpen(false);

View File

@@ -55,7 +55,7 @@ export default function ReferralPage() {
setUsername(userId);
// Generate referral URL
const botUsername = process.env.NEXT_PUBLIC_TELEGRAM_BOT_USERNAME || 'Chat_n8n_bot';
const botUsername = process.env.NEXT_PUBLIC_TELEGRAM_BOT_USERNAME || 'Chat_8n8_bot';
const url = `https://t.me/${botUsername}?start=ref_${userId}`;
setReferralUrl(url);