This commit is contained in:
hackrobot
2024-07-18 09:31:47 +08:00
parent b394731143
commit 4ef917c9f1
2 changed files with 8 additions and 1 deletions

View File

@@ -8,6 +8,11 @@ app = FastAPI()
# 配置日志
logging.basicConfig(level=logging.INFO)
@app.get("/")
async def root():
return {"message": "Hello tgmeassage"}
# 发送消息到Telegram群组的函数
def send_tg(message: str):
base_url = "https://api.telegram.org/bot"