Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -19,7 +19,7 @@ app.add_middleware(
|
|
19 |
#https://api.telegram.org/bot6907051705:AAHZtYuiFTkQBNNw6m3cBVns8BPUw5mvxgU/setWebhook?url=https://matteoscript-TelegramBotSimple.hf.space/
|
20 |
|
21 |
@app.on_event("startup")
|
22 |
-
|
23 |
print('start up')
|
24 |
response = client.get(os.getenv('telegramUrlBot') + '/setWebhook?url=https://matteoscript-TelegramBotSimple.hf.space/OLD')
|
25 |
response = client.get(os.getenv('telegramUrlBot') + '/setWebhook?url=https://matteoscript-TelegramBotSimple.hf.space/')
|
|
|
19 |
#https://api.telegram.org/bot6907051705:AAHZtYuiFTkQBNNw6m3cBVns8BPUw5mvxgU/setWebhook?url=https://matteoscript-TelegramBotSimple.hf.space/
|
20 |
|
21 |
@app.on_event("startup")
|
22 |
+
def on_startup():
|
23 |
print('start up')
|
24 |
response = client.get(os.getenv('telegramUrlBot') + '/setWebhook?url=https://matteoscript-TelegramBotSimple.hf.space/OLD')
|
25 |
response = client.get(os.getenv('telegramUrlBot') + '/setWebhook?url=https://matteoscript-TelegramBotSimple.hf.space/')
|