Skip to content

Commit bdf3ab7

Browse files
fix(join): use real Telegram bot username
Widget showed "Username invalid" — @handle is frontChapterMagicBot, not the display name FrontChapterMagic. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 4a2b55f commit bdf3ab7

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎.env.example‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ NEXT_PUBLIC_YANDEX_VERIFICATION=
1313
NEXT_PUBLIC_SUPABASE_URL=https://yuwsoyhknbjipfouemen.supabase.co
1414
NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY=
1515
# Telegram Login Widget bot username (without @)
16-
NEXT_PUBLIC_TELEGRAM_BOT_USERNAME=FrontChapterMagic
16+
NEXT_PUBLIC_TELEGRAM_BOT_USERNAME=frontChapterMagicBot

‎.github/workflows/deploy.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
# Publishable (anon) key — safe in client bundle
3535
NEXT_PUBLIC_SUPABASE_URL: https://yuwsoyhknbjipfouemen.supabase.co
3636
NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY: sb_publishable_OF9FwM-9TGsktwDYvCZxQg_PcM0Rvjm
37-
NEXT_PUBLIC_TELEGRAM_BOT_USERNAME: FrontChapterMagic
37+
NEXT_PUBLIC_TELEGRAM_BOT_USERNAME: frontChapterMagicBot
3838

3939
- name: Push to gh-pages branch
4040
uses: peaceiris/actions-gh-pages@v4

‎src/layouts/Join.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ type TelegramAuthWindow = Window & {
3636
};
3737

3838
const TELEGRAM_BOT_USERNAME =
39-
process.env.NEXT_PUBLIC_TELEGRAM_BOT_USERNAME || 'FrontChapterMagic';
39+
process.env.NEXT_PUBLIC_TELEGRAM_BOT_USERNAME || 'frontChapterMagicBot';
4040

4141
type FormState = {
4242
expertise: string;

0 commit comments

Comments
 (0)