Update API [skip ci]

This commit is contained in:
Ilya Laktyushin
2024-12-19 16:12:17 +04:00
parent 3095400114
commit 26ff9da7d1
3 changed files with 18 additions and 2 deletions

View File

@@ -269,6 +269,17 @@ public extension Peer {
}
}
var verification: PeerVerification? {
switch self {
case let user as TelegramUser:
return user.verification
case let channel as TelegramChannel:
return channel.verification
default:
return nil
}
}
var profileColor: PeerNameColor? {
switch self {
case let user as TelegramUser: