Various fixes

This commit is contained in:
Ilya Laktyushin
2022-08-18 01:57:01 +03:00
parent 1423d5381f
commit 063d39c6be
41 changed files with 492 additions and 252 deletions

View File

@@ -230,6 +230,15 @@ public func parseInternalUrl(query: String) -> ParsedInternalUrl? {
}
}
return .startAttach(peerName, nil, choose)
} else if queryItem.name == "startgroup" || queryItem.name == "startchannel" {
var botAdminRights: ResolvedBotAdminRights?
for queryItem in queryItems {
if queryItem.name == "admin", let value = queryItem.value {
botAdminRights = ResolvedBotAdminRights(value)
break
}
}
return .peerName(peerName, .groupBotStart("", botAdminRights))
}
}
}