diff --git a/mautrix_telegram/commands/telegram/misc.py b/mautrix_telegram/commands/telegram/misc.py index 0060619c..a058c79a 100644 --- a/mautrix_telegram/commands/telegram/misc.py +++ b/mautrix_telegram/commands/telegram/misc.py @@ -151,7 +151,7 @@ async def join(evt: CommandEvent) -> Optional[EventID]: if evt.config["bridge.invite_link_resolve"]: try: async with ClientSession() as sess, sess.get(url) as resp: - url = resp.url + url = str(resp.url) except InvalidURL: return await evt.reply("That doesn't look like a Telegram invite link.")