diff --git a/mautrix_telegram/commands/telegram.py b/mautrix_telegram/commands/telegram.py index ea01faf0..ff23d030 100644 --- a/mautrix_telegram/commands/telegram.py +++ b/mautrix_telegram/commands/telegram.py @@ -89,7 +89,7 @@ async def _join(evt, arg): except InviteHashExpiredError: return None, await evt.reply("Invite link expired.") try: - return evt.sender.client(ImportChatInviteRequest(invite_hash)), None + return (await evt.sender.client(ImportChatInviteRequest(invite_hash))), None except UserAlreadyParticipantError: return None, await evt.reply("You are already in that chat.") else: