Spaces:
Sleeping
Sleeping
CaesarCloudSync
commited on
Commit
•
2d6e5da
1
Parent(s):
8951a9e
CaesarAI Telegram Message Final
Browse files
main.py
CHANGED
@@ -97,7 +97,7 @@ def getcaesartelegramchatid():
|
|
97 |
except Exception as ex:
|
98 |
return {"error":f"{type(ex)},{ex}"}
|
99 |
@app.get("/caesartelegramsendmessage")
|
100 |
-
def caesartelegramsendmessage(messageinfo:
|
101 |
try:
|
102 |
messageinfo = dict(messageinfo)
|
103 |
chat_id = messageinfo["chat_id"]
|
|
|
97 |
except Exception as ex:
|
98 |
return {"error":f"{type(ex)},{ex}"}
|
99 |
@app.get("/caesartelegramsendmessage")
|
100 |
+
def caesartelegramsendmessage(messageinfo: CaesarTelegramMessageModel):
|
101 |
try:
|
102 |
messageinfo = dict(messageinfo)
|
103 |
chat_id = messageinfo["chat_id"]
|