feat: Introduce core bot components, on-chain wallet watchers, Telegram notifications, and configuration management.
This commit is contained in:
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user