mirror of
https://github.com/ichmagmaus111/ghostgram.git
synced 2026-11-03 14:17:19 +01:00
Ghostgram for iOS, rebuilt from scratch on Telegram iOS 13.0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
19 lines
440 B
Swift
19 lines
440 B
Swift
import Foundation
|
|
import Postbox
|
|
|
|
public class ParticipantRankMessageAttribute: MessageAttribute {
|
|
public let rank: String
|
|
|
|
public init(rank: String) {
|
|
self.rank = rank
|
|
}
|
|
|
|
required public init(decoder: PostboxDecoder) {
|
|
self.rank = decoder.decodeStringForKey("r", orElse: "")
|
|
}
|
|
|
|
public func encode(_ encoder: PostboxEncoder) {
|
|
encoder.encodeString(self.rank, forKey: "r")
|
|
}
|
|
}
|