Add support for t.me/+code invite links

This commit is contained in:
Tulir Asokan
2022-01-10 23:23:16 +02:00
parent 2a6b075ff2
commit dd83d6278c
@@ -208,6 +208,9 @@ async def join(evt: CommandEvent) -> EventID | None:
link_type = data["type"]
if link_type:
link_type = link_type.lower()
elif identifier.startswith("+"):
link_type = "joinchat"
identifier = identifier[1:]
updates, _ = await _join(evt, identifier, link_type)
if not updates:
return None