mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
43 lines
1.1 KiB
Swift
43 lines
1.1 KiB
Swift
import Foundation
|
|
import Postbox
|
|
|
|
public final class TelegramHashtag {
|
|
public let peerName: String?
|
|
public let hashtag: String
|
|
|
|
public init(peerName: String?, hashtag: String) {
|
|
self.peerName = peerName
|
|
self.hashtag = hashtag
|
|
}
|
|
}
|
|
|
|
public final class TelegramPeerMention {
|
|
public let peerId: PeerId
|
|
public let mention: String
|
|
|
|
public init(peerId: PeerId, mention: String) {
|
|
self.peerId = peerId
|
|
self.mention = mention
|
|
}
|
|
}
|
|
|
|
public final class TelegramTimecode {
|
|
public let time: Double
|
|
public let text: String
|
|
|
|
public init(time: Double, text: String) {
|
|
self.time = time
|
|
self.text = text
|
|
}
|
|
}
|
|
|
|
public struct TelegramTextAttributes {
|
|
public static let URL = "UrlAttributeT"
|
|
public static let PeerMention = "TelegramPeerMention"
|
|
public static let PeerTextMention = "TelegramPeerTextMention"
|
|
public static let BotCommand = "TelegramBotCommand"
|
|
public static let Hashtag = "TelegramHashtag"
|
|
public static let Timecode = "TelegramTimecode"
|
|
public static let BlockQuote = "TelegramBlockQuote"
|
|
}
|