From 93cbb44459c828c56f6cf66274c8b9c51c85c566 Mon Sep 17 00:00:00 2001 From: Lonami Date: Tue, 30 Apr 2019 20:42:32 +0200 Subject: [PATCH] Make unload_plugin async for reasons --- uniborg/uniborg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uniborg/uniborg.py b/uniborg/uniborg.py index 77b3406..3dd3447 100644 --- a/uniborg/uniborg.py +++ b/uniborg/uniborg.py @@ -72,7 +72,7 @@ class Uniborg(TelegramClient): self._plugins[shortname] = mod self._logger.info(f"Successfully loaded plugin {shortname}") - def remove_plugin(self, shortname): + async def remove_plugin(self, shortname): name = self._plugins[shortname].__name__ for i in reversed(range(len(self._event_builders))):