Files
ghostgram/submodules/TelegramCore/Sources/SyncCore/ParticipantRankMessageAttribute.swift
ichmagmaus111andClaude Opus 5.5 0622057a4f Ghostgram: open-source release
Ghostgram for iOS, rebuilt from scratch on Telegram iOS 13.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 17:57:09 +01:00

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")
}
}