feat: add postgres storage and remote sync
This commit is contained in:
@@ -2,10 +2,17 @@
|
||||
"""
|
||||
检查并配置 Webhook
|
||||
"""
|
||||
import requests
|
||||
import json
|
||||
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}"
|
||||
|
||||
def get_webhook_info():
|
||||
|
||||
Reference in New Issue
Block a user