From fe7ec3d61e71052b1d12cfbb82225d2a29b62d38 Mon Sep 17 00:00:00 2001 From: Shanmuga Krishnan S M Date: Wed, 19 Aug 2026 09:25:26 +0530 Subject: [PATCH] Configure new Telegram bot token across frontend Admin dashboard and Python bot service --- src/pages/Admin/AdminDashboard.tsx | 2 +- telegram-bot/config.json | 4 ++-- telegram-bot/telegram_bot.py | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/pages/Admin/AdminDashboard.tsx b/src/pages/Admin/AdminDashboard.tsx index aca998c..7f78434 100644 --- a/src/pages/Admin/AdminDashboard.tsx +++ b/src/pages/Admin/AdminDashboard.tsx @@ -471,7 +471,7 @@ export default function AdminDashboard() { if (!localConfig || (!localConfig.seniorHelpers?.length && !localConfig.helper_chat_ids?.length)) { localConfig = { - community_bot_token: '7829148291:AAH_rit_community_bot_token_sample', + community_bot_token: '8973721012:AAG37F4Q4q584m_2aS8rT6qSWuA-WuHRGMY', spring_backend_url: 'https://rit-services.in/api', helper_chat_ids: [971749136, 982314512], seniorHelpers: [ diff --git a/telegram-bot/config.json b/telegram-bot/config.json index 3d052ea..438af18 100644 --- a/telegram-bot/config.json +++ b/telegram-bot/config.json @@ -1,6 +1,6 @@ { - "community_bot_token": "", - "telegram_bot_token": "", + "community_bot_token": "8973721012:AAG37F4Q4q584m_2aS8rT6qSWuA-WuHRGMY", + "telegram_bot_token": "8973721012:AAG37F4Q4q584m_2aS8rT6qSWuA-WuHRGMY", "helper_chat_ids": [971749136, 5567776672, 1873240361], "spring_backend_url": "http://localhost:8085" } diff --git a/telegram-bot/telegram_bot.py b/telegram-bot/telegram_bot.py index 398f257..bcadc65 100644 --- a/telegram-bot/telegram_bot.py +++ b/telegram-bot/telegram_bot.py @@ -37,8 +37,8 @@ CONFIG_PATH = os.path.join(os.path.dirname(__file__), "config.json") def load_config(): if not os.path.exists(CONFIG_PATH): default_config = { - "community_bot_token": "8859374355:AAH0dhwstkTBhRerRTjzmb2RG2fjPbigzvo", - "telegram_bot_token": "8913773505:AAHASuKLLOto3Ax573_dxg8bnvQy2ML6yLk", + "community_bot_token": "8973721012:AAG37F4Q4q584m_2aS8rT6qSWuA-WuHRGMY", + "telegram_bot_token": "8973721012:AAG37F4Q4q584m_2aS8rT6qSWuA-WuHRGMY", "helper_chat_ids": [], "spring_backend_url": "http://localhost:8085" } @@ -50,7 +50,7 @@ def load_config(): return json.load(f) config = load_config() -COMMUNITY_BOT_TOKEN = os.environ.get("COMMUNITY_BOT_TOKEN") or config.get("community_bot_token", "8859374355:AAH0dhwstkTBhRerRTjzmb2RG2fjPbigzvo") +COMMUNITY_BOT_TOKEN = os.environ.get("COMMUNITY_BOT_TOKEN") or config.get("community_bot_token", "8973721012:AAG37F4Q4q584m_2aS8rT6qSWuA-WuHRGMY") BOT_TOKEN = os.environ.get("TELEGRAM_BOT_TOKEN") or config.get("telegram_bot_token") BACKEND_URL = os.environ.get("SPRING_BACKEND_URL") or config.get("spring_backend_url", "http://localhost:8085")