Update bot.py
Browse files
bot.py
CHANGED
|
@@ -117,6 +117,9 @@ async def set_webhook():
|
|
| 117 |
except Exception as e:
|
| 118 |
logger.error(f"Failed to set webhook manually. Error: {e}")
|
| 119 |
print(f"error setting bot webhook. Error: {e}")
|
|
|
|
|
|
|
|
|
|
| 120 |
|
| 121 |
# -------------------------
|
| 122 |
# Main function to run the bot using Webhook mode
|
|
|
|
| 117 |
except Exception as e:
|
| 118 |
logger.error(f"Failed to set webhook manually. Error: {e}")
|
| 119 |
print(f"error setting bot webhook. Error: {e}")
|
| 120 |
+
|
| 121 |
+
|
| 122 |
+
set_webhook()
|
| 123 |
|
| 124 |
# -------------------------
|
| 125 |
# Main function to run the bot using Webhook mode
|