Files
GLEGram-iOS/submodules/TextFormat/Sources/TelegramAttributes.swift
T
Leeksov 4647310322 GLEGram 12.5 — Initial public release
Based on Swiftgram 12.5 (Telegram iOS 12.5).
All GLEGram features ported and organized in GLEGram/ folder.

Features: Ghost Mode, Saved Deleted Messages, Content Protection Bypass,
Font Replacement, Fake Profile, Chat Export, Plugin System, and more.

See CHANGELOG_12.5.md for full details.
2026-04-06 09:48:12 +03:00

49 lines
1.4 KiB
Swift

import Foundation
import TelegramCore
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: EnginePeer.Id
public let mention: String
public init(peerId: EnginePeer.Id, 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 BankCard = "TelegramBankCard"
public static let Timecode = "TelegramTimecode"
public static let BlockQuote = "TelegramBlockQuote"
public static let Pre = "TelegramPre"
public static let Spoiler = "TelegramSpoiler"
public static let Code = "TelegramCode"
public static let Button = "TelegramButton"
public static let Date = "TelegramDate"
}