feat: add postgres storage and remote sync
This commit is contained in:
@@ -2,12 +2,19 @@
|
||||
"""
|
||||
交互式 Telegram BOT 测试工具
|
||||
"""
|
||||
import requests
|
||||
import json
|
||||
import time
|
||||
import sys
|
||||
import time
|
||||
import os
|
||||
|
||||
BOT_TOKEN = "8410096573:AAFLJbWUp2Xog0oeoe7hfBlVqR7ChoSl9Pg"
|
||||
import requests
|
||||
|
||||
from env_loader import load_env
|
||||
|
||||
load_env()
|
||||
BOT_TOKEN = os.getenv("TELEGRAM_BOT_TOKEN")
|
||||
if not BOT_TOKEN:
|
||||
raise RuntimeError("请在 .env 中设置 TELEGRAM_BOT_TOKEN")
|
||||
BASE_URL = f"https://api.telegram.org/bot{BOT_TOKEN}"
|
||||
|
||||
# 这里需要你的 Telegram 用户 ID
|
||||
|
||||
Reference in New Issue
Block a user