DeMaking commited on
Commit
641846a
·
verified ·
1 Parent(s): 3d0a57b

Update bot.py

Browse files
Files changed (1) hide show
  1. bot.py +2 -1
bot.py CHANGED
@@ -119,12 +119,13 @@ async def set_webhook():
119
  print(f"error setting bot webhook. Error: {e}")
120
 
121
 
122
- await set_webhook()
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