Files
ghostgram/submodules/TelegramCore/Sources/SyncCore/QuickReplyMessageAttribute.swift
T
ichmagmaus111andClaude Opus 5.5 534cabe35b bug fixes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 16:55:08 +01:00

24 lines
661 B
Swift

import Foundation
import Postbox
internal import TelegramApi
public final class OutgoingQuickReplyMessageAttribute: Equatable, MessageAttribute {
public let shortcut: String
public init(shortcut: String) {
self.shortcut = shortcut
}
required public init(decoder: PostboxDecoder) {
self.shortcut = decoder.decodeStringForKey("s", orElse: "")
}
public func encode(_ encoder: PostboxEncoder) {
encoder.encodeString(self.shortcut, forKey: "s")
}
public static func ==(lhs: OutgoingQuickReplyMessageAttribute, rhs: OutgoingQuickReplyMessageAttribute) -> Bool {
return true
}
}