diff --git a/bot/helper/telegram_helper/message_utils.py b/bot/helper/telegram_helper/message_utils.py index 1b14f83cb9a7..869703794c53 100644 --- a/bot/helper/telegram_helper/message_utils.py +++ b/bot/helper/telegram_helper/message_utils.py @@ -22,7 +22,6 @@ from bot import ( LOGGER, bot, - bot_loop, bot_name, cached_dict, config_dict, @@ -142,7 +141,7 @@ async def auto_delete(): await delete_message(cmd_message) if bot_message is not None: await delete_message(bot_message) - bot_loop.create_task(auto_delete()) + create_task(auto_delete()) async def delete_links(message):