mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
33 lines
749 B
Swift
33 lines
749 B
Swift
import Foundation
|
|
import AsyncDisplayKit
|
|
import Display
|
|
import Postbox
|
|
|
|
final class TelegramHashtag {
|
|
let peerName: String?
|
|
let hashtag: String
|
|
|
|
init(peerName: String?, hashtag: String) {
|
|
self.peerName = peerName
|
|
self.hashtag = hashtag
|
|
}
|
|
}
|
|
|
|
final class TelegramPeerMention {
|
|
let peerId: PeerId
|
|
let mention: String
|
|
|
|
init(peerId: PeerId, mention: String) {
|
|
self.peerId = peerId
|
|
self.mention = mention
|
|
}
|
|
}
|
|
|
|
struct TelegramTextAttributes {
|
|
static let URL = "UrlAttributeT"
|
|
static let PeerMention = "TelegramPeerMention"
|
|
static let PeerTextMention = "TelegramPeerTextMention"
|
|
static let BotCommand = "TelegramBotCommand"
|
|
static let Hashtag = "TelegramHashtag"
|
|
}
|