fix: bot username Chat_n8n_bot → Chat_8n8_bot (правильное имя)
This commit is contained in:
@@ -3,7 +3,7 @@ NEXT_PUBLIC_MARZBAN_API_URL=https://umbrix2.3to3.sbs
|
||||
NEXT_PUBLIC_MARZBAN_PANEL_URL=https://panel.umbrix.net/dashboard
|
||||
|
||||
# Telegram Bot (for future integration)
|
||||
NEXT_PUBLIC_TELEGRAM_BOT_USERNAME=Chat_n8n_bot
|
||||
NEXT_PUBLIC_TELEGRAM_BOT_USERNAME=Chat_8n8_bot
|
||||
|
||||
# App Configuration
|
||||
NEXT_PUBLIC_APP_NAME=Umbrix VPN
|
||||
|
||||
@@ -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}`)}
|
||||
/>
|
||||
)}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user