feat: Introduce core bot components, on-chain wallet watchers, Telegram notifications, and configuration management.

This commit is contained in:
2569718930@qq.com
2026-03-13 19:24:05 +08:00
parent edf2a37976
commit cd0a5d519f
11 changed files with 214 additions and 76 deletions
+7 -1
View File
@@ -1,6 +1,11 @@
import os
from dotenv import load_dotenv
from src.utils.telegram_chat_ids import (
get_primary_telegram_chat_id_from_env,
get_telegram_chat_ids_from_env,
)
def load_config():
"""
@@ -23,7 +28,8 @@ def load_config():
},
"telegram": {
"bot_token": os.getenv("TELEGRAM_BOT_TOKEN"),
"chat_id": os.getenv("TELEGRAM_CHAT_ID"),
"chat_id": get_primary_telegram_chat_id_from_env(),
"chat_ids": get_telegram_chat_ids_from_env(),
"proxy": os.getenv("HTTPS_PROXY") or os.getenv("HTTP_PROXY"),
},
"config": {