update
This commit is contained in:
5
main.py
5
main.py
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user