Update bot.py
Browse files
bot.py
CHANGED
@@ -119,12 +119,13 @@ async def set_webhook():
|
|
119 |
print(f"error setting bot webhook. Error: {e}")
|
120 |
|
121 |
|
122 |
-
|
123 |
|
124 |
# -------------------------
|
125 |
# Main function to run the bot using Webhook mode
|
126 |
# -------------------------
|
127 |
async def main():
|
|
|
128 |
# Build the Application with the Telegram Bot Token
|
129 |
application = Application.builder().token(TOKEN).build()
|
130 |
|
|
|
119 |
print(f"error setting bot webhook. Error: {e}")
|
120 |
|
121 |
|
122 |
+
|
123 |
|
124 |
# -------------------------
|
125 |
# Main function to run the bot using Webhook mode
|
126 |
# -------------------------
|
127 |
async def main():
|
128 |
+
await set_webhook()
|
129 |
# Build the Application with the Telegram Bot Token
|
130 |
application = Application.builder().token(TOKEN).build()
|
131 |
|