diff --git a/src/matrix_applicationbot/classes/bot.py b/src/matrix_applicationbot/classes/bot.py index c0c4521..f30e266 100644 --- a/src/matrix_applicationbot/classes/bot.py +++ b/src/matrix_applicationbot/classes/bot.py @@ -205,7 +205,7 @@ class ApplicationBot: elif command == "list": return await self.list_tickets(room) elif command.startswith("monitor "): - room_id = self.resolve_room_id(command.split()[1]) + room_id = await self.resolve_room_id(command.split()[1]) await self.add_monitored_room(room_id) return await self.client.room_send( room.room_id, @@ -216,7 +216,7 @@ class ApplicationBot: }, ) elif command.startswith("unmonitor"): - room_id = self.resolve_room_id(command.split()[1]) + room_id = await self.resolve_room_id(command.split()[1]) await self.remove_monitored_room(room_id) return await self.client.room_send( room.room_id, @@ -253,7 +253,7 @@ class ApplicationBot: }, ) elif command.startswith("unprotect"): - room_id = self.resolve_room_id(command.split()[1]) + room_id = await self.resolve_room_id(command.split()[1]) await self.remove_protected_room(room_id) return await self.client.room_send( room.room_id,