Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -18,8 +18,8 @@ app.add_middleware(
|
|
18 |
|
19 |
#https://api.telegram.org/bot6770617809:AAEhytQUOl3uZOFINVE7-o0KkIoAz8perGU/setWebhook?url=https://matteoscript-TelegramBotSimple.hf.space/
|
20 |
|
21 |
-
|
22 |
-
def webhook(data: dict):
|
23 |
print(data)
|
24 |
chat_id = data['message']['chat']['id']
|
25 |
text = data['message']['text']
|
|
|
18 |
|
19 |
#https://api.telegram.org/bot6770617809:AAEhytQUOl3uZOFINVE7-o0KkIoAz8perGU/setWebhook?url=https://matteoscript-TelegramBotSimple.hf.space/
|
20 |
|
21 |
+
@app.post("/")
|
22 |
+
async def webhook(data: dict):
|
23 |
print(data)
|
24 |
chat_id = data['message']['chat']['id']
|
25 |
text = data['message']['text']
|