diff --git a/pyproject.toml b/pyproject.toml index 7e04a054..a0909e9f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,7 +2,7 @@ [tool.poetry] name = "royalpack" - version = "5.7.4" + version = "5.7.5" description = "A Royalnet command pack for the Royal Games community" authors = ["Stefano Pigozzi "] license = "AGPL-3.0+" diff --git a/royalpack/commands/matchmaking.py b/royalpack/commands/matchmaking.py index 4e9dd5a1..0beec996 100644 --- a/royalpack/commands/matchmaking.py +++ b/royalpack/commands/matchmaking.py @@ -255,11 +255,11 @@ class MatchmakingCommand(Command): if response.choice == MMChoice.NO: return try: - await self.interface.serf.api_call(client.send_message, - chat_id=response.user.telegram[0].tg_id, - text=telegram_escape(self._gen_event_start_message(mmevent)), - parse_mode="HTML", - disable_webpage_preview=True) + await asyncify(client.send_message, + chat_id=response.user.telegram[0].tg_id, + text=telegram_escape(self._gen_event_start_message(mmevent)), + parse_mode="HTML", + disable_webpage_preview=True) except TelegramError: await self.interface.serf.api_call(client.send_message, chat_id=self.config["Telegram"]["main_group_id"], diff --git a/royalpack/version.py b/royalpack/version.py index 9198a640..064a7eec 100644 --- a/royalpack/version.py +++ b/royalpack/version.py @@ -1 +1 @@ -semantic = "5.7.4" +semantic = "5.7.5"