Spaces:
Sleeping
Sleeping
Update bot.py
Browse files
bot.py
CHANGED
|
@@ -189,6 +189,10 @@ async def main():
|
|
| 189 |
app.add_handler(CommandHandler("unban", unban))
|
| 190 |
await app.run_polling()
|
| 191 |
|
| 192 |
-
|
|
|
|
| 193 |
import asyncio
|
| 194 |
-
|
|
|
|
|
|
|
|
|
|
|
|
| 189 |
app.add_handler(CommandHandler("unban", unban))
|
| 190 |
await app.run_polling()
|
| 191 |
|
| 192 |
+
# New
|
| 193 |
+
if __name__ == "__main__":
|
| 194 |
import asyncio
|
| 195 |
+
import nest_asyncio
|
| 196 |
+
nest_asyncio.apply() # Allow nested event loops
|
| 197 |
+
|
| 198 |
+
asyncio.get_event_loop().run_until_complete(main())
|