diff --git a/submodules/TelegramApi/Sources/Api0.swift b/submodules/TelegramApi/Sources/Api0.swift index 0153b7a5af..733cbd2782 100644 --- a/submodules/TelegramApi/Sources/Api0.swift +++ b/submodules/TelegramApi/Sources/Api0.swift @@ -172,7 +172,6 @@ fileprivate let parsers: [Int32 : (BufferReader) -> Any?] = { dict[469489699] = { return Api.Update.parse_updateUserStatus($0) } dict[-1489818765] = { return Api.Update.parse_updateUserName($0) } dict[-1791935732] = { return Api.Update.parse_updateUserPhoto($0) } - dict[-1657903163] = { return Api.Update.parse_updateContactLink($0) } dict[314359194] = { return Api.Update.parse_updateNewEncryptedMessage($0) } dict[386986326] = { return Api.Update.parse_updateEncryptedChatTyping($0) } dict[-1264392051] = { return Api.Update.parse_updateEncryption($0) } @@ -705,9 +704,6 @@ fileprivate let parsers: [Int32 : (BufferReader) -> Any?] = { dict[1674235686] = { return Api.account.AutoDownloadSettings.parse_autoDownloadSettings($0) } dict[-445792507] = { return Api.DialogPeer.parse_dialogPeer($0) } dict[1363483106] = { return Api.DialogPeer.parse_dialogPeerFolder($0) } - dict[1599050311] = { return Api.ContactLink.parse_contactLinkUnknown($0) } - dict[-17968211] = { return Api.ContactLink.parse_contactLinkNone($0) } - dict[-721239344] = { return Api.ContactLink.parse_contactLinkContact($0) } dict[-104284986] = { return Api.WebDocument.parse_webDocumentNoProxy($0) } dict[475467473] = { return Api.WebDocument.parse_webDocument($0) } dict[-1290580579] = { return Api.contacts.Found.parse_found($0) } @@ -769,8 +765,8 @@ fileprivate let parsers: [Int32 : (BufferReader) -> Any?] = { return dict }() -struct Api { - static func parse(_ buffer: Buffer) -> Any? { +public struct Api { + public static func parse(_ buffer: Buffer) -> Any? { let reader = BufferReader(buffer) if let signature = reader.readInt32() { return parse(reader, signature: signature) @@ -778,17 +774,17 @@ struct Api { return nil } - static func parse(_ reader: BufferReader, signature: Int32) -> Any? { + public static func parse(_ reader: BufferReader, signature: Int32) -> Any? { if let parser = parsers[signature] { return parser(reader) } else { - Logger.shared.log("TL", "Type constructor \(String(signature, radix: 16, uppercase: false)) not found") + telegramApiLog("Type constructor \(String(signature, radix: 16, uppercase: false)) not found") return nil } } - static func parseVector(_ reader: BufferReader, elementSignature: Int32, elementType: T.Type) -> [T]? { + public static func parseVector(_ reader: BufferReader, elementSignature: Int32, elementType: T.Type) -> [T]? { if let count = reader.readInt32() { var array = [T]() var i: Int32 = 0 @@ -823,7 +819,7 @@ struct Api { return nil } - static func serializeObject(_ object: Any, buffer: Buffer, boxed: Swift.Bool) { + public static func serializeObject(_ object: Any, buffer: Buffer, boxed: Swift.Bool) { switch object { case let _1 as Api.messages.StickerSet: _1.serialize(buffer, boxed) @@ -1289,8 +1285,6 @@ struct Api { _1.serialize(buffer, boxed) case let _1 as Api.DialogPeer: _1.serialize(buffer, boxed) - case let _1 as Api.ContactLink: - _1.serialize(buffer, boxed) case let _1 as Api.WebDocument: _1.serialize(buffer, boxed) case let _1 as Api.contacts.Found: @@ -1345,12 +1339,12 @@ struct Api { } } -extension Api { -struct messages { - enum StickerSet: TypeConstructorDescription { +public extension Api { +public struct messages { + public enum StickerSet: TypeConstructorDescription { case stickerSet(set: Api.StickerSet, packs: [Api.StickerPack], documents: [Api.Document]) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .stickerSet(let set, let packs, let documents): if boxed { @@ -1371,14 +1365,14 @@ struct messages { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .stickerSet(let set, let packs, let documents): return ("stickerSet", [("set", set), ("packs", packs), ("documents", documents)]) } } - static func parse_stickerSet(_ reader: BufferReader) -> StickerSet? { + public static func parse_stickerSet(_ reader: BufferReader) -> StickerSet? { var _1: Api.StickerSet? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.StickerSet @@ -1403,10 +1397,10 @@ struct messages { } } - enum ArchivedStickers: TypeConstructorDescription { + public enum ArchivedStickers: TypeConstructorDescription { case archivedStickers(count: Int32, sets: [Api.StickerSetCovered]) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .archivedStickers(let count, let sets): if boxed { @@ -1422,14 +1416,14 @@ struct messages { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .archivedStickers(let count, let sets): return ("archivedStickers", [("count", count), ("sets", sets)]) } } - static func parse_archivedStickers(_ reader: BufferReader) -> ArchivedStickers? { + public static func parse_archivedStickers(_ reader: BufferReader) -> ArchivedStickers? { var _1: Int32? _1 = reader.readInt32() var _2: [Api.StickerSetCovered]? @@ -1447,11 +1441,11 @@ struct messages { } } - enum SentEncryptedMessage: TypeConstructorDescription { + public enum SentEncryptedMessage: TypeConstructorDescription { case sentEncryptedMessage(date: Int32) case sentEncryptedFile(date: Int32, file: Api.EncryptedFile) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .sentEncryptedMessage(let date): if boxed { @@ -1469,7 +1463,7 @@ struct messages { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .sentEncryptedMessage(let date): return ("sentEncryptedMessage", [("date", date)]) @@ -1478,7 +1472,7 @@ struct messages { } } - static func parse_sentEncryptedMessage(_ reader: BufferReader) -> SentEncryptedMessage? { + public static func parse_sentEncryptedMessage(_ reader: BufferReader) -> SentEncryptedMessage? { var _1: Int32? _1 = reader.readInt32() let _c1 = _1 != nil @@ -1489,7 +1483,7 @@ struct messages { return nil } } - static func parse_sentEncryptedFile(_ reader: BufferReader) -> SentEncryptedMessage? { + public static func parse_sentEncryptedFile(_ reader: BufferReader) -> SentEncryptedMessage? { var _1: Int32? _1 = reader.readInt32() var _2: Api.EncryptedFile? @@ -1507,11 +1501,11 @@ struct messages { } } - enum Stickers: TypeConstructorDescription { + public enum Stickers: TypeConstructorDescription { case stickersNotModified case stickers(hash: Int32, stickers: [Api.Document]) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .stickersNotModified: if boxed { @@ -1533,7 +1527,7 @@ struct messages { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .stickersNotModified: return ("stickersNotModified", []) @@ -1542,10 +1536,10 @@ struct messages { } } - static func parse_stickersNotModified(_ reader: BufferReader) -> Stickers? { + public static func parse_stickersNotModified(_ reader: BufferReader) -> Stickers? { return Api.messages.Stickers.stickersNotModified } - static func parse_stickers(_ reader: BufferReader) -> Stickers? { + public static func parse_stickers(_ reader: BufferReader) -> Stickers? { var _1: Int32? _1 = reader.readInt32() var _2: [Api.Document]? @@ -1563,11 +1557,11 @@ struct messages { } } - enum FoundStickerSets: TypeConstructorDescription { + public enum FoundStickerSets: TypeConstructorDescription { case foundStickerSetsNotModified case foundStickerSets(hash: Int32, sets: [Api.StickerSetCovered]) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .foundStickerSetsNotModified: if boxed { @@ -1589,7 +1583,7 @@ struct messages { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .foundStickerSetsNotModified: return ("foundStickerSetsNotModified", []) @@ -1598,10 +1592,10 @@ struct messages { } } - static func parse_foundStickerSetsNotModified(_ reader: BufferReader) -> FoundStickerSets? { + public static func parse_foundStickerSetsNotModified(_ reader: BufferReader) -> FoundStickerSets? { return Api.messages.FoundStickerSets.foundStickerSetsNotModified } - static func parse_foundStickerSets(_ reader: BufferReader) -> FoundStickerSets? { + public static func parse_foundStickerSets(_ reader: BufferReader) -> FoundStickerSets? { var _1: Int32? _1 = reader.readInt32() var _2: [Api.StickerSetCovered]? @@ -1619,10 +1613,10 @@ struct messages { } } - enum FoundGifs: TypeConstructorDescription { + public enum FoundGifs: TypeConstructorDescription { case foundGifs(nextOffset: Int32, results: [Api.FoundGif]) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .foundGifs(let nextOffset, let results): if boxed { @@ -1638,14 +1632,14 @@ struct messages { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .foundGifs(let nextOffset, let results): return ("foundGifs", [("nextOffset", nextOffset), ("results", results)]) } } - static func parse_foundGifs(_ reader: BufferReader) -> FoundGifs? { + public static func parse_foundGifs(_ reader: BufferReader) -> FoundGifs? { var _1: Int32? _1 = reader.readInt32() var _2: [Api.FoundGif]? @@ -1663,10 +1657,10 @@ struct messages { } } - enum BotResults: TypeConstructorDescription { + public enum BotResults: TypeConstructorDescription { case botResults(flags: Int32, queryId: Int64, nextOffset: String?, switchPm: Api.InlineBotSwitchPM?, results: [Api.BotInlineResult], cacheTime: Int32, users: [Api.User]) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .botResults(let flags, let queryId, let nextOffset, let switchPm, let results, let cacheTime, let users): if boxed { @@ -1691,14 +1685,14 @@ struct messages { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .botResults(let flags, let queryId, let nextOffset, let switchPm, let results, let cacheTime, let users): return ("botResults", [("flags", flags), ("queryId", queryId), ("nextOffset", nextOffset), ("switchPm", switchPm), ("results", results), ("cacheTime", cacheTime), ("users", users)]) } } - static func parse_botResults(_ reader: BufferReader) -> BotResults? { + public static func parse_botResults(_ reader: BufferReader) -> BotResults? { var _1: Int32? _1 = reader.readInt32() var _2: Int64? @@ -1735,10 +1729,10 @@ struct messages { } } - enum BotCallbackAnswer: TypeConstructorDescription { + public enum BotCallbackAnswer: TypeConstructorDescription { case botCallbackAnswer(flags: Int32, message: String?, url: String?, cacheTime: Int32) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .botCallbackAnswer(let flags, let message, let url, let cacheTime): if boxed { @@ -1752,14 +1746,14 @@ struct messages { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .botCallbackAnswer(let flags, let message, let url, let cacheTime): return ("botCallbackAnswer", [("flags", flags), ("message", message), ("url", url), ("cacheTime", cacheTime)]) } } - static func parse_botCallbackAnswer(_ reader: BufferReader) -> BotCallbackAnswer? { + public static func parse_botCallbackAnswer(_ reader: BufferReader) -> BotCallbackAnswer? { var _1: Int32? _1 = reader.readInt32() var _2: String? @@ -1781,11 +1775,11 @@ struct messages { } } - enum Chats: TypeConstructorDescription { + public enum Chats: TypeConstructorDescription { case chats(chats: [Api.Chat]) case chatsSlice(count: Int32, chats: [Api.Chat]) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .chats(let chats): if boxed { @@ -1811,7 +1805,7 @@ struct messages { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .chats(let chats): return ("chats", [("chats", chats)]) @@ -1820,7 +1814,7 @@ struct messages { } } - static func parse_chats(_ reader: BufferReader) -> Chats? { + public static func parse_chats(_ reader: BufferReader) -> Chats? { var _1: [Api.Chat]? if let _ = reader.readInt32() { _1 = Api.parseVector(reader, elementSignature: 0, elementType: Api.Chat.self) @@ -1833,7 +1827,7 @@ struct messages { return nil } } - static func parse_chatsSlice(_ reader: BufferReader) -> Chats? { + public static func parse_chatsSlice(_ reader: BufferReader) -> Chats? { var _1: Int32? _1 = reader.readInt32() var _2: [Api.Chat]? @@ -1851,11 +1845,11 @@ struct messages { } } - enum DhConfig: TypeConstructorDescription { + public enum DhConfig: TypeConstructorDescription { case dhConfigNotModified(random: Buffer) case dhConfig(g: Int32, p: Buffer, version: Int32, random: Buffer) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .dhConfigNotModified(let random): if boxed { @@ -1875,7 +1869,7 @@ struct messages { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .dhConfigNotModified(let random): return ("dhConfigNotModified", [("random", random)]) @@ -1884,7 +1878,7 @@ struct messages { } } - static func parse_dhConfigNotModified(_ reader: BufferReader) -> DhConfig? { + public static func parse_dhConfigNotModified(_ reader: BufferReader) -> DhConfig? { var _1: Buffer? _1 = parseBytes(reader) let _c1 = _1 != nil @@ -1895,7 +1889,7 @@ struct messages { return nil } } - static func parse_dhConfig(_ reader: BufferReader) -> DhConfig? { + public static func parse_dhConfig(_ reader: BufferReader) -> DhConfig? { var _1: Int32? _1 = reader.readInt32() var _2: Buffer? @@ -1917,10 +1911,10 @@ struct messages { } } - enum AffectedHistory: TypeConstructorDescription { + public enum AffectedHistory: TypeConstructorDescription { case affectedHistory(pts: Int32, ptsCount: Int32, offset: Int32) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .affectedHistory(let pts, let ptsCount, let offset): if boxed { @@ -1933,14 +1927,14 @@ struct messages { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .affectedHistory(let pts, let ptsCount, let offset): return ("affectedHistory", [("pts", pts), ("ptsCount", ptsCount), ("offset", offset)]) } } - static func parse_affectedHistory(_ reader: BufferReader) -> AffectedHistory? { + public static func parse_affectedHistory(_ reader: BufferReader) -> AffectedHistory? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -1959,10 +1953,10 @@ struct messages { } } - enum MessageEditData: TypeConstructorDescription { + public enum MessageEditData: TypeConstructorDescription { case messageEditData(flags: Int32) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .messageEditData(let flags): if boxed { @@ -1973,14 +1967,14 @@ struct messages { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .messageEditData(let flags): return ("messageEditData", [("flags", flags)]) } } - static func parse_messageEditData(_ reader: BufferReader) -> MessageEditData? { + public static func parse_messageEditData(_ reader: BufferReader) -> MessageEditData? { var _1: Int32? _1 = reader.readInt32() let _c1 = _1 != nil @@ -1993,10 +1987,10 @@ struct messages { } } - enum ChatFull: TypeConstructorDescription { + public enum ChatFull: TypeConstructorDescription { case chatFull(fullChat: Api.ChatFull, chats: [Api.Chat], users: [Api.User]) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .chatFull(let fullChat, let chats, let users): if boxed { @@ -2017,14 +2011,14 @@ struct messages { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .chatFull(let fullChat, let chats, let users): return ("chatFull", [("fullChat", fullChat), ("chats", chats), ("users", users)]) } } - static func parse_chatFull(_ reader: BufferReader) -> ChatFull? { + public static func parse_chatFull(_ reader: BufferReader) -> ChatFull? { var _1: Api.ChatFull? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.ChatFull @@ -2049,10 +2043,10 @@ struct messages { } } - enum SearchCounter: TypeConstructorDescription { + public enum SearchCounter: TypeConstructorDescription { case searchCounter(flags: Int32, filter: Api.MessagesFilter, count: Int32) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .searchCounter(let flags, let filter, let count): if boxed { @@ -2065,14 +2059,14 @@ struct messages { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .searchCounter(let flags, let filter, let count): return ("searchCounter", [("flags", flags), ("filter", filter), ("count", count)]) } } - static func parse_searchCounter(_ reader: BufferReader) -> SearchCounter? { + public static func parse_searchCounter(_ reader: BufferReader) -> SearchCounter? { var _1: Int32? _1 = reader.readInt32() var _2: Api.MessagesFilter? @@ -2093,11 +2087,11 @@ struct messages { } } - enum StickerSetInstallResult: TypeConstructorDescription { + public enum StickerSetInstallResult: TypeConstructorDescription { case stickerSetInstallResultSuccess case stickerSetInstallResultArchive(sets: [Api.StickerSetCovered]) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .stickerSetInstallResultSuccess: if boxed { @@ -2118,7 +2112,7 @@ struct messages { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .stickerSetInstallResultSuccess: return ("stickerSetInstallResultSuccess", []) @@ -2127,10 +2121,10 @@ struct messages { } } - static func parse_stickerSetInstallResultSuccess(_ reader: BufferReader) -> StickerSetInstallResult? { + public static func parse_stickerSetInstallResultSuccess(_ reader: BufferReader) -> StickerSetInstallResult? { return Api.messages.StickerSetInstallResult.stickerSetInstallResultSuccess } - static func parse_stickerSetInstallResultArchive(_ reader: BufferReader) -> StickerSetInstallResult? { + public static func parse_stickerSetInstallResultArchive(_ reader: BufferReader) -> StickerSetInstallResult? { var _1: [Api.StickerSetCovered]? if let _ = reader.readInt32() { _1 = Api.parseVector(reader, elementSignature: 0, elementType: Api.StickerSetCovered.self) @@ -2145,10 +2139,10 @@ struct messages { } } - enum AffectedMessages: TypeConstructorDescription { + public enum AffectedMessages: TypeConstructorDescription { case affectedMessages(pts: Int32, ptsCount: Int32) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .affectedMessages(let pts, let ptsCount): if boxed { @@ -2160,14 +2154,14 @@ struct messages { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .affectedMessages(let pts, let ptsCount): return ("affectedMessages", [("pts", pts), ("ptsCount", ptsCount)]) } } - static func parse_affectedMessages(_ reader: BufferReader) -> AffectedMessages? { + public static func parse_affectedMessages(_ reader: BufferReader) -> AffectedMessages? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -2183,11 +2177,11 @@ struct messages { } } - enum SavedGifs: TypeConstructorDescription { + public enum SavedGifs: TypeConstructorDescription { case savedGifsNotModified case savedGifs(hash: Int32, gifs: [Api.Document]) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .savedGifsNotModified: if boxed { @@ -2209,7 +2203,7 @@ struct messages { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .savedGifsNotModified: return ("savedGifsNotModified", []) @@ -2218,10 +2212,10 @@ struct messages { } } - static func parse_savedGifsNotModified(_ reader: BufferReader) -> SavedGifs? { + public static func parse_savedGifsNotModified(_ reader: BufferReader) -> SavedGifs? { return Api.messages.SavedGifs.savedGifsNotModified } - static func parse_savedGifs(_ reader: BufferReader) -> SavedGifs? { + public static func parse_savedGifs(_ reader: BufferReader) -> SavedGifs? { var _1: Int32? _1 = reader.readInt32() var _2: [Api.Document]? @@ -2239,13 +2233,13 @@ struct messages { } } - enum Messages: TypeConstructorDescription { + public enum Messages: TypeConstructorDescription { case messages(messages: [Api.Message], chats: [Api.Chat], users: [Api.User]) case messagesNotModified(count: Int32) case channelMessages(flags: Int32, pts: Int32, count: Int32, messages: [Api.Message], chats: [Api.Chat], users: [Api.User]) case messagesSlice(flags: Int32, count: Int32, nextRate: Int32?, messages: [Api.Message], chats: [Api.Chat], users: [Api.User]) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .messages(let messages, let chats, let users): if boxed { @@ -2322,7 +2316,7 @@ struct messages { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .messages(let messages, let chats, let users): return ("messages", [("messages", messages), ("chats", chats), ("users", users)]) @@ -2335,7 +2329,7 @@ struct messages { } } - static func parse_messages(_ reader: BufferReader) -> Messages? { + public static func parse_messages(_ reader: BufferReader) -> Messages? { var _1: [Api.Message]? if let _ = reader.readInt32() { _1 = Api.parseVector(reader, elementSignature: 0, elementType: Api.Message.self) @@ -2358,7 +2352,7 @@ struct messages { return nil } } - static func parse_messagesNotModified(_ reader: BufferReader) -> Messages? { + public static func parse_messagesNotModified(_ reader: BufferReader) -> Messages? { var _1: Int32? _1 = reader.readInt32() let _c1 = _1 != nil @@ -2369,7 +2363,7 @@ struct messages { return nil } } - static func parse_channelMessages(_ reader: BufferReader) -> Messages? { + public static func parse_channelMessages(_ reader: BufferReader) -> Messages? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -2401,7 +2395,7 @@ struct messages { return nil } } - static func parse_messagesSlice(_ reader: BufferReader) -> Messages? { + public static func parse_messagesSlice(_ reader: BufferReader) -> Messages? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -2435,10 +2429,10 @@ struct messages { } } - enum PeerDialogs: TypeConstructorDescription { + public enum PeerDialogs: TypeConstructorDescription { case peerDialogs(dialogs: [Api.Dialog], messages: [Api.Message], chats: [Api.Chat], users: [Api.User], state: Api.updates.State) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .peerDialogs(let dialogs, let messages, let chats, let users, let state): if boxed { @@ -2469,14 +2463,14 @@ struct messages { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .peerDialogs(let dialogs, let messages, let chats, let users, let state): return ("peerDialogs", [("dialogs", dialogs), ("messages", messages), ("chats", chats), ("users", users), ("state", state)]) } } - static func parse_peerDialogs(_ reader: BufferReader) -> PeerDialogs? { + public static func parse_peerDialogs(_ reader: BufferReader) -> PeerDialogs? { var _1: [Api.Dialog]? if let _ = reader.readInt32() { _1 = Api.parseVector(reader, elementSignature: 0, elementType: Api.Dialog.self) @@ -2511,11 +2505,11 @@ struct messages { } } - enum RecentStickers: TypeConstructorDescription { + public enum RecentStickers: TypeConstructorDescription { case recentStickersNotModified case recentStickers(hash: Int32, packs: [Api.StickerPack], stickers: [Api.Document], dates: [Int32]) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .recentStickersNotModified: if boxed { @@ -2547,7 +2541,7 @@ struct messages { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .recentStickersNotModified: return ("recentStickersNotModified", []) @@ -2556,10 +2550,10 @@ struct messages { } } - static func parse_recentStickersNotModified(_ reader: BufferReader) -> RecentStickers? { + public static func parse_recentStickersNotModified(_ reader: BufferReader) -> RecentStickers? { return Api.messages.RecentStickers.recentStickersNotModified } - static func parse_recentStickers(_ reader: BufferReader) -> RecentStickers? { + public static func parse_recentStickers(_ reader: BufferReader) -> RecentStickers? { var _1: Int32? _1 = reader.readInt32() var _2: [Api.StickerPack]? @@ -2587,11 +2581,11 @@ struct messages { } } - enum FeaturedStickers: TypeConstructorDescription { + public enum FeaturedStickers: TypeConstructorDescription { case featuredStickersNotModified case featuredStickers(hash: Int32, sets: [Api.StickerSetCovered], unread: [Int64]) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .featuredStickersNotModified: if boxed { @@ -2618,7 +2612,7 @@ struct messages { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .featuredStickersNotModified: return ("featuredStickersNotModified", []) @@ -2627,10 +2621,10 @@ struct messages { } } - static func parse_featuredStickersNotModified(_ reader: BufferReader) -> FeaturedStickers? { + public static func parse_featuredStickersNotModified(_ reader: BufferReader) -> FeaturedStickers? { return Api.messages.FeaturedStickers.featuredStickersNotModified } - static func parse_featuredStickers(_ reader: BufferReader) -> FeaturedStickers? { + public static func parse_featuredStickers(_ reader: BufferReader) -> FeaturedStickers? { var _1: Int32? _1 = reader.readInt32() var _2: [Api.StickerSetCovered]? @@ -2653,12 +2647,12 @@ struct messages { } } - enum Dialogs: TypeConstructorDescription { + public enum Dialogs: TypeConstructorDescription { case dialogs(dialogs: [Api.Dialog], messages: [Api.Message], chats: [Api.Chat], users: [Api.User]) case dialogsSlice(count: Int32, dialogs: [Api.Dialog], messages: [Api.Message], chats: [Api.Chat], users: [Api.User]) case dialogsNotModified(count: Int32) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .dialogs(let dialogs, let messages, let chats, let users): if boxed { @@ -2720,7 +2714,7 @@ struct messages { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .dialogs(let dialogs, let messages, let chats, let users): return ("dialogs", [("dialogs", dialogs), ("messages", messages), ("chats", chats), ("users", users)]) @@ -2731,7 +2725,7 @@ struct messages { } } - static func parse_dialogs(_ reader: BufferReader) -> Dialogs? { + public static func parse_dialogs(_ reader: BufferReader) -> Dialogs? { var _1: [Api.Dialog]? if let _ = reader.readInt32() { _1 = Api.parseVector(reader, elementSignature: 0, elementType: Api.Dialog.self) @@ -2759,7 +2753,7 @@ struct messages { return nil } } - static func parse_dialogsSlice(_ reader: BufferReader) -> Dialogs? { + public static func parse_dialogsSlice(_ reader: BufferReader) -> Dialogs? { var _1: Int32? _1 = reader.readInt32() var _2: [Api.Dialog]? @@ -2790,7 +2784,7 @@ struct messages { return nil } } - static func parse_dialogsNotModified(_ reader: BufferReader) -> Dialogs? { + public static func parse_dialogsNotModified(_ reader: BufferReader) -> Dialogs? { var _1: Int32? _1 = reader.readInt32() let _c1 = _1 != nil @@ -2803,11 +2797,11 @@ struct messages { } } - enum FavedStickers: TypeConstructorDescription { + public enum FavedStickers: TypeConstructorDescription { case favedStickersNotModified case favedStickers(hash: Int32, packs: [Api.StickerPack], stickers: [Api.Document]) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .favedStickersNotModified: if boxed { @@ -2834,7 +2828,7 @@ struct messages { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .favedStickersNotModified: return ("favedStickersNotModified", []) @@ -2843,10 +2837,10 @@ struct messages { } } - static func parse_favedStickersNotModified(_ reader: BufferReader) -> FavedStickers? { + public static func parse_favedStickersNotModified(_ reader: BufferReader) -> FavedStickers? { return Api.messages.FavedStickers.favedStickersNotModified } - static func parse_favedStickers(_ reader: BufferReader) -> FavedStickers? { + public static func parse_favedStickers(_ reader: BufferReader) -> FavedStickers? { var _1: Int32? _1 = reader.readInt32() var _2: [Api.StickerPack]? @@ -2869,11 +2863,11 @@ struct messages { } } - enum AllStickers: TypeConstructorDescription { + public enum AllStickers: TypeConstructorDescription { case allStickersNotModified case allStickers(hash: Int32, sets: [Api.StickerSet]) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .allStickersNotModified: if boxed { @@ -2895,7 +2889,7 @@ struct messages { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .allStickersNotModified: return ("allStickersNotModified", []) @@ -2904,10 +2898,10 @@ struct messages { } } - static func parse_allStickersNotModified(_ reader: BufferReader) -> AllStickers? { + public static func parse_allStickersNotModified(_ reader: BufferReader) -> AllStickers? { return Api.messages.AllStickers.allStickersNotModified } - static func parse_allStickers(_ reader: BufferReader) -> AllStickers? { + public static func parse_allStickers(_ reader: BufferReader) -> AllStickers? { var _1: Int32? _1 = reader.readInt32() var _2: [Api.StickerSet]? @@ -2925,10 +2919,10 @@ struct messages { } } - enum HighScores: TypeConstructorDescription { + public enum HighScores: TypeConstructorDescription { case highScores(scores: [Api.HighScore], users: [Api.User]) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .highScores(let scores, let users): if boxed { @@ -2948,14 +2942,14 @@ struct messages { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .highScores(let scores, let users): return ("highScores", [("scores", scores), ("users", users)]) } } - static func parse_highScores(_ reader: BufferReader) -> HighScores? { + public static func parse_highScores(_ reader: BufferReader) -> HighScores? { var _1: [Api.HighScore]? if let _ = reader.readInt32() { _1 = Api.parseVector(reader, elementSignature: 0, elementType: Api.HighScore.self) diff --git a/submodules/TelegramApi/Sources/Api1.swift b/submodules/TelegramApi/Sources/Api1.swift index 563cd246e4..4e43658dfa 100644 --- a/submodules/TelegramApi/Sources/Api1.swift +++ b/submodules/TelegramApi/Sources/Api1.swift @@ -1,9 +1,9 @@ -extension Api { - enum InputGeoPoint: TypeConstructorDescription { +public extension Api { + public enum InputGeoPoint: TypeConstructorDescription { case inputGeoPointEmpty case inputGeoPoint(lat: Double, long: Double) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .inputGeoPointEmpty: if boxed { @@ -21,7 +21,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .inputGeoPointEmpty: return ("inputGeoPointEmpty", []) @@ -30,10 +30,10 @@ extension Api { } } - static func parse_inputGeoPointEmpty(_ reader: BufferReader) -> InputGeoPoint? { + public static func parse_inputGeoPointEmpty(_ reader: BufferReader) -> InputGeoPoint? { return Api.InputGeoPoint.inputGeoPointEmpty } - static func parse_inputGeoPoint(_ reader: BufferReader) -> InputGeoPoint? { + public static func parse_inputGeoPoint(_ reader: BufferReader) -> InputGeoPoint? { var _1: Double? _1 = reader.readDouble() var _2: Double? @@ -49,11 +49,11 @@ extension Api { } } - enum ChatFull: TypeConstructorDescription { + public enum ChatFull: TypeConstructorDescription { case chatFull(flags: Int32, id: Int32, about: String, participants: Api.ChatParticipants, chatPhoto: Api.Photo?, notifySettings: Api.PeerNotifySettings, exportedInvite: Api.ExportedChatInvite, botInfo: [Api.BotInfo]?, pinnedMsgId: Int32?, folderId: Int32?) case channelFull(flags: Int32, id: Int32, about: String, participantsCount: Int32?, adminsCount: Int32?, kickedCount: Int32?, bannedCount: Int32?, onlineCount: Int32?, readInboxMaxId: Int32, readOutboxMaxId: Int32, unreadCount: Int32, chatPhoto: Api.Photo, notifySettings: Api.PeerNotifySettings, exportedInvite: Api.ExportedChatInvite, botInfo: [Api.BotInfo], migratedFromChatId: Int32?, migratedFromMaxId: Int32?, pinnedMsgId: Int32?, stickerset: Api.StickerSet?, availableMinId: Int32?, folderId: Int32?, linkedChatId: Int32?, location: Api.ChannelLocation?, pts: Int32) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .chatFull(let flags, let id, let about, let participants, let chatPhoto, let notifySettings, let exportedInvite, let botInfo, let pinnedMsgId, let folderId): if boxed { @@ -110,7 +110,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .chatFull(let flags, let id, let about, let participants, let chatPhoto, let notifySettings, let exportedInvite, let botInfo, let pinnedMsgId, let folderId): return ("chatFull", [("flags", flags), ("id", id), ("about", about), ("participants", participants), ("chatPhoto", chatPhoto), ("notifySettings", notifySettings), ("exportedInvite", exportedInvite), ("botInfo", botInfo), ("pinnedMsgId", pinnedMsgId), ("folderId", folderId)]) @@ -119,7 +119,7 @@ extension Api { } } - static func parse_chatFull(_ reader: BufferReader) -> ChatFull? { + public static func parse_chatFull(_ reader: BufferReader) -> ChatFull? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -167,7 +167,7 @@ extension Api { return nil } } - static func parse_channelFull(_ reader: BufferReader) -> ChatFull? { + public static func parse_channelFull(_ reader: BufferReader) -> ChatFull? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -261,10 +261,10 @@ extension Api { } } - enum PollResults: TypeConstructorDescription { + public enum PollResults: TypeConstructorDescription { case pollResults(flags: Int32, results: [Api.PollAnswerVoters]?, totalVoters: Int32?) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .pollResults(let flags, let results, let totalVoters): if boxed { @@ -281,14 +281,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .pollResults(let flags, let results, let totalVoters): return ("pollResults", [("flags", flags), ("results", results), ("totalVoters", totalVoters)]) } } - static func parse_pollResults(_ reader: BufferReader) -> PollResults? { + public static func parse_pollResults(_ reader: BufferReader) -> PollResults? { var _1: Int32? _1 = reader.readInt32() var _2: [Api.PollAnswerVoters]? @@ -309,12 +309,12 @@ extension Api { } } - enum ChatParticipant: TypeConstructorDescription { + public enum ChatParticipant: TypeConstructorDescription { case chatParticipant(userId: Int32, inviterId: Int32, date: Int32) case chatParticipantCreator(userId: Int32) case chatParticipantAdmin(userId: Int32, inviterId: Int32, date: Int32) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .chatParticipant(let userId, let inviterId, let date): if boxed { @@ -341,7 +341,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .chatParticipant(let userId, let inviterId, let date): return ("chatParticipant", [("userId", userId), ("inviterId", inviterId), ("date", date)]) @@ -352,7 +352,7 @@ extension Api { } } - static func parse_chatParticipant(_ reader: BufferReader) -> ChatParticipant? { + public static func parse_chatParticipant(_ reader: BufferReader) -> ChatParticipant? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -369,7 +369,7 @@ extension Api { return nil } } - static func parse_chatParticipantCreator(_ reader: BufferReader) -> ChatParticipant? { + public static func parse_chatParticipantCreator(_ reader: BufferReader) -> ChatParticipant? { var _1: Int32? _1 = reader.readInt32() let _c1 = _1 != nil @@ -380,7 +380,7 @@ extension Api { return nil } } - static func parse_chatParticipantAdmin(_ reader: BufferReader) -> ChatParticipant? { + public static func parse_chatParticipantAdmin(_ reader: BufferReader) -> ChatParticipant? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -399,10 +399,10 @@ extension Api { } } - enum CdnConfig: TypeConstructorDescription { + public enum CdnConfig: TypeConstructorDescription { case cdnConfig(publicKeys: [Api.CdnPublicKey]) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .cdnConfig(let publicKeys): if boxed { @@ -417,14 +417,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .cdnConfig(let publicKeys): return ("cdnConfig", [("publicKeys", publicKeys)]) } } - static func parse_cdnConfig(_ reader: BufferReader) -> CdnConfig? { + public static func parse_cdnConfig(_ reader: BufferReader) -> CdnConfig? { var _1: [Api.CdnPublicKey]? if let _ = reader.readInt32() { _1 = Api.parseVector(reader, elementSignature: 0, elementType: Api.CdnPublicKey.self) @@ -439,7 +439,7 @@ extension Api { } } - indirect enum PageBlock: TypeConstructorDescription { + indirect public enum PageBlock: TypeConstructorDescription { case pageBlockUnsupported case pageBlockTitle(text: Api.RichText) case pageBlockSubtitle(text: Api.RichText) @@ -470,7 +470,7 @@ extension Api { case pageBlockRelatedArticles(title: Api.RichText, articles: [Api.PageRelatedArticle]) case pageBlockMap(geo: Api.GeoPoint, zoom: Int32, w: Int32, h: Int32, caption: Api.PageCaption) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .pageBlockUnsupported: if boxed { @@ -715,7 +715,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .pageBlockUnsupported: return ("pageBlockUnsupported", []) @@ -778,10 +778,10 @@ extension Api { } } - static func parse_pageBlockUnsupported(_ reader: BufferReader) -> PageBlock? { + public static func parse_pageBlockUnsupported(_ reader: BufferReader) -> PageBlock? { return Api.PageBlock.pageBlockUnsupported } - static func parse_pageBlockTitle(_ reader: BufferReader) -> PageBlock? { + public static func parse_pageBlockTitle(_ reader: BufferReader) -> PageBlock? { var _1: Api.RichText? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.RichText @@ -794,7 +794,7 @@ extension Api { return nil } } - static func parse_pageBlockSubtitle(_ reader: BufferReader) -> PageBlock? { + public static func parse_pageBlockSubtitle(_ reader: BufferReader) -> PageBlock? { var _1: Api.RichText? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.RichText @@ -807,7 +807,7 @@ extension Api { return nil } } - static func parse_pageBlockAuthorDate(_ reader: BufferReader) -> PageBlock? { + public static func parse_pageBlockAuthorDate(_ reader: BufferReader) -> PageBlock? { var _1: Api.RichText? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.RichText @@ -823,7 +823,7 @@ extension Api { return nil } } - static func parse_pageBlockHeader(_ reader: BufferReader) -> PageBlock? { + public static func parse_pageBlockHeader(_ reader: BufferReader) -> PageBlock? { var _1: Api.RichText? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.RichText @@ -836,7 +836,7 @@ extension Api { return nil } } - static func parse_pageBlockSubheader(_ reader: BufferReader) -> PageBlock? { + public static func parse_pageBlockSubheader(_ reader: BufferReader) -> PageBlock? { var _1: Api.RichText? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.RichText @@ -849,7 +849,7 @@ extension Api { return nil } } - static func parse_pageBlockParagraph(_ reader: BufferReader) -> PageBlock? { + public static func parse_pageBlockParagraph(_ reader: BufferReader) -> PageBlock? { var _1: Api.RichText? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.RichText @@ -862,7 +862,7 @@ extension Api { return nil } } - static func parse_pageBlockPreformatted(_ reader: BufferReader) -> PageBlock? { + public static func parse_pageBlockPreformatted(_ reader: BufferReader) -> PageBlock? { var _1: Api.RichText? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.RichText @@ -878,7 +878,7 @@ extension Api { return nil } } - static func parse_pageBlockFooter(_ reader: BufferReader) -> PageBlock? { + public static func parse_pageBlockFooter(_ reader: BufferReader) -> PageBlock? { var _1: Api.RichText? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.RichText @@ -891,10 +891,10 @@ extension Api { return nil } } - static func parse_pageBlockDivider(_ reader: BufferReader) -> PageBlock? { + public static func parse_pageBlockDivider(_ reader: BufferReader) -> PageBlock? { return Api.PageBlock.pageBlockDivider } - static func parse_pageBlockAnchor(_ reader: BufferReader) -> PageBlock? { + public static func parse_pageBlockAnchor(_ reader: BufferReader) -> PageBlock? { var _1: String? _1 = parseString(reader) let _c1 = _1 != nil @@ -905,7 +905,7 @@ extension Api { return nil } } - static func parse_pageBlockBlockquote(_ reader: BufferReader) -> PageBlock? { + public static func parse_pageBlockBlockquote(_ reader: BufferReader) -> PageBlock? { var _1: Api.RichText? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.RichText @@ -923,7 +923,7 @@ extension Api { return nil } } - static func parse_pageBlockPullquote(_ reader: BufferReader) -> PageBlock? { + public static func parse_pageBlockPullquote(_ reader: BufferReader) -> PageBlock? { var _1: Api.RichText? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.RichText @@ -941,7 +941,7 @@ extension Api { return nil } } - static func parse_pageBlockCover(_ reader: BufferReader) -> PageBlock? { + public static func parse_pageBlockCover(_ reader: BufferReader) -> PageBlock? { var _1: Api.PageBlock? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.PageBlock @@ -954,7 +954,7 @@ extension Api { return nil } } - static func parse_pageBlockChannel(_ reader: BufferReader) -> PageBlock? { + public static func parse_pageBlockChannel(_ reader: BufferReader) -> PageBlock? { var _1: Api.Chat? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.Chat @@ -967,7 +967,7 @@ extension Api { return nil } } - static func parse_pageBlockKicker(_ reader: BufferReader) -> PageBlock? { + public static func parse_pageBlockKicker(_ reader: BufferReader) -> PageBlock? { var _1: Api.RichText? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.RichText @@ -980,7 +980,7 @@ extension Api { return nil } } - static func parse_pageBlockTable(_ reader: BufferReader) -> PageBlock? { + public static func parse_pageBlockTable(_ reader: BufferReader) -> PageBlock? { var _1: Int32? _1 = reader.readInt32() var _2: Api.RichText? @@ -1001,7 +1001,7 @@ extension Api { return nil } } - static func parse_pageBlockPhoto(_ reader: BufferReader) -> PageBlock? { + public static func parse_pageBlockPhoto(_ reader: BufferReader) -> PageBlock? { var _1: Int32? _1 = reader.readInt32() var _2: Int64? @@ -1026,7 +1026,7 @@ extension Api { return nil } } - static func parse_pageBlockVideo(_ reader: BufferReader) -> PageBlock? { + public static func parse_pageBlockVideo(_ reader: BufferReader) -> PageBlock? { var _1: Int32? _1 = reader.readInt32() var _2: Int64? @@ -1045,7 +1045,7 @@ extension Api { return nil } } - static func parse_pageBlockAudio(_ reader: BufferReader) -> PageBlock? { + public static func parse_pageBlockAudio(_ reader: BufferReader) -> PageBlock? { var _1: Int64? _1 = reader.readInt64() var _2: Api.PageCaption? @@ -1061,7 +1061,7 @@ extension Api { return nil } } - static func parse_pageBlockEmbed(_ reader: BufferReader) -> PageBlock? { + public static func parse_pageBlockEmbed(_ reader: BufferReader) -> PageBlock? { var _1: Int32? _1 = reader.readInt32() var _2: String? @@ -1092,7 +1092,7 @@ extension Api { return nil } } - static func parse_pageBlockEmbedPost(_ reader: BufferReader) -> PageBlock? { + public static func parse_pageBlockEmbedPost(_ reader: BufferReader) -> PageBlock? { var _1: String? _1 = parseString(reader) var _2: Int64? @@ -1125,7 +1125,7 @@ extension Api { return nil } } - static func parse_pageBlockCollage(_ reader: BufferReader) -> PageBlock? { + public static func parse_pageBlockCollage(_ reader: BufferReader) -> PageBlock? { var _1: [Api.PageBlock]? if let _ = reader.readInt32() { _1 = Api.parseVector(reader, elementSignature: 0, elementType: Api.PageBlock.self) @@ -1143,7 +1143,7 @@ extension Api { return nil } } - static func parse_pageBlockSlideshow(_ reader: BufferReader) -> PageBlock? { + public static func parse_pageBlockSlideshow(_ reader: BufferReader) -> PageBlock? { var _1: [Api.PageBlock]? if let _ = reader.readInt32() { _1 = Api.parseVector(reader, elementSignature: 0, elementType: Api.PageBlock.self) @@ -1161,7 +1161,7 @@ extension Api { return nil } } - static func parse_pageBlockList(_ reader: BufferReader) -> PageBlock? { + public static func parse_pageBlockList(_ reader: BufferReader) -> PageBlock? { var _1: [Api.PageListItem]? if let _ = reader.readInt32() { _1 = Api.parseVector(reader, elementSignature: 0, elementType: Api.PageListItem.self) @@ -1174,7 +1174,7 @@ extension Api { return nil } } - static func parse_pageBlockOrderedList(_ reader: BufferReader) -> PageBlock? { + public static func parse_pageBlockOrderedList(_ reader: BufferReader) -> PageBlock? { var _1: [Api.PageListOrderedItem]? if let _ = reader.readInt32() { _1 = Api.parseVector(reader, elementSignature: 0, elementType: Api.PageListOrderedItem.self) @@ -1187,7 +1187,7 @@ extension Api { return nil } } - static func parse_pageBlockDetails(_ reader: BufferReader) -> PageBlock? { + public static func parse_pageBlockDetails(_ reader: BufferReader) -> PageBlock? { var _1: Int32? _1 = reader.readInt32() var _2: [Api.PageBlock]? @@ -1208,7 +1208,7 @@ extension Api { return nil } } - static func parse_pageBlockRelatedArticles(_ reader: BufferReader) -> PageBlock? { + public static func parse_pageBlockRelatedArticles(_ reader: BufferReader) -> PageBlock? { var _1: Api.RichText? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.RichText @@ -1226,7 +1226,7 @@ extension Api { return nil } } - static func parse_pageBlockMap(_ reader: BufferReader) -> PageBlock? { + public static func parse_pageBlockMap(_ reader: BufferReader) -> PageBlock? { var _1: Api.GeoPoint? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.GeoPoint @@ -1255,11 +1255,11 @@ extension Api { } } - enum SecureRequiredType: TypeConstructorDescription { + public enum SecureRequiredType: TypeConstructorDescription { case secureRequiredType(flags: Int32, type: Api.SecureValueType) case secureRequiredTypeOneOf(types: [Api.SecureRequiredType]) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .secureRequiredType(let flags, let type): if boxed { @@ -1281,7 +1281,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .secureRequiredType(let flags, let type): return ("secureRequiredType", [("flags", flags), ("type", type)]) @@ -1290,7 +1290,7 @@ extension Api { } } - static func parse_secureRequiredType(_ reader: BufferReader) -> SecureRequiredType? { + public static func parse_secureRequiredType(_ reader: BufferReader) -> SecureRequiredType? { var _1: Int32? _1 = reader.readInt32() var _2: Api.SecureValueType? @@ -1306,7 +1306,7 @@ extension Api { return nil } } - static func parse_secureRequiredTypeOneOf(_ reader: BufferReader) -> SecureRequiredType? { + public static func parse_secureRequiredTypeOneOf(_ reader: BufferReader) -> SecureRequiredType? { var _1: [Api.SecureRequiredType]? if let _ = reader.readInt32() { _1 = Api.parseVector(reader, elementSignature: 0, elementType: Api.SecureRequiredType.self) @@ -1321,7 +1321,7 @@ extension Api { } } - enum JSONValue: TypeConstructorDescription { + public enum JSONValue: TypeConstructorDescription { case jsonNull case jsonBool(value: Api.Bool) case jsonNumber(value: Double) @@ -1329,7 +1329,7 @@ extension Api { case jsonArray(value: [Api.JSONValue]) case jsonObject(value: [Api.JSONObjectValue]) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .jsonNull: if boxed { @@ -1378,7 +1378,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .jsonNull: return ("jsonNull", []) @@ -1395,10 +1395,10 @@ extension Api { } } - static func parse_jsonNull(_ reader: BufferReader) -> JSONValue? { + public static func parse_jsonNull(_ reader: BufferReader) -> JSONValue? { return Api.JSONValue.jsonNull } - static func parse_jsonBool(_ reader: BufferReader) -> JSONValue? { + public static func parse_jsonBool(_ reader: BufferReader) -> JSONValue? { var _1: Api.Bool? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.Bool @@ -1411,7 +1411,7 @@ extension Api { return nil } } - static func parse_jsonNumber(_ reader: BufferReader) -> JSONValue? { + public static func parse_jsonNumber(_ reader: BufferReader) -> JSONValue? { var _1: Double? _1 = reader.readDouble() let _c1 = _1 != nil @@ -1422,7 +1422,7 @@ extension Api { return nil } } - static func parse_jsonString(_ reader: BufferReader) -> JSONValue? { + public static func parse_jsonString(_ reader: BufferReader) -> JSONValue? { var _1: String? _1 = parseString(reader) let _c1 = _1 != nil @@ -1433,7 +1433,7 @@ extension Api { return nil } } - static func parse_jsonArray(_ reader: BufferReader) -> JSONValue? { + public static func parse_jsonArray(_ reader: BufferReader) -> JSONValue? { var _1: [Api.JSONValue]? if let _ = reader.readInt32() { _1 = Api.parseVector(reader, elementSignature: 0, elementType: Api.JSONValue.self) @@ -1446,7 +1446,7 @@ extension Api { return nil } } - static func parse_jsonObject(_ reader: BufferReader) -> JSONValue? { + public static func parse_jsonObject(_ reader: BufferReader) -> JSONValue? { var _1: [Api.JSONObjectValue]? if let _ = reader.readInt32() { _1 = Api.parseVector(reader, elementSignature: 0, elementType: Api.JSONObjectValue.self) @@ -1461,11 +1461,11 @@ extension Api { } } - enum Photo: TypeConstructorDescription { + public enum Photo: TypeConstructorDescription { case photoEmpty(id: Int64) case photo(flags: Int32, id: Int64, accessHash: Int64, fileReference: Buffer, date: Int32, sizes: [Api.PhotoSize], dcId: Int32) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .photoEmpty(let id): if boxed { @@ -1492,7 +1492,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .photoEmpty(let id): return ("photoEmpty", [("id", id)]) @@ -1501,7 +1501,7 @@ extension Api { } } - static func parse_photoEmpty(_ reader: BufferReader) -> Photo? { + public static func parse_photoEmpty(_ reader: BufferReader) -> Photo? { var _1: Int64? _1 = reader.readInt64() let _c1 = _1 != nil @@ -1512,7 +1512,7 @@ extension Api { return nil } } - static func parse_photo(_ reader: BufferReader) -> Photo? { + public static func parse_photo(_ reader: BufferReader) -> Photo? { var _1: Int32? _1 = reader.readInt32() var _2: Int64? @@ -1545,14 +1545,14 @@ extension Api { } } - enum Chat: TypeConstructorDescription { + public enum Chat: TypeConstructorDescription { case chatEmpty(id: Int32) case chatForbidden(id: Int32, title: String) case channelForbidden(flags: Int32, id: Int32, accessHash: Int64, title: String, untilDate: Int32?) case chat(flags: Int32, id: Int32, title: String, photo: Api.ChatPhoto, participantsCount: Int32, date: Int32, version: Int32, migratedTo: Api.InputChannel?, adminRights: Api.ChatAdminRights?, defaultBannedRights: Api.ChatBannedRights?) case channel(flags: Int32, id: Int32, accessHash: Int64?, title: String, username: String?, photo: Api.ChatPhoto, date: Int32, version: Int32, restrictionReason: String?, adminRights: Api.ChatAdminRights?, bannedRights: Api.ChatBannedRights?, defaultBannedRights: Api.ChatBannedRights?, participantsCount: Int32?) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .chatEmpty(let id): if boxed { @@ -1613,7 +1613,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .chatEmpty(let id): return ("chatEmpty", [("id", id)]) @@ -1628,7 +1628,7 @@ extension Api { } } - static func parse_chatEmpty(_ reader: BufferReader) -> Chat? { + public static func parse_chatEmpty(_ reader: BufferReader) -> Chat? { var _1: Int32? _1 = reader.readInt32() let _c1 = _1 != nil @@ -1639,7 +1639,7 @@ extension Api { return nil } } - static func parse_chatForbidden(_ reader: BufferReader) -> Chat? { + public static func parse_chatForbidden(_ reader: BufferReader) -> Chat? { var _1: Int32? _1 = reader.readInt32() var _2: String? @@ -1653,7 +1653,7 @@ extension Api { return nil } } - static func parse_channelForbidden(_ reader: BufferReader) -> Chat? { + public static func parse_channelForbidden(_ reader: BufferReader) -> Chat? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -1676,7 +1676,7 @@ extension Api { return nil } } - static func parse_chat(_ reader: BufferReader) -> Chat? { + public static func parse_chat(_ reader: BufferReader) -> Chat? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -1722,7 +1722,7 @@ extension Api { return nil } } - static func parse_channel(_ reader: BufferReader) -> Chat? { + public static func parse_channel(_ reader: BufferReader) -> Chat? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -1779,10 +1779,10 @@ extension Api { } } - enum StatsURL: TypeConstructorDescription { + public enum StatsURL: TypeConstructorDescription { case statsURL(url: String) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .statsURL(let url): if boxed { @@ -1793,14 +1793,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .statsURL(let url): return ("statsURL", [("url", url)]) } } - static func parse_statsURL(_ reader: BufferReader) -> StatsURL? { + public static func parse_statsURL(_ reader: BufferReader) -> StatsURL? { var _1: String? _1 = parseString(reader) let _c1 = _1 != nil @@ -1813,11 +1813,11 @@ extension Api { } } - enum ChatInvite: TypeConstructorDescription { + public enum ChatInvite: TypeConstructorDescription { case chatInviteAlready(chat: Api.Chat) case chatInvite(flags: Int32, title: String, photo: Api.Photo, participantsCount: Int32, participants: [Api.User]?) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .chatInviteAlready(let chat): if boxed { @@ -1842,7 +1842,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .chatInviteAlready(let chat): return ("chatInviteAlready", [("chat", chat)]) @@ -1851,7 +1851,7 @@ extension Api { } } - static func parse_chatInviteAlready(_ reader: BufferReader) -> ChatInvite? { + public static func parse_chatInviteAlready(_ reader: BufferReader) -> ChatInvite? { var _1: Api.Chat? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.Chat @@ -1864,7 +1864,7 @@ extension Api { return nil } } - static func parse_chatInvite(_ reader: BufferReader) -> ChatInvite? { + public static func parse_chatInvite(_ reader: BufferReader) -> ChatInvite? { var _1: Int32? _1 = reader.readInt32() var _2: String? @@ -1893,10 +1893,10 @@ extension Api { } } - enum AutoDownloadSettings: TypeConstructorDescription { + public enum AutoDownloadSettings: TypeConstructorDescription { case autoDownloadSettings(flags: Int32, photoSizeMax: Int32, videoSizeMax: Int32, fileSizeMax: Int32) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .autoDownloadSettings(let flags, let photoSizeMax, let videoSizeMax, let fileSizeMax): if boxed { @@ -1910,14 +1910,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .autoDownloadSettings(let flags, let photoSizeMax, let videoSizeMax, let fileSizeMax): return ("autoDownloadSettings", [("flags", flags), ("photoSizeMax", photoSizeMax), ("videoSizeMax", videoSizeMax), ("fileSizeMax", fileSizeMax)]) } } - static func parse_autoDownloadSettings(_ reader: BufferReader) -> AutoDownloadSettings? { + public static func parse_autoDownloadSettings(_ reader: BufferReader) -> AutoDownloadSettings? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -1939,11 +1939,11 @@ extension Api { } } - enum StickerSetCovered: TypeConstructorDescription { + public enum StickerSetCovered: TypeConstructorDescription { case stickerSetCovered(set: Api.StickerSet, cover: Api.Document) case stickerSetMultiCovered(set: Api.StickerSet, covers: [Api.Document]) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .stickerSetCovered(let set, let cover): if boxed { @@ -1966,7 +1966,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .stickerSetCovered(let set, let cover): return ("stickerSetCovered", [("set", set), ("cover", cover)]) @@ -1975,7 +1975,7 @@ extension Api { } } - static func parse_stickerSetCovered(_ reader: BufferReader) -> StickerSetCovered? { + public static func parse_stickerSetCovered(_ reader: BufferReader) -> StickerSetCovered? { var _1: Api.StickerSet? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.StickerSet @@ -1993,7 +1993,7 @@ extension Api { return nil } } - static func parse_stickerSetMultiCovered(_ reader: BufferReader) -> StickerSetCovered? { + public static func parse_stickerSetMultiCovered(_ reader: BufferReader) -> StickerSetCovered? { var _1: Api.StickerSet? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.StickerSet @@ -2013,14 +2013,14 @@ extension Api { } } - enum RecentMeUrl: TypeConstructorDescription { + public enum RecentMeUrl: TypeConstructorDescription { case recentMeUrlUnknown(url: String) case recentMeUrlUser(url: String, userId: Int32) case recentMeUrlChat(url: String, chatId: Int32) case recentMeUrlChatInvite(url: String, chatInvite: Api.ChatInvite) case recentMeUrlStickerSet(url: String, set: Api.StickerSetCovered) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .recentMeUrlUnknown(let url): if boxed { @@ -2059,7 +2059,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .recentMeUrlUnknown(let url): return ("recentMeUrlUnknown", [("url", url)]) @@ -2074,7 +2074,7 @@ extension Api { } } - static func parse_recentMeUrlUnknown(_ reader: BufferReader) -> RecentMeUrl? { + public static func parse_recentMeUrlUnknown(_ reader: BufferReader) -> RecentMeUrl? { var _1: String? _1 = parseString(reader) let _c1 = _1 != nil @@ -2085,7 +2085,7 @@ extension Api { return nil } } - static func parse_recentMeUrlUser(_ reader: BufferReader) -> RecentMeUrl? { + public static func parse_recentMeUrlUser(_ reader: BufferReader) -> RecentMeUrl? { var _1: String? _1 = parseString(reader) var _2: Int32? @@ -2099,7 +2099,7 @@ extension Api { return nil } } - static func parse_recentMeUrlChat(_ reader: BufferReader) -> RecentMeUrl? { + public static func parse_recentMeUrlChat(_ reader: BufferReader) -> RecentMeUrl? { var _1: String? _1 = parseString(reader) var _2: Int32? @@ -2113,7 +2113,7 @@ extension Api { return nil } } - static func parse_recentMeUrlChatInvite(_ reader: BufferReader) -> RecentMeUrl? { + public static func parse_recentMeUrlChatInvite(_ reader: BufferReader) -> RecentMeUrl? { var _1: String? _1 = parseString(reader) var _2: Api.ChatInvite? @@ -2129,7 +2129,7 @@ extension Api { return nil } } - static func parse_recentMeUrlStickerSet(_ reader: BufferReader) -> RecentMeUrl? { + public static func parse_recentMeUrlStickerSet(_ reader: BufferReader) -> RecentMeUrl? { var _1: String? _1 = parseString(reader) var _2: Api.StickerSetCovered? @@ -2147,7 +2147,7 @@ extension Api { } } - indirect enum RichText: TypeConstructorDescription { + indirect public enum RichText: TypeConstructorDescription { case textEmpty case textPlain(text: String) case textBold(text: Api.RichText) @@ -2165,7 +2165,7 @@ extension Api { case textImage(documentId: Int64, w: Int32, h: Int32) case textAnchor(text: Api.RichText, name: String) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .textEmpty: if boxed { @@ -2277,7 +2277,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .textEmpty: return ("textEmpty", []) @@ -2314,10 +2314,10 @@ extension Api { } } - static func parse_textEmpty(_ reader: BufferReader) -> RichText? { + public static func parse_textEmpty(_ reader: BufferReader) -> RichText? { return Api.RichText.textEmpty } - static func parse_textPlain(_ reader: BufferReader) -> RichText? { + public static func parse_textPlain(_ reader: BufferReader) -> RichText? { var _1: String? _1 = parseString(reader) let _c1 = _1 != nil @@ -2328,7 +2328,7 @@ extension Api { return nil } } - static func parse_textBold(_ reader: BufferReader) -> RichText? { + public static func parse_textBold(_ reader: BufferReader) -> RichText? { var _1: Api.RichText? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.RichText @@ -2341,7 +2341,7 @@ extension Api { return nil } } - static func parse_textItalic(_ reader: BufferReader) -> RichText? { + public static func parse_textItalic(_ reader: BufferReader) -> RichText? { var _1: Api.RichText? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.RichText @@ -2354,7 +2354,7 @@ extension Api { return nil } } - static func parse_textUnderline(_ reader: BufferReader) -> RichText? { + public static func parse_textUnderline(_ reader: BufferReader) -> RichText? { var _1: Api.RichText? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.RichText @@ -2367,7 +2367,7 @@ extension Api { return nil } } - static func parse_textStrike(_ reader: BufferReader) -> RichText? { + public static func parse_textStrike(_ reader: BufferReader) -> RichText? { var _1: Api.RichText? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.RichText @@ -2380,7 +2380,7 @@ extension Api { return nil } } - static func parse_textFixed(_ reader: BufferReader) -> RichText? { + public static func parse_textFixed(_ reader: BufferReader) -> RichText? { var _1: Api.RichText? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.RichText @@ -2393,7 +2393,7 @@ extension Api { return nil } } - static func parse_textUrl(_ reader: BufferReader) -> RichText? { + public static func parse_textUrl(_ reader: BufferReader) -> RichText? { var _1: Api.RichText? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.RichText @@ -2412,7 +2412,7 @@ extension Api { return nil } } - static func parse_textEmail(_ reader: BufferReader) -> RichText? { + public static func parse_textEmail(_ reader: BufferReader) -> RichText? { var _1: Api.RichText? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.RichText @@ -2428,7 +2428,7 @@ extension Api { return nil } } - static func parse_textConcat(_ reader: BufferReader) -> RichText? { + public static func parse_textConcat(_ reader: BufferReader) -> RichText? { var _1: [Api.RichText]? if let _ = reader.readInt32() { _1 = Api.parseVector(reader, elementSignature: 0, elementType: Api.RichText.self) @@ -2441,7 +2441,7 @@ extension Api { return nil } } - static func parse_textSubscript(_ reader: BufferReader) -> RichText? { + public static func parse_textSubscript(_ reader: BufferReader) -> RichText? { var _1: Api.RichText? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.RichText @@ -2454,7 +2454,7 @@ extension Api { return nil } } - static func parse_textSuperscript(_ reader: BufferReader) -> RichText? { + public static func parse_textSuperscript(_ reader: BufferReader) -> RichText? { var _1: Api.RichText? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.RichText @@ -2467,7 +2467,7 @@ extension Api { return nil } } - static func parse_textMarked(_ reader: BufferReader) -> RichText? { + public static func parse_textMarked(_ reader: BufferReader) -> RichText? { var _1: Api.RichText? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.RichText @@ -2480,7 +2480,7 @@ extension Api { return nil } } - static func parse_textPhone(_ reader: BufferReader) -> RichText? { + public static func parse_textPhone(_ reader: BufferReader) -> RichText? { var _1: Api.RichText? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.RichText @@ -2496,7 +2496,7 @@ extension Api { return nil } } - static func parse_textImage(_ reader: BufferReader) -> RichText? { + public static func parse_textImage(_ reader: BufferReader) -> RichText? { var _1: Int64? _1 = reader.readInt64() var _2: Int32? @@ -2513,7 +2513,7 @@ extension Api { return nil } } - static func parse_textAnchor(_ reader: BufferReader) -> RichText? { + public static func parse_textAnchor(_ reader: BufferReader) -> RichText? { var _1: Api.RichText? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.RichText @@ -2531,10 +2531,10 @@ extension Api { } } - enum UserFull: TypeConstructorDescription { + public enum UserFull: TypeConstructorDescription { case userFull(flags: Int32, user: Api.User, about: String?, settings: Api.PeerSettings, profilePhoto: Api.Photo?, notifySettings: Api.PeerNotifySettings, botInfo: Api.BotInfo?, pinnedMsgId: Int32?, commonChatsCount: Int32, folderId: Int32?) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .userFull(let flags, let user, let about, let settings, let profilePhoto, let notifySettings, let botInfo, let pinnedMsgId, let commonChatsCount, let folderId): if boxed { @@ -2554,14 +2554,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .userFull(let flags, let user, let about, let settings, let profilePhoto, let notifySettings, let botInfo, let pinnedMsgId, let commonChatsCount, let folderId): return ("userFull", [("flags", flags), ("user", user), ("about", about), ("settings", settings), ("profilePhoto", profilePhoto), ("notifySettings", notifySettings), ("botInfo", botInfo), ("pinnedMsgId", pinnedMsgId), ("commonChatsCount", commonChatsCount), ("folderId", folderId)]) } } - static func parse_userFull(_ reader: BufferReader) -> UserFull? { + public static func parse_userFull(_ reader: BufferReader) -> UserFull? { var _1: Int32? _1 = reader.readInt32() var _2: Api.User? @@ -2611,11 +2611,11 @@ extension Api { } } - enum InputChannel: TypeConstructorDescription { + public enum InputChannel: TypeConstructorDescription { case inputChannelEmpty case inputChannel(channelId: Int32, accessHash: Int64) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .inputChannelEmpty: if boxed { @@ -2633,7 +2633,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .inputChannelEmpty: return ("inputChannelEmpty", []) @@ -2642,10 +2642,10 @@ extension Api { } } - static func parse_inputChannelEmpty(_ reader: BufferReader) -> InputChannel? { + public static func parse_inputChannelEmpty(_ reader: BufferReader) -> InputChannel? { return Api.InputChannel.inputChannelEmpty } - static func parse_inputChannel(_ reader: BufferReader) -> InputChannel? { + public static func parse_inputChannel(_ reader: BufferReader) -> InputChannel? { var _1: Int32? _1 = reader.readInt32() var _2: Int64? @@ -2661,10 +2661,10 @@ extension Api { } } - enum DcOption: TypeConstructorDescription { + public enum DcOption: TypeConstructorDescription { case dcOption(flags: Int32, id: Int32, ipAddress: String, port: Int32, secret: Buffer?) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .dcOption(let flags, let id, let ipAddress, let port, let secret): if boxed { @@ -2679,14 +2679,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .dcOption(let flags, let id, let ipAddress, let port, let secret): return ("dcOption", [("flags", flags), ("id", id), ("ipAddress", ipAddress), ("port", port), ("secret", secret)]) } } - static func parse_dcOption(_ reader: BufferReader) -> DcOption? { + public static func parse_dcOption(_ reader: BufferReader) -> DcOption? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -2711,10 +2711,10 @@ extension Api { } } - enum PollAnswerVoters: TypeConstructorDescription { + public enum PollAnswerVoters: TypeConstructorDescription { case pollAnswerVoters(flags: Int32, option: Buffer, voters: Int32) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .pollAnswerVoters(let flags, let option, let voters): if boxed { @@ -2727,14 +2727,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .pollAnswerVoters(let flags, let option, let voters): return ("pollAnswerVoters", [("flags", flags), ("option", option), ("voters", voters)]) } } - static func parse_pollAnswerVoters(_ reader: BufferReader) -> PollAnswerVoters? { + public static func parse_pollAnswerVoters(_ reader: BufferReader) -> PollAnswerVoters? { var _1: Int32? _1 = reader.readInt32() var _2: Buffer? @@ -2753,10 +2753,10 @@ extension Api { } } - enum LangPackLanguage: TypeConstructorDescription { + public enum LangPackLanguage: TypeConstructorDescription { case langPackLanguage(flags: Int32, name: String, nativeName: String, langCode: String, baseLangCode: String?, pluralCode: String, stringsCount: Int32, translatedCount: Int32, translationsUrl: String) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .langPackLanguage(let flags, let name, let nativeName, let langCode, let baseLangCode, let pluralCode, let stringsCount, let translatedCount, let translationsUrl): if boxed { @@ -2775,14 +2775,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .langPackLanguage(let flags, let name, let nativeName, let langCode, let baseLangCode, let pluralCode, let stringsCount, let translatedCount, let translationsUrl): return ("langPackLanguage", [("flags", flags), ("name", name), ("nativeName", nativeName), ("langCode", langCode), ("baseLangCode", baseLangCode), ("pluralCode", pluralCode), ("stringsCount", stringsCount), ("translatedCount", translatedCount), ("translationsUrl", translationsUrl)]) } } - static func parse_langPackLanguage(_ reader: BufferReader) -> LangPackLanguage? { + public static func parse_langPackLanguage(_ reader: BufferReader) -> LangPackLanguage? { var _1: Int32? _1 = reader.readInt32() var _2: String? @@ -2819,10 +2819,10 @@ extension Api { } } - enum LangPackDifference: TypeConstructorDescription { + public enum LangPackDifference: TypeConstructorDescription { case langPackDifference(langCode: String, fromVersion: Int32, version: Int32, strings: [Api.LangPackString]) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .langPackDifference(let langCode, let fromVersion, let version, let strings): if boxed { @@ -2840,14 +2840,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .langPackDifference(let langCode, let fromVersion, let version, let strings): return ("langPackDifference", [("langCode", langCode), ("fromVersion", fromVersion), ("version", version), ("strings", strings)]) } } - static func parse_langPackDifference(_ reader: BufferReader) -> LangPackDifference? { + public static func parse_langPackDifference(_ reader: BufferReader) -> LangPackDifference? { var _1: String? _1 = parseString(reader) var _2: Int32? @@ -2871,10 +2871,10 @@ extension Api { } } - enum WallPaperSettings: TypeConstructorDescription { + public enum WallPaperSettings: TypeConstructorDescription { case wallPaperSettings(flags: Int32, backgroundColor: Int32?, intensity: Int32?) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .wallPaperSettings(let flags, let backgroundColor, let intensity): if boxed { @@ -2887,14 +2887,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .wallPaperSettings(let flags, let backgroundColor, let intensity): return ("wallPaperSettings", [("flags", flags), ("backgroundColor", backgroundColor), ("intensity", intensity)]) } } - static func parse_wallPaperSettings(_ reader: BufferReader) -> WallPaperSettings? { + public static func parse_wallPaperSettings(_ reader: BufferReader) -> WallPaperSettings? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -2913,10 +2913,10 @@ extension Api { } } - enum EmojiURL: TypeConstructorDescription { + public enum EmojiURL: TypeConstructorDescription { case EmojiURL(url: String) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .EmojiURL(let url): if boxed { @@ -2927,14 +2927,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .EmojiURL(let url): return ("EmojiURL", [("url", url)]) } } - static func parse_EmojiURL(_ reader: BufferReader) -> EmojiURL? { + public static func parse_EmojiURL(_ reader: BufferReader) -> EmojiURL? { var _1: String? _1 = parseString(reader) let _c1 = _1 != nil @@ -2947,11 +2947,11 @@ extension Api { } } - enum InputCheckPasswordSRP: TypeConstructorDescription { + public enum InputCheckPasswordSRP: TypeConstructorDescription { case inputCheckPasswordEmpty case inputCheckPasswordSRP(srpId: Int64, A: Buffer, M1: Buffer) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .inputCheckPasswordEmpty: if boxed { @@ -2970,7 +2970,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .inputCheckPasswordEmpty: return ("inputCheckPasswordEmpty", []) @@ -2979,10 +2979,10 @@ extension Api { } } - static func parse_inputCheckPasswordEmpty(_ reader: BufferReader) -> InputCheckPasswordSRP? { + public static func parse_inputCheckPasswordEmpty(_ reader: BufferReader) -> InputCheckPasswordSRP? { return Api.InputCheckPasswordSRP.inputCheckPasswordEmpty } - static func parse_inputCheckPasswordSRP(_ reader: BufferReader) -> InputCheckPasswordSRP? { + public static func parse_inputCheckPasswordSRP(_ reader: BufferReader) -> InputCheckPasswordSRP? { var _1: Int64? _1 = reader.readInt64() var _2: Buffer? @@ -3001,13 +3001,13 @@ extension Api { } } - enum InputEncryptedFile: TypeConstructorDescription { + public enum InputEncryptedFile: TypeConstructorDescription { case inputEncryptedFileEmpty case inputEncryptedFileUploaded(id: Int64, parts: Int32, md5Checksum: String, keyFingerprint: Int32) case inputEncryptedFile(id: Int64, accessHash: Int64) case inputEncryptedFileBigUploaded(id: Int64, parts: Int32, keyFingerprint: Int32) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .inputEncryptedFileEmpty: if boxed { @@ -3042,7 +3042,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .inputEncryptedFileEmpty: return ("inputEncryptedFileEmpty", []) @@ -3055,10 +3055,10 @@ extension Api { } } - static func parse_inputEncryptedFileEmpty(_ reader: BufferReader) -> InputEncryptedFile? { + public static func parse_inputEncryptedFileEmpty(_ reader: BufferReader) -> InputEncryptedFile? { return Api.InputEncryptedFile.inputEncryptedFileEmpty } - static func parse_inputEncryptedFileUploaded(_ reader: BufferReader) -> InputEncryptedFile? { + public static func parse_inputEncryptedFileUploaded(_ reader: BufferReader) -> InputEncryptedFile? { var _1: Int64? _1 = reader.readInt64() var _2: Int32? @@ -3078,7 +3078,7 @@ extension Api { return nil } } - static func parse_inputEncryptedFile(_ reader: BufferReader) -> InputEncryptedFile? { + public static func parse_inputEncryptedFile(_ reader: BufferReader) -> InputEncryptedFile? { var _1: Int64? _1 = reader.readInt64() var _2: Int64? @@ -3092,7 +3092,7 @@ extension Api { return nil } } - static func parse_inputEncryptedFileBigUploaded(_ reader: BufferReader) -> InputEncryptedFile? { + public static func parse_inputEncryptedFileBigUploaded(_ reader: BufferReader) -> InputEncryptedFile? { var _1: Int64? _1 = reader.readInt64() var _2: Int32? @@ -3111,10 +3111,10 @@ extension Api { } } - enum ExportedMessageLink: TypeConstructorDescription { + public enum ExportedMessageLink: TypeConstructorDescription { case exportedMessageLink(link: String, html: String) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .exportedMessageLink(let link, let html): if boxed { @@ -3126,14 +3126,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .exportedMessageLink(let link, let html): return ("exportedMessageLink", [("link", link), ("html", html)]) } } - static func parse_exportedMessageLink(_ reader: BufferReader) -> ExportedMessageLink? { + public static func parse_exportedMessageLink(_ reader: BufferReader) -> ExportedMessageLink? { var _1: String? _1 = parseString(reader) var _2: String? @@ -3149,11 +3149,11 @@ extension Api { } } - enum InputFile: TypeConstructorDescription { + public enum InputFile: TypeConstructorDescription { case inputFile(id: Int64, parts: Int32, name: String, md5Checksum: String) case inputFileBig(id: Int64, parts: Int32, name: String) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .inputFile(let id, let parts, let name, let md5Checksum): if boxed { @@ -3175,7 +3175,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .inputFile(let id, let parts, let name, let md5Checksum): return ("inputFile", [("id", id), ("parts", parts), ("name", name), ("md5Checksum", md5Checksum)]) @@ -3184,7 +3184,7 @@ extension Api { } } - static func parse_inputFile(_ reader: BufferReader) -> InputFile? { + public static func parse_inputFile(_ reader: BufferReader) -> InputFile? { var _1: Int64? _1 = reader.readInt64() var _2: Int32? @@ -3204,7 +3204,7 @@ extension Api { return nil } } - static func parse_inputFileBig(_ reader: BufferReader) -> InputFile? { + public static func parse_inputFileBig(_ reader: BufferReader) -> InputFile? { var _1: Int64? _1 = reader.readInt64() var _2: Int32? @@ -3223,12 +3223,12 @@ extension Api { } } - enum Peer: TypeConstructorDescription { + public enum Peer: TypeConstructorDescription { case peerUser(userId: Int32) case peerChat(chatId: Int32) case peerChannel(channelId: Int32) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .peerUser(let userId): if boxed { @@ -3251,7 +3251,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .peerUser(let userId): return ("peerUser", [("userId", userId)]) @@ -3262,7 +3262,7 @@ extension Api { } } - static func parse_peerUser(_ reader: BufferReader) -> Peer? { + public static func parse_peerUser(_ reader: BufferReader) -> Peer? { var _1: Int32? _1 = reader.readInt32() let _c1 = _1 != nil @@ -3273,7 +3273,7 @@ extension Api { return nil } } - static func parse_peerChat(_ reader: BufferReader) -> Peer? { + public static func parse_peerChat(_ reader: BufferReader) -> Peer? { var _1: Int32? _1 = reader.readInt32() let _c1 = _1 != nil @@ -3284,7 +3284,7 @@ extension Api { return nil } } - static func parse_peerChannel(_ reader: BufferReader) -> Peer? { + public static func parse_peerChannel(_ reader: BufferReader) -> Peer? { var _1: Int32? _1 = reader.readInt32() let _c1 = _1 != nil @@ -3297,10 +3297,10 @@ extension Api { } } - enum PaymentRequestedInfo: TypeConstructorDescription { + public enum PaymentRequestedInfo: TypeConstructorDescription { case paymentRequestedInfo(flags: Int32, name: String?, phone: String?, email: String?, shippingAddress: Api.PostAddress?) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .paymentRequestedInfo(let flags, let name, let phone, let email, let shippingAddress): if boxed { @@ -3315,14 +3315,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .paymentRequestedInfo(let flags, let name, let phone, let email, let shippingAddress): return ("paymentRequestedInfo", [("flags", flags), ("name", name), ("phone", phone), ("email", email), ("shippingAddress", shippingAddress)]) } } - static func parse_paymentRequestedInfo(_ reader: BufferReader) -> PaymentRequestedInfo? { + public static func parse_paymentRequestedInfo(_ reader: BufferReader) -> PaymentRequestedInfo? { var _1: Int32? _1 = reader.readInt32() var _2: String? @@ -3349,7 +3349,7 @@ extension Api { } } - enum UserStatus: TypeConstructorDescription { + public enum UserStatus: TypeConstructorDescription { case userStatusEmpty case userStatusOnline(expires: Int32) case userStatusOffline(wasOnline: Int32) @@ -3357,7 +3357,7 @@ extension Api { case userStatusLastWeek case userStatusLastMonth - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .userStatusEmpty: if boxed { @@ -3398,7 +3398,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .userStatusEmpty: return ("userStatusEmpty", []) @@ -3415,10 +3415,10 @@ extension Api { } } - static func parse_userStatusEmpty(_ reader: BufferReader) -> UserStatus? { + public static func parse_userStatusEmpty(_ reader: BufferReader) -> UserStatus? { return Api.UserStatus.userStatusEmpty } - static func parse_userStatusOnline(_ reader: BufferReader) -> UserStatus? { + public static func parse_userStatusOnline(_ reader: BufferReader) -> UserStatus? { var _1: Int32? _1 = reader.readInt32() let _c1 = _1 != nil @@ -3429,7 +3429,7 @@ extension Api { return nil } } - static func parse_userStatusOffline(_ reader: BufferReader) -> UserStatus? { + public static func parse_userStatusOffline(_ reader: BufferReader) -> UserStatus? { var _1: Int32? _1 = reader.readInt32() let _c1 = _1 != nil @@ -3440,21 +3440,21 @@ extension Api { return nil } } - static func parse_userStatusRecently(_ reader: BufferReader) -> UserStatus? { + public static func parse_userStatusRecently(_ reader: BufferReader) -> UserStatus? { return Api.UserStatus.userStatusRecently } - static func parse_userStatusLastWeek(_ reader: BufferReader) -> UserStatus? { + public static func parse_userStatusLastWeek(_ reader: BufferReader) -> UserStatus? { return Api.UserStatus.userStatusLastWeek } - static func parse_userStatusLastMonth(_ reader: BufferReader) -> UserStatus? { + public static func parse_userStatusLastMonth(_ reader: BufferReader) -> UserStatus? { return Api.UserStatus.userStatusLastMonth } } - enum Folder: TypeConstructorDescription { + public enum Folder: TypeConstructorDescription { case folder(flags: Int32, id: Int32, title: String, photo: Api.ChatPhoto?) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .folder(let flags, let id, let title, let photo): if boxed { @@ -3468,14 +3468,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .folder(let flags, let id, let title, let photo): return ("folder", [("flags", flags), ("id", id), ("title", title), ("photo", photo)]) } } - static func parse_folder(_ reader: BufferReader) -> Folder? { + public static func parse_folder(_ reader: BufferReader) -> Folder? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -3499,11 +3499,11 @@ extension Api { } } - enum Dialog: TypeConstructorDescription { + public enum Dialog: TypeConstructorDescription { case dialog(flags: Int32, peer: Api.Peer, topMessage: Int32, readInboxMaxId: Int32, readOutboxMaxId: Int32, unreadCount: Int32, unreadMentionsCount: Int32, notifySettings: Api.PeerNotifySettings, pts: Int32?, draft: Api.DraftMessage?, folderId: Int32?) case dialogFolder(flags: Int32, folder: Api.Folder, peer: Api.Peer, topMessage: Int32, unreadMutedPeersCount: Int32, unreadUnmutedPeersCount: Int32, unreadMutedMessagesCount: Int32, unreadUnmutedMessagesCount: Int32) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .dialog(let flags, let peer, let topMessage, let readInboxMaxId, let readOutboxMaxId, let unreadCount, let unreadMentionsCount, let notifySettings, let pts, let draft, let folderId): if boxed { @@ -3537,7 +3537,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .dialog(let flags, let peer, let topMessage, let readInboxMaxId, let readOutboxMaxId, let unreadCount, let unreadMentionsCount, let notifySettings, let pts, let draft, let folderId): return ("dialog", [("flags", flags), ("peer", peer), ("topMessage", topMessage), ("readInboxMaxId", readInboxMaxId), ("readOutboxMaxId", readOutboxMaxId), ("unreadCount", unreadCount), ("unreadMentionsCount", unreadMentionsCount), ("notifySettings", notifySettings), ("pts", pts), ("draft", draft), ("folderId", folderId)]) @@ -3546,7 +3546,7 @@ extension Api { } } - static func parse_dialog(_ reader: BufferReader) -> Dialog? { + public static func parse_dialog(_ reader: BufferReader) -> Dialog? { var _1: Int32? _1 = reader.readInt32() var _2: Api.Peer? @@ -3593,7 +3593,7 @@ extension Api { return nil } } - static func parse_dialogFolder(_ reader: BufferReader) -> Dialog? { + public static func parse_dialogFolder(_ reader: BufferReader) -> Dialog? { var _1: Int32? _1 = reader.readInt32() var _2: Api.Folder? @@ -3631,7 +3631,7 @@ extension Api { } } - enum SendMessageAction: TypeConstructorDescription { + public enum SendMessageAction: TypeConstructorDescription { case sendMessageTypingAction case sendMessageCancelAction case sendMessageRecordVideoAction @@ -3646,7 +3646,7 @@ extension Api { case sendMessageRecordRoundAction case sendMessageUploadRoundAction(progress: Int32) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .sendMessageTypingAction: if boxed { @@ -3729,7 +3729,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .sendMessageTypingAction: return ("sendMessageTypingAction", []) @@ -3760,16 +3760,16 @@ extension Api { } } - static func parse_sendMessageTypingAction(_ reader: BufferReader) -> SendMessageAction? { + public static func parse_sendMessageTypingAction(_ reader: BufferReader) -> SendMessageAction? { return Api.SendMessageAction.sendMessageTypingAction } - static func parse_sendMessageCancelAction(_ reader: BufferReader) -> SendMessageAction? { + public static func parse_sendMessageCancelAction(_ reader: BufferReader) -> SendMessageAction? { return Api.SendMessageAction.sendMessageCancelAction } - static func parse_sendMessageRecordVideoAction(_ reader: BufferReader) -> SendMessageAction? { + public static func parse_sendMessageRecordVideoAction(_ reader: BufferReader) -> SendMessageAction? { return Api.SendMessageAction.sendMessageRecordVideoAction } - static func parse_sendMessageUploadVideoAction(_ reader: BufferReader) -> SendMessageAction? { + public static func parse_sendMessageUploadVideoAction(_ reader: BufferReader) -> SendMessageAction? { var _1: Int32? _1 = reader.readInt32() let _c1 = _1 != nil @@ -3780,10 +3780,10 @@ extension Api { return nil } } - static func parse_sendMessageRecordAudioAction(_ reader: BufferReader) -> SendMessageAction? { + public static func parse_sendMessageRecordAudioAction(_ reader: BufferReader) -> SendMessageAction? { return Api.SendMessageAction.sendMessageRecordAudioAction } - static func parse_sendMessageUploadAudioAction(_ reader: BufferReader) -> SendMessageAction? { + public static func parse_sendMessageUploadAudioAction(_ reader: BufferReader) -> SendMessageAction? { var _1: Int32? _1 = reader.readInt32() let _c1 = _1 != nil @@ -3794,7 +3794,7 @@ extension Api { return nil } } - static func parse_sendMessageUploadPhotoAction(_ reader: BufferReader) -> SendMessageAction? { + public static func parse_sendMessageUploadPhotoAction(_ reader: BufferReader) -> SendMessageAction? { var _1: Int32? _1 = reader.readInt32() let _c1 = _1 != nil @@ -3805,7 +3805,7 @@ extension Api { return nil } } - static func parse_sendMessageUploadDocumentAction(_ reader: BufferReader) -> SendMessageAction? { + public static func parse_sendMessageUploadDocumentAction(_ reader: BufferReader) -> SendMessageAction? { var _1: Int32? _1 = reader.readInt32() let _c1 = _1 != nil @@ -3816,19 +3816,19 @@ extension Api { return nil } } - static func parse_sendMessageGeoLocationAction(_ reader: BufferReader) -> SendMessageAction? { + public static func parse_sendMessageGeoLocationAction(_ reader: BufferReader) -> SendMessageAction? { return Api.SendMessageAction.sendMessageGeoLocationAction } - static func parse_sendMessageChooseContactAction(_ reader: BufferReader) -> SendMessageAction? { + public static func parse_sendMessageChooseContactAction(_ reader: BufferReader) -> SendMessageAction? { return Api.SendMessageAction.sendMessageChooseContactAction } - static func parse_sendMessageGamePlayAction(_ reader: BufferReader) -> SendMessageAction? { + public static func parse_sendMessageGamePlayAction(_ reader: BufferReader) -> SendMessageAction? { return Api.SendMessageAction.sendMessageGamePlayAction } - static func parse_sendMessageRecordRoundAction(_ reader: BufferReader) -> SendMessageAction? { + public static func parse_sendMessageRecordRoundAction(_ reader: BufferReader) -> SendMessageAction? { return Api.SendMessageAction.sendMessageRecordRoundAction } - static func parse_sendMessageUploadRoundAction(_ reader: BufferReader) -> SendMessageAction? { + public static func parse_sendMessageUploadRoundAction(_ reader: BufferReader) -> SendMessageAction? { var _1: Int32? _1 = reader.readInt32() let _c1 = _1 != nil @@ -3841,7 +3841,7 @@ extension Api { } } - enum PrivacyKey: TypeConstructorDescription { + public enum PrivacyKey: TypeConstructorDescription { case privacyKeyStatusTimestamp case privacyKeyChatInvite case privacyKeyPhoneCall @@ -3850,7 +3850,7 @@ extension Api { case privacyKeyProfilePhoto case privacyKeyPhoneNumber - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .privacyKeyStatusTimestamp: if boxed { @@ -3897,7 +3897,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .privacyKeyStatusTimestamp: return ("privacyKeyStatusTimestamp", []) @@ -3916,30 +3916,30 @@ extension Api { } } - static func parse_privacyKeyStatusTimestamp(_ reader: BufferReader) -> PrivacyKey? { + public static func parse_privacyKeyStatusTimestamp(_ reader: BufferReader) -> PrivacyKey? { return Api.PrivacyKey.privacyKeyStatusTimestamp } - static func parse_privacyKeyChatInvite(_ reader: BufferReader) -> PrivacyKey? { + public static func parse_privacyKeyChatInvite(_ reader: BufferReader) -> PrivacyKey? { return Api.PrivacyKey.privacyKeyChatInvite } - static func parse_privacyKeyPhoneCall(_ reader: BufferReader) -> PrivacyKey? { + public static func parse_privacyKeyPhoneCall(_ reader: BufferReader) -> PrivacyKey? { return Api.PrivacyKey.privacyKeyPhoneCall } - static func parse_privacyKeyPhoneP2P(_ reader: BufferReader) -> PrivacyKey? { + public static func parse_privacyKeyPhoneP2P(_ reader: BufferReader) -> PrivacyKey? { return Api.PrivacyKey.privacyKeyPhoneP2P } - static func parse_privacyKeyForwards(_ reader: BufferReader) -> PrivacyKey? { + public static func parse_privacyKeyForwards(_ reader: BufferReader) -> PrivacyKey? { return Api.PrivacyKey.privacyKeyForwards } - static func parse_privacyKeyProfilePhoto(_ reader: BufferReader) -> PrivacyKey? { + public static func parse_privacyKeyProfilePhoto(_ reader: BufferReader) -> PrivacyKey? { return Api.PrivacyKey.privacyKeyProfilePhoto } - static func parse_privacyKeyPhoneNumber(_ reader: BufferReader) -> PrivacyKey? { + public static func parse_privacyKeyPhoneNumber(_ reader: BufferReader) -> PrivacyKey? { return Api.PrivacyKey.privacyKeyPhoneNumber } } - enum Update: TypeConstructorDescription { + public enum Update: TypeConstructorDescription { case updateNewMessage(message: Api.Message, pts: Int32, ptsCount: Int32) case updateMessageID(id: Int32, randomId: Int64) case updateDeleteMessages(messages: [Int32], pts: Int32, ptsCount: Int32) @@ -3949,7 +3949,6 @@ extension Api { case updateUserStatus(userId: Int32, status: Api.UserStatus) case updateUserName(userId: Int32, firstName: String, lastName: String, username: String) case updateUserPhoto(userId: Int32, date: Int32, photo: Api.UserProfilePhoto, previous: Api.Bool) - case updateContactLink(userId: Int32, myLink: Api.ContactLink, foreignLink: Api.ContactLink) case updateNewEncryptedMessage(message: Api.EncryptedMessage, qts: Int32) case updateEncryptedChatTyping(chatId: Int32) case updateEncryption(chat: Api.EncryptedChat, date: Int32) @@ -4013,7 +4012,7 @@ extension Api { case updatePeerSettings(peer: Api.Peer, settings: Api.PeerSettings) case updatePeerLocated(peers: [Api.PeerLocated]) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .updateNewMessage(let message, let pts, let ptsCount): if boxed { @@ -4088,14 +4087,6 @@ extension Api { photo.serialize(buffer, true) previous.serialize(buffer, true) break - case .updateContactLink(let userId, let myLink, let foreignLink): - if boxed { - buffer.appendInt32(-1657903163) - } - serializeInt32(userId, buffer: buffer, boxed: false) - myLink.serialize(buffer, true) - foreignLink.serialize(buffer, true) - break case .updateNewEncryptedMessage(let message, let qts): if boxed { buffer.appendInt32(314359194) @@ -4624,7 +4615,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .updateNewMessage(let message, let pts, let ptsCount): return ("updateNewMessage", [("message", message), ("pts", pts), ("ptsCount", ptsCount)]) @@ -4644,8 +4635,6 @@ extension Api { return ("updateUserName", [("userId", userId), ("firstName", firstName), ("lastName", lastName), ("username", username)]) case .updateUserPhoto(let userId, let date, let photo, let previous): return ("updateUserPhoto", [("userId", userId), ("date", date), ("photo", photo), ("previous", previous)]) - case .updateContactLink(let userId, let myLink, let foreignLink): - return ("updateContactLink", [("userId", userId), ("myLink", myLink), ("foreignLink", foreignLink)]) case .updateNewEncryptedMessage(let message, let qts): return ("updateNewEncryptedMessage", [("message", message), ("qts", qts)]) case .updateEncryptedChatTyping(let chatId): @@ -4773,7 +4762,7 @@ extension Api { } } - static func parse_updateNewMessage(_ reader: BufferReader) -> Update? { + public static func parse_updateNewMessage(_ reader: BufferReader) -> Update? { var _1: Api.Message? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.Message @@ -4792,7 +4781,7 @@ extension Api { return nil } } - static func parse_updateMessageID(_ reader: BufferReader) -> Update? { + public static func parse_updateMessageID(_ reader: BufferReader) -> Update? { var _1: Int32? _1 = reader.readInt32() var _2: Int64? @@ -4806,7 +4795,7 @@ extension Api { return nil } } - static func parse_updateDeleteMessages(_ reader: BufferReader) -> Update? { + public static func parse_updateDeleteMessages(_ reader: BufferReader) -> Update? { var _1: [Int32]? if let _ = reader.readInt32() { _1 = Api.parseVector(reader, elementSignature: -1471112230, elementType: Int32.self) @@ -4825,7 +4814,7 @@ extension Api { return nil } } - static func parse_updateUserTyping(_ reader: BufferReader) -> Update? { + public static func parse_updateUserTyping(_ reader: BufferReader) -> Update? { var _1: Int32? _1 = reader.readInt32() var _2: Api.SendMessageAction? @@ -4841,7 +4830,7 @@ extension Api { return nil } } - static func parse_updateChatUserTyping(_ reader: BufferReader) -> Update? { + public static func parse_updateChatUserTyping(_ reader: BufferReader) -> Update? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -4860,7 +4849,7 @@ extension Api { return nil } } - static func parse_updateChatParticipants(_ reader: BufferReader) -> Update? { + public static func parse_updateChatParticipants(_ reader: BufferReader) -> Update? { var _1: Api.ChatParticipants? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.ChatParticipants @@ -4873,7 +4862,7 @@ extension Api { return nil } } - static func parse_updateUserStatus(_ reader: BufferReader) -> Update? { + public static func parse_updateUserStatus(_ reader: BufferReader) -> Update? { var _1: Int32? _1 = reader.readInt32() var _2: Api.UserStatus? @@ -4889,7 +4878,7 @@ extension Api { return nil } } - static func parse_updateUserName(_ reader: BufferReader) -> Update? { + public static func parse_updateUserName(_ reader: BufferReader) -> Update? { var _1: Int32? _1 = reader.readInt32() var _2: String? @@ -4909,7 +4898,7 @@ extension Api { return nil } } - static func parse_updateUserPhoto(_ reader: BufferReader) -> Update? { + public static func parse_updateUserPhoto(_ reader: BufferReader) -> Update? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -4933,28 +4922,7 @@ extension Api { return nil } } - static func parse_updateContactLink(_ reader: BufferReader) -> Update? { - var _1: Int32? - _1 = reader.readInt32() - var _2: Api.ContactLink? - if let signature = reader.readInt32() { - _2 = Api.parse(reader, signature: signature) as? Api.ContactLink - } - var _3: Api.ContactLink? - if let signature = reader.readInt32() { - _3 = Api.parse(reader, signature: signature) as? Api.ContactLink - } - let _c1 = _1 != nil - let _c2 = _2 != nil - let _c3 = _3 != nil - if _c1 && _c2 && _c3 { - return Api.Update.updateContactLink(userId: _1!, myLink: _2!, foreignLink: _3!) - } - else { - return nil - } - } - static func parse_updateNewEncryptedMessage(_ reader: BufferReader) -> Update? { + public static func parse_updateNewEncryptedMessage(_ reader: BufferReader) -> Update? { var _1: Api.EncryptedMessage? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.EncryptedMessage @@ -4970,7 +4938,7 @@ extension Api { return nil } } - static func parse_updateEncryptedChatTyping(_ reader: BufferReader) -> Update? { + public static func parse_updateEncryptedChatTyping(_ reader: BufferReader) -> Update? { var _1: Int32? _1 = reader.readInt32() let _c1 = _1 != nil @@ -4981,7 +4949,7 @@ extension Api { return nil } } - static func parse_updateEncryption(_ reader: BufferReader) -> Update? { + public static func parse_updateEncryption(_ reader: BufferReader) -> Update? { var _1: Api.EncryptedChat? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.EncryptedChat @@ -4997,7 +4965,7 @@ extension Api { return nil } } - static func parse_updateEncryptedMessagesRead(_ reader: BufferReader) -> Update? { + public static func parse_updateEncryptedMessagesRead(_ reader: BufferReader) -> Update? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -5014,7 +4982,7 @@ extension Api { return nil } } - static func parse_updateChatParticipantAdd(_ reader: BufferReader) -> Update? { + public static func parse_updateChatParticipantAdd(_ reader: BufferReader) -> Update? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -5037,7 +5005,7 @@ extension Api { return nil } } - static func parse_updateChatParticipantDelete(_ reader: BufferReader) -> Update? { + public static func parse_updateChatParticipantDelete(_ reader: BufferReader) -> Update? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -5054,7 +5022,7 @@ extension Api { return nil } } - static func parse_updateDcOptions(_ reader: BufferReader) -> Update? { + public static func parse_updateDcOptions(_ reader: BufferReader) -> Update? { var _1: [Api.DcOption]? if let _ = reader.readInt32() { _1 = Api.parseVector(reader, elementSignature: 0, elementType: Api.DcOption.self) @@ -5067,7 +5035,7 @@ extension Api { return nil } } - static func parse_updateUserBlocked(_ reader: BufferReader) -> Update? { + public static func parse_updateUserBlocked(_ reader: BufferReader) -> Update? { var _1: Int32? _1 = reader.readInt32() var _2: Api.Bool? @@ -5083,7 +5051,7 @@ extension Api { return nil } } - static func parse_updateNotifySettings(_ reader: BufferReader) -> Update? { + public static func parse_updateNotifySettings(_ reader: BufferReader) -> Update? { var _1: Api.NotifyPeer? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.NotifyPeer @@ -5101,7 +5069,7 @@ extension Api { return nil } } - static func parse_updateServiceNotification(_ reader: BufferReader) -> Update? { + public static func parse_updateServiceNotification(_ reader: BufferReader) -> Update? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -5131,7 +5099,7 @@ extension Api { return nil } } - static func parse_updatePrivacy(_ reader: BufferReader) -> Update? { + public static func parse_updatePrivacy(_ reader: BufferReader) -> Update? { var _1: Api.PrivacyKey? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.PrivacyKey @@ -5149,7 +5117,7 @@ extension Api { return nil } } - static func parse_updateUserPhone(_ reader: BufferReader) -> Update? { + public static func parse_updateUserPhone(_ reader: BufferReader) -> Update? { var _1: Int32? _1 = reader.readInt32() var _2: String? @@ -5163,7 +5131,7 @@ extension Api { return nil } } - static func parse_updateReadHistoryOutbox(_ reader: BufferReader) -> Update? { + public static func parse_updateReadHistoryOutbox(_ reader: BufferReader) -> Update? { var _1: Api.Peer? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.Peer @@ -5185,7 +5153,7 @@ extension Api { return nil } } - static func parse_updateWebPage(_ reader: BufferReader) -> Update? { + public static func parse_updateWebPage(_ reader: BufferReader) -> Update? { var _1: Api.WebPage? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.WebPage @@ -5204,7 +5172,7 @@ extension Api { return nil } } - static func parse_updateReadMessagesContents(_ reader: BufferReader) -> Update? { + public static func parse_updateReadMessagesContents(_ reader: BufferReader) -> Update? { var _1: [Int32]? if let _ = reader.readInt32() { _1 = Api.parseVector(reader, elementSignature: -1471112230, elementType: Int32.self) @@ -5223,7 +5191,7 @@ extension Api { return nil } } - static func parse_updateChannelTooLong(_ reader: BufferReader) -> Update? { + public static func parse_updateChannelTooLong(_ reader: BufferReader) -> Update? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -5240,7 +5208,7 @@ extension Api { return nil } } - static func parse_updateChannel(_ reader: BufferReader) -> Update? { + public static func parse_updateChannel(_ reader: BufferReader) -> Update? { var _1: Int32? _1 = reader.readInt32() let _c1 = _1 != nil @@ -5251,7 +5219,7 @@ extension Api { return nil } } - static func parse_updateNewChannelMessage(_ reader: BufferReader) -> Update? { + public static func parse_updateNewChannelMessage(_ reader: BufferReader) -> Update? { var _1: Api.Message? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.Message @@ -5270,7 +5238,7 @@ extension Api { return nil } } - static func parse_updateDeleteChannelMessages(_ reader: BufferReader) -> Update? { + public static func parse_updateDeleteChannelMessages(_ reader: BufferReader) -> Update? { var _1: Int32? _1 = reader.readInt32() var _2: [Int32]? @@ -5292,7 +5260,7 @@ extension Api { return nil } } - static func parse_updateChannelMessageViews(_ reader: BufferReader) -> Update? { + public static func parse_updateChannelMessageViews(_ reader: BufferReader) -> Update? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -5309,7 +5277,7 @@ extension Api { return nil } } - static func parse_updateChatParticipantAdmin(_ reader: BufferReader) -> Update? { + public static func parse_updateChatParticipantAdmin(_ reader: BufferReader) -> Update? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -5331,7 +5299,7 @@ extension Api { return nil } } - static func parse_updateNewStickerSet(_ reader: BufferReader) -> Update? { + public static func parse_updateNewStickerSet(_ reader: BufferReader) -> Update? { var _1: Api.messages.StickerSet? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.messages.StickerSet @@ -5344,7 +5312,7 @@ extension Api { return nil } } - static func parse_updateStickerSetsOrder(_ reader: BufferReader) -> Update? { + public static func parse_updateStickerSetsOrder(_ reader: BufferReader) -> Update? { var _1: Int32? _1 = reader.readInt32() var _2: [Int64]? @@ -5360,13 +5328,13 @@ extension Api { return nil } } - static func parse_updateStickerSets(_ reader: BufferReader) -> Update? { + public static func parse_updateStickerSets(_ reader: BufferReader) -> Update? { return Api.Update.updateStickerSets } - static func parse_updateSavedGifs(_ reader: BufferReader) -> Update? { + public static func parse_updateSavedGifs(_ reader: BufferReader) -> Update? { return Api.Update.updateSavedGifs } - static func parse_updateBotInlineQuery(_ reader: BufferReader) -> Update? { + public static func parse_updateBotInlineQuery(_ reader: BufferReader) -> Update? { var _1: Int32? _1 = reader.readInt32() var _2: Int64? @@ -5394,7 +5362,7 @@ extension Api { return nil } } - static func parse_updateBotInlineSend(_ reader: BufferReader) -> Update? { + public static func parse_updateBotInlineSend(_ reader: BufferReader) -> Update? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -5424,7 +5392,7 @@ extension Api { return nil } } - static func parse_updateEditChannelMessage(_ reader: BufferReader) -> Update? { + public static func parse_updateEditChannelMessage(_ reader: BufferReader) -> Update? { var _1: Api.Message? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.Message @@ -5443,7 +5411,7 @@ extension Api { return nil } } - static func parse_updateChannelPinnedMessage(_ reader: BufferReader) -> Update? { + public static func parse_updateChannelPinnedMessage(_ reader: BufferReader) -> Update? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -5457,7 +5425,7 @@ extension Api { return nil } } - static func parse_updateBotCallbackQuery(_ reader: BufferReader) -> Update? { + public static func parse_updateBotCallbackQuery(_ reader: BufferReader) -> Update? { var _1: Int32? _1 = reader.readInt32() var _2: Int64? @@ -5491,7 +5459,7 @@ extension Api { return nil } } - static func parse_updateEditMessage(_ reader: BufferReader) -> Update? { + public static func parse_updateEditMessage(_ reader: BufferReader) -> Update? { var _1: Api.Message? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.Message @@ -5510,7 +5478,7 @@ extension Api { return nil } } - static func parse_updateInlineBotCallbackQuery(_ reader: BufferReader) -> Update? { + public static func parse_updateInlineBotCallbackQuery(_ reader: BufferReader) -> Update? { var _1: Int32? _1 = reader.readInt32() var _2: Int64? @@ -5541,7 +5509,7 @@ extension Api { return nil } } - static func parse_updateReadChannelOutbox(_ reader: BufferReader) -> Update? { + public static func parse_updateReadChannelOutbox(_ reader: BufferReader) -> Update? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -5555,7 +5523,7 @@ extension Api { return nil } } - static func parse_updateDraftMessage(_ reader: BufferReader) -> Update? { + public static func parse_updateDraftMessage(_ reader: BufferReader) -> Update? { var _1: Api.Peer? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.Peer @@ -5573,19 +5541,19 @@ extension Api { return nil } } - static func parse_updateReadFeaturedStickers(_ reader: BufferReader) -> Update? { + public static func parse_updateReadFeaturedStickers(_ reader: BufferReader) -> Update? { return Api.Update.updateReadFeaturedStickers } - static func parse_updateRecentStickers(_ reader: BufferReader) -> Update? { + public static func parse_updateRecentStickers(_ reader: BufferReader) -> Update? { return Api.Update.updateRecentStickers } - static func parse_updateConfig(_ reader: BufferReader) -> Update? { + public static func parse_updateConfig(_ reader: BufferReader) -> Update? { return Api.Update.updateConfig } - static func parse_updatePtsChanged(_ reader: BufferReader) -> Update? { + public static func parse_updatePtsChanged(_ reader: BufferReader) -> Update? { return Api.Update.updatePtsChanged } - static func parse_updateChannelWebPage(_ reader: BufferReader) -> Update? { + public static func parse_updateChannelWebPage(_ reader: BufferReader) -> Update? { var _1: Int32? _1 = reader.readInt32() var _2: Api.WebPage? @@ -5607,7 +5575,7 @@ extension Api { return nil } } - static func parse_updateBotWebhookJSON(_ reader: BufferReader) -> Update? { + public static func parse_updateBotWebhookJSON(_ reader: BufferReader) -> Update? { var _1: Api.DataJSON? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.DataJSON @@ -5620,7 +5588,7 @@ extension Api { return nil } } - static func parse_updateBotWebhookJSONQuery(_ reader: BufferReader) -> Update? { + public static func parse_updateBotWebhookJSONQuery(_ reader: BufferReader) -> Update? { var _1: Int64? _1 = reader.readInt64() var _2: Api.DataJSON? @@ -5639,7 +5607,7 @@ extension Api { return nil } } - static func parse_updateBotShippingQuery(_ reader: BufferReader) -> Update? { + public static func parse_updateBotShippingQuery(_ reader: BufferReader) -> Update? { var _1: Int64? _1 = reader.readInt64() var _2: Int32? @@ -5661,7 +5629,7 @@ extension Api { return nil } } - static func parse_updateBotPrecheckoutQuery(_ reader: BufferReader) -> Update? { + public static func parse_updateBotPrecheckoutQuery(_ reader: BufferReader) -> Update? { var _1: Int32? _1 = reader.readInt32() var _2: Int64? @@ -5695,7 +5663,7 @@ extension Api { return nil } } - static func parse_updatePhoneCall(_ reader: BufferReader) -> Update? { + public static func parse_updatePhoneCall(_ reader: BufferReader) -> Update? { var _1: Api.PhoneCall? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.PhoneCall @@ -5708,7 +5676,7 @@ extension Api { return nil } } - static func parse_updateLangPack(_ reader: BufferReader) -> Update? { + public static func parse_updateLangPack(_ reader: BufferReader) -> Update? { var _1: Api.LangPackDifference? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.LangPackDifference @@ -5721,10 +5689,10 @@ extension Api { return nil } } - static func parse_updateFavedStickers(_ reader: BufferReader) -> Update? { + public static func parse_updateFavedStickers(_ reader: BufferReader) -> Update? { return Api.Update.updateFavedStickers } - static func parse_updateChannelReadMessagesContents(_ reader: BufferReader) -> Update? { + public static func parse_updateChannelReadMessagesContents(_ reader: BufferReader) -> Update? { var _1: Int32? _1 = reader.readInt32() var _2: [Int32]? @@ -5740,10 +5708,10 @@ extension Api { return nil } } - static func parse_updateContactsReset(_ reader: BufferReader) -> Update? { + public static func parse_updateContactsReset(_ reader: BufferReader) -> Update? { return Api.Update.updateContactsReset } - static func parse_updateChannelAvailableMessages(_ reader: BufferReader) -> Update? { + public static func parse_updateChannelAvailableMessages(_ reader: BufferReader) -> Update? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -5757,7 +5725,7 @@ extension Api { return nil } } - static func parse_updateDialogUnreadMark(_ reader: BufferReader) -> Update? { + public static func parse_updateDialogUnreadMark(_ reader: BufferReader) -> Update? { var _1: Int32? _1 = reader.readInt32() var _2: Api.DialogPeer? @@ -5773,7 +5741,7 @@ extension Api { return nil } } - static func parse_updateLangPackTooLong(_ reader: BufferReader) -> Update? { + public static func parse_updateLangPackTooLong(_ reader: BufferReader) -> Update? { var _1: String? _1 = parseString(reader) let _c1 = _1 != nil @@ -5784,7 +5752,7 @@ extension Api { return nil } } - static func parse_updateUserPinnedMessage(_ reader: BufferReader) -> Update? { + public static func parse_updateUserPinnedMessage(_ reader: BufferReader) -> Update? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -5798,7 +5766,7 @@ extension Api { return nil } } - static func parse_updateMessagePoll(_ reader: BufferReader) -> Update? { + public static func parse_updateMessagePoll(_ reader: BufferReader) -> Update? { var _1: Int32? _1 = reader.readInt32() var _2: Int64? @@ -5822,7 +5790,7 @@ extension Api { return nil } } - static func parse_updateChatDefaultBannedRights(_ reader: BufferReader) -> Update? { + public static func parse_updateChatDefaultBannedRights(_ reader: BufferReader) -> Update? { var _1: Api.Peer? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.Peer @@ -5843,7 +5811,7 @@ extension Api { return nil } } - static func parse_updateChatPinnedMessage(_ reader: BufferReader) -> Update? { + public static func parse_updateChatPinnedMessage(_ reader: BufferReader) -> Update? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -5860,7 +5828,7 @@ extension Api { return nil } } - static func parse_updateFolderPeers(_ reader: BufferReader) -> Update? { + public static func parse_updateFolderPeers(_ reader: BufferReader) -> Update? { var _1: [Api.FolderPeer]? if let _ = reader.readInt32() { _1 = Api.parseVector(reader, elementSignature: 0, elementType: Api.FolderPeer.self) @@ -5879,7 +5847,7 @@ extension Api { return nil } } - static func parse_updateDialogPinned(_ reader: BufferReader) -> Update? { + public static func parse_updateDialogPinned(_ reader: BufferReader) -> Update? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -5898,7 +5866,7 @@ extension Api { return nil } } - static func parse_updatePinnedDialogs(_ reader: BufferReader) -> Update? { + public static func parse_updatePinnedDialogs(_ reader: BufferReader) -> Update? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -5917,7 +5885,7 @@ extension Api { return nil } } - static func parse_updateReadChannelInbox(_ reader: BufferReader) -> Update? { + public static func parse_updateReadChannelInbox(_ reader: BufferReader) -> Update? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -5943,7 +5911,7 @@ extension Api { return nil } } - static func parse_updateReadHistoryInbox(_ reader: BufferReader) -> Update? { + public static func parse_updateReadHistoryInbox(_ reader: BufferReader) -> Update? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -5974,7 +5942,7 @@ extension Api { return nil } } - static func parse_updatePeerSettings(_ reader: BufferReader) -> Update? { + public static func parse_updatePeerSettings(_ reader: BufferReader) -> Update? { var _1: Api.Peer? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.Peer @@ -5992,7 +5960,7 @@ extension Api { return nil } } - static func parse_updatePeerLocated(_ reader: BufferReader) -> Update? { + public static func parse_updatePeerLocated(_ reader: BufferReader) -> Update? { var _1: [Api.PeerLocated]? if let _ = reader.readInt32() { _1 = Api.parseVector(reader, elementSignature: 0, elementType: Api.PeerLocated.self) @@ -6007,10 +5975,10 @@ extension Api { } } - enum PopularContact: TypeConstructorDescription { + public enum PopularContact: TypeConstructorDescription { case popularContact(clientId: Int64, importers: Int32) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .popularContact(let clientId, let importers): if boxed { @@ -6022,14 +5990,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .popularContact(let clientId, let importers): return ("popularContact", [("clientId", clientId), ("importers", importers)]) } } - static func parse_popularContact(_ reader: BufferReader) -> PopularContact? { + public static func parse_popularContact(_ reader: BufferReader) -> PopularContact? { var _1: Int64? _1 = reader.readInt64() var _2: Int32? @@ -6045,10 +6013,10 @@ extension Api { } } - enum FolderPeer: TypeConstructorDescription { + public enum FolderPeer: TypeConstructorDescription { case folderPeer(peer: Api.Peer, folderId: Int32) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .folderPeer(let peer, let folderId): if boxed { @@ -6060,14 +6028,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .folderPeer(let peer, let folderId): return ("folderPeer", [("peer", peer), ("folderId", folderId)]) } } - static func parse_folderPeer(_ reader: BufferReader) -> FolderPeer? { + public static func parse_folderPeer(_ reader: BufferReader) -> FolderPeer? { var _1: Api.Peer? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.Peer @@ -6085,14 +6053,14 @@ extension Api { } } - enum ChannelParticipant: TypeConstructorDescription { + public enum ChannelParticipant: TypeConstructorDescription { case channelParticipant(userId: Int32, date: Int32) case channelParticipantSelf(userId: Int32, inviterId: Int32, date: Int32) case channelParticipantCreator(userId: Int32) case channelParticipantBanned(flags: Int32, userId: Int32, kickedBy: Int32, date: Int32, bannedRights: Api.ChatBannedRights) case channelParticipantAdmin(flags: Int32, userId: Int32, inviterId: Int32?, promotedBy: Int32, date: Int32, adminRights: Api.ChatAdminRights) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .channelParticipant(let userId, let date): if boxed { @@ -6139,7 +6107,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .channelParticipant(let userId, let date): return ("channelParticipant", [("userId", userId), ("date", date)]) @@ -6154,7 +6122,7 @@ extension Api { } } - static func parse_channelParticipant(_ reader: BufferReader) -> ChannelParticipant? { + public static func parse_channelParticipant(_ reader: BufferReader) -> ChannelParticipant? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -6168,7 +6136,7 @@ extension Api { return nil } } - static func parse_channelParticipantSelf(_ reader: BufferReader) -> ChannelParticipant? { + public static func parse_channelParticipantSelf(_ reader: BufferReader) -> ChannelParticipant? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -6185,7 +6153,7 @@ extension Api { return nil } } - static func parse_channelParticipantCreator(_ reader: BufferReader) -> ChannelParticipant? { + public static func parse_channelParticipantCreator(_ reader: BufferReader) -> ChannelParticipant? { var _1: Int32? _1 = reader.readInt32() let _c1 = _1 != nil @@ -6196,7 +6164,7 @@ extension Api { return nil } } - static func parse_channelParticipantBanned(_ reader: BufferReader) -> ChannelParticipant? { + public static func parse_channelParticipantBanned(_ reader: BufferReader) -> ChannelParticipant? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -6221,7 +6189,7 @@ extension Api { return nil } } - static func parse_channelParticipantAdmin(_ reader: BufferReader) -> ChannelParticipant? { + public static func parse_channelParticipantAdmin(_ reader: BufferReader) -> ChannelParticipant? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -6251,11 +6219,11 @@ extension Api { } } - enum InputDialogPeer: TypeConstructorDescription { + public enum InputDialogPeer: TypeConstructorDescription { case inputDialogPeer(peer: Api.InputPeer) case inputDialogPeerFolder(folderId: Int32) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .inputDialogPeer(let peer): if boxed { @@ -6272,7 +6240,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .inputDialogPeer(let peer): return ("inputDialogPeer", [("peer", peer)]) @@ -6281,7 +6249,7 @@ extension Api { } } - static func parse_inputDialogPeer(_ reader: BufferReader) -> InputDialogPeer? { + public static func parse_inputDialogPeer(_ reader: BufferReader) -> InputDialogPeer? { var _1: Api.InputPeer? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.InputPeer @@ -6294,7 +6262,7 @@ extension Api { return nil } } - static func parse_inputDialogPeerFolder(_ reader: BufferReader) -> InputDialogPeer? { + public static func parse_inputDialogPeerFolder(_ reader: BufferReader) -> InputDialogPeer? { var _1: Int32? _1 = reader.readInt32() let _c1 = _1 != nil @@ -6307,10 +6275,10 @@ extension Api { } } - enum Error: TypeConstructorDescription { + public enum Error: TypeConstructorDescription { case error(code: Int32, text: String) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .error(let code, let text): if boxed { @@ -6322,14 +6290,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .error(let code, let text): return ("error", [("code", code), ("text", text)]) } } - static func parse_error(_ reader: BufferReader) -> Error? { + public static func parse_error(_ reader: BufferReader) -> Error? { var _1: Int32? _1 = reader.readInt32() var _2: String? @@ -6345,7 +6313,7 @@ extension Api { } } - enum KeyboardButton: TypeConstructorDescription { + public enum KeyboardButton: TypeConstructorDescription { case keyboardButton(text: String) case keyboardButtonUrl(text: String, url: String) case keyboardButtonCallback(text: String, data: Buffer) @@ -6357,7 +6325,7 @@ extension Api { case keyboardButtonUrlAuth(flags: Int32, text: String, fwdText: String?, url: String, buttonId: Int32) case inputKeyboardButtonUrlAuth(flags: Int32, text: String, fwdText: String?, url: String, bot: Api.InputUser) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .keyboardButton(let text): if boxed { @@ -6434,7 +6402,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .keyboardButton(let text): return ("keyboardButton", [("text", text)]) @@ -6459,7 +6427,7 @@ extension Api { } } - static func parse_keyboardButton(_ reader: BufferReader) -> KeyboardButton? { + public static func parse_keyboardButton(_ reader: BufferReader) -> KeyboardButton? { var _1: String? _1 = parseString(reader) let _c1 = _1 != nil @@ -6470,7 +6438,7 @@ extension Api { return nil } } - static func parse_keyboardButtonUrl(_ reader: BufferReader) -> KeyboardButton? { + public static func parse_keyboardButtonUrl(_ reader: BufferReader) -> KeyboardButton? { var _1: String? _1 = parseString(reader) var _2: String? @@ -6484,7 +6452,7 @@ extension Api { return nil } } - static func parse_keyboardButtonCallback(_ reader: BufferReader) -> KeyboardButton? { + public static func parse_keyboardButtonCallback(_ reader: BufferReader) -> KeyboardButton? { var _1: String? _1 = parseString(reader) var _2: Buffer? @@ -6498,7 +6466,7 @@ extension Api { return nil } } - static func parse_keyboardButtonRequestPhone(_ reader: BufferReader) -> KeyboardButton? { + public static func parse_keyboardButtonRequestPhone(_ reader: BufferReader) -> KeyboardButton? { var _1: String? _1 = parseString(reader) let _c1 = _1 != nil @@ -6509,7 +6477,7 @@ extension Api { return nil } } - static func parse_keyboardButtonRequestGeoLocation(_ reader: BufferReader) -> KeyboardButton? { + public static func parse_keyboardButtonRequestGeoLocation(_ reader: BufferReader) -> KeyboardButton? { var _1: String? _1 = parseString(reader) let _c1 = _1 != nil @@ -6520,7 +6488,7 @@ extension Api { return nil } } - static func parse_keyboardButtonSwitchInline(_ reader: BufferReader) -> KeyboardButton? { + public static func parse_keyboardButtonSwitchInline(_ reader: BufferReader) -> KeyboardButton? { var _1: Int32? _1 = reader.readInt32() var _2: String? @@ -6537,7 +6505,7 @@ extension Api { return nil } } - static func parse_keyboardButtonGame(_ reader: BufferReader) -> KeyboardButton? { + public static func parse_keyboardButtonGame(_ reader: BufferReader) -> KeyboardButton? { var _1: String? _1 = parseString(reader) let _c1 = _1 != nil @@ -6548,7 +6516,7 @@ extension Api { return nil } } - static func parse_keyboardButtonBuy(_ reader: BufferReader) -> KeyboardButton? { + public static func parse_keyboardButtonBuy(_ reader: BufferReader) -> KeyboardButton? { var _1: String? _1 = parseString(reader) let _c1 = _1 != nil @@ -6559,7 +6527,7 @@ extension Api { return nil } } - static func parse_keyboardButtonUrlAuth(_ reader: BufferReader) -> KeyboardButton? { + public static func parse_keyboardButtonUrlAuth(_ reader: BufferReader) -> KeyboardButton? { var _1: Int32? _1 = reader.readInt32() var _2: String? @@ -6582,7 +6550,7 @@ extension Api { return nil } } - static func parse_inputKeyboardButtonUrlAuth(_ reader: BufferReader) -> KeyboardButton? { + public static func parse_inputKeyboardButtonUrlAuth(_ reader: BufferReader) -> KeyboardButton? { var _1: Int32? _1 = reader.readInt32() var _2: String? @@ -6609,10 +6577,10 @@ extension Api { } } - enum ContactStatus: TypeConstructorDescription { + public enum ContactStatus: TypeConstructorDescription { case contactStatus(userId: Int32, status: Api.UserStatus) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .contactStatus(let userId, let status): if boxed { @@ -6624,14 +6592,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .contactStatus(let userId, let status): return ("contactStatus", [("userId", userId), ("status", status)]) } } - static func parse_contactStatus(_ reader: BufferReader) -> ContactStatus? { + public static func parse_contactStatus(_ reader: BufferReader) -> ContactStatus? { var _1: Int32? _1 = reader.readInt32() var _2: Api.UserStatus? @@ -6649,11 +6617,11 @@ extension Api { } } - enum SecureFile: TypeConstructorDescription { + public enum SecureFile: TypeConstructorDescription { case secureFileEmpty case secureFile(id: Int64, accessHash: Int64, size: Int32, dcId: Int32, date: Int32, fileHash: Buffer, secret: Buffer) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .secureFileEmpty: if boxed { @@ -6676,7 +6644,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .secureFileEmpty: return ("secureFileEmpty", []) @@ -6685,10 +6653,10 @@ extension Api { } } - static func parse_secureFileEmpty(_ reader: BufferReader) -> SecureFile? { + public static func parse_secureFileEmpty(_ reader: BufferReader) -> SecureFile? { return Api.SecureFile.secureFileEmpty } - static func parse_secureFile(_ reader: BufferReader) -> SecureFile? { + public static func parse_secureFile(_ reader: BufferReader) -> SecureFile? { var _1: Int64? _1 = reader.readInt64() var _2: Int64? @@ -6719,13 +6687,13 @@ extension Api { } } - enum PhotoSize: TypeConstructorDescription { + public enum PhotoSize: TypeConstructorDescription { case photoSizeEmpty(type: String) case photoSize(type: String, location: Api.FileLocation, w: Int32, h: Int32, size: Int32) case photoCachedSize(type: String, location: Api.FileLocation, w: Int32, h: Int32, bytes: Buffer) case photoStrippedSize(type: String, bytes: Buffer) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .photoSizeEmpty(let type): if boxed { @@ -6763,7 +6731,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .photoSizeEmpty(let type): return ("photoSizeEmpty", [("type", type)]) @@ -6776,7 +6744,7 @@ extension Api { } } - static func parse_photoSizeEmpty(_ reader: BufferReader) -> PhotoSize? { + public static func parse_photoSizeEmpty(_ reader: BufferReader) -> PhotoSize? { var _1: String? _1 = parseString(reader) let _c1 = _1 != nil @@ -6787,7 +6755,7 @@ extension Api { return nil } } - static func parse_photoSize(_ reader: BufferReader) -> PhotoSize? { + public static func parse_photoSize(_ reader: BufferReader) -> PhotoSize? { var _1: String? _1 = parseString(reader) var _2: Api.FileLocation? @@ -6812,7 +6780,7 @@ extension Api { return nil } } - static func parse_photoCachedSize(_ reader: BufferReader) -> PhotoSize? { + public static func parse_photoCachedSize(_ reader: BufferReader) -> PhotoSize? { var _1: String? _1 = parseString(reader) var _2: Api.FileLocation? @@ -6837,7 +6805,7 @@ extension Api { return nil } } - static func parse_photoStrippedSize(_ reader: BufferReader) -> PhotoSize? { + public static func parse_photoStrippedSize(_ reader: BufferReader) -> PhotoSize? { var _1: String? _1 = parseString(reader) var _2: Buffer? @@ -6853,10 +6821,10 @@ extension Api { } } - enum InlineBotSwitchPM: TypeConstructorDescription { + public enum InlineBotSwitchPM: TypeConstructorDescription { case inlineBotSwitchPM(text: String, startParam: String) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .inlineBotSwitchPM(let text, let startParam): if boxed { @@ -6868,14 +6836,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .inlineBotSwitchPM(let text, let startParam): return ("inlineBotSwitchPM", [("text", text), ("startParam", startParam)]) } } - static func parse_inlineBotSwitchPM(_ reader: BufferReader) -> InlineBotSwitchPM? { + public static func parse_inlineBotSwitchPM(_ reader: BufferReader) -> InlineBotSwitchPM? { var _1: String? _1 = parseString(reader) var _2: String? @@ -6891,10 +6859,10 @@ extension Api { } } - enum FileLocation: TypeConstructorDescription { + public enum FileLocation: TypeConstructorDescription { case fileLocationToBeDeprecated(volumeId: Int64, localId: Int32) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .fileLocationToBeDeprecated(let volumeId, let localId): if boxed { @@ -6906,14 +6874,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .fileLocationToBeDeprecated(let volumeId, let localId): return ("fileLocationToBeDeprecated", [("volumeId", volumeId), ("localId", localId)]) } } - static func parse_fileLocationToBeDeprecated(_ reader: BufferReader) -> FileLocation? { + public static func parse_fileLocationToBeDeprecated(_ reader: BufferReader) -> FileLocation? { var _1: Int64? _1 = reader.readInt64() var _2: Int32? @@ -6929,10 +6897,10 @@ extension Api { } } - enum Poll: TypeConstructorDescription { + public enum Poll: TypeConstructorDescription { case poll(id: Int64, flags: Int32, question: String, answers: [Api.PollAnswer]) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .poll(let id, let flags, let question, let answers): if boxed { @@ -6950,14 +6918,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .poll(let id, let flags, let question, let answers): return ("poll", [("id", id), ("flags", flags), ("question", question), ("answers", answers)]) } } - static func parse_poll(_ reader: BufferReader) -> Poll? { + public static func parse_poll(_ reader: BufferReader) -> Poll? { var _1: Int64? _1 = reader.readInt64() var _2: Int32? @@ -6981,13 +6949,13 @@ extension Api { } } - enum InputNotifyPeer: TypeConstructorDescription { + public enum InputNotifyPeer: TypeConstructorDescription { case inputNotifyUsers case inputNotifyChats case inputNotifyBroadcasts case inputNotifyPeer(peer: Api.InputPeer) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .inputNotifyUsers: if boxed { @@ -7016,7 +6984,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .inputNotifyUsers: return ("inputNotifyUsers", []) @@ -7029,16 +6997,16 @@ extension Api { } } - static func parse_inputNotifyUsers(_ reader: BufferReader) -> InputNotifyPeer? { + public static func parse_inputNotifyUsers(_ reader: BufferReader) -> InputNotifyPeer? { return Api.InputNotifyPeer.inputNotifyUsers } - static func parse_inputNotifyChats(_ reader: BufferReader) -> InputNotifyPeer? { + public static func parse_inputNotifyChats(_ reader: BufferReader) -> InputNotifyPeer? { return Api.InputNotifyPeer.inputNotifyChats } - static func parse_inputNotifyBroadcasts(_ reader: BufferReader) -> InputNotifyPeer? { + public static func parse_inputNotifyBroadcasts(_ reader: BufferReader) -> InputNotifyPeer? { return Api.InputNotifyPeer.inputNotifyBroadcasts } - static func parse_inputNotifyPeer(_ reader: BufferReader) -> InputNotifyPeer? { + public static func parse_inputNotifyPeer(_ reader: BufferReader) -> InputNotifyPeer? { var _1: Api.InputPeer? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.InputPeer @@ -7053,11 +7021,11 @@ extension Api { } } - enum EncryptedMessage: TypeConstructorDescription { + public enum EncryptedMessage: TypeConstructorDescription { case encryptedMessage(randomId: Int64, chatId: Int32, date: Int32, bytes: Buffer, file: Api.EncryptedFile) case encryptedMessageService(randomId: Int64, chatId: Int32, date: Int32, bytes: Buffer) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .encryptedMessage(let randomId, let chatId, let date, let bytes, let file): if boxed { @@ -7081,7 +7049,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .encryptedMessage(let randomId, let chatId, let date, let bytes, let file): return ("encryptedMessage", [("randomId", randomId), ("chatId", chatId), ("date", date), ("bytes", bytes), ("file", file)]) @@ -7090,7 +7058,7 @@ extension Api { } } - static func parse_encryptedMessage(_ reader: BufferReader) -> EncryptedMessage? { + public static func parse_encryptedMessage(_ reader: BufferReader) -> EncryptedMessage? { var _1: Int64? _1 = reader.readInt64() var _2: Int32? @@ -7115,7 +7083,7 @@ extension Api { return nil } } - static func parse_encryptedMessageService(_ reader: BufferReader) -> EncryptedMessage? { + public static func parse_encryptedMessageService(_ reader: BufferReader) -> EncryptedMessage? { var _1: Int64? _1 = reader.readInt64() var _2: Int32? @@ -7137,7 +7105,7 @@ extension Api { } } - enum ChannelParticipantsFilter: TypeConstructorDescription { + public enum ChannelParticipantsFilter: TypeConstructorDescription { case channelParticipantsRecent case channelParticipantsAdmins case channelParticipantsBots @@ -7146,7 +7114,7 @@ extension Api { case channelParticipantsKicked(q: String) case channelParticipantsContacts(q: String) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .channelParticipantsRecent: if boxed { @@ -7193,7 +7161,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .channelParticipantsRecent: return ("channelParticipantsRecent", []) @@ -7212,16 +7180,16 @@ extension Api { } } - static func parse_channelParticipantsRecent(_ reader: BufferReader) -> ChannelParticipantsFilter? { + public static func parse_channelParticipantsRecent(_ reader: BufferReader) -> ChannelParticipantsFilter? { return Api.ChannelParticipantsFilter.channelParticipantsRecent } - static func parse_channelParticipantsAdmins(_ reader: BufferReader) -> ChannelParticipantsFilter? { + public static func parse_channelParticipantsAdmins(_ reader: BufferReader) -> ChannelParticipantsFilter? { return Api.ChannelParticipantsFilter.channelParticipantsAdmins } - static func parse_channelParticipantsBots(_ reader: BufferReader) -> ChannelParticipantsFilter? { + public static func parse_channelParticipantsBots(_ reader: BufferReader) -> ChannelParticipantsFilter? { return Api.ChannelParticipantsFilter.channelParticipantsBots } - static func parse_channelParticipantsBanned(_ reader: BufferReader) -> ChannelParticipantsFilter? { + public static func parse_channelParticipantsBanned(_ reader: BufferReader) -> ChannelParticipantsFilter? { var _1: String? _1 = parseString(reader) let _c1 = _1 != nil @@ -7232,7 +7200,7 @@ extension Api { return nil } } - static func parse_channelParticipantsSearch(_ reader: BufferReader) -> ChannelParticipantsFilter? { + public static func parse_channelParticipantsSearch(_ reader: BufferReader) -> ChannelParticipantsFilter? { var _1: String? _1 = parseString(reader) let _c1 = _1 != nil @@ -7243,7 +7211,7 @@ extension Api { return nil } } - static func parse_channelParticipantsKicked(_ reader: BufferReader) -> ChannelParticipantsFilter? { + public static func parse_channelParticipantsKicked(_ reader: BufferReader) -> ChannelParticipantsFilter? { var _1: String? _1 = parseString(reader) let _c1 = _1 != nil @@ -7254,7 +7222,7 @@ extension Api { return nil } } - static func parse_channelParticipantsContacts(_ reader: BufferReader) -> ChannelParticipantsFilter? { + public static func parse_channelParticipantsContacts(_ reader: BufferReader) -> ChannelParticipantsFilter? { var _1: String? _1 = parseString(reader) let _c1 = _1 != nil @@ -7267,13 +7235,13 @@ extension Api { } } - enum WebPage: TypeConstructorDescription { + public enum WebPage: TypeConstructorDescription { case webPageEmpty(id: Int64) case webPagePending(id: Int64, date: Int32) case webPage(flags: Int32, id: Int64, url: String, displayUrl: String, hash: Int32, type: String?, siteName: String?, title: String?, description: String?, photo: Api.Photo?, embedUrl: String?, embedType: String?, embedWidth: Int32?, embedHeight: Int32?, duration: Int32?, author: String?, document: Api.Document?, cachedPage: Api.Page?) case webPageNotModified - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .webPageEmpty(let id): if boxed { @@ -7320,7 +7288,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .webPageEmpty(let id): return ("webPageEmpty", [("id", id)]) @@ -7333,7 +7301,7 @@ extension Api { } } - static func parse_webPageEmpty(_ reader: BufferReader) -> WebPage? { + public static func parse_webPageEmpty(_ reader: BufferReader) -> WebPage? { var _1: Int64? _1 = reader.readInt64() let _c1 = _1 != nil @@ -7344,7 +7312,7 @@ extension Api { return nil } } - static func parse_webPagePending(_ reader: BufferReader) -> WebPage? { + public static func parse_webPagePending(_ reader: BufferReader) -> WebPage? { var _1: Int64? _1 = reader.readInt64() var _2: Int32? @@ -7358,7 +7326,7 @@ extension Api { return nil } } - static func parse_webPage(_ reader: BufferReader) -> WebPage? { + public static func parse_webPage(_ reader: BufferReader) -> WebPage? { var _1: Int32? _1 = reader.readInt32() var _2: Int64? @@ -7426,12 +7394,12 @@ extension Api { return nil } } - static func parse_webPageNotModified(_ reader: BufferReader) -> WebPage? { + public static func parse_webPageNotModified(_ reader: BufferReader) -> WebPage? { return Api.WebPage.webPageNotModified } } - enum InputBotInlineMessage: TypeConstructorDescription { + public enum InputBotInlineMessage: TypeConstructorDescription { case inputBotInlineMessageText(flags: Int32, message: String, entities: [Api.MessageEntity]?, replyMarkup: Api.ReplyMarkup?) case inputBotInlineMessageMediaGeo(flags: Int32, geoPoint: Api.InputGeoPoint, replyMarkup: Api.ReplyMarkup?) case inputBotInlineMessageGame(flags: Int32, replyMarkup: Api.ReplyMarkup?) @@ -7439,7 +7407,7 @@ extension Api { case inputBotInlineMessageMediaVenue(flags: Int32, geoPoint: Api.InputGeoPoint, title: String, address: String, provider: String, venueId: String, venueType: String, replyMarkup: Api.ReplyMarkup?) case inputBotInlineMessageMediaContact(flags: Int32, phoneNumber: String, firstName: String, lastName: String, vcard: String, replyMarkup: Api.ReplyMarkup?) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .inputBotInlineMessageText(let flags, let message, let entities, let replyMarkup): if boxed { @@ -7509,7 +7477,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .inputBotInlineMessageText(let flags, let message, let entities, let replyMarkup): return ("inputBotInlineMessageText", [("flags", flags), ("message", message), ("entities", entities), ("replyMarkup", replyMarkup)]) @@ -7526,7 +7494,7 @@ extension Api { } } - static func parse_inputBotInlineMessageText(_ reader: BufferReader) -> InputBotInlineMessage? { + public static func parse_inputBotInlineMessageText(_ reader: BufferReader) -> InputBotInlineMessage? { var _1: Int32? _1 = reader.readInt32() var _2: String? @@ -7550,7 +7518,7 @@ extension Api { return nil } } - static func parse_inputBotInlineMessageMediaGeo(_ reader: BufferReader) -> InputBotInlineMessage? { + public static func parse_inputBotInlineMessageMediaGeo(_ reader: BufferReader) -> InputBotInlineMessage? { var _1: Int32? _1 = reader.readInt32() var _2: Api.InputGeoPoint? @@ -7571,7 +7539,7 @@ extension Api { return nil } } - static func parse_inputBotInlineMessageGame(_ reader: BufferReader) -> InputBotInlineMessage? { + public static func parse_inputBotInlineMessageGame(_ reader: BufferReader) -> InputBotInlineMessage? { var _1: Int32? _1 = reader.readInt32() var _2: Api.ReplyMarkup? @@ -7587,7 +7555,7 @@ extension Api { return nil } } - static func parse_inputBotInlineMessageMediaAuto(_ reader: BufferReader) -> InputBotInlineMessage? { + public static func parse_inputBotInlineMessageMediaAuto(_ reader: BufferReader) -> InputBotInlineMessage? { var _1: Int32? _1 = reader.readInt32() var _2: String? @@ -7611,7 +7579,7 @@ extension Api { return nil } } - static func parse_inputBotInlineMessageMediaVenue(_ reader: BufferReader) -> InputBotInlineMessage? { + public static func parse_inputBotInlineMessageMediaVenue(_ reader: BufferReader) -> InputBotInlineMessage? { var _1: Int32? _1 = reader.readInt32() var _2: Api.InputGeoPoint? @@ -7647,7 +7615,7 @@ extension Api { return nil } } - static func parse_inputBotInlineMessageMediaContact(_ reader: BufferReader) -> InputBotInlineMessage? { + public static func parse_inputBotInlineMessageMediaContact(_ reader: BufferReader) -> InputBotInlineMessage? { var _1: Int32? _1 = reader.readInt32() var _2: String? @@ -7677,10 +7645,10 @@ extension Api { } } - enum KeyboardButtonRow: TypeConstructorDescription { + public enum KeyboardButtonRow: TypeConstructorDescription { case keyboardButtonRow(buttons: [Api.KeyboardButton]) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .keyboardButtonRow(let buttons): if boxed { @@ -7695,14 +7663,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .keyboardButtonRow(let buttons): return ("keyboardButtonRow", [("buttons", buttons)]) } } - static func parse_keyboardButtonRow(_ reader: BufferReader) -> KeyboardButtonRow? { + public static func parse_keyboardButtonRow(_ reader: BufferReader) -> KeyboardButtonRow? { var _1: [Api.KeyboardButton]? if let _ = reader.readInt32() { _1 = Api.parseVector(reader, elementSignature: 0, elementType: Api.KeyboardButton.self) @@ -7717,10 +7685,10 @@ extension Api { } } - enum StickerSet: TypeConstructorDescription { + public enum StickerSet: TypeConstructorDescription { case stickerSet(flags: Int32, installedDate: Int32?, id: Int64, accessHash: Int64, title: String, shortName: String, thumb: Api.PhotoSize?, thumbDcId: Int32?, count: Int32, hash: Int32) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .stickerSet(let flags, let installedDate, let id, let accessHash, let title, let shortName, let thumb, let thumbDcId, let count, let hash): if boxed { @@ -7740,14 +7708,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .stickerSet(let flags, let installedDate, let id, let accessHash, let title, let shortName, let thumb, let thumbDcId, let count, let hash): return ("stickerSet", [("flags", flags), ("installedDate", installedDate), ("id", id), ("accessHash", accessHash), ("title", title), ("shortName", shortName), ("thumb", thumb), ("thumbDcId", thumbDcId), ("count", count), ("hash", hash)]) } } - static func parse_stickerSet(_ reader: BufferReader) -> StickerSet? { + public static func parse_stickerSet(_ reader: BufferReader) -> StickerSet? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -7789,10 +7757,10 @@ extension Api { } } - enum SecureSecretSettings: TypeConstructorDescription { + public enum SecureSecretSettings: TypeConstructorDescription { case secureSecretSettings(secureAlgo: Api.SecurePasswordKdfAlgo, secureSecret: Buffer, secureSecretId: Int64) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .secureSecretSettings(let secureAlgo, let secureSecret, let secureSecretId): if boxed { @@ -7805,14 +7773,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .secureSecretSettings(let secureAlgo, let secureSecret, let secureSecretId): return ("secureSecretSettings", [("secureAlgo", secureAlgo), ("secureSecret", secureSecret), ("secureSecretId", secureSecretId)]) } } - static func parse_secureSecretSettings(_ reader: BufferReader) -> SecureSecretSettings? { + public static func parse_secureSecretSettings(_ reader: BufferReader) -> SecureSecretSettings? { var _1: Api.SecurePasswordKdfAlgo? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.SecurePasswordKdfAlgo @@ -7833,10 +7801,10 @@ extension Api { } } - enum InputContact: TypeConstructorDescription { + public enum InputContact: TypeConstructorDescription { case inputPhoneContact(clientId: Int64, phone: String, firstName: String, lastName: String) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .inputPhoneContact(let clientId, let phone, let firstName, let lastName): if boxed { @@ -7850,14 +7818,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .inputPhoneContact(let clientId, let phone, let firstName, let lastName): return ("inputPhoneContact", [("clientId", clientId), ("phone", phone), ("firstName", firstName), ("lastName", lastName)]) } } - static func parse_inputPhoneContact(_ reader: BufferReader) -> InputContact? { + public static func parse_inputPhoneContact(_ reader: BufferReader) -> InputContact? { var _1: Int64? _1 = reader.readInt64() var _2: String? @@ -7879,7 +7847,7 @@ extension Api { } } - enum TopPeerCategory: TypeConstructorDescription { + public enum TopPeerCategory: TypeConstructorDescription { case topPeerCategoryBotsPM case topPeerCategoryBotsInline case topPeerCategoryCorrespondents @@ -7889,7 +7857,7 @@ extension Api { case topPeerCategoryForwardUsers case topPeerCategoryForwardChats - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .topPeerCategoryBotsPM: if boxed { @@ -7942,7 +7910,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .topPeerCategoryBotsPM: return ("topPeerCategoryBotsPM", []) @@ -7963,37 +7931,37 @@ extension Api { } } - static func parse_topPeerCategoryBotsPM(_ reader: BufferReader) -> TopPeerCategory? { + public static func parse_topPeerCategoryBotsPM(_ reader: BufferReader) -> TopPeerCategory? { return Api.TopPeerCategory.topPeerCategoryBotsPM } - static func parse_topPeerCategoryBotsInline(_ reader: BufferReader) -> TopPeerCategory? { + public static func parse_topPeerCategoryBotsInline(_ reader: BufferReader) -> TopPeerCategory? { return Api.TopPeerCategory.topPeerCategoryBotsInline } - static func parse_topPeerCategoryCorrespondents(_ reader: BufferReader) -> TopPeerCategory? { + public static func parse_topPeerCategoryCorrespondents(_ reader: BufferReader) -> TopPeerCategory? { return Api.TopPeerCategory.topPeerCategoryCorrespondents } - static func parse_topPeerCategoryGroups(_ reader: BufferReader) -> TopPeerCategory? { + public static func parse_topPeerCategoryGroups(_ reader: BufferReader) -> TopPeerCategory? { return Api.TopPeerCategory.topPeerCategoryGroups } - static func parse_topPeerCategoryChannels(_ reader: BufferReader) -> TopPeerCategory? { + public static func parse_topPeerCategoryChannels(_ reader: BufferReader) -> TopPeerCategory? { return Api.TopPeerCategory.topPeerCategoryChannels } - static func parse_topPeerCategoryPhoneCalls(_ reader: BufferReader) -> TopPeerCategory? { + public static func parse_topPeerCategoryPhoneCalls(_ reader: BufferReader) -> TopPeerCategory? { return Api.TopPeerCategory.topPeerCategoryPhoneCalls } - static func parse_topPeerCategoryForwardUsers(_ reader: BufferReader) -> TopPeerCategory? { + public static func parse_topPeerCategoryForwardUsers(_ reader: BufferReader) -> TopPeerCategory? { return Api.TopPeerCategory.topPeerCategoryForwardUsers } - static func parse_topPeerCategoryForwardChats(_ reader: BufferReader) -> TopPeerCategory? { + public static func parse_topPeerCategoryForwardChats(_ reader: BufferReader) -> TopPeerCategory? { return Api.TopPeerCategory.topPeerCategoryForwardChats } } - enum ChannelMessagesFilter: TypeConstructorDescription { + public enum ChannelMessagesFilter: TypeConstructorDescription { case channelMessagesFilterEmpty case channelMessagesFilter(flags: Int32, ranges: [Api.MessageRange]) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .channelMessagesFilterEmpty: if boxed { @@ -8015,7 +7983,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .channelMessagesFilterEmpty: return ("channelMessagesFilterEmpty", []) @@ -8024,10 +7992,10 @@ extension Api { } } - static func parse_channelMessagesFilterEmpty(_ reader: BufferReader) -> ChannelMessagesFilter? { + public static func parse_channelMessagesFilterEmpty(_ reader: BufferReader) -> ChannelMessagesFilter? { return Api.ChannelMessagesFilter.channelMessagesFilterEmpty } - static func parse_channelMessagesFilter(_ reader: BufferReader) -> ChannelMessagesFilter? { + public static func parse_channelMessagesFilter(_ reader: BufferReader) -> ChannelMessagesFilter? { var _1: Int32? _1 = reader.readInt32() var _2: [Api.MessageRange]? @@ -8045,11 +8013,11 @@ extension Api { } } - enum InputDocument: TypeConstructorDescription { + public enum InputDocument: TypeConstructorDescription { case inputDocumentEmpty case inputDocument(id: Int64, accessHash: Int64, fileReference: Buffer) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .inputDocumentEmpty: if boxed { @@ -8068,7 +8036,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .inputDocumentEmpty: return ("inputDocumentEmpty", []) @@ -8077,10 +8045,10 @@ extension Api { } } - static func parse_inputDocumentEmpty(_ reader: BufferReader) -> InputDocument? { + public static func parse_inputDocumentEmpty(_ reader: BufferReader) -> InputDocument? { return Api.InputDocument.inputDocumentEmpty } - static func parse_inputDocument(_ reader: BufferReader) -> InputDocument? { + public static func parse_inputDocument(_ reader: BufferReader) -> InputDocument? { var _1: Int64? _1 = reader.readInt64() var _2: Int64? @@ -8099,10 +8067,10 @@ extension Api { } } - enum PollAnswer: TypeConstructorDescription { + public enum PollAnswer: TypeConstructorDescription { case pollAnswer(text: String, option: Buffer) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .pollAnswer(let text, let option): if boxed { @@ -8114,14 +8082,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .pollAnswer(let text, let option): return ("pollAnswer", [("text", text), ("option", option)]) } } - static func parse_pollAnswer(_ reader: BufferReader) -> PollAnswer? { + public static func parse_pollAnswer(_ reader: BufferReader) -> PollAnswer? { var _1: String? _1 = parseString(reader) var _2: Buffer? @@ -8137,10 +8105,10 @@ extension Api { } } - enum SecureData: TypeConstructorDescription { + public enum SecureData: TypeConstructorDescription { case secureData(data: Buffer, dataHash: Buffer, secret: Buffer) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .secureData(let data, let dataHash, let secret): if boxed { @@ -8153,14 +8121,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .secureData(let data, let dataHash, let secret): return ("secureData", [("data", data), ("dataHash", dataHash), ("secret", secret)]) } } - static func parse_secureData(_ reader: BufferReader) -> SecureData? { + public static func parse_secureData(_ reader: BufferReader) -> SecureData? { var _1: Buffer? _1 = parseBytes(reader) var _2: Buffer? @@ -8179,7 +8147,7 @@ extension Api { } } - enum InputMedia: TypeConstructorDescription { + public enum InputMedia: TypeConstructorDescription { case inputMediaEmpty case inputMediaGeoPoint(geoPoint: Api.InputGeoPoint) case inputMediaGifExternal(url: String, q: String) @@ -8196,7 +8164,7 @@ extension Api { case inputMediaPoll(poll: Api.Poll) case inputMediaGeoLive(flags: Int32, geoPoint: Api.InputGeoPoint, period: Int32?) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .inputMediaEmpty: if boxed { @@ -8339,7 +8307,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .inputMediaEmpty: return ("inputMediaEmpty", []) @@ -8374,10 +8342,10 @@ extension Api { } } - static func parse_inputMediaEmpty(_ reader: BufferReader) -> InputMedia? { + public static func parse_inputMediaEmpty(_ reader: BufferReader) -> InputMedia? { return Api.InputMedia.inputMediaEmpty } - static func parse_inputMediaGeoPoint(_ reader: BufferReader) -> InputMedia? { + public static func parse_inputMediaGeoPoint(_ reader: BufferReader) -> InputMedia? { var _1: Api.InputGeoPoint? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.InputGeoPoint @@ -8390,7 +8358,7 @@ extension Api { return nil } } - static func parse_inputMediaGifExternal(_ reader: BufferReader) -> InputMedia? { + public static func parse_inputMediaGifExternal(_ reader: BufferReader) -> InputMedia? { var _1: String? _1 = parseString(reader) var _2: String? @@ -8404,7 +8372,7 @@ extension Api { return nil } } - static func parse_inputMediaGame(_ reader: BufferReader) -> InputMedia? { + public static func parse_inputMediaGame(_ reader: BufferReader) -> InputMedia? { var _1: Api.InputGame? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.InputGame @@ -8417,7 +8385,7 @@ extension Api { return nil } } - static func parse_inputMediaVenue(_ reader: BufferReader) -> InputMedia? { + public static func parse_inputMediaVenue(_ reader: BufferReader) -> InputMedia? { var _1: Api.InputGeoPoint? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.InputGeoPoint @@ -8445,7 +8413,7 @@ extension Api { return nil } } - static func parse_inputMediaInvoice(_ reader: BufferReader) -> InputMedia? { + public static func parse_inputMediaInvoice(_ reader: BufferReader) -> InputMedia? { var _1: Int32? _1 = reader.readInt32() var _2: String? @@ -8486,7 +8454,7 @@ extension Api { return nil } } - static func parse_inputMediaUploadedPhoto(_ reader: BufferReader) -> InputMedia? { + public static func parse_inputMediaUploadedPhoto(_ reader: BufferReader) -> InputMedia? { var _1: Int32? _1 = reader.readInt32() var _2: Api.InputFile? @@ -8510,7 +8478,7 @@ extension Api { return nil } } - static func parse_inputMediaUploadedDocument(_ reader: BufferReader) -> InputMedia? { + public static func parse_inputMediaUploadedDocument(_ reader: BufferReader) -> InputMedia? { var _1: Int32? _1 = reader.readInt32() var _2: Api.InputFile? @@ -8547,7 +8515,7 @@ extension Api { return nil } } - static func parse_inputMediaPhoto(_ reader: BufferReader) -> InputMedia? { + public static func parse_inputMediaPhoto(_ reader: BufferReader) -> InputMedia? { var _1: Int32? _1 = reader.readInt32() var _2: Api.InputPhoto? @@ -8566,7 +8534,7 @@ extension Api { return nil } } - static func parse_inputMediaDocument(_ reader: BufferReader) -> InputMedia? { + public static func parse_inputMediaDocument(_ reader: BufferReader) -> InputMedia? { var _1: Int32? _1 = reader.readInt32() var _2: Api.InputDocument? @@ -8585,7 +8553,7 @@ extension Api { return nil } } - static func parse_inputMediaPhotoExternal(_ reader: BufferReader) -> InputMedia? { + public static func parse_inputMediaPhotoExternal(_ reader: BufferReader) -> InputMedia? { var _1: Int32? _1 = reader.readInt32() var _2: String? @@ -8602,7 +8570,7 @@ extension Api { return nil } } - static func parse_inputMediaDocumentExternal(_ reader: BufferReader) -> InputMedia? { + public static func parse_inputMediaDocumentExternal(_ reader: BufferReader) -> InputMedia? { var _1: Int32? _1 = reader.readInt32() var _2: String? @@ -8619,7 +8587,7 @@ extension Api { return nil } } - static func parse_inputMediaContact(_ reader: BufferReader) -> InputMedia? { + public static func parse_inputMediaContact(_ reader: BufferReader) -> InputMedia? { var _1: String? _1 = parseString(reader) var _2: String? @@ -8639,7 +8607,7 @@ extension Api { return nil } } - static func parse_inputMediaPoll(_ reader: BufferReader) -> InputMedia? { + public static func parse_inputMediaPoll(_ reader: BufferReader) -> InputMedia? { var _1: Api.Poll? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.Poll @@ -8652,7 +8620,7 @@ extension Api { return nil } } - static func parse_inputMediaGeoLive(_ reader: BufferReader) -> InputMedia? { + public static func parse_inputMediaGeoLive(_ reader: BufferReader) -> InputMedia? { var _1: Int32? _1 = reader.readInt32() var _2: Api.InputGeoPoint? @@ -8673,14 +8641,14 @@ extension Api { } } - enum InputPeer: TypeConstructorDescription { + public enum InputPeer: TypeConstructorDescription { case inputPeerEmpty case inputPeerSelf case inputPeerChat(chatId: Int32) case inputPeerUser(userId: Int32, accessHash: Int64) case inputPeerChannel(channelId: Int32, accessHash: Int64) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .inputPeerEmpty: if boxed { @@ -8717,7 +8685,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .inputPeerEmpty: return ("inputPeerEmpty", []) @@ -8732,13 +8700,13 @@ extension Api { } } - static func parse_inputPeerEmpty(_ reader: BufferReader) -> InputPeer? { + public static func parse_inputPeerEmpty(_ reader: BufferReader) -> InputPeer? { return Api.InputPeer.inputPeerEmpty } - static func parse_inputPeerSelf(_ reader: BufferReader) -> InputPeer? { + public static func parse_inputPeerSelf(_ reader: BufferReader) -> InputPeer? { return Api.InputPeer.inputPeerSelf } - static func parse_inputPeerChat(_ reader: BufferReader) -> InputPeer? { + public static func parse_inputPeerChat(_ reader: BufferReader) -> InputPeer? { var _1: Int32? _1 = reader.readInt32() let _c1 = _1 != nil @@ -8749,7 +8717,7 @@ extension Api { return nil } } - static func parse_inputPeerUser(_ reader: BufferReader) -> InputPeer? { + public static func parse_inputPeerUser(_ reader: BufferReader) -> InputPeer? { var _1: Int32? _1 = reader.readInt32() var _2: Int64? @@ -8763,7 +8731,7 @@ extension Api { return nil } } - static func parse_inputPeerChannel(_ reader: BufferReader) -> InputPeer? { + public static func parse_inputPeerChannel(_ reader: BufferReader) -> InputPeer? { var _1: Int32? _1 = reader.readInt32() var _2: Int64? @@ -8779,10 +8747,10 @@ extension Api { } } - enum Contact: TypeConstructorDescription { + public enum Contact: TypeConstructorDescription { case contact(userId: Int32, mutual: Api.Bool) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .contact(let userId, let mutual): if boxed { @@ -8794,14 +8762,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .contact(let userId, let mutual): return ("contact", [("userId", userId), ("mutual", mutual)]) } } - static func parse_contact(_ reader: BufferReader) -> Contact? { + public static func parse_contact(_ reader: BufferReader) -> Contact? { var _1: Int32? _1 = reader.readInt32() var _2: Api.Bool? @@ -8819,10 +8787,10 @@ extension Api { } } - enum FileHash: TypeConstructorDescription { + public enum FileHash: TypeConstructorDescription { case fileHash(offset: Int32, limit: Int32, hash: Buffer) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .fileHash(let offset, let limit, let hash): if boxed { @@ -8835,14 +8803,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .fileHash(let offset, let limit, let hash): return ("fileHash", [("offset", offset), ("limit", limit), ("hash", hash)]) } } - static func parse_fileHash(_ reader: BufferReader) -> FileHash? { + public static func parse_fileHash(_ reader: BufferReader) -> FileHash? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -8861,11 +8829,11 @@ extension Api { } } - enum BotInlineResult: TypeConstructorDescription { + public enum BotInlineResult: TypeConstructorDescription { case botInlineMediaResult(flags: Int32, id: String, type: String, photo: Api.Photo?, document: Api.Document?, title: String?, description: String?, sendMessage: Api.BotInlineMessage) case botInlineResult(flags: Int32, id: String, type: String, title: String?, description: String?, url: String?, thumb: Api.WebDocument?, content: Api.WebDocument?, sendMessage: Api.BotInlineMessage) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .botInlineMediaResult(let flags, let id, let type, let photo, let document, let title, let description, let sendMessage): if boxed { @@ -8897,7 +8865,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .botInlineMediaResult(let flags, let id, let type, let photo, let document, let title, let description, let sendMessage): return ("botInlineMediaResult", [("flags", flags), ("id", id), ("type", type), ("photo", photo), ("document", document), ("title", title), ("description", description), ("sendMessage", sendMessage)]) @@ -8906,7 +8874,7 @@ extension Api { } } - static func parse_botInlineMediaResult(_ reader: BufferReader) -> BotInlineResult? { + public static func parse_botInlineMediaResult(_ reader: BufferReader) -> BotInlineResult? { var _1: Int32? _1 = reader.readInt32() var _2: String? @@ -8944,7 +8912,7 @@ extension Api { return nil } } - static func parse_botInlineResult(_ reader: BufferReader) -> BotInlineResult? { + public static func parse_botInlineResult(_ reader: BufferReader) -> BotInlineResult? { var _1: Int32? _1 = reader.readInt32() var _2: String? @@ -8987,10 +8955,10 @@ extension Api { } } - enum InputSingleMedia: TypeConstructorDescription { + public enum InputSingleMedia: TypeConstructorDescription { case inputSingleMedia(flags: Int32, media: Api.InputMedia, randomId: Int64, message: String, entities: [Api.MessageEntity]?) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .inputSingleMedia(let flags, let media, let randomId, let message, let entities): if boxed { @@ -9009,14 +8977,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .inputSingleMedia(let flags, let media, let randomId, let message, let entities): return ("inputSingleMedia", [("flags", flags), ("media", media), ("randomId", randomId), ("message", message), ("entities", entities)]) } } - static func parse_inputSingleMedia(_ reader: BufferReader) -> InputSingleMedia? { + public static func parse_inputSingleMedia(_ reader: BufferReader) -> InputSingleMedia? { var _1: Int32? _1 = reader.readInt32() var _2: Api.InputMedia? @@ -9045,7 +9013,7 @@ extension Api { } } - enum InputPrivacyRule: TypeConstructorDescription { + public enum InputPrivacyRule: TypeConstructorDescription { case inputPrivacyValueAllowContacts case inputPrivacyValueAllowAll case inputPrivacyValueAllowUsers(users: [Api.InputUser]) @@ -9055,7 +9023,7 @@ extension Api { case inputPrivacyValueAllowChatParticipants(chats: [Int32]) case inputPrivacyValueDisallowChatParticipants(chats: [Int32]) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .inputPrivacyValueAllowContacts: if boxed { @@ -9124,7 +9092,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .inputPrivacyValueAllowContacts: return ("inputPrivacyValueAllowContacts", []) @@ -9145,13 +9113,13 @@ extension Api { } } - static func parse_inputPrivacyValueAllowContacts(_ reader: BufferReader) -> InputPrivacyRule? { + public static func parse_inputPrivacyValueAllowContacts(_ reader: BufferReader) -> InputPrivacyRule? { return Api.InputPrivacyRule.inputPrivacyValueAllowContacts } - static func parse_inputPrivacyValueAllowAll(_ reader: BufferReader) -> InputPrivacyRule? { + public static func parse_inputPrivacyValueAllowAll(_ reader: BufferReader) -> InputPrivacyRule? { return Api.InputPrivacyRule.inputPrivacyValueAllowAll } - static func parse_inputPrivacyValueAllowUsers(_ reader: BufferReader) -> InputPrivacyRule? { + public static func parse_inputPrivacyValueAllowUsers(_ reader: BufferReader) -> InputPrivacyRule? { var _1: [Api.InputUser]? if let _ = reader.readInt32() { _1 = Api.parseVector(reader, elementSignature: 0, elementType: Api.InputUser.self) @@ -9164,13 +9132,13 @@ extension Api { return nil } } - static func parse_inputPrivacyValueDisallowContacts(_ reader: BufferReader) -> InputPrivacyRule? { + public static func parse_inputPrivacyValueDisallowContacts(_ reader: BufferReader) -> InputPrivacyRule? { return Api.InputPrivacyRule.inputPrivacyValueDisallowContacts } - static func parse_inputPrivacyValueDisallowAll(_ reader: BufferReader) -> InputPrivacyRule? { + public static func parse_inputPrivacyValueDisallowAll(_ reader: BufferReader) -> InputPrivacyRule? { return Api.InputPrivacyRule.inputPrivacyValueDisallowAll } - static func parse_inputPrivacyValueDisallowUsers(_ reader: BufferReader) -> InputPrivacyRule? { + public static func parse_inputPrivacyValueDisallowUsers(_ reader: BufferReader) -> InputPrivacyRule? { var _1: [Api.InputUser]? if let _ = reader.readInt32() { _1 = Api.parseVector(reader, elementSignature: 0, elementType: Api.InputUser.self) @@ -9183,7 +9151,7 @@ extension Api { return nil } } - static func parse_inputPrivacyValueAllowChatParticipants(_ reader: BufferReader) -> InputPrivacyRule? { + public static func parse_inputPrivacyValueAllowChatParticipants(_ reader: BufferReader) -> InputPrivacyRule? { var _1: [Int32]? if let _ = reader.readInt32() { _1 = Api.parseVector(reader, elementSignature: -1471112230, elementType: Int32.self) @@ -9196,7 +9164,7 @@ extension Api { return nil } } - static func parse_inputPrivacyValueDisallowChatParticipants(_ reader: BufferReader) -> InputPrivacyRule? { + public static func parse_inputPrivacyValueDisallowChatParticipants(_ reader: BufferReader) -> InputPrivacyRule? { var _1: [Int32]? if let _ = reader.readInt32() { _1 = Api.parseVector(reader, elementSignature: -1471112230, elementType: Int32.self) @@ -9211,7 +9179,7 @@ extension Api { } } - enum ChannelAdminLogEventAction: TypeConstructorDescription { + public enum ChannelAdminLogEventAction: TypeConstructorDescription { case channelAdminLogEventActionChangeTitle(prevValue: String, newValue: String) case channelAdminLogEventActionChangeAbout(prevValue: String, newValue: String) case channelAdminLogEventActionChangeUsername(prevValue: String, newValue: String) @@ -9233,7 +9201,7 @@ extension Api { case channelAdminLogEventActionChangeLinkedChat(prevValue: Int32, newValue: Int32) case channelAdminLogEventActionChangeLocation(prevValue: Api.ChannelLocation, newValue: Api.ChannelLocation) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .channelAdminLogEventActionChangeTitle(let prevValue, let newValue): if boxed { @@ -9369,7 +9337,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .channelAdminLogEventActionChangeTitle(let prevValue, let newValue): return ("channelAdminLogEventActionChangeTitle", [("prevValue", prevValue), ("newValue", newValue)]) @@ -9414,7 +9382,7 @@ extension Api { } } - static func parse_channelAdminLogEventActionChangeTitle(_ reader: BufferReader) -> ChannelAdminLogEventAction? { + public static func parse_channelAdminLogEventActionChangeTitle(_ reader: BufferReader) -> ChannelAdminLogEventAction? { var _1: String? _1 = parseString(reader) var _2: String? @@ -9428,7 +9396,7 @@ extension Api { return nil } } - static func parse_channelAdminLogEventActionChangeAbout(_ reader: BufferReader) -> ChannelAdminLogEventAction? { + public static func parse_channelAdminLogEventActionChangeAbout(_ reader: BufferReader) -> ChannelAdminLogEventAction? { var _1: String? _1 = parseString(reader) var _2: String? @@ -9442,7 +9410,7 @@ extension Api { return nil } } - static func parse_channelAdminLogEventActionChangeUsername(_ reader: BufferReader) -> ChannelAdminLogEventAction? { + public static func parse_channelAdminLogEventActionChangeUsername(_ reader: BufferReader) -> ChannelAdminLogEventAction? { var _1: String? _1 = parseString(reader) var _2: String? @@ -9456,7 +9424,7 @@ extension Api { return nil } } - static func parse_channelAdminLogEventActionToggleInvites(_ reader: BufferReader) -> ChannelAdminLogEventAction? { + public static func parse_channelAdminLogEventActionToggleInvites(_ reader: BufferReader) -> ChannelAdminLogEventAction? { var _1: Api.Bool? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.Bool @@ -9469,7 +9437,7 @@ extension Api { return nil } } - static func parse_channelAdminLogEventActionToggleSignatures(_ reader: BufferReader) -> ChannelAdminLogEventAction? { + public static func parse_channelAdminLogEventActionToggleSignatures(_ reader: BufferReader) -> ChannelAdminLogEventAction? { var _1: Api.Bool? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.Bool @@ -9482,7 +9450,7 @@ extension Api { return nil } } - static func parse_channelAdminLogEventActionUpdatePinned(_ reader: BufferReader) -> ChannelAdminLogEventAction? { + public static func parse_channelAdminLogEventActionUpdatePinned(_ reader: BufferReader) -> ChannelAdminLogEventAction? { var _1: Api.Message? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.Message @@ -9495,7 +9463,7 @@ extension Api { return nil } } - static func parse_channelAdminLogEventActionEditMessage(_ reader: BufferReader) -> ChannelAdminLogEventAction? { + public static func parse_channelAdminLogEventActionEditMessage(_ reader: BufferReader) -> ChannelAdminLogEventAction? { var _1: Api.Message? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.Message @@ -9513,7 +9481,7 @@ extension Api { return nil } } - static func parse_channelAdminLogEventActionDeleteMessage(_ reader: BufferReader) -> ChannelAdminLogEventAction? { + public static func parse_channelAdminLogEventActionDeleteMessage(_ reader: BufferReader) -> ChannelAdminLogEventAction? { var _1: Api.Message? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.Message @@ -9526,13 +9494,13 @@ extension Api { return nil } } - static func parse_channelAdminLogEventActionParticipantJoin(_ reader: BufferReader) -> ChannelAdminLogEventAction? { + public static func parse_channelAdminLogEventActionParticipantJoin(_ reader: BufferReader) -> ChannelAdminLogEventAction? { return Api.ChannelAdminLogEventAction.channelAdminLogEventActionParticipantJoin } - static func parse_channelAdminLogEventActionParticipantLeave(_ reader: BufferReader) -> ChannelAdminLogEventAction? { + public static func parse_channelAdminLogEventActionParticipantLeave(_ reader: BufferReader) -> ChannelAdminLogEventAction? { return Api.ChannelAdminLogEventAction.channelAdminLogEventActionParticipantLeave } - static func parse_channelAdminLogEventActionParticipantInvite(_ reader: BufferReader) -> ChannelAdminLogEventAction? { + public static func parse_channelAdminLogEventActionParticipantInvite(_ reader: BufferReader) -> ChannelAdminLogEventAction? { var _1: Api.ChannelParticipant? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.ChannelParticipant @@ -9545,7 +9513,7 @@ extension Api { return nil } } - static func parse_channelAdminLogEventActionParticipantToggleBan(_ reader: BufferReader) -> ChannelAdminLogEventAction? { + public static func parse_channelAdminLogEventActionParticipantToggleBan(_ reader: BufferReader) -> ChannelAdminLogEventAction? { var _1: Api.ChannelParticipant? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.ChannelParticipant @@ -9563,7 +9531,7 @@ extension Api { return nil } } - static func parse_channelAdminLogEventActionParticipantToggleAdmin(_ reader: BufferReader) -> ChannelAdminLogEventAction? { + public static func parse_channelAdminLogEventActionParticipantToggleAdmin(_ reader: BufferReader) -> ChannelAdminLogEventAction? { var _1: Api.ChannelParticipant? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.ChannelParticipant @@ -9581,7 +9549,7 @@ extension Api { return nil } } - static func parse_channelAdminLogEventActionChangeStickerSet(_ reader: BufferReader) -> ChannelAdminLogEventAction? { + public static func parse_channelAdminLogEventActionChangeStickerSet(_ reader: BufferReader) -> ChannelAdminLogEventAction? { var _1: Api.InputStickerSet? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.InputStickerSet @@ -9599,7 +9567,7 @@ extension Api { return nil } } - static func parse_channelAdminLogEventActionTogglePreHistoryHidden(_ reader: BufferReader) -> ChannelAdminLogEventAction? { + public static func parse_channelAdminLogEventActionTogglePreHistoryHidden(_ reader: BufferReader) -> ChannelAdminLogEventAction? { var _1: Api.Bool? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.Bool @@ -9612,7 +9580,7 @@ extension Api { return nil } } - static func parse_channelAdminLogEventActionDefaultBannedRights(_ reader: BufferReader) -> ChannelAdminLogEventAction? { + public static func parse_channelAdminLogEventActionDefaultBannedRights(_ reader: BufferReader) -> ChannelAdminLogEventAction? { var _1: Api.ChatBannedRights? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.ChatBannedRights @@ -9630,7 +9598,7 @@ extension Api { return nil } } - static func parse_channelAdminLogEventActionStopPoll(_ reader: BufferReader) -> ChannelAdminLogEventAction? { + public static func parse_channelAdminLogEventActionStopPoll(_ reader: BufferReader) -> ChannelAdminLogEventAction? { var _1: Api.Message? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.Message @@ -9643,7 +9611,7 @@ extension Api { return nil } } - static func parse_channelAdminLogEventActionChangePhoto(_ reader: BufferReader) -> ChannelAdminLogEventAction? { + public static func parse_channelAdminLogEventActionChangePhoto(_ reader: BufferReader) -> ChannelAdminLogEventAction? { var _1: Api.Photo? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.Photo @@ -9661,7 +9629,7 @@ extension Api { return nil } } - static func parse_channelAdminLogEventActionChangeLinkedChat(_ reader: BufferReader) -> ChannelAdminLogEventAction? { + public static func parse_channelAdminLogEventActionChangeLinkedChat(_ reader: BufferReader) -> ChannelAdminLogEventAction? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -9675,7 +9643,7 @@ extension Api { return nil } } - static func parse_channelAdminLogEventActionChangeLocation(_ reader: BufferReader) -> ChannelAdminLogEventAction? { + public static func parse_channelAdminLogEventActionChangeLocation(_ reader: BufferReader) -> ChannelAdminLogEventAction? { var _1: Api.ChannelLocation? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.ChannelLocation @@ -9695,11 +9663,11 @@ extension Api { } } - enum SecurePlainData: TypeConstructorDescription { + public enum SecurePlainData: TypeConstructorDescription { case securePlainPhone(phone: String) case securePlainEmail(email: String) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .securePlainPhone(let phone): if boxed { @@ -9716,7 +9684,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .securePlainPhone(let phone): return ("securePlainPhone", [("phone", phone)]) @@ -9725,7 +9693,7 @@ extension Api { } } - static func parse_securePlainPhone(_ reader: BufferReader) -> SecurePlainData? { + public static func parse_securePlainPhone(_ reader: BufferReader) -> SecurePlainData? { var _1: String? _1 = parseString(reader) let _c1 = _1 != nil @@ -9736,7 +9704,7 @@ extension Api { return nil } } - static func parse_securePlainEmail(_ reader: BufferReader) -> SecurePlainData? { + public static func parse_securePlainEmail(_ reader: BufferReader) -> SecurePlainData? { var _1: String? _1 = parseString(reader) let _c1 = _1 != nil @@ -9749,10 +9717,10 @@ extension Api { } } - enum PageTableCell: TypeConstructorDescription { + public enum PageTableCell: TypeConstructorDescription { case pageTableCell(flags: Int32, text: Api.RichText?, colspan: Int32?, rowspan: Int32?) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .pageTableCell(let flags, let text, let colspan, let rowspan): if boxed { @@ -9766,14 +9734,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .pageTableCell(let flags, let text, let colspan, let rowspan): return ("pageTableCell", [("flags", flags), ("text", text), ("colspan", colspan), ("rowspan", rowspan)]) } } - static func parse_pageTableCell(_ reader: BufferReader) -> PageTableCell? { + public static func parse_pageTableCell(_ reader: BufferReader) -> PageTableCell? { var _1: Int32? _1 = reader.readInt32() var _2: Api.RichText? @@ -9797,10 +9765,10 @@ extension Api { } } - enum ChatBannedRights: TypeConstructorDescription { + public enum ChatBannedRights: TypeConstructorDescription { case chatBannedRights(flags: Int32, untilDate: Int32) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .chatBannedRights(let flags, let untilDate): if boxed { @@ -9812,14 +9780,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .chatBannedRights(let flags, let untilDate): return ("chatBannedRights", [("flags", flags), ("untilDate", untilDate)]) } } - static func parse_chatBannedRights(_ reader: BufferReader) -> ChatBannedRights? { + public static func parse_chatBannedRights(_ reader: BufferReader) -> ChatBannedRights? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -9835,10 +9803,10 @@ extension Api { } } - enum LabeledPrice: TypeConstructorDescription { + public enum LabeledPrice: TypeConstructorDescription { case labeledPrice(label: String, amount: Int64) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .labeledPrice(let label, let amount): if boxed { @@ -9850,14 +9818,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .labeledPrice(let label, let amount): return ("labeledPrice", [("label", label), ("amount", amount)]) } } - static func parse_labeledPrice(_ reader: BufferReader) -> LabeledPrice? { + public static func parse_labeledPrice(_ reader: BufferReader) -> LabeledPrice? { var _1: String? _1 = parseString(reader) var _2: Int64? @@ -9873,10 +9841,10 @@ extension Api { } } - enum InputSecureValue: TypeConstructorDescription { + public enum InputSecureValue: TypeConstructorDescription { case inputSecureValue(flags: Int32, type: Api.SecureValueType, data: Api.SecureData?, frontSide: Api.InputSecureFile?, reverseSide: Api.InputSecureFile?, selfie: Api.InputSecureFile?, translation: [Api.InputSecureFile]?, files: [Api.InputSecureFile]?, plainData: Api.SecurePlainData?) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .inputSecureValue(let flags, let type, let data, let frontSide, let reverseSide, let selfie, let translation, let files, let plainData): if boxed { @@ -9903,14 +9871,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .inputSecureValue(let flags, let type, let data, let frontSide, let reverseSide, let selfie, let translation, let files, let plainData): return ("inputSecureValue", [("flags", flags), ("type", type), ("data", data), ("frontSide", frontSide), ("reverseSide", reverseSide), ("selfie", selfie), ("translation", translation), ("files", files), ("plainData", plainData)]) } } - static func parse_inputSecureValue(_ reader: BufferReader) -> InputSecureValue? { + public static func parse_inputSecureValue(_ reader: BufferReader) -> InputSecureValue? { var _1: Int32? _1 = reader.readInt32() var _2: Api.SecureValueType? @@ -9963,7 +9931,7 @@ extension Api { } } - enum ReportReason: TypeConstructorDescription { + public enum ReportReason: TypeConstructorDescription { case inputReportReasonSpam case inputReportReasonViolence case inputReportReasonPornography @@ -9972,7 +9940,7 @@ extension Api { case inputReportReasonChildAbuse case inputReportReasonGeoIrrelevant - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .inputReportReasonSpam: if boxed { @@ -10019,7 +9987,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .inputReportReasonSpam: return ("inputReportReasonSpam", []) @@ -10038,16 +10006,16 @@ extension Api { } } - static func parse_inputReportReasonSpam(_ reader: BufferReader) -> ReportReason? { + public static func parse_inputReportReasonSpam(_ reader: BufferReader) -> ReportReason? { return Api.ReportReason.inputReportReasonSpam } - static func parse_inputReportReasonViolence(_ reader: BufferReader) -> ReportReason? { + public static func parse_inputReportReasonViolence(_ reader: BufferReader) -> ReportReason? { return Api.ReportReason.inputReportReasonViolence } - static func parse_inputReportReasonPornography(_ reader: BufferReader) -> ReportReason? { + public static func parse_inputReportReasonPornography(_ reader: BufferReader) -> ReportReason? { return Api.ReportReason.inputReportReasonPornography } - static func parse_inputReportReasonOther(_ reader: BufferReader) -> ReportReason? { + public static func parse_inputReportReasonOther(_ reader: BufferReader) -> ReportReason? { var _1: String? _1 = parseString(reader) let _c1 = _1 != nil @@ -10058,21 +10026,21 @@ extension Api { return nil } } - static func parse_inputReportReasonCopyright(_ reader: BufferReader) -> ReportReason? { + public static func parse_inputReportReasonCopyright(_ reader: BufferReader) -> ReportReason? { return Api.ReportReason.inputReportReasonCopyright } - static func parse_inputReportReasonChildAbuse(_ reader: BufferReader) -> ReportReason? { + public static func parse_inputReportReasonChildAbuse(_ reader: BufferReader) -> ReportReason? { return Api.ReportReason.inputReportReasonChildAbuse } - static func parse_inputReportReasonGeoIrrelevant(_ reader: BufferReader) -> ReportReason? { + public static func parse_inputReportReasonGeoIrrelevant(_ reader: BufferReader) -> ReportReason? { return Api.ReportReason.inputReportReasonGeoIrrelevant } } - enum InputEncryptedChat: TypeConstructorDescription { + public enum InputEncryptedChat: TypeConstructorDescription { case inputEncryptedChat(chatId: Int32, accessHash: Int64) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .inputEncryptedChat(let chatId, let accessHash): if boxed { @@ -10084,14 +10052,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .inputEncryptedChat(let chatId, let accessHash): return ("inputEncryptedChat", [("chatId", chatId), ("accessHash", accessHash)]) } } - static func parse_inputEncryptedChat(_ reader: BufferReader) -> InputEncryptedChat? { + public static func parse_inputEncryptedChat(_ reader: BufferReader) -> InputEncryptedChat? { var _1: Int32? _1 = reader.readInt32() var _2: Int64? @@ -10107,10 +10075,10 @@ extension Api { } } - enum PageTableRow: TypeConstructorDescription { + public enum PageTableRow: TypeConstructorDescription { case pageTableRow(cells: [Api.PageTableCell]) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .pageTableRow(let cells): if boxed { @@ -10125,14 +10093,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .pageTableRow(let cells): return ("pageTableRow", [("cells", cells)]) } } - static func parse_pageTableRow(_ reader: BufferReader) -> PageTableRow? { + public static func parse_pageTableRow(_ reader: BufferReader) -> PageTableRow? { var _1: [Api.PageTableCell]? if let _ = reader.readInt32() { _1 = Api.parseVector(reader, elementSignature: 0, elementType: Api.PageTableCell.self) @@ -10147,11 +10115,11 @@ extension Api { } } - enum DraftMessage: TypeConstructorDescription { + public enum DraftMessage: TypeConstructorDescription { case draftMessage(flags: Int32, replyToMsgId: Int32?, message: String, entities: [Api.MessageEntity]?, date: Int32) case draftMessageEmpty(flags: Int32, date: Int32?) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .draftMessage(let flags, let replyToMsgId, let message, let entities, let date): if boxed { @@ -10177,7 +10145,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .draftMessage(let flags, let replyToMsgId, let message, let entities, let date): return ("draftMessage", [("flags", flags), ("replyToMsgId", replyToMsgId), ("message", message), ("entities", entities), ("date", date)]) @@ -10186,7 +10154,7 @@ extension Api { } } - static func parse_draftMessage(_ reader: BufferReader) -> DraftMessage? { + public static func parse_draftMessage(_ reader: BufferReader) -> DraftMessage? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -10211,7 +10179,7 @@ extension Api { return nil } } - static func parse_draftMessageEmpty(_ reader: BufferReader) -> DraftMessage? { + public static func parse_draftMessageEmpty(_ reader: BufferReader) -> DraftMessage? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -10227,11 +10195,11 @@ extension Api { } } - enum EncryptedFile: TypeConstructorDescription { + public enum EncryptedFile: TypeConstructorDescription { case encryptedFileEmpty case encryptedFile(id: Int64, accessHash: Int64, size: Int32, dcId: Int32, keyFingerprint: Int32) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .encryptedFileEmpty: if boxed { @@ -10252,7 +10220,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .encryptedFileEmpty: return ("encryptedFileEmpty", []) @@ -10261,10 +10229,10 @@ extension Api { } } - static func parse_encryptedFileEmpty(_ reader: BufferReader) -> EncryptedFile? { + public static func parse_encryptedFileEmpty(_ reader: BufferReader) -> EncryptedFile? { return Api.EncryptedFile.encryptedFileEmpty } - static func parse_encryptedFile(_ reader: BufferReader) -> EncryptedFile? { + public static func parse_encryptedFile(_ reader: BufferReader) -> EncryptedFile? { var _1: Int64? _1 = reader.readInt64() var _2: Int64? @@ -10289,7 +10257,7 @@ extension Api { } } - enum SecureValueError: TypeConstructorDescription { + public enum SecureValueError: TypeConstructorDescription { case secureValueErrorData(type: Api.SecureValueType, dataHash: Buffer, field: String, text: String) case secureValueErrorFrontSide(type: Api.SecureValueType, fileHash: Buffer, text: String) case secureValueErrorReverseSide(type: Api.SecureValueType, fileHash: Buffer, text: String) @@ -10300,7 +10268,7 @@ extension Api { case secureValueErrorTranslationFile(type: Api.SecureValueType, fileHash: Buffer, text: String) case secureValueErrorTranslationFiles(type: Api.SecureValueType, fileHash: [Buffer], text: String) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .secureValueErrorData(let type, let dataHash, let field, let text): if boxed { @@ -10386,7 +10354,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .secureValueErrorData(let type, let dataHash, let field, let text): return ("secureValueErrorData", [("type", type), ("dataHash", dataHash), ("field", field), ("text", text)]) @@ -10409,7 +10377,7 @@ extension Api { } } - static func parse_secureValueErrorData(_ reader: BufferReader) -> SecureValueError? { + public static func parse_secureValueErrorData(_ reader: BufferReader) -> SecureValueError? { var _1: Api.SecureValueType? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.SecureValueType @@ -10431,7 +10399,7 @@ extension Api { return nil } } - static func parse_secureValueErrorFrontSide(_ reader: BufferReader) -> SecureValueError? { + public static func parse_secureValueErrorFrontSide(_ reader: BufferReader) -> SecureValueError? { var _1: Api.SecureValueType? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.SecureValueType @@ -10450,7 +10418,7 @@ extension Api { return nil } } - static func parse_secureValueErrorReverseSide(_ reader: BufferReader) -> SecureValueError? { + public static func parse_secureValueErrorReverseSide(_ reader: BufferReader) -> SecureValueError? { var _1: Api.SecureValueType? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.SecureValueType @@ -10469,7 +10437,7 @@ extension Api { return nil } } - static func parse_secureValueErrorSelfie(_ reader: BufferReader) -> SecureValueError? { + public static func parse_secureValueErrorSelfie(_ reader: BufferReader) -> SecureValueError? { var _1: Api.SecureValueType? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.SecureValueType @@ -10488,7 +10456,7 @@ extension Api { return nil } } - static func parse_secureValueErrorFile(_ reader: BufferReader) -> SecureValueError? { + public static func parse_secureValueErrorFile(_ reader: BufferReader) -> SecureValueError? { var _1: Api.SecureValueType? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.SecureValueType @@ -10507,7 +10475,7 @@ extension Api { return nil } } - static func parse_secureValueErrorFiles(_ reader: BufferReader) -> SecureValueError? { + public static func parse_secureValueErrorFiles(_ reader: BufferReader) -> SecureValueError? { var _1: Api.SecureValueType? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.SecureValueType @@ -10528,7 +10496,7 @@ extension Api { return nil } } - static func parse_secureValueError(_ reader: BufferReader) -> SecureValueError? { + public static func parse_secureValueError(_ reader: BufferReader) -> SecureValueError? { var _1: Api.SecureValueType? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.SecureValueType @@ -10547,7 +10515,7 @@ extension Api { return nil } } - static func parse_secureValueErrorTranslationFile(_ reader: BufferReader) -> SecureValueError? { + public static func parse_secureValueErrorTranslationFile(_ reader: BufferReader) -> SecureValueError? { var _1: Api.SecureValueType? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.SecureValueType @@ -10566,7 +10534,7 @@ extension Api { return nil } } - static func parse_secureValueErrorTranslationFiles(_ reader: BufferReader) -> SecureValueError? { + public static func parse_secureValueErrorTranslationFiles(_ reader: BufferReader) -> SecureValueError? { var _1: Api.SecureValueType? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.SecureValueType @@ -10589,13 +10557,13 @@ extension Api { } } - enum NotifyPeer: TypeConstructorDescription { + public enum NotifyPeer: TypeConstructorDescription { case notifyPeer(peer: Api.Peer) case notifyUsers case notifyChats case notifyBroadcasts - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .notifyPeer(let peer): if boxed { @@ -10624,7 +10592,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .notifyPeer(let peer): return ("notifyPeer", [("peer", peer)]) @@ -10637,7 +10605,7 @@ extension Api { } } - static func parse_notifyPeer(_ reader: BufferReader) -> NotifyPeer? { + public static func parse_notifyPeer(_ reader: BufferReader) -> NotifyPeer? { var _1: Api.Peer? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.Peer @@ -10650,18 +10618,18 @@ extension Api { return nil } } - static func parse_notifyUsers(_ reader: BufferReader) -> NotifyPeer? { + public static func parse_notifyUsers(_ reader: BufferReader) -> NotifyPeer? { return Api.NotifyPeer.notifyUsers } - static func parse_notifyChats(_ reader: BufferReader) -> NotifyPeer? { + public static func parse_notifyChats(_ reader: BufferReader) -> NotifyPeer? { return Api.NotifyPeer.notifyChats } - static func parse_notifyBroadcasts(_ reader: BufferReader) -> NotifyPeer? { + public static func parse_notifyBroadcasts(_ reader: BufferReader) -> NotifyPeer? { return Api.NotifyPeer.notifyBroadcasts } } - enum InputPrivacyKey: TypeConstructorDescription { + public enum InputPrivacyKey: TypeConstructorDescription { case inputPrivacyKeyStatusTimestamp case inputPrivacyKeyChatInvite case inputPrivacyKeyPhoneCall @@ -10670,7 +10638,7 @@ extension Api { case inputPrivacyKeyProfilePhoto case inputPrivacyKeyPhoneNumber - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .inputPrivacyKeyStatusTimestamp: if boxed { @@ -10717,7 +10685,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .inputPrivacyKeyStatusTimestamp: return ("inputPrivacyKeyStatusTimestamp", []) @@ -10736,36 +10704,36 @@ extension Api { } } - static func parse_inputPrivacyKeyStatusTimestamp(_ reader: BufferReader) -> InputPrivacyKey? { + public static func parse_inputPrivacyKeyStatusTimestamp(_ reader: BufferReader) -> InputPrivacyKey? { return Api.InputPrivacyKey.inputPrivacyKeyStatusTimestamp } - static func parse_inputPrivacyKeyChatInvite(_ reader: BufferReader) -> InputPrivacyKey? { + public static func parse_inputPrivacyKeyChatInvite(_ reader: BufferReader) -> InputPrivacyKey? { return Api.InputPrivacyKey.inputPrivacyKeyChatInvite } - static func parse_inputPrivacyKeyPhoneCall(_ reader: BufferReader) -> InputPrivacyKey? { + public static func parse_inputPrivacyKeyPhoneCall(_ reader: BufferReader) -> InputPrivacyKey? { return Api.InputPrivacyKey.inputPrivacyKeyPhoneCall } - static func parse_inputPrivacyKeyPhoneP2P(_ reader: BufferReader) -> InputPrivacyKey? { + public static func parse_inputPrivacyKeyPhoneP2P(_ reader: BufferReader) -> InputPrivacyKey? { return Api.InputPrivacyKey.inputPrivacyKeyPhoneP2P } - static func parse_inputPrivacyKeyForwards(_ reader: BufferReader) -> InputPrivacyKey? { + public static func parse_inputPrivacyKeyForwards(_ reader: BufferReader) -> InputPrivacyKey? { return Api.InputPrivacyKey.inputPrivacyKeyForwards } - static func parse_inputPrivacyKeyProfilePhoto(_ reader: BufferReader) -> InputPrivacyKey? { + public static func parse_inputPrivacyKeyProfilePhoto(_ reader: BufferReader) -> InputPrivacyKey? { return Api.InputPrivacyKey.inputPrivacyKeyProfilePhoto } - static func parse_inputPrivacyKeyPhoneNumber(_ reader: BufferReader) -> InputPrivacyKey? { + public static func parse_inputPrivacyKeyPhoneNumber(_ reader: BufferReader) -> InputPrivacyKey? { return Api.InputPrivacyKey.inputPrivacyKeyPhoneNumber } } - enum ReplyMarkup: TypeConstructorDescription { + public enum ReplyMarkup: TypeConstructorDescription { case replyKeyboardHide(flags: Int32) case replyKeyboardForceReply(flags: Int32) case replyKeyboardMarkup(flags: Int32, rows: [Api.KeyboardButtonRow]) case replyInlineMarkup(rows: [Api.KeyboardButtonRow]) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .replyKeyboardHide(let flags): if boxed { @@ -10803,7 +10771,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .replyKeyboardHide(let flags): return ("replyKeyboardHide", [("flags", flags)]) @@ -10816,7 +10784,7 @@ extension Api { } } - static func parse_replyKeyboardHide(_ reader: BufferReader) -> ReplyMarkup? { + public static func parse_replyKeyboardHide(_ reader: BufferReader) -> ReplyMarkup? { var _1: Int32? _1 = reader.readInt32() let _c1 = _1 != nil @@ -10827,7 +10795,7 @@ extension Api { return nil } } - static func parse_replyKeyboardForceReply(_ reader: BufferReader) -> ReplyMarkup? { + public static func parse_replyKeyboardForceReply(_ reader: BufferReader) -> ReplyMarkup? { var _1: Int32? _1 = reader.readInt32() let _c1 = _1 != nil @@ -10838,7 +10806,7 @@ extension Api { return nil } } - static func parse_replyKeyboardMarkup(_ reader: BufferReader) -> ReplyMarkup? { + public static func parse_replyKeyboardMarkup(_ reader: BufferReader) -> ReplyMarkup? { var _1: Int32? _1 = reader.readInt32() var _2: [Api.KeyboardButtonRow]? @@ -10854,7 +10822,7 @@ extension Api { return nil } } - static func parse_replyInlineMarkup(_ reader: BufferReader) -> ReplyMarkup? { + public static func parse_replyInlineMarkup(_ reader: BufferReader) -> ReplyMarkup? { var _1: [Api.KeyboardButtonRow]? if let _ = reader.readInt32() { _1 = Api.parseVector(reader, elementSignature: 0, elementType: Api.KeyboardButtonRow.self) @@ -10869,10 +10837,10 @@ extension Api { } } - enum EmojiKeywordsDifference: TypeConstructorDescription { + public enum EmojiKeywordsDifference: TypeConstructorDescription { case emojiKeywordsDifference(langCode: String, fromVersion: Int32, version: Int32, keywords: [Api.EmojiKeyword]) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .emojiKeywordsDifference(let langCode, let fromVersion, let version, let keywords): if boxed { @@ -10890,14 +10858,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .emojiKeywordsDifference(let langCode, let fromVersion, let version, let keywords): return ("emojiKeywordsDifference", [("langCode", langCode), ("fromVersion", fromVersion), ("version", version), ("keywords", keywords)]) } } - static func parse_emojiKeywordsDifference(_ reader: BufferReader) -> EmojiKeywordsDifference? { + public static func parse_emojiKeywordsDifference(_ reader: BufferReader) -> EmojiKeywordsDifference? { var _1: String? _1 = parseString(reader) var _2: Int32? @@ -10921,10 +10889,10 @@ extension Api { } } - enum HighScore: TypeConstructorDescription { + public enum HighScore: TypeConstructorDescription { case highScore(pos: Int32, userId: Int32, score: Int32) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .highScore(let pos, let userId, let score): if boxed { @@ -10937,14 +10905,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .highScore(let pos, let userId, let score): return ("highScore", [("pos", pos), ("userId", userId), ("score", score)]) } } - static func parse_highScore(_ reader: BufferReader) -> HighScore? { + public static func parse_highScore(_ reader: BufferReader) -> HighScore? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -10963,10 +10931,10 @@ extension Api { } } - enum TopPeer: TypeConstructorDescription { + public enum TopPeer: TypeConstructorDescription { case topPeer(peer: Api.Peer, rating: Double) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .topPeer(let peer, let rating): if boxed { @@ -10978,14 +10946,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .topPeer(let peer, let rating): return ("topPeer", [("peer", peer), ("rating", rating)]) } } - static func parse_topPeer(_ reader: BufferReader) -> TopPeer? { + public static func parse_topPeer(_ reader: BufferReader) -> TopPeer? { var _1: Api.Peer? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.Peer @@ -11003,10 +10971,10 @@ extension Api { } } - enum SecureValue: TypeConstructorDescription { + public enum SecureValue: TypeConstructorDescription { case secureValue(flags: Int32, type: Api.SecureValueType, data: Api.SecureData?, frontSide: Api.SecureFile?, reverseSide: Api.SecureFile?, selfie: Api.SecureFile?, translation: [Api.SecureFile]?, files: [Api.SecureFile]?, plainData: Api.SecurePlainData?, hash: Buffer) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .secureValue(let flags, let type, let data, let frontSide, let reverseSide, let selfie, let translation, let files, let plainData, let hash): if boxed { @@ -11034,14 +11002,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .secureValue(let flags, let type, let data, let frontSide, let reverseSide, let selfie, let translation, let files, let plainData, let hash): return ("secureValue", [("flags", flags), ("type", type), ("data", data), ("frontSide", frontSide), ("reverseSide", reverseSide), ("selfie", selfie), ("translation", translation), ("files", files), ("plainData", plainData), ("hash", hash)]) } } - static func parse_secureValue(_ reader: BufferReader) -> SecureValue? { + public static func parse_secureValue(_ reader: BufferReader) -> SecureValue? { var _1: Int32? _1 = reader.readInt32() var _2: Api.SecureValueType? @@ -11097,10 +11065,10 @@ extension Api { } } - enum SecureValueHash: TypeConstructorDescription { + public enum SecureValueHash: TypeConstructorDescription { case secureValueHash(type: Api.SecureValueType, hash: Buffer) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .secureValueHash(let type, let hash): if boxed { @@ -11112,14 +11080,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .secureValueHash(let type, let hash): return ("secureValueHash", [("type", type), ("hash", hash)]) } } - static func parse_secureValueHash(_ reader: BufferReader) -> SecureValueHash? { + public static func parse_secureValueHash(_ reader: BufferReader) -> SecureValueHash? { var _1: Api.SecureValueType? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.SecureValueType @@ -11137,10 +11105,10 @@ extension Api { } } - enum ContactBlocked: TypeConstructorDescription { + public enum ContactBlocked: TypeConstructorDescription { case contactBlocked(userId: Int32, date: Int32) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .contactBlocked(let userId, let date): if boxed { @@ -11152,14 +11120,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .contactBlocked(let userId, let date): return ("contactBlocked", [("userId", userId), ("date", date)]) } } - static func parse_contactBlocked(_ reader: BufferReader) -> ContactBlocked? { + public static func parse_contactBlocked(_ reader: BufferReader) -> ContactBlocked? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -11175,11 +11143,11 @@ extension Api { } } - enum PageListItem: TypeConstructorDescription { + public enum PageListItem: TypeConstructorDescription { case pageListItemText(text: Api.RichText) case pageListItemBlocks(blocks: [Api.PageBlock]) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .pageListItemText(let text): if boxed { @@ -11200,7 +11168,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .pageListItemText(let text): return ("pageListItemText", [("text", text)]) @@ -11209,7 +11177,7 @@ extension Api { } } - static func parse_pageListItemText(_ reader: BufferReader) -> PageListItem? { + public static func parse_pageListItemText(_ reader: BufferReader) -> PageListItem? { var _1: Api.RichText? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.RichText @@ -11222,7 +11190,7 @@ extension Api { return nil } } - static func parse_pageListItemBlocks(_ reader: BufferReader) -> PageListItem? { + public static func parse_pageListItemBlocks(_ reader: BufferReader) -> PageListItem? { var _1: [Api.PageBlock]? if let _ = reader.readInt32() { _1 = Api.parseVector(reader, elementSignature: 0, elementType: Api.PageBlock.self) @@ -11237,12 +11205,12 @@ extension Api { } } - enum InputUser: TypeConstructorDescription { + public enum InputUser: TypeConstructorDescription { case inputUserEmpty case inputUserSelf case inputUser(userId: Int32, accessHash: Int64) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .inputUserEmpty: if boxed { @@ -11266,7 +11234,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .inputUserEmpty: return ("inputUserEmpty", []) @@ -11277,13 +11245,13 @@ extension Api { } } - static func parse_inputUserEmpty(_ reader: BufferReader) -> InputUser? { + public static func parse_inputUserEmpty(_ reader: BufferReader) -> InputUser? { return Api.InputUser.inputUserEmpty } - static func parse_inputUserSelf(_ reader: BufferReader) -> InputUser? { + public static func parse_inputUserSelf(_ reader: BufferReader) -> InputUser? { return Api.InputUser.inputUserSelf } - static func parse_inputUser(_ reader: BufferReader) -> InputUser? { + public static func parse_inputUser(_ reader: BufferReader) -> InputUser? { var _1: Int32? _1 = reader.readInt32() var _2: Int64? @@ -11299,10 +11267,10 @@ extension Api { } } - enum Page: TypeConstructorDescription { + public enum Page: TypeConstructorDescription { case page(flags: Int32, url: String, blocks: [Api.PageBlock], photos: [Api.Photo], documents: [Api.Document]) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .page(let flags, let url, let blocks, let photos, let documents): if boxed { @@ -11329,14 +11297,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .page(let flags, let url, let blocks, let photos, let documents): return ("page", [("flags", flags), ("url", url), ("blocks", blocks), ("photos", photos), ("documents", documents)]) } } - static func parse_page(_ reader: BufferReader) -> Page? { + public static func parse_page(_ reader: BufferReader) -> Page? { var _1: Int32? _1 = reader.readInt32() var _2: String? @@ -11367,10 +11335,10 @@ extension Api { } } - enum SecureCredentialsEncrypted: TypeConstructorDescription { + public enum SecureCredentialsEncrypted: TypeConstructorDescription { case secureCredentialsEncrypted(data: Buffer, hash: Buffer, secret: Buffer) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .secureCredentialsEncrypted(let data, let hash, let secret): if boxed { @@ -11383,14 +11351,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .secureCredentialsEncrypted(let data, let hash, let secret): return ("secureCredentialsEncrypted", [("data", data), ("hash", hash), ("secret", secret)]) } } - static func parse_secureCredentialsEncrypted(_ reader: BufferReader) -> SecureCredentialsEncrypted? { + public static func parse_secureCredentialsEncrypted(_ reader: BufferReader) -> SecureCredentialsEncrypted? { var _1: Buffer? _1 = parseBytes(reader) var _2: Buffer? @@ -11409,11 +11377,11 @@ extension Api { } } - enum ChannelLocation: TypeConstructorDescription { + public enum ChannelLocation: TypeConstructorDescription { case channelLocationEmpty case channelLocation(geoPoint: Api.GeoPoint, address: String) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .channelLocationEmpty: if boxed { @@ -11431,7 +11399,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .channelLocationEmpty: return ("channelLocationEmpty", []) @@ -11440,10 +11408,10 @@ extension Api { } } - static func parse_channelLocationEmpty(_ reader: BufferReader) -> ChannelLocation? { + public static func parse_channelLocationEmpty(_ reader: BufferReader) -> ChannelLocation? { return Api.ChannelLocation.channelLocationEmpty } - static func parse_channelLocation(_ reader: BufferReader) -> ChannelLocation? { + public static func parse_channelLocation(_ reader: BufferReader) -> ChannelLocation? { var _1: Api.GeoPoint? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.GeoPoint @@ -11461,10 +11429,10 @@ extension Api { } } - enum MessageRange: TypeConstructorDescription { + public enum MessageRange: TypeConstructorDescription { case messageRange(minId: Int32, maxId: Int32) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .messageRange(let minId, let maxId): if boxed { @@ -11476,14 +11444,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .messageRange(let minId, let maxId): return ("messageRange", [("minId", minId), ("maxId", maxId)]) } } - static func parse_messageRange(_ reader: BufferReader) -> MessageRange? { + public static func parse_messageRange(_ reader: BufferReader) -> MessageRange? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -11499,10 +11467,10 @@ extension Api { } } - enum Config: TypeConstructorDescription { + public enum Config: TypeConstructorDescription { case config(flags: Int32, date: Int32, expires: Int32, testMode: Api.Bool, thisDc: Int32, dcOptions: [Api.DcOption], dcTxtDomainName: String, chatSizeMax: Int32, megagroupSizeMax: Int32, forwardedCountMax: Int32, onlineUpdatePeriodMs: Int32, offlineBlurTimeoutMs: Int32, offlineIdleTimeoutMs: Int32, onlineCloudTimeoutMs: Int32, notifyCloudDelayMs: Int32, notifyDefaultDelayMs: Int32, pushChatPeriodMs: Int32, pushChatLimit: Int32, savedGifsLimit: Int32, editTimeLimit: Int32, revokeTimeLimit: Int32, revokePmTimeLimit: Int32, ratingEDecay: Int32, stickersRecentLimit: Int32, stickersFavedLimit: Int32, channelsReadMediaPeriod: Int32, tmpSessions: Int32?, pinnedDialogsCountMax: Int32, pinnedInfolderCountMax: Int32, callReceiveTimeoutMs: Int32, callRingTimeoutMs: Int32, callConnectTimeoutMs: Int32, callPacketTimeoutMs: Int32, meUrlPrefix: String, autoupdateUrlPrefix: String?, gifSearchUsername: String?, venueSearchUsername: String?, imgSearchUsername: String?, staticMapsProvider: String?, captionLengthMax: Int32, messageLengthMax: Int32, webfileDcId: Int32, suggestedLangCode: String?, langPackVersion: Int32?, baseLangPackVersion: Int32?) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .config(let flags, let date, let expires, let testMode, let thisDc, let dcOptions, let dcTxtDomainName, let chatSizeMax, let megagroupSizeMax, let forwardedCountMax, let onlineUpdatePeriodMs, let offlineBlurTimeoutMs, let offlineIdleTimeoutMs, let onlineCloudTimeoutMs, let notifyCloudDelayMs, let notifyDefaultDelayMs, let pushChatPeriodMs, let pushChatLimit, let savedGifsLimit, let editTimeLimit, let revokeTimeLimit, let revokePmTimeLimit, let ratingEDecay, let stickersRecentLimit, let stickersFavedLimit, let channelsReadMediaPeriod, let tmpSessions, let pinnedDialogsCountMax, let pinnedInfolderCountMax, let callReceiveTimeoutMs, let callRingTimeoutMs, let callConnectTimeoutMs, let callPacketTimeoutMs, let meUrlPrefix, let autoupdateUrlPrefix, let gifSearchUsername, let venueSearchUsername, let imgSearchUsername, let staticMapsProvider, let captionLengthMax, let messageLengthMax, let webfileDcId, let suggestedLangCode, let langPackVersion, let baseLangPackVersion): if boxed { @@ -11561,14 +11529,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .config(let flags, let date, let expires, let testMode, let thisDc, let dcOptions, let dcTxtDomainName, let chatSizeMax, let megagroupSizeMax, let forwardedCountMax, let onlineUpdatePeriodMs, let offlineBlurTimeoutMs, let offlineIdleTimeoutMs, let onlineCloudTimeoutMs, let notifyCloudDelayMs, let notifyDefaultDelayMs, let pushChatPeriodMs, let pushChatLimit, let savedGifsLimit, let editTimeLimit, let revokeTimeLimit, let revokePmTimeLimit, let ratingEDecay, let stickersRecentLimit, let stickersFavedLimit, let channelsReadMediaPeriod, let tmpSessions, let pinnedDialogsCountMax, let pinnedInfolderCountMax, let callReceiveTimeoutMs, let callRingTimeoutMs, let callConnectTimeoutMs, let callPacketTimeoutMs, let meUrlPrefix, let autoupdateUrlPrefix, let gifSearchUsername, let venueSearchUsername, let imgSearchUsername, let staticMapsProvider, let captionLengthMax, let messageLengthMax, let webfileDcId, let suggestedLangCode, let langPackVersion, let baseLangPackVersion): return ("config", [("flags", flags), ("date", date), ("expires", expires), ("testMode", testMode), ("thisDc", thisDc), ("dcOptions", dcOptions), ("dcTxtDomainName", dcTxtDomainName), ("chatSizeMax", chatSizeMax), ("megagroupSizeMax", megagroupSizeMax), ("forwardedCountMax", forwardedCountMax), ("onlineUpdatePeriodMs", onlineUpdatePeriodMs), ("offlineBlurTimeoutMs", offlineBlurTimeoutMs), ("offlineIdleTimeoutMs", offlineIdleTimeoutMs), ("onlineCloudTimeoutMs", onlineCloudTimeoutMs), ("notifyCloudDelayMs", notifyCloudDelayMs), ("notifyDefaultDelayMs", notifyDefaultDelayMs), ("pushChatPeriodMs", pushChatPeriodMs), ("pushChatLimit", pushChatLimit), ("savedGifsLimit", savedGifsLimit), ("editTimeLimit", editTimeLimit), ("revokeTimeLimit", revokeTimeLimit), ("revokePmTimeLimit", revokePmTimeLimit), ("ratingEDecay", ratingEDecay), ("stickersRecentLimit", stickersRecentLimit), ("stickersFavedLimit", stickersFavedLimit), ("channelsReadMediaPeriod", channelsReadMediaPeriod), ("tmpSessions", tmpSessions), ("pinnedDialogsCountMax", pinnedDialogsCountMax), ("pinnedInfolderCountMax", pinnedInfolderCountMax), ("callReceiveTimeoutMs", callReceiveTimeoutMs), ("callRingTimeoutMs", callRingTimeoutMs), ("callConnectTimeoutMs", callConnectTimeoutMs), ("callPacketTimeoutMs", callPacketTimeoutMs), ("meUrlPrefix", meUrlPrefix), ("autoupdateUrlPrefix", autoupdateUrlPrefix), ("gifSearchUsername", gifSearchUsername), ("venueSearchUsername", venueSearchUsername), ("imgSearchUsername", imgSearchUsername), ("staticMapsProvider", staticMapsProvider), ("captionLengthMax", captionLengthMax), ("messageLengthMax", messageLengthMax), ("webfileDcId", webfileDcId), ("suggestedLangCode", suggestedLangCode), ("langPackVersion", langPackVersion), ("baseLangPackVersion", baseLangPackVersion)]) } } - static func parse_config(_ reader: BufferReader) -> Config? { + public static func parse_config(_ reader: BufferReader) -> Config? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -11717,10 +11685,10 @@ extension Api { } } - enum TopPeerCategoryPeers: TypeConstructorDescription { + public enum TopPeerCategoryPeers: TypeConstructorDescription { case topPeerCategoryPeers(category: Api.TopPeerCategory, count: Int32, peers: [Api.TopPeer]) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .topPeerCategoryPeers(let category, let count, let peers): if boxed { @@ -11737,14 +11705,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .topPeerCategoryPeers(let category, let count, let peers): return ("topPeerCategoryPeers", [("category", category), ("count", count), ("peers", peers)]) } } - static func parse_topPeerCategoryPeers(_ reader: BufferReader) -> TopPeerCategoryPeers? { + public static func parse_topPeerCategoryPeers(_ reader: BufferReader) -> TopPeerCategoryPeers? { var _1: Api.TopPeerCategory? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.TopPeerCategory @@ -11767,10 +11735,10 @@ extension Api { } } - enum Game: TypeConstructorDescription { + public enum Game: TypeConstructorDescription { case game(flags: Int32, id: Int64, accessHash: Int64, shortName: String, title: String, description: String, photo: Api.Photo, document: Api.Document?) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .game(let flags, let id, let accessHash, let shortName, let title, let description, let photo, let document): if boxed { @@ -11788,14 +11756,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .game(let flags, let id, let accessHash, let shortName, let title, let description, let photo, let document): return ("game", [("flags", flags), ("id", id), ("accessHash", accessHash), ("shortName", shortName), ("title", title), ("description", description), ("photo", photo), ("document", document)]) } } - static func parse_game(_ reader: BufferReader) -> Game? { + public static func parse_game(_ reader: BufferReader) -> Game? { var _1: Int32? _1 = reader.readInt32() var _2: Int64? @@ -11833,10 +11801,10 @@ extension Api { } } - enum ChatAdminRights: TypeConstructorDescription { + public enum ChatAdminRights: TypeConstructorDescription { case chatAdminRights(flags: Int32) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .chatAdminRights(let flags): if boxed { @@ -11847,14 +11815,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .chatAdminRights(let flags): return ("chatAdminRights", [("flags", flags)]) } } - static func parse_chatAdminRights(_ reader: BufferReader) -> ChatAdminRights? { + public static func parse_chatAdminRights(_ reader: BufferReader) -> ChatAdminRights? { var _1: Int32? _1 = reader.readInt32() let _c1 = _1 != nil @@ -11867,12 +11835,12 @@ extension Api { } } - enum SecurePasswordKdfAlgo: TypeConstructorDescription { + public enum SecurePasswordKdfAlgo: TypeConstructorDescription { case securePasswordKdfAlgoUnknown case securePasswordKdfAlgoPBKDF2HMACSHA512iter100000(salt: Buffer) case securePasswordKdfAlgoSHA512(salt: Buffer) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .securePasswordKdfAlgoUnknown: if boxed { @@ -11895,7 +11863,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .securePasswordKdfAlgoUnknown: return ("securePasswordKdfAlgoUnknown", []) @@ -11906,10 +11874,10 @@ extension Api { } } - static func parse_securePasswordKdfAlgoUnknown(_ reader: BufferReader) -> SecurePasswordKdfAlgo? { + public static func parse_securePasswordKdfAlgoUnknown(_ reader: BufferReader) -> SecurePasswordKdfAlgo? { return Api.SecurePasswordKdfAlgo.securePasswordKdfAlgoUnknown } - static func parse_securePasswordKdfAlgoPBKDF2HMACSHA512iter100000(_ reader: BufferReader) -> SecurePasswordKdfAlgo? { + public static func parse_securePasswordKdfAlgoPBKDF2HMACSHA512iter100000(_ reader: BufferReader) -> SecurePasswordKdfAlgo? { var _1: Buffer? _1 = parseBytes(reader) let _c1 = _1 != nil @@ -11920,7 +11888,7 @@ extension Api { return nil } } - static func parse_securePasswordKdfAlgoSHA512(_ reader: BufferReader) -> SecurePasswordKdfAlgo? { + public static func parse_securePasswordKdfAlgoSHA512(_ reader: BufferReader) -> SecurePasswordKdfAlgo? { var _1: Buffer? _1 = parseBytes(reader) let _c1 = _1 != nil @@ -11933,10 +11901,10 @@ extension Api { } } - enum BotCommand: TypeConstructorDescription { + public enum BotCommand: TypeConstructorDescription { case botCommand(command: String, description: String) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .botCommand(let command, let description): if boxed { @@ -11948,14 +11916,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .botCommand(let command, let description): return ("botCommand", [("command", command), ("description", description)]) } } - static func parse_botCommand(_ reader: BufferReader) -> BotCommand? { + public static func parse_botCommand(_ reader: BufferReader) -> BotCommand? { var _1: String? _1 = parseString(reader) var _2: String? @@ -11971,10 +11939,10 @@ extension Api { } } - enum CdnPublicKey: TypeConstructorDescription { + public enum CdnPublicKey: TypeConstructorDescription { case cdnPublicKey(dcId: Int32, publicKey: String) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .cdnPublicKey(let dcId, let publicKey): if boxed { @@ -11986,14 +11954,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .cdnPublicKey(let dcId, let publicKey): return ("cdnPublicKey", [("dcId", dcId), ("publicKey", publicKey)]) } } - static func parse_cdnPublicKey(_ reader: BufferReader) -> CdnPublicKey? { + public static func parse_cdnPublicKey(_ reader: BufferReader) -> CdnPublicKey? { var _1: Int32? _1 = reader.readInt32() var _2: String? @@ -12009,11 +11977,11 @@ extension Api { } } - enum InputGame: TypeConstructorDescription { + public enum InputGame: TypeConstructorDescription { case inputGameID(id: Int64, accessHash: Int64) case inputGameShortName(botId: Api.InputUser, shortName: String) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .inputGameID(let id, let accessHash): if boxed { @@ -12032,7 +12000,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .inputGameID(let id, let accessHash): return ("inputGameID", [("id", id), ("accessHash", accessHash)]) @@ -12041,7 +12009,7 @@ extension Api { } } - static func parse_inputGameID(_ reader: BufferReader) -> InputGame? { + public static func parse_inputGameID(_ reader: BufferReader) -> InputGame? { var _1: Int64? _1 = reader.readInt64() var _2: Int64? @@ -12055,7 +12023,7 @@ extension Api { return nil } } - static func parse_inputGameShortName(_ reader: BufferReader) -> InputGame? { + public static func parse_inputGameShortName(_ reader: BufferReader) -> InputGame? { var _1: Api.InputUser? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.InputUser @@ -12073,12 +12041,12 @@ extension Api { } } - enum InputMessage: TypeConstructorDescription { + public enum InputMessage: TypeConstructorDescription { case inputMessageID(id: Int32) case inputMessageReplyTo(id: Int32) case inputMessagePinned - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .inputMessageID(let id): if boxed { @@ -12101,7 +12069,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .inputMessageID(let id): return ("inputMessageID", [("id", id)]) @@ -12112,7 +12080,7 @@ extension Api { } } - static func parse_inputMessageID(_ reader: BufferReader) -> InputMessage? { + public static func parse_inputMessageID(_ reader: BufferReader) -> InputMessage? { var _1: Int32? _1 = reader.readInt32() let _c1 = _1 != nil @@ -12123,7 +12091,7 @@ extension Api { return nil } } - static func parse_inputMessageReplyTo(_ reader: BufferReader) -> InputMessage? { + public static func parse_inputMessageReplyTo(_ reader: BufferReader) -> InputMessage? { var _1: Int32? _1 = reader.readInt32() let _c1 = _1 != nil @@ -12134,15 +12102,15 @@ extension Api { return nil } } - static func parse_inputMessagePinned(_ reader: BufferReader) -> InputMessage? { + public static func parse_inputMessagePinned(_ reader: BufferReader) -> InputMessage? { return Api.InputMessage.inputMessagePinned } } - enum PhoneCallProtocol: TypeConstructorDescription { + public enum PhoneCallProtocol: TypeConstructorDescription { case phoneCallProtocol(flags: Int32, minLayer: Int32, maxLayer: Int32) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .phoneCallProtocol(let flags, let minLayer, let maxLayer): if boxed { @@ -12155,14 +12123,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .phoneCallProtocol(let flags, let minLayer, let maxLayer): return ("phoneCallProtocol", [("flags", flags), ("minLayer", minLayer), ("maxLayer", maxLayer)]) } } - static func parse_phoneCallProtocol(_ reader: BufferReader) -> PhoneCallProtocol? { + public static func parse_phoneCallProtocol(_ reader: BufferReader) -> PhoneCallProtocol? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -12181,10 +12149,10 @@ extension Api { } } - enum MessageFwdAuthor: TypeConstructorDescription { + public enum MessageFwdAuthor: TypeConstructorDescription { case messageFwdAuthor(channelId: Int32) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .messageFwdAuthor(let channelId): if boxed { @@ -12195,14 +12163,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .messageFwdAuthor(let channelId): return ("messageFwdAuthor", [("channelId", channelId)]) } } - static func parse_messageFwdAuthor(_ reader: BufferReader) -> MessageFwdAuthor? { + public static func parse_messageFwdAuthor(_ reader: BufferReader) -> MessageFwdAuthor? { var _1: Int32? _1 = reader.readInt32() let _c1 = _1 != nil @@ -12215,10 +12183,10 @@ extension Api { } } - enum WallPaper: TypeConstructorDescription { + public enum WallPaper: TypeConstructorDescription { case wallPaper(id: Int64, flags: Int32, accessHash: Int64, slug: String, document: Api.Document, settings: Api.WallPaperSettings?) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .wallPaper(let id, let flags, let accessHash, let slug, let document, let settings): if boxed { @@ -12234,14 +12202,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .wallPaper(let id, let flags, let accessHash, let slug, let document, let settings): return ("wallPaper", [("id", id), ("flags", flags), ("accessHash", accessHash), ("slug", slug), ("document", document), ("settings", settings)]) } } - static func parse_wallPaper(_ reader: BufferReader) -> WallPaper? { + public static func parse_wallPaper(_ reader: BufferReader) -> WallPaper? { var _1: Int64? _1 = reader.readInt64() var _2: Int32? @@ -12273,10 +12241,10 @@ extension Api { } } - enum Invoice: TypeConstructorDescription { + public enum Invoice: TypeConstructorDescription { case invoice(flags: Int32, currency: String, prices: [Api.LabeledPrice]) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .invoice(let flags, let currency, let prices): if boxed { @@ -12293,14 +12261,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .invoice(let flags, let currency, let prices): return ("invoice", [("flags", flags), ("currency", currency), ("prices", prices)]) } } - static func parse_invoice(_ reader: BufferReader) -> Invoice? { + public static func parse_invoice(_ reader: BufferReader) -> Invoice? { var _1: Int32? _1 = reader.readInt32() var _2: String? @@ -12321,10 +12289,10 @@ extension Api { } } - enum PeerSettings: TypeConstructorDescription { + public enum PeerSettings: TypeConstructorDescription { case peerSettings(flags: Int32) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .peerSettings(let flags): if boxed { @@ -12335,14 +12303,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .peerSettings(let flags): return ("peerSettings", [("flags", flags)]) } } - static func parse_peerSettings(_ reader: BufferReader) -> PeerSettings? { + public static func parse_peerSettings(_ reader: BufferReader) -> PeerSettings? { var _1: Int32? _1 = reader.readInt32() let _c1 = _1 != nil @@ -12355,12 +12323,12 @@ extension Api { } } - enum InputChatPhoto: TypeConstructorDescription { + public enum InputChatPhoto: TypeConstructorDescription { case inputChatPhotoEmpty case inputChatUploadedPhoto(file: Api.InputFile) case inputChatPhoto(id: Api.InputPhoto) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .inputChatPhotoEmpty: if boxed { @@ -12383,7 +12351,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .inputChatPhotoEmpty: return ("inputChatPhotoEmpty", []) @@ -12394,10 +12362,10 @@ extension Api { } } - static func parse_inputChatPhotoEmpty(_ reader: BufferReader) -> InputChatPhoto? { + public static func parse_inputChatPhotoEmpty(_ reader: BufferReader) -> InputChatPhoto? { return Api.InputChatPhoto.inputChatPhotoEmpty } - static func parse_inputChatUploadedPhoto(_ reader: BufferReader) -> InputChatPhoto? { + public static func parse_inputChatUploadedPhoto(_ reader: BufferReader) -> InputChatPhoto? { var _1: Api.InputFile? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.InputFile @@ -12410,7 +12378,7 @@ extension Api { return nil } } - static func parse_inputChatPhoto(_ reader: BufferReader) -> InputChatPhoto? { + public static func parse_inputChatPhoto(_ reader: BufferReader) -> InputChatPhoto? { var _1: Api.InputPhoto? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.InputPhoto @@ -12425,10 +12393,10 @@ extension Api { } } - enum PaymentCharge: TypeConstructorDescription { + public enum PaymentCharge: TypeConstructorDescription { case paymentCharge(id: String, providerChargeId: String) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .paymentCharge(let id, let providerChargeId): if boxed { @@ -12440,14 +12408,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .paymentCharge(let id, let providerChargeId): return ("paymentCharge", [("id", id), ("providerChargeId", providerChargeId)]) } } - static func parse_paymentCharge(_ reader: BufferReader) -> PaymentCharge? { + public static func parse_paymentCharge(_ reader: BufferReader) -> PaymentCharge? { var _1: String? _1 = parseString(reader) var _2: String? @@ -12463,7 +12431,7 @@ extension Api { } } - enum Updates: TypeConstructorDescription { + public enum Updates: TypeConstructorDescription { case updatesTooLong case updateShortMessage(flags: Int32, id: Int32, userId: Int32, message: String, pts: Int32, ptsCount: Int32, date: Int32, fwdFrom: Api.MessageFwdHeader?, viaBotId: Int32?, replyToMsgId: Int32?, entities: [Api.MessageEntity]?) case updateShortChatMessage(flags: Int32, id: Int32, fromId: Int32, chatId: Int32, message: String, pts: Int32, ptsCount: Int32, date: Int32, fwdFrom: Api.MessageFwdHeader?, viaBotId: Int32?, replyToMsgId: Int32?, entities: [Api.MessageEntity]?) @@ -12472,7 +12440,7 @@ extension Api { case updates(updates: [Api.Update], users: [Api.User], chats: [Api.Chat], date: Int32, seq: Int32) case updateShortSentMessage(flags: Int32, id: Int32, pts: Int32, ptsCount: Int32, date: Int32, media: Api.MessageMedia?, entities: [Api.MessageEntity]?) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .updatesTooLong: if boxed { @@ -12592,7 +12560,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .updatesTooLong: return ("updatesTooLong", []) @@ -12611,10 +12579,10 @@ extension Api { } } - static func parse_updatesTooLong(_ reader: BufferReader) -> Updates? { + public static func parse_updatesTooLong(_ reader: BufferReader) -> Updates? { return Api.Updates.updatesTooLong } - static func parse_updateShortMessage(_ reader: BufferReader) -> Updates? { + public static func parse_updateShortMessage(_ reader: BufferReader) -> Updates? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -12659,7 +12627,7 @@ extension Api { return nil } } - static func parse_updateShortChatMessage(_ reader: BufferReader) -> Updates? { + public static func parse_updateShortChatMessage(_ reader: BufferReader) -> Updates? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -12707,7 +12675,7 @@ extension Api { return nil } } - static func parse_updateShort(_ reader: BufferReader) -> Updates? { + public static func parse_updateShort(_ reader: BufferReader) -> Updates? { var _1: Api.Update? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.Update @@ -12723,7 +12691,7 @@ extension Api { return nil } } - static func parse_updatesCombined(_ reader: BufferReader) -> Updates? { + public static func parse_updatesCombined(_ reader: BufferReader) -> Updates? { var _1: [Api.Update]? if let _ = reader.readInt32() { _1 = Api.parseVector(reader, elementSignature: 0, elementType: Api.Update.self) @@ -12755,7 +12723,7 @@ extension Api { return nil } } - static func parse_updates(_ reader: BufferReader) -> Updates? { + public static func parse_updates(_ reader: BufferReader) -> Updates? { var _1: [Api.Update]? if let _ = reader.readInt32() { _1 = Api.parseVector(reader, elementSignature: 0, elementType: Api.Update.self) @@ -12784,7 +12752,7 @@ extension Api { return nil } } - static func parse_updateShortSentMessage(_ reader: BufferReader) -> Updates? { + public static func parse_updateShortSentMessage(_ reader: BufferReader) -> Updates? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -12819,7 +12787,7 @@ extension Api { } } - enum MessageMedia: TypeConstructorDescription { + public enum MessageMedia: TypeConstructorDescription { case messageMediaEmpty case messageMediaGeo(geo: Api.GeoPoint) case messageMediaUnsupported @@ -12833,7 +12801,7 @@ extension Api { case messageMediaContact(phoneNumber: String, firstName: String, lastName: String, vcard: String, userId: Int32) case messageMediaPoll(poll: Api.Poll, results: Api.PollResults) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .messageMediaEmpty: if boxed { @@ -12932,7 +12900,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .messageMediaEmpty: return ("messageMediaEmpty", []) @@ -12961,10 +12929,10 @@ extension Api { } } - static func parse_messageMediaEmpty(_ reader: BufferReader) -> MessageMedia? { + public static func parse_messageMediaEmpty(_ reader: BufferReader) -> MessageMedia? { return Api.MessageMedia.messageMediaEmpty } - static func parse_messageMediaGeo(_ reader: BufferReader) -> MessageMedia? { + public static func parse_messageMediaGeo(_ reader: BufferReader) -> MessageMedia? { var _1: Api.GeoPoint? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.GeoPoint @@ -12977,10 +12945,10 @@ extension Api { return nil } } - static func parse_messageMediaUnsupported(_ reader: BufferReader) -> MessageMedia? { + public static func parse_messageMediaUnsupported(_ reader: BufferReader) -> MessageMedia? { return Api.MessageMedia.messageMediaUnsupported } - static func parse_messageMediaWebPage(_ reader: BufferReader) -> MessageMedia? { + public static func parse_messageMediaWebPage(_ reader: BufferReader) -> MessageMedia? { var _1: Api.WebPage? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.WebPage @@ -12993,7 +12961,7 @@ extension Api { return nil } } - static func parse_messageMediaGame(_ reader: BufferReader) -> MessageMedia? { + public static func parse_messageMediaGame(_ reader: BufferReader) -> MessageMedia? { var _1: Api.Game? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.Game @@ -13006,7 +12974,7 @@ extension Api { return nil } } - static func parse_messageMediaInvoice(_ reader: BufferReader) -> MessageMedia? { + public static func parse_messageMediaInvoice(_ reader: BufferReader) -> MessageMedia? { var _1: Int32? _1 = reader.readInt32() var _2: String? @@ -13040,7 +13008,7 @@ extension Api { return nil } } - static func parse_messageMediaGeoLive(_ reader: BufferReader) -> MessageMedia? { + public static func parse_messageMediaGeoLive(_ reader: BufferReader) -> MessageMedia? { var _1: Api.GeoPoint? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.GeoPoint @@ -13056,7 +13024,7 @@ extension Api { return nil } } - static func parse_messageMediaVenue(_ reader: BufferReader) -> MessageMedia? { + public static func parse_messageMediaVenue(_ reader: BufferReader) -> MessageMedia? { var _1: Api.GeoPoint? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.GeoPoint @@ -13084,7 +13052,7 @@ extension Api { return nil } } - static func parse_messageMediaPhoto(_ reader: BufferReader) -> MessageMedia? { + public static func parse_messageMediaPhoto(_ reader: BufferReader) -> MessageMedia? { var _1: Int32? _1 = reader.readInt32() var _2: Api.Photo? @@ -13103,7 +13071,7 @@ extension Api { return nil } } - static func parse_messageMediaDocument(_ reader: BufferReader) -> MessageMedia? { + public static func parse_messageMediaDocument(_ reader: BufferReader) -> MessageMedia? { var _1: Int32? _1 = reader.readInt32() var _2: Api.Document? @@ -13122,7 +13090,7 @@ extension Api { return nil } } - static func parse_messageMediaContact(_ reader: BufferReader) -> MessageMedia? { + public static func parse_messageMediaContact(_ reader: BufferReader) -> MessageMedia? { var _1: String? _1 = parseString(reader) var _2: String? @@ -13145,7 +13113,7 @@ extension Api { return nil } } - static func parse_messageMediaPoll(_ reader: BufferReader) -> MessageMedia? { + public static func parse_messageMediaPoll(_ reader: BufferReader) -> MessageMedia? { var _1: Api.Poll? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.Poll @@ -13165,10 +13133,10 @@ extension Api { } } - enum PaymentSavedCredentials: TypeConstructorDescription { + public enum PaymentSavedCredentials: TypeConstructorDescription { case paymentSavedCredentialsCard(id: String, title: String) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .paymentSavedCredentialsCard(let id, let title): if boxed { @@ -13180,14 +13148,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .paymentSavedCredentialsCard(let id, let title): return ("paymentSavedCredentialsCard", [("id", id), ("title", title)]) } } - static func parse_paymentSavedCredentialsCard(_ reader: BufferReader) -> PaymentSavedCredentials? { + public static func parse_paymentSavedCredentialsCard(_ reader: BufferReader) -> PaymentSavedCredentials? { var _1: String? _1 = parseString(reader) var _2: String? @@ -13203,10 +13171,10 @@ extension Api { } } - enum Null: TypeConstructorDescription { + public enum Null: TypeConstructorDescription { case null - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .null: if boxed { @@ -13217,19 +13185,19 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .null: return ("null", []) } } - static func parse_null(_ reader: BufferReader) -> Null? { + public static func parse_null(_ reader: BufferReader) -> Null? { return Api.Null.null } } - enum DocumentAttribute: TypeConstructorDescription { + public enum DocumentAttribute: TypeConstructorDescription { case documentAttributeImageSize(w: Int32, h: Int32) case documentAttributeAnimated case documentAttributeSticker(flags: Int32, alt: String, stickerset: Api.InputStickerSet, maskCoords: Api.MaskCoords?) @@ -13238,7 +13206,7 @@ extension Api { case documentAttributeFilename(fileName: String) case documentAttributeHasStickers - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .documentAttributeImageSize(let w, let h): if boxed { @@ -13296,7 +13264,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .documentAttributeImageSize(let w, let h): return ("documentAttributeImageSize", [("w", w), ("h", h)]) @@ -13315,7 +13283,7 @@ extension Api { } } - static func parse_documentAttributeImageSize(_ reader: BufferReader) -> DocumentAttribute? { + public static func parse_documentAttributeImageSize(_ reader: BufferReader) -> DocumentAttribute? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -13329,10 +13297,10 @@ extension Api { return nil } } - static func parse_documentAttributeAnimated(_ reader: BufferReader) -> DocumentAttribute? { + public static func parse_documentAttributeAnimated(_ reader: BufferReader) -> DocumentAttribute? { return Api.DocumentAttribute.documentAttributeAnimated } - static func parse_documentAttributeSticker(_ reader: BufferReader) -> DocumentAttribute? { + public static func parse_documentAttributeSticker(_ reader: BufferReader) -> DocumentAttribute? { var _1: Int32? _1 = reader.readInt32() var _2: String? @@ -13356,7 +13324,7 @@ extension Api { return nil } } - static func parse_documentAttributeVideo(_ reader: BufferReader) -> DocumentAttribute? { + public static func parse_documentAttributeVideo(_ reader: BufferReader) -> DocumentAttribute? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -13376,7 +13344,7 @@ extension Api { return nil } } - static func parse_documentAttributeAudio(_ reader: BufferReader) -> DocumentAttribute? { + public static func parse_documentAttributeAudio(_ reader: BufferReader) -> DocumentAttribute? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -13399,7 +13367,7 @@ extension Api { return nil } } - static func parse_documentAttributeFilename(_ reader: BufferReader) -> DocumentAttribute? { + public static func parse_documentAttributeFilename(_ reader: BufferReader) -> DocumentAttribute? { var _1: String? _1 = parseString(reader) let _c1 = _1 != nil @@ -13410,16 +13378,16 @@ extension Api { return nil } } - static func parse_documentAttributeHasStickers(_ reader: BufferReader) -> DocumentAttribute? { + public static func parse_documentAttributeHasStickers(_ reader: BufferReader) -> DocumentAttribute? { return Api.DocumentAttribute.documentAttributeHasStickers } } - enum ChatPhoto: TypeConstructorDescription { + public enum ChatPhoto: TypeConstructorDescription { case chatPhotoEmpty case chatPhoto(photoSmall: Api.FileLocation, photoBig: Api.FileLocation, dcId: Int32) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .chatPhotoEmpty: if boxed { @@ -13438,7 +13406,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .chatPhotoEmpty: return ("chatPhotoEmpty", []) @@ -13447,10 +13415,10 @@ extension Api { } } - static func parse_chatPhotoEmpty(_ reader: BufferReader) -> ChatPhoto? { + public static func parse_chatPhotoEmpty(_ reader: BufferReader) -> ChatPhoto? { return Api.ChatPhoto.chatPhotoEmpty } - static func parse_chatPhoto(_ reader: BufferReader) -> ChatPhoto? { + public static func parse_chatPhoto(_ reader: BufferReader) -> ChatPhoto? { var _1: Api.FileLocation? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.FileLocation @@ -13473,10 +13441,10 @@ extension Api { } } - enum PageCaption: TypeConstructorDescription { + public enum PageCaption: TypeConstructorDescription { case pageCaption(text: Api.RichText, credit: Api.RichText) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .pageCaption(let text, let credit): if boxed { @@ -13488,14 +13456,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .pageCaption(let text, let credit): return ("pageCaption", [("text", text), ("credit", credit)]) } } - static func parse_pageCaption(_ reader: BufferReader) -> PageCaption? { + public static func parse_pageCaption(_ reader: BufferReader) -> PageCaption? { var _1: Api.RichText? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.RichText @@ -13515,12 +13483,12 @@ extension Api { } } - enum UrlAuthResult: TypeConstructorDescription { + public enum UrlAuthResult: TypeConstructorDescription { case urlAuthResultRequest(flags: Int32, bot: Api.User, domain: String) case urlAuthResultAccepted(url: String) case urlAuthResultDefault - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .urlAuthResultRequest(let flags, let bot, let domain): if boxed { @@ -13545,7 +13513,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .urlAuthResultRequest(let flags, let bot, let domain): return ("urlAuthResultRequest", [("flags", flags), ("bot", bot), ("domain", domain)]) @@ -13556,7 +13524,7 @@ extension Api { } } - static func parse_urlAuthResultRequest(_ reader: BufferReader) -> UrlAuthResult? { + public static func parse_urlAuthResultRequest(_ reader: BufferReader) -> UrlAuthResult? { var _1: Int32? _1 = reader.readInt32() var _2: Api.User? @@ -13575,7 +13543,7 @@ extension Api { return nil } } - static func parse_urlAuthResultAccepted(_ reader: BufferReader) -> UrlAuthResult? { + public static func parse_urlAuthResultAccepted(_ reader: BufferReader) -> UrlAuthResult? { var _1: String? _1 = parseString(reader) let _c1 = _1 != nil @@ -13586,17 +13554,17 @@ extension Api { return nil } } - static func parse_urlAuthResultDefault(_ reader: BufferReader) -> UrlAuthResult? { + public static func parse_urlAuthResultDefault(_ reader: BufferReader) -> UrlAuthResult? { return Api.UrlAuthResult.urlAuthResultDefault } } - enum InputStickerSet: TypeConstructorDescription { + public enum InputStickerSet: TypeConstructorDescription { case inputStickerSetEmpty case inputStickerSetID(id: Int64, accessHash: Int64) case inputStickerSetShortName(shortName: String) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .inputStickerSetEmpty: if boxed { @@ -13620,7 +13588,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .inputStickerSetEmpty: return ("inputStickerSetEmpty", []) @@ -13631,10 +13599,10 @@ extension Api { } } - static func parse_inputStickerSetEmpty(_ reader: BufferReader) -> InputStickerSet? { + public static func parse_inputStickerSetEmpty(_ reader: BufferReader) -> InputStickerSet? { return Api.InputStickerSet.inputStickerSetEmpty } - static func parse_inputStickerSetID(_ reader: BufferReader) -> InputStickerSet? { + public static func parse_inputStickerSetID(_ reader: BufferReader) -> InputStickerSet? { var _1: Int64? _1 = reader.readInt64() var _2: Int64? @@ -13648,7 +13616,7 @@ extension Api { return nil } } - static func parse_inputStickerSetShortName(_ reader: BufferReader) -> InputStickerSet? { + public static func parse_inputStickerSetShortName(_ reader: BufferReader) -> InputStickerSet? { var _1: String? _1 = parseString(reader) let _c1 = _1 != nil @@ -13661,10 +13629,10 @@ extension Api { } } - enum BotInfo: TypeConstructorDescription { + public enum BotInfo: TypeConstructorDescription { case botInfo(userId: Int32, description: String, commands: [Api.BotCommand]) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .botInfo(let userId, let description, let commands): if boxed { @@ -13681,14 +13649,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .botInfo(let userId, let description, let commands): return ("botInfo", [("userId", userId), ("description", description), ("commands", commands)]) } } - static func parse_botInfo(_ reader: BufferReader) -> BotInfo? { + public static func parse_botInfo(_ reader: BufferReader) -> BotInfo? { var _1: Int32? _1 = reader.readInt32() var _2: String? @@ -13709,11 +13677,11 @@ extension Api { } } - enum FoundGif: TypeConstructorDescription { + public enum FoundGif: TypeConstructorDescription { case foundGif(url: String, thumbUrl: String, contentUrl: String, contentType: String, w: Int32, h: Int32) case foundGifCached(url: String, photo: Api.Photo, document: Api.Document) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .foundGif(let url, let thumbUrl, let contentUrl, let contentType, let w, let h): if boxed { @@ -13737,7 +13705,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .foundGif(let url, let thumbUrl, let contentUrl, let contentType, let w, let h): return ("foundGif", [("url", url), ("thumbUrl", thumbUrl), ("contentUrl", contentUrl), ("contentType", contentType), ("w", w), ("h", h)]) @@ -13746,7 +13714,7 @@ extension Api { } } - static func parse_foundGif(_ reader: BufferReader) -> FoundGif? { + public static func parse_foundGif(_ reader: BufferReader) -> FoundGif? { var _1: String? _1 = parseString(reader) var _2: String? @@ -13772,7 +13740,7 @@ extension Api { return nil } } - static func parse_foundGifCached(_ reader: BufferReader) -> FoundGif? { + public static func parse_foundGifCached(_ reader: BufferReader) -> FoundGif? { var _1: String? _1 = parseString(reader) var _2: Api.Photo? @@ -13795,11 +13763,11 @@ extension Api { } } - enum User: TypeConstructorDescription { + public enum User: TypeConstructorDescription { case userEmpty(id: Int32) case user(flags: Int32, id: Int32, accessHash: Int64?, firstName: String?, lastName: String?, username: String?, phone: String?, photo: Api.UserProfilePhoto?, status: Api.UserStatus?, botInfoVersion: Int32?, restrictionReason: String?, botInlinePlaceholder: String?, langCode: String?) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .userEmpty(let id): if boxed { @@ -13828,7 +13796,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .userEmpty(let id): return ("userEmpty", [("id", id)]) @@ -13837,7 +13805,7 @@ extension Api { } } - static func parse_userEmpty(_ reader: BufferReader) -> User? { + public static func parse_userEmpty(_ reader: BufferReader) -> User? { var _1: Int32? _1 = reader.readInt32() let _c1 = _1 != nil @@ -13848,7 +13816,7 @@ extension Api { return nil } } - static func parse_user(_ reader: BufferReader) -> User? { + public static func parse_user(_ reader: BufferReader) -> User? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -13901,12 +13869,12 @@ extension Api { } } - enum Message: TypeConstructorDescription { + public enum Message: TypeConstructorDescription { case messageEmpty(id: Int32) case messageService(flags: Int32, id: Int32, fromId: Int32?, toId: Api.Peer, replyToMsgId: Int32?, date: Int32, action: Api.MessageAction) case message(flags: Int32, id: Int32, fromId: Int32?, toId: Api.Peer, fwdFrom: Api.MessageFwdHeader?, viaBotId: Int32?, replyToMsgId: Int32?, date: Int32, message: String, media: Api.MessageMedia?, replyMarkup: Api.ReplyMarkup?, entities: [Api.MessageEntity]?, views: Int32?, editDate: Int32?, postAuthor: String?, groupedId: Int64?) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .messageEmpty(let id): if boxed { @@ -13954,7 +13922,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .messageEmpty(let id): return ("messageEmpty", [("id", id)]) @@ -13965,7 +13933,7 @@ extension Api { } } - static func parse_messageEmpty(_ reader: BufferReader) -> Message? { + public static func parse_messageEmpty(_ reader: BufferReader) -> Message? { var _1: Int32? _1 = reader.readInt32() let _c1 = _1 != nil @@ -13976,7 +13944,7 @@ extension Api { return nil } } - static func parse_messageService(_ reader: BufferReader) -> Message? { + public static func parse_messageService(_ reader: BufferReader) -> Message? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -14009,7 +13977,7 @@ extension Api { return nil } } - static func parse_message(_ reader: BufferReader) -> Message? { + public static func parse_message(_ reader: BufferReader) -> Message? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -14077,7 +14045,7 @@ extension Api { } } - enum InputFileLocation: TypeConstructorDescription { + public enum InputFileLocation: TypeConstructorDescription { case inputEncryptedFileLocation(id: Int64, accessHash: Int64) case inputSecureFileLocation(id: Int64, accessHash: Int64) case inputFileLocation(volumeId: Int64, localId: Int32, secret: Int64, fileReference: Buffer) @@ -14086,7 +14054,7 @@ extension Api { case inputPeerPhotoFileLocation(flags: Int32, peer: Api.InputPeer, volumeId: Int64, localId: Int32) case inputStickerSetThumb(stickerset: Api.InputStickerSet, volumeId: Int64, localId: Int32) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .inputEncryptedFileLocation(let id, let accessHash): if boxed { @@ -14149,7 +14117,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .inputEncryptedFileLocation(let id, let accessHash): return ("inputEncryptedFileLocation", [("id", id), ("accessHash", accessHash)]) @@ -14168,7 +14136,7 @@ extension Api { } } - static func parse_inputEncryptedFileLocation(_ reader: BufferReader) -> InputFileLocation? { + public static func parse_inputEncryptedFileLocation(_ reader: BufferReader) -> InputFileLocation? { var _1: Int64? _1 = reader.readInt64() var _2: Int64? @@ -14182,7 +14150,7 @@ extension Api { return nil } } - static func parse_inputSecureFileLocation(_ reader: BufferReader) -> InputFileLocation? { + public static func parse_inputSecureFileLocation(_ reader: BufferReader) -> InputFileLocation? { var _1: Int64? _1 = reader.readInt64() var _2: Int64? @@ -14196,7 +14164,7 @@ extension Api { return nil } } - static func parse_inputFileLocation(_ reader: BufferReader) -> InputFileLocation? { + public static func parse_inputFileLocation(_ reader: BufferReader) -> InputFileLocation? { var _1: Int64? _1 = reader.readInt64() var _2: Int32? @@ -14216,7 +14184,7 @@ extension Api { return nil } } - static func parse_inputPhotoFileLocation(_ reader: BufferReader) -> InputFileLocation? { + public static func parse_inputPhotoFileLocation(_ reader: BufferReader) -> InputFileLocation? { var _1: Int64? _1 = reader.readInt64() var _2: Int64? @@ -14236,7 +14204,7 @@ extension Api { return nil } } - static func parse_inputDocumentFileLocation(_ reader: BufferReader) -> InputFileLocation? { + public static func parse_inputDocumentFileLocation(_ reader: BufferReader) -> InputFileLocation? { var _1: Int64? _1 = reader.readInt64() var _2: Int64? @@ -14256,7 +14224,7 @@ extension Api { return nil } } - static func parse_inputPeerPhotoFileLocation(_ reader: BufferReader) -> InputFileLocation? { + public static func parse_inputPeerPhotoFileLocation(_ reader: BufferReader) -> InputFileLocation? { var _1: Int32? _1 = reader.readInt32() var _2: Api.InputPeer? @@ -14278,7 +14246,7 @@ extension Api { return nil } } - static func parse_inputStickerSetThumb(_ reader: BufferReader) -> InputFileLocation? { + public static func parse_inputStickerSetThumb(_ reader: BufferReader) -> InputFileLocation? { var _1: Api.InputStickerSet? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.InputStickerSet @@ -14299,11 +14267,11 @@ extension Api { } } - enum GeoPoint: TypeConstructorDescription { + public enum GeoPoint: TypeConstructorDescription { case geoPointEmpty case geoPoint(long: Double, lat: Double, accessHash: Int64) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .geoPointEmpty: if boxed { @@ -14322,7 +14290,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .geoPointEmpty: return ("geoPointEmpty", []) @@ -14331,10 +14299,10 @@ extension Api { } } - static func parse_geoPointEmpty(_ reader: BufferReader) -> GeoPoint? { + public static func parse_geoPointEmpty(_ reader: BufferReader) -> GeoPoint? { return Api.GeoPoint.geoPointEmpty } - static func parse_geoPoint(_ reader: BufferReader) -> GeoPoint? { + public static func parse_geoPoint(_ reader: BufferReader) -> GeoPoint? { var _1: Double? _1 = reader.readDouble() var _2: Double? @@ -14353,10 +14321,10 @@ extension Api { } } - enum InputPhoneCall: TypeConstructorDescription { + public enum InputPhoneCall: TypeConstructorDescription { case inputPhoneCall(id: Int64, accessHash: Int64) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .inputPhoneCall(let id, let accessHash): if boxed { @@ -14368,14 +14336,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .inputPhoneCall(let id, let accessHash): return ("inputPhoneCall", [("id", id), ("accessHash", accessHash)]) } } - static func parse_inputPhoneCall(_ reader: BufferReader) -> InputPhoneCall? { + public static func parse_inputPhoneCall(_ reader: BufferReader) -> InputPhoneCall? { var _1: Int64? _1 = reader.readInt64() var _2: Int64? @@ -14391,10 +14359,10 @@ extension Api { } } - enum ReceivedNotifyMessage: TypeConstructorDescription { + public enum ReceivedNotifyMessage: TypeConstructorDescription { case receivedNotifyMessage(id: Int32, flags: Int32) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .receivedNotifyMessage(let id, let flags): if boxed { @@ -14406,14 +14374,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .receivedNotifyMessage(let id, let flags): return ("receivedNotifyMessage", [("id", id), ("flags", flags)]) } } - static func parse_receivedNotifyMessage(_ reader: BufferReader) -> ReceivedNotifyMessage? { + public static func parse_receivedNotifyMessage(_ reader: BufferReader) -> ReceivedNotifyMessage? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -14429,11 +14397,11 @@ extension Api { } } - enum ChatParticipants: TypeConstructorDescription { + public enum ChatParticipants: TypeConstructorDescription { case chatParticipantsForbidden(flags: Int32, chatId: Int32, selfParticipant: Api.ChatParticipant?) case chatParticipants(chatId: Int32, participants: [Api.ChatParticipant], version: Int32) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .chatParticipantsForbidden(let flags, let chatId, let selfParticipant): if boxed { @@ -14458,7 +14426,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .chatParticipantsForbidden(let flags, let chatId, let selfParticipant): return ("chatParticipantsForbidden", [("flags", flags), ("chatId", chatId), ("selfParticipant", selfParticipant)]) @@ -14467,7 +14435,7 @@ extension Api { } } - static func parse_chatParticipantsForbidden(_ reader: BufferReader) -> ChatParticipants? { + public static func parse_chatParticipantsForbidden(_ reader: BufferReader) -> ChatParticipants? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -14486,7 +14454,7 @@ extension Api { return nil } } - static func parse_chatParticipants(_ reader: BufferReader) -> ChatParticipants? { + public static func parse_chatParticipants(_ reader: BufferReader) -> ChatParticipants? { var _1: Int32? _1 = reader.readInt32() var _2: [Api.ChatParticipant]? @@ -14507,13 +14475,13 @@ extension Api { } } - enum InputPaymentCredentials: TypeConstructorDescription { + public enum InputPaymentCredentials: TypeConstructorDescription { case inputPaymentCredentialsSaved(id: String, tmpPassword: Buffer) case inputPaymentCredentials(flags: Int32, data: Api.DataJSON) case inputPaymentCredentialsApplePay(paymentData: Api.DataJSON) case inputPaymentCredentialsAndroidPay(paymentToken: Api.DataJSON, googleTransactionId: String) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .inputPaymentCredentialsSaved(let id, let tmpPassword): if boxed { @@ -14545,7 +14513,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .inputPaymentCredentialsSaved(let id, let tmpPassword): return ("inputPaymentCredentialsSaved", [("id", id), ("tmpPassword", tmpPassword)]) @@ -14558,7 +14526,7 @@ extension Api { } } - static func parse_inputPaymentCredentialsSaved(_ reader: BufferReader) -> InputPaymentCredentials? { + public static func parse_inputPaymentCredentialsSaved(_ reader: BufferReader) -> InputPaymentCredentials? { var _1: String? _1 = parseString(reader) var _2: Buffer? @@ -14572,7 +14540,7 @@ extension Api { return nil } } - static func parse_inputPaymentCredentials(_ reader: BufferReader) -> InputPaymentCredentials? { + public static func parse_inputPaymentCredentials(_ reader: BufferReader) -> InputPaymentCredentials? { var _1: Int32? _1 = reader.readInt32() var _2: Api.DataJSON? @@ -14588,7 +14556,7 @@ extension Api { return nil } } - static func parse_inputPaymentCredentialsApplePay(_ reader: BufferReader) -> InputPaymentCredentials? { + public static func parse_inputPaymentCredentialsApplePay(_ reader: BufferReader) -> InputPaymentCredentials? { var _1: Api.DataJSON? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.DataJSON @@ -14601,7 +14569,7 @@ extension Api { return nil } } - static func parse_inputPaymentCredentialsAndroidPay(_ reader: BufferReader) -> InputPaymentCredentials? { + public static func parse_inputPaymentCredentialsAndroidPay(_ reader: BufferReader) -> InputPaymentCredentials? { var _1: Api.DataJSON? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.DataJSON @@ -14619,10 +14587,10 @@ extension Api { } } - enum ShippingOption: TypeConstructorDescription { + public enum ShippingOption: TypeConstructorDescription { case shippingOption(id: String, title: String, prices: [Api.LabeledPrice]) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .shippingOption(let id, let title, let prices): if boxed { @@ -14639,14 +14607,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .shippingOption(let id, let title, let prices): return ("shippingOption", [("id", id), ("title", title), ("prices", prices)]) } } - static func parse_shippingOption(_ reader: BufferReader) -> ShippingOption? { + public static func parse_shippingOption(_ reader: BufferReader) -> ShippingOption? { var _1: String? _1 = parseString(reader) var _2: String? @@ -14667,11 +14635,11 @@ extension Api { } } - enum InputSecureFile: TypeConstructorDescription { + public enum InputSecureFile: TypeConstructorDescription { case inputSecureFileUploaded(id: Int64, parts: Int32, md5Checksum: String, fileHash: Buffer, secret: Buffer) case inputSecureFile(id: Int64, accessHash: Int64) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .inputSecureFileUploaded(let id, let parts, let md5Checksum, let fileHash, let secret): if boxed { @@ -14693,7 +14661,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .inputSecureFileUploaded(let id, let parts, let md5Checksum, let fileHash, let secret): return ("inputSecureFileUploaded", [("id", id), ("parts", parts), ("md5Checksum", md5Checksum), ("fileHash", fileHash), ("secret", secret)]) @@ -14702,7 +14670,7 @@ extension Api { } } - static func parse_inputSecureFileUploaded(_ reader: BufferReader) -> InputSecureFile? { + public static func parse_inputSecureFileUploaded(_ reader: BufferReader) -> InputSecureFile? { var _1: Int64? _1 = reader.readInt64() var _2: Int32? @@ -14725,7 +14693,7 @@ extension Api { return nil } } - static func parse_inputSecureFile(_ reader: BufferReader) -> InputSecureFile? { + public static func parse_inputSecureFile(_ reader: BufferReader) -> InputSecureFile? { var _1: Int64? _1 = reader.readInt64() var _2: Int64? @@ -14741,10 +14709,10 @@ extension Api { } } - enum PostAddress: TypeConstructorDescription { + public enum PostAddress: TypeConstructorDescription { case postAddress(streetLine1: String, streetLine2: String, city: String, state: String, countryIso2: String, postCode: String) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .postAddress(let streetLine1, let streetLine2, let city, let state, let countryIso2, let postCode): if boxed { @@ -14760,14 +14728,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .postAddress(let streetLine1, let streetLine2, let city, let state, let countryIso2, let postCode): return ("postAddress", [("streetLine1", streetLine1), ("streetLine2", streetLine2), ("city", city), ("state", state), ("countryIso2", countryIso2), ("postCode", postCode)]) } } - static func parse_postAddress(_ reader: BufferReader) -> PostAddress? { + public static func parse_postAddress(_ reader: BufferReader) -> PostAddress? { var _1: String? _1 = parseString(reader) var _2: String? @@ -14795,10 +14763,10 @@ extension Api { } } - enum InputFolderPeer: TypeConstructorDescription { + public enum InputFolderPeer: TypeConstructorDescription { case inputFolderPeer(peer: Api.InputPeer, folderId: Int32) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .inputFolderPeer(let peer, let folderId): if boxed { @@ -14810,14 +14778,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .inputFolderPeer(let peer, let folderId): return ("inputFolderPeer", [("peer", peer), ("folderId", folderId)]) } } - static func parse_inputFolderPeer(_ reader: BufferReader) -> InputFolderPeer? { + public static func parse_inputFolderPeer(_ reader: BufferReader) -> InputFolderPeer? { var _1: Api.InputPeer? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.InputPeer @@ -14835,10 +14803,10 @@ extension Api { } } - enum DataJSON: TypeConstructorDescription { + public enum DataJSON: TypeConstructorDescription { case dataJSON(data: String) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .dataJSON(let data): if boxed { @@ -14849,14 +14817,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .dataJSON(let data): return ("dataJSON", [("data", data)]) } } - static func parse_dataJSON(_ reader: BufferReader) -> DataJSON? { + public static func parse_dataJSON(_ reader: BufferReader) -> DataJSON? { var _1: String? _1 = parseString(reader) let _c1 = _1 != nil @@ -14869,11 +14837,11 @@ extension Api { } } - enum InputWallPaper: TypeConstructorDescription { + public enum InputWallPaper: TypeConstructorDescription { case inputWallPaper(id: Int64, accessHash: Int64) case inputWallPaperSlug(slug: String) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .inputWallPaper(let id, let accessHash): if boxed { @@ -14891,7 +14859,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .inputWallPaper(let id, let accessHash): return ("inputWallPaper", [("id", id), ("accessHash", accessHash)]) @@ -14900,7 +14868,7 @@ extension Api { } } - static func parse_inputWallPaper(_ reader: BufferReader) -> InputWallPaper? { + public static func parse_inputWallPaper(_ reader: BufferReader) -> InputWallPaper? { var _1: Int64? _1 = reader.readInt64() var _2: Int64? @@ -14914,7 +14882,7 @@ extension Api { return nil } } - static func parse_inputWallPaperSlug(_ reader: BufferReader) -> InputWallPaper? { + public static func parse_inputWallPaperSlug(_ reader: BufferReader) -> InputWallPaper? { var _1: String? _1 = parseString(reader) let _c1 = _1 != nil @@ -14927,11 +14895,11 @@ extension Api { } } - enum InputStickeredMedia: TypeConstructorDescription { + public enum InputStickeredMedia: TypeConstructorDescription { case inputStickeredMediaPhoto(id: Api.InputPhoto) case inputStickeredMediaDocument(id: Api.InputDocument) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .inputStickeredMediaPhoto(let id): if boxed { @@ -14948,7 +14916,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .inputStickeredMediaPhoto(let id): return ("inputStickeredMediaPhoto", [("id", id)]) @@ -14957,7 +14925,7 @@ extension Api { } } - static func parse_inputStickeredMediaPhoto(_ reader: BufferReader) -> InputStickeredMedia? { + public static func parse_inputStickeredMediaPhoto(_ reader: BufferReader) -> InputStickeredMedia? { var _1: Api.InputPhoto? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.InputPhoto @@ -14970,7 +14938,7 @@ extension Api { return nil } } - static func parse_inputStickeredMediaDocument(_ reader: BufferReader) -> InputStickeredMedia? { + public static func parse_inputStickeredMediaDocument(_ reader: BufferReader) -> InputStickeredMedia? { var _1: Api.InputDocument? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.InputDocument @@ -14985,13 +14953,13 @@ extension Api { } } - enum PhoneCallDiscardReason: TypeConstructorDescription { + public enum PhoneCallDiscardReason: TypeConstructorDescription { case phoneCallDiscardReasonMissed case phoneCallDiscardReasonDisconnect case phoneCallDiscardReasonHangup case phoneCallDiscardReasonBusy - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .phoneCallDiscardReasonMissed: if boxed { @@ -15020,7 +14988,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .phoneCallDiscardReasonMissed: return ("phoneCallDiscardReasonMissed", []) @@ -15033,24 +15001,24 @@ extension Api { } } - static func parse_phoneCallDiscardReasonMissed(_ reader: BufferReader) -> PhoneCallDiscardReason? { + public static func parse_phoneCallDiscardReasonMissed(_ reader: BufferReader) -> PhoneCallDiscardReason? { return Api.PhoneCallDiscardReason.phoneCallDiscardReasonMissed } - static func parse_phoneCallDiscardReasonDisconnect(_ reader: BufferReader) -> PhoneCallDiscardReason? { + public static func parse_phoneCallDiscardReasonDisconnect(_ reader: BufferReader) -> PhoneCallDiscardReason? { return Api.PhoneCallDiscardReason.phoneCallDiscardReasonDisconnect } - static func parse_phoneCallDiscardReasonHangup(_ reader: BufferReader) -> PhoneCallDiscardReason? { + public static func parse_phoneCallDiscardReasonHangup(_ reader: BufferReader) -> PhoneCallDiscardReason? { return Api.PhoneCallDiscardReason.phoneCallDiscardReasonHangup } - static func parse_phoneCallDiscardReasonBusy(_ reader: BufferReader) -> PhoneCallDiscardReason? { + public static func parse_phoneCallDiscardReasonBusy(_ reader: BufferReader) -> PhoneCallDiscardReason? { return Api.PhoneCallDiscardReason.phoneCallDiscardReasonBusy } } - enum NearestDc: TypeConstructorDescription { + public enum NearestDc: TypeConstructorDescription { case nearestDc(country: String, thisDc: Int32, nearestDc: Int32) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .nearestDc(let country, let thisDc, let nearestDc): if boxed { @@ -15063,14 +15031,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .nearestDc(let country, let thisDc, let nearestDc): return ("nearestDc", [("country", country), ("thisDc", thisDc), ("nearestDc", nearestDc)]) } } - static func parse_nearestDc(_ reader: BufferReader) -> NearestDc? { + public static func parse_nearestDc(_ reader: BufferReader) -> NearestDc? { var _1: String? _1 = parseString(reader) var _2: Int32? @@ -15089,10 +15057,10 @@ extension Api { } } - enum JSONObjectValue: TypeConstructorDescription { + public enum JSONObjectValue: TypeConstructorDescription { case jsonObjectValue(key: String, value: Api.JSONValue) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .jsonObjectValue(let key, let value): if boxed { @@ -15104,14 +15072,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .jsonObjectValue(let key, let value): return ("jsonObjectValue", [("key", key), ("value", value)]) } } - static func parse_jsonObjectValue(_ reader: BufferReader) -> JSONObjectValue? { + public static func parse_jsonObjectValue(_ reader: BufferReader) -> JSONObjectValue? { var _1: String? _1 = parseString(reader) var _2: Api.JSONValue? @@ -15129,10 +15097,10 @@ extension Api { } } - enum InputWebDocument: TypeConstructorDescription { + public enum InputWebDocument: TypeConstructorDescription { case inputWebDocument(url: String, size: Int32, mimeType: String, attributes: [Api.DocumentAttribute]) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .inputWebDocument(let url, let size, let mimeType, let attributes): if boxed { @@ -15150,14 +15118,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .inputWebDocument(let url, let size, let mimeType, let attributes): return ("inputWebDocument", [("url", url), ("size", size), ("mimeType", mimeType), ("attributes", attributes)]) } } - static func parse_inputWebDocument(_ reader: BufferReader) -> InputWebDocument? { + public static func parse_inputWebDocument(_ reader: BufferReader) -> InputWebDocument? { var _1: String? _1 = parseString(reader) var _2: Int32? @@ -15181,10 +15149,10 @@ extension Api { } } - enum ChannelAdminLogEvent: TypeConstructorDescription { + public enum ChannelAdminLogEvent: TypeConstructorDescription { case channelAdminLogEvent(id: Int64, date: Int32, userId: Int32, action: Api.ChannelAdminLogEventAction) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .channelAdminLogEvent(let id, let date, let userId, let action): if boxed { @@ -15198,14 +15166,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .channelAdminLogEvent(let id, let date, let userId, let action): return ("channelAdminLogEvent", [("id", id), ("date", date), ("userId", userId), ("action", action)]) } } - static func parse_channelAdminLogEvent(_ reader: BufferReader) -> ChannelAdminLogEvent? { + public static func parse_channelAdminLogEvent(_ reader: BufferReader) -> ChannelAdminLogEvent? { var _1: Int64? _1 = reader.readInt64() var _2: Int32? @@ -15229,11 +15197,11 @@ extension Api { } } - enum Bool: TypeConstructorDescription { + public enum Bool: TypeConstructorDescription { case boolFalse case boolTrue - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .boolFalse: if boxed { @@ -15250,7 +15218,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .boolFalse: return ("boolFalse", []) @@ -15259,20 +15227,20 @@ extension Api { } } - static func parse_boolFalse(_ reader: BufferReader) -> Bool? { + public static func parse_boolFalse(_ reader: BufferReader) -> Bool? { return Api.Bool.boolFalse } - static func parse_boolTrue(_ reader: BufferReader) -> Bool? { + public static func parse_boolTrue(_ reader: BufferReader) -> Bool? { return Api.Bool.boolTrue } } - enum LangPackString: TypeConstructorDescription { + public enum LangPackString: TypeConstructorDescription { case langPackString(key: String, value: String) case langPackStringPluralized(flags: Int32, key: String, zeroValue: String?, oneValue: String?, twoValue: String?, fewValue: String?, manyValue: String?, otherValue: String) case langPackStringDeleted(key: String) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .langPackString(let key, let value): if boxed { @@ -15303,7 +15271,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .langPackString(let key, let value): return ("langPackString", [("key", key), ("value", value)]) @@ -15314,7 +15282,7 @@ extension Api { } } - static func parse_langPackString(_ reader: BufferReader) -> LangPackString? { + public static func parse_langPackString(_ reader: BufferReader) -> LangPackString? { var _1: String? _1 = parseString(reader) var _2: String? @@ -15328,7 +15296,7 @@ extension Api { return nil } } - static func parse_langPackStringPluralized(_ reader: BufferReader) -> LangPackString? { + public static func parse_langPackStringPluralized(_ reader: BufferReader) -> LangPackString? { var _1: Int32? _1 = reader.readInt32() var _2: String? @@ -15360,7 +15328,7 @@ extension Api { return nil } } - static func parse_langPackStringDeleted(_ reader: BufferReader) -> LangPackString? { + public static func parse_langPackStringDeleted(_ reader: BufferReader) -> LangPackString? { var _1: String? _1 = parseString(reader) let _c1 = _1 != nil @@ -15373,12 +15341,12 @@ extension Api { } } - enum InputWebFileLocation: TypeConstructorDescription { + public enum InputWebFileLocation: TypeConstructorDescription { case inputWebFileLocation(url: String, accessHash: Int64) case inputWebFileGeoMessageLocation(peer: Api.InputPeer, msgId: Int32, w: Int32, h: Int32, zoom: Int32, scale: Int32) case inputWebFileGeoPointLocation(geoPoint: Api.InputGeoPoint, accessHash: Int64, w: Int32, h: Int32, zoom: Int32, scale: Int32) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .inputWebFileLocation(let url, let accessHash): if boxed { @@ -15412,7 +15380,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .inputWebFileLocation(let url, let accessHash): return ("inputWebFileLocation", [("url", url), ("accessHash", accessHash)]) @@ -15423,7 +15391,7 @@ extension Api { } } - static func parse_inputWebFileLocation(_ reader: BufferReader) -> InputWebFileLocation? { + public static func parse_inputWebFileLocation(_ reader: BufferReader) -> InputWebFileLocation? { var _1: String? _1 = parseString(reader) var _2: Int64? @@ -15437,7 +15405,7 @@ extension Api { return nil } } - static func parse_inputWebFileGeoMessageLocation(_ reader: BufferReader) -> InputWebFileLocation? { + public static func parse_inputWebFileGeoMessageLocation(_ reader: BufferReader) -> InputWebFileLocation? { var _1: Api.InputPeer? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.InputPeer @@ -15465,7 +15433,7 @@ extension Api { return nil } } - static func parse_inputWebFileGeoPointLocation(_ reader: BufferReader) -> InputWebFileLocation? { + public static func parse_inputWebFileGeoPointLocation(_ reader: BufferReader) -> InputWebFileLocation? { var _1: Api.InputGeoPoint? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.InputGeoPoint @@ -15495,10 +15463,10 @@ extension Api { } } - enum MessageFwdHeader: TypeConstructorDescription { + public enum MessageFwdHeader: TypeConstructorDescription { case messageFwdHeader(flags: Int32, fromId: Int32?, fromName: String?, date: Int32, channelId: Int32?, channelPost: Int32?, postAuthor: String?, savedFromPeer: Api.Peer?, savedFromMsgId: Int32?) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .messageFwdHeader(let flags, let fromId, let fromName, let date, let channelId, let channelPost, let postAuthor, let savedFromPeer, let savedFromMsgId): if boxed { @@ -15517,14 +15485,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .messageFwdHeader(let flags, let fromId, let fromName, let date, let channelId, let channelPost, let postAuthor, let savedFromPeer, let savedFromMsgId): return ("messageFwdHeader", [("flags", flags), ("fromId", fromId), ("fromName", fromName), ("date", date), ("channelId", channelId), ("channelPost", channelPost), ("postAuthor", postAuthor), ("savedFromPeer", savedFromPeer), ("savedFromMsgId", savedFromMsgId)]) } } - static func parse_messageFwdHeader(_ reader: BufferReader) -> MessageFwdHeader? { + public static func parse_messageFwdHeader(_ reader: BufferReader) -> MessageFwdHeader? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -15563,7 +15531,7 @@ extension Api { } } - enum MessagesFilter: TypeConstructorDescription { + public enum MessagesFilter: TypeConstructorDescription { case inputMessagesFilterEmpty case inputMessagesFilterPhotos case inputMessagesFilterVideo @@ -15583,7 +15551,7 @@ extension Api { case inputMessagesFilterGeo case inputMessagesFilterContacts - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .inputMessagesFilterEmpty: if boxed { @@ -15696,7 +15664,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .inputMessagesFilterEmpty: return ("inputMessagesFilterEmpty", []) @@ -15737,40 +15705,40 @@ extension Api { } } - static func parse_inputMessagesFilterEmpty(_ reader: BufferReader) -> MessagesFilter? { + public static func parse_inputMessagesFilterEmpty(_ reader: BufferReader) -> MessagesFilter? { return Api.MessagesFilter.inputMessagesFilterEmpty } - static func parse_inputMessagesFilterPhotos(_ reader: BufferReader) -> MessagesFilter? { + public static func parse_inputMessagesFilterPhotos(_ reader: BufferReader) -> MessagesFilter? { return Api.MessagesFilter.inputMessagesFilterPhotos } - static func parse_inputMessagesFilterVideo(_ reader: BufferReader) -> MessagesFilter? { + public static func parse_inputMessagesFilterVideo(_ reader: BufferReader) -> MessagesFilter? { return Api.MessagesFilter.inputMessagesFilterVideo } - static func parse_inputMessagesFilterPhotoVideo(_ reader: BufferReader) -> MessagesFilter? { + public static func parse_inputMessagesFilterPhotoVideo(_ reader: BufferReader) -> MessagesFilter? { return Api.MessagesFilter.inputMessagesFilterPhotoVideo } - static func parse_inputMessagesFilterPhotoVideoDocuments(_ reader: BufferReader) -> MessagesFilter? { + public static func parse_inputMessagesFilterPhotoVideoDocuments(_ reader: BufferReader) -> MessagesFilter? { return Api.MessagesFilter.inputMessagesFilterPhotoVideoDocuments } - static func parse_inputMessagesFilterDocument(_ reader: BufferReader) -> MessagesFilter? { + public static func parse_inputMessagesFilterDocument(_ reader: BufferReader) -> MessagesFilter? { return Api.MessagesFilter.inputMessagesFilterDocument } - static func parse_inputMessagesFilterUrl(_ reader: BufferReader) -> MessagesFilter? { + public static func parse_inputMessagesFilterUrl(_ reader: BufferReader) -> MessagesFilter? { return Api.MessagesFilter.inputMessagesFilterUrl } - static func parse_inputMessagesFilterGif(_ reader: BufferReader) -> MessagesFilter? { + public static func parse_inputMessagesFilterGif(_ reader: BufferReader) -> MessagesFilter? { return Api.MessagesFilter.inputMessagesFilterGif } - static func parse_inputMessagesFilterVoice(_ reader: BufferReader) -> MessagesFilter? { + public static func parse_inputMessagesFilterVoice(_ reader: BufferReader) -> MessagesFilter? { return Api.MessagesFilter.inputMessagesFilterVoice } - static func parse_inputMessagesFilterMusic(_ reader: BufferReader) -> MessagesFilter? { + public static func parse_inputMessagesFilterMusic(_ reader: BufferReader) -> MessagesFilter? { return Api.MessagesFilter.inputMessagesFilterMusic } - static func parse_inputMessagesFilterChatPhotos(_ reader: BufferReader) -> MessagesFilter? { + public static func parse_inputMessagesFilterChatPhotos(_ reader: BufferReader) -> MessagesFilter? { return Api.MessagesFilter.inputMessagesFilterChatPhotos } - static func parse_inputMessagesFilterPhoneCalls(_ reader: BufferReader) -> MessagesFilter? { + public static func parse_inputMessagesFilterPhoneCalls(_ reader: BufferReader) -> MessagesFilter? { var _1: Int32? _1 = reader.readInt32() let _c1 = _1 != nil @@ -15781,31 +15749,31 @@ extension Api { return nil } } - static func parse_inputMessagesFilterRoundVoice(_ reader: BufferReader) -> MessagesFilter? { + public static func parse_inputMessagesFilterRoundVoice(_ reader: BufferReader) -> MessagesFilter? { return Api.MessagesFilter.inputMessagesFilterRoundVoice } - static func parse_inputMessagesFilterRoundVideo(_ reader: BufferReader) -> MessagesFilter? { + public static func parse_inputMessagesFilterRoundVideo(_ reader: BufferReader) -> MessagesFilter? { return Api.MessagesFilter.inputMessagesFilterRoundVideo } - static func parse_inputMessagesFilterMyMentions(_ reader: BufferReader) -> MessagesFilter? { + public static func parse_inputMessagesFilterMyMentions(_ reader: BufferReader) -> MessagesFilter? { return Api.MessagesFilter.inputMessagesFilterMyMentions } - static func parse_inputMessagesFilterMyMentionsUnread(_ reader: BufferReader) -> MessagesFilter? { + public static func parse_inputMessagesFilterMyMentionsUnread(_ reader: BufferReader) -> MessagesFilter? { return Api.MessagesFilter.inputMessagesFilterMyMentionsUnread } - static func parse_inputMessagesFilterGeo(_ reader: BufferReader) -> MessagesFilter? { + public static func parse_inputMessagesFilterGeo(_ reader: BufferReader) -> MessagesFilter? { return Api.MessagesFilter.inputMessagesFilterGeo } - static func parse_inputMessagesFilterContacts(_ reader: BufferReader) -> MessagesFilter? { + public static func parse_inputMessagesFilterContacts(_ reader: BufferReader) -> MessagesFilter? { return Api.MessagesFilter.inputMessagesFilterContacts } } - enum EmojiKeyword: TypeConstructorDescription { + public enum EmojiKeyword: TypeConstructorDescription { case emojiKeyword(keyword: String, emoticons: [String]) case emojiKeywordDeleted(keyword: String, emoticons: [String]) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .emojiKeyword(let keyword, let emoticons): if boxed { @@ -15832,7 +15800,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .emojiKeyword(let keyword, let emoticons): return ("emojiKeyword", [("keyword", keyword), ("emoticons", emoticons)]) @@ -15841,7 +15809,7 @@ extension Api { } } - static func parse_emojiKeyword(_ reader: BufferReader) -> EmojiKeyword? { + public static func parse_emojiKeyword(_ reader: BufferReader) -> EmojiKeyword? { var _1: String? _1 = parseString(reader) var _2: [String]? @@ -15857,7 +15825,7 @@ extension Api { return nil } } - static func parse_emojiKeywordDeleted(_ reader: BufferReader) -> EmojiKeyword? { + public static func parse_emojiKeywordDeleted(_ reader: BufferReader) -> EmojiKeyword? { var _1: String? _1 = parseString(reader) var _2: [String]? @@ -15875,14 +15843,14 @@ extension Api { } } - enum BotInlineMessage: TypeConstructorDescription { + public enum BotInlineMessage: TypeConstructorDescription { case botInlineMessageText(flags: Int32, message: String, entities: [Api.MessageEntity]?, replyMarkup: Api.ReplyMarkup?) case botInlineMessageMediaGeo(flags: Int32, geo: Api.GeoPoint, replyMarkup: Api.ReplyMarkup?) case botInlineMessageMediaAuto(flags: Int32, message: String, entities: [Api.MessageEntity]?, replyMarkup: Api.ReplyMarkup?) case botInlineMessageMediaVenue(flags: Int32, geo: Api.GeoPoint, title: String, address: String, provider: String, venueId: String, venueType: String, replyMarkup: Api.ReplyMarkup?) case botInlineMessageMediaContact(flags: Int32, phoneNumber: String, firstName: String, lastName: String, vcard: String, replyMarkup: Api.ReplyMarkup?) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .botInlineMessageText(let flags, let message, let entities, let replyMarkup): if boxed { @@ -15945,7 +15913,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .botInlineMessageText(let flags, let message, let entities, let replyMarkup): return ("botInlineMessageText", [("flags", flags), ("message", message), ("entities", entities), ("replyMarkup", replyMarkup)]) @@ -15960,7 +15928,7 @@ extension Api { } } - static func parse_botInlineMessageText(_ reader: BufferReader) -> BotInlineMessage? { + public static func parse_botInlineMessageText(_ reader: BufferReader) -> BotInlineMessage? { var _1: Int32? _1 = reader.readInt32() var _2: String? @@ -15984,7 +15952,7 @@ extension Api { return nil } } - static func parse_botInlineMessageMediaGeo(_ reader: BufferReader) -> BotInlineMessage? { + public static func parse_botInlineMessageMediaGeo(_ reader: BufferReader) -> BotInlineMessage? { var _1: Int32? _1 = reader.readInt32() var _2: Api.GeoPoint? @@ -16005,7 +15973,7 @@ extension Api { return nil } } - static func parse_botInlineMessageMediaAuto(_ reader: BufferReader) -> BotInlineMessage? { + public static func parse_botInlineMessageMediaAuto(_ reader: BufferReader) -> BotInlineMessage? { var _1: Int32? _1 = reader.readInt32() var _2: String? @@ -16029,7 +15997,7 @@ extension Api { return nil } } - static func parse_botInlineMessageMediaVenue(_ reader: BufferReader) -> BotInlineMessage? { + public static func parse_botInlineMessageMediaVenue(_ reader: BufferReader) -> BotInlineMessage? { var _1: Int32? _1 = reader.readInt32() var _2: Api.GeoPoint? @@ -16065,7 +16033,7 @@ extension Api { return nil } } - static func parse_botInlineMessageMediaContact(_ reader: BufferReader) -> BotInlineMessage? { + public static func parse_botInlineMessageMediaContact(_ reader: BufferReader) -> BotInlineMessage? { var _1: Int32? _1 = reader.readInt32() var _2: String? @@ -16095,10 +16063,10 @@ extension Api { } } - enum InputPeerNotifySettings: TypeConstructorDescription { + public enum InputPeerNotifySettings: TypeConstructorDescription { case inputPeerNotifySettings(flags: Int32, showPreviews: Api.Bool?, silent: Api.Bool?, muteUntil: Int32?, sound: String?) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .inputPeerNotifySettings(let flags, let showPreviews, let silent, let muteUntil, let sound): if boxed { @@ -16113,14 +16081,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .inputPeerNotifySettings(let flags, let showPreviews, let silent, let muteUntil, let sound): return ("inputPeerNotifySettings", [("flags", flags), ("showPreviews", showPreviews), ("silent", silent), ("muteUntil", muteUntil), ("sound", sound)]) } } - static func parse_inputPeerNotifySettings(_ reader: BufferReader) -> InputPeerNotifySettings? { + public static func parse_inputPeerNotifySettings(_ reader: BufferReader) -> InputPeerNotifySettings? { var _1: Int32? _1 = reader.readInt32() var _2: Api.Bool? @@ -16149,11 +16117,11 @@ extension Api { } } - enum ExportedChatInvite: TypeConstructorDescription { + public enum ExportedChatInvite: TypeConstructorDescription { case chatInviteEmpty case chatInviteExported(link: String) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .chatInviteEmpty: if boxed { @@ -16170,7 +16138,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .chatInviteEmpty: return ("chatInviteEmpty", []) @@ -16179,10 +16147,10 @@ extension Api { } } - static func parse_chatInviteEmpty(_ reader: BufferReader) -> ExportedChatInvite? { + public static func parse_chatInviteEmpty(_ reader: BufferReader) -> ExportedChatInvite? { return Api.ExportedChatInvite.chatInviteEmpty } - static func parse_chatInviteExported(_ reader: BufferReader) -> ExportedChatInvite? { + public static func parse_chatInviteExported(_ reader: BufferReader) -> ExportedChatInvite? { var _1: String? _1 = parseString(reader) let _c1 = _1 != nil @@ -16195,10 +16163,10 @@ extension Api { } } - enum Authorization: TypeConstructorDescription { + public enum Authorization: TypeConstructorDescription { case authorization(flags: Int32, hash: Int64, deviceModel: String, platform: String, systemVersion: String, apiId: Int32, appName: String, appVersion: String, dateCreated: Int32, dateActive: Int32, ip: String, country: String, region: String) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .authorization(let flags, let hash, let deviceModel, let platform, let systemVersion, let apiId, let appName, let appVersion, let dateCreated, let dateActive, let ip, let country, let region): if boxed { @@ -16221,14 +16189,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .authorization(let flags, let hash, let deviceModel, let platform, let systemVersion, let apiId, let appName, let appVersion, let dateCreated, let dateActive, let ip, let country, let region): return ("authorization", [("flags", flags), ("hash", hash), ("deviceModel", deviceModel), ("platform", platform), ("systemVersion", systemVersion), ("apiId", apiId), ("appName", appName), ("appVersion", appVersion), ("dateCreated", dateCreated), ("dateActive", dateActive), ("ip", ip), ("country", country), ("region", region)]) } } - static func parse_authorization(_ reader: BufferReader) -> Authorization? { + public static func parse_authorization(_ reader: BufferReader) -> Authorization? { var _1: Int32? _1 = reader.readInt32() var _2: Int64? @@ -16277,10 +16245,10 @@ extension Api { } } - enum MaskCoords: TypeConstructorDescription { + public enum MaskCoords: TypeConstructorDescription { case maskCoords(n: Int32, x: Double, y: Double, zoom: Double) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .maskCoords(let n, let x, let y, let zoom): if boxed { @@ -16294,14 +16262,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .maskCoords(let n, let x, let y, let zoom): return ("maskCoords", [("n", n), ("x", x), ("y", y), ("zoom", zoom)]) } } - static func parse_maskCoords(_ reader: BufferReader) -> MaskCoords? { + public static func parse_maskCoords(_ reader: BufferReader) -> MaskCoords? { var _1: Int32? _1 = reader.readInt32() var _2: Double? @@ -16323,10 +16291,10 @@ extension Api { } } - enum PhoneConnection: TypeConstructorDescription { + public enum PhoneConnection: TypeConstructorDescription { case phoneConnection(id: Int64, ip: String, ipv6: String, port: Int32, peerTag: Buffer) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .phoneConnection(let id, let ip, let ipv6, let port, let peerTag): if boxed { @@ -16341,14 +16309,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .phoneConnection(let id, let ip, let ipv6, let port, let peerTag): return ("phoneConnection", [("id", id), ("ip", ip), ("ipv6", ipv6), ("port", port), ("peerTag", peerTag)]) } } - static func parse_phoneConnection(_ reader: BufferReader) -> PhoneConnection? { + public static func parse_phoneConnection(_ reader: BufferReader) -> PhoneConnection? { var _1: Int64? _1 = reader.readInt64() var _2: String? @@ -16373,10 +16341,10 @@ extension Api { } } - enum AccountDaysTTL: TypeConstructorDescription { + public enum AccountDaysTTL: TypeConstructorDescription { case accountDaysTTL(days: Int32) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .accountDaysTTL(let days): if boxed { @@ -16387,14 +16355,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .accountDaysTTL(let days): return ("accountDaysTTL", [("days", days)]) } } - static func parse_accountDaysTTL(_ reader: BufferReader) -> AccountDaysTTL? { + public static func parse_accountDaysTTL(_ reader: BufferReader) -> AccountDaysTTL? { var _1: Int32? _1 = reader.readInt32() let _c1 = _1 != nil @@ -16407,7 +16375,7 @@ extension Api { } } - enum SecureValueType: TypeConstructorDescription { + public enum SecureValueType: TypeConstructorDescription { case secureValueTypePersonalDetails case secureValueTypePassport case secureValueTypeDriverLicense @@ -16422,7 +16390,7 @@ extension Api { case secureValueTypePhone case secureValueTypeEmail - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .secureValueTypePersonalDetails: if boxed { @@ -16505,7 +16473,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .secureValueTypePersonalDetails: return ("secureValueTypePersonalDetails", []) @@ -16536,52 +16504,52 @@ extension Api { } } - static func parse_secureValueTypePersonalDetails(_ reader: BufferReader) -> SecureValueType? { + public static func parse_secureValueTypePersonalDetails(_ reader: BufferReader) -> SecureValueType? { return Api.SecureValueType.secureValueTypePersonalDetails } - static func parse_secureValueTypePassport(_ reader: BufferReader) -> SecureValueType? { + public static func parse_secureValueTypePassport(_ reader: BufferReader) -> SecureValueType? { return Api.SecureValueType.secureValueTypePassport } - static func parse_secureValueTypeDriverLicense(_ reader: BufferReader) -> SecureValueType? { + public static func parse_secureValueTypeDriverLicense(_ reader: BufferReader) -> SecureValueType? { return Api.SecureValueType.secureValueTypeDriverLicense } - static func parse_secureValueTypeIdentityCard(_ reader: BufferReader) -> SecureValueType? { + public static func parse_secureValueTypeIdentityCard(_ reader: BufferReader) -> SecureValueType? { return Api.SecureValueType.secureValueTypeIdentityCard } - static func parse_secureValueTypeInternalPassport(_ reader: BufferReader) -> SecureValueType? { + public static func parse_secureValueTypeInternalPassport(_ reader: BufferReader) -> SecureValueType? { return Api.SecureValueType.secureValueTypeInternalPassport } - static func parse_secureValueTypeAddress(_ reader: BufferReader) -> SecureValueType? { + public static func parse_secureValueTypeAddress(_ reader: BufferReader) -> SecureValueType? { return Api.SecureValueType.secureValueTypeAddress } - static func parse_secureValueTypeUtilityBill(_ reader: BufferReader) -> SecureValueType? { + public static func parse_secureValueTypeUtilityBill(_ reader: BufferReader) -> SecureValueType? { return Api.SecureValueType.secureValueTypeUtilityBill } - static func parse_secureValueTypeBankStatement(_ reader: BufferReader) -> SecureValueType? { + public static func parse_secureValueTypeBankStatement(_ reader: BufferReader) -> SecureValueType? { return Api.SecureValueType.secureValueTypeBankStatement } - static func parse_secureValueTypeRentalAgreement(_ reader: BufferReader) -> SecureValueType? { + public static func parse_secureValueTypeRentalAgreement(_ reader: BufferReader) -> SecureValueType? { return Api.SecureValueType.secureValueTypeRentalAgreement } - static func parse_secureValueTypePassportRegistration(_ reader: BufferReader) -> SecureValueType? { + public static func parse_secureValueTypePassportRegistration(_ reader: BufferReader) -> SecureValueType? { return Api.SecureValueType.secureValueTypePassportRegistration } - static func parse_secureValueTypeTemporaryRegistration(_ reader: BufferReader) -> SecureValueType? { + public static func parse_secureValueTypeTemporaryRegistration(_ reader: BufferReader) -> SecureValueType? { return Api.SecureValueType.secureValueTypeTemporaryRegistration } - static func parse_secureValueTypePhone(_ reader: BufferReader) -> SecureValueType? { + public static func parse_secureValueTypePhone(_ reader: BufferReader) -> SecureValueType? { return Api.SecureValueType.secureValueTypePhone } - static func parse_secureValueTypeEmail(_ reader: BufferReader) -> SecureValueType? { + public static func parse_secureValueTypeEmail(_ reader: BufferReader) -> SecureValueType? { return Api.SecureValueType.secureValueTypeEmail } } - enum PasswordKdfAlgo: TypeConstructorDescription { + public enum PasswordKdfAlgo: TypeConstructorDescription { case passwordKdfAlgoUnknown case passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow(salt1: Buffer, salt2: Buffer, g: Int32, p: Buffer) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .passwordKdfAlgoUnknown: if boxed { @@ -16601,7 +16569,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .passwordKdfAlgoUnknown: return ("passwordKdfAlgoUnknown", []) @@ -16610,10 +16578,10 @@ extension Api { } } - static func parse_passwordKdfAlgoUnknown(_ reader: BufferReader) -> PasswordKdfAlgo? { + public static func parse_passwordKdfAlgoUnknown(_ reader: BufferReader) -> PasswordKdfAlgo? { return Api.PasswordKdfAlgo.passwordKdfAlgoUnknown } - static func parse_passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow(_ reader: BufferReader) -> PasswordKdfAlgo? { + public static func parse_passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow(_ reader: BufferReader) -> PasswordKdfAlgo? { var _1: Buffer? _1 = parseBytes(reader) var _2: Buffer? @@ -16635,13 +16603,13 @@ extension Api { } } - enum InputBotInlineResult: TypeConstructorDescription { + public enum InputBotInlineResult: TypeConstructorDescription { case inputBotInlineResultPhoto(id: String, type: String, photo: Api.InputPhoto, sendMessage: Api.InputBotInlineMessage) case inputBotInlineResultDocument(flags: Int32, id: String, type: String, title: String?, description: String?, document: Api.InputDocument, sendMessage: Api.InputBotInlineMessage) case inputBotInlineResultGame(id: String, shortName: String, sendMessage: Api.InputBotInlineMessage) case inputBotInlineResult(flags: Int32, id: String, type: String, title: String?, description: String?, url: String?, thumb: Api.InputWebDocument?, content: Api.InputWebDocument?, sendMessage: Api.InputBotInlineMessage) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .inputBotInlineResultPhoto(let id, let type, let photo, let sendMessage): if boxed { @@ -16689,7 +16657,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .inputBotInlineResultPhoto(let id, let type, let photo, let sendMessage): return ("inputBotInlineResultPhoto", [("id", id), ("type", type), ("photo", photo), ("sendMessage", sendMessage)]) @@ -16702,7 +16670,7 @@ extension Api { } } - static func parse_inputBotInlineResultPhoto(_ reader: BufferReader) -> InputBotInlineResult? { + public static func parse_inputBotInlineResultPhoto(_ reader: BufferReader) -> InputBotInlineResult? { var _1: String? _1 = parseString(reader) var _2: String? @@ -16726,7 +16694,7 @@ extension Api { return nil } } - static func parse_inputBotInlineResultDocument(_ reader: BufferReader) -> InputBotInlineResult? { + public static func parse_inputBotInlineResultDocument(_ reader: BufferReader) -> InputBotInlineResult? { var _1: Int32? _1 = reader.readInt32() var _2: String? @@ -16759,7 +16727,7 @@ extension Api { return nil } } - static func parse_inputBotInlineResultGame(_ reader: BufferReader) -> InputBotInlineResult? { + public static func parse_inputBotInlineResultGame(_ reader: BufferReader) -> InputBotInlineResult? { var _1: String? _1 = parseString(reader) var _2: String? @@ -16778,7 +16746,7 @@ extension Api { return nil } } - static func parse_inputBotInlineResult(_ reader: BufferReader) -> InputBotInlineResult? { + public static func parse_inputBotInlineResult(_ reader: BufferReader) -> InputBotInlineResult? { var _1: Int32? _1 = reader.readInt32() var _2: String? @@ -16821,7 +16789,7 @@ extension Api { } } - enum PrivacyRule: TypeConstructorDescription { + public enum PrivacyRule: TypeConstructorDescription { case privacyValueAllowContacts case privacyValueAllowAll case privacyValueAllowUsers(users: [Int32]) @@ -16831,7 +16799,7 @@ extension Api { case privacyValueAllowChatParticipants(chats: [Int32]) case privacyValueDisallowChatParticipants(chats: [Int32]) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .privacyValueAllowContacts: if boxed { @@ -16900,7 +16868,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .privacyValueAllowContacts: return ("privacyValueAllowContacts", []) @@ -16921,13 +16889,13 @@ extension Api { } } - static func parse_privacyValueAllowContacts(_ reader: BufferReader) -> PrivacyRule? { + public static func parse_privacyValueAllowContacts(_ reader: BufferReader) -> PrivacyRule? { return Api.PrivacyRule.privacyValueAllowContacts } - static func parse_privacyValueAllowAll(_ reader: BufferReader) -> PrivacyRule? { + public static func parse_privacyValueAllowAll(_ reader: BufferReader) -> PrivacyRule? { return Api.PrivacyRule.privacyValueAllowAll } - static func parse_privacyValueAllowUsers(_ reader: BufferReader) -> PrivacyRule? { + public static func parse_privacyValueAllowUsers(_ reader: BufferReader) -> PrivacyRule? { var _1: [Int32]? if let _ = reader.readInt32() { _1 = Api.parseVector(reader, elementSignature: -1471112230, elementType: Int32.self) @@ -16940,13 +16908,13 @@ extension Api { return nil } } - static func parse_privacyValueDisallowContacts(_ reader: BufferReader) -> PrivacyRule? { + public static func parse_privacyValueDisallowContacts(_ reader: BufferReader) -> PrivacyRule? { return Api.PrivacyRule.privacyValueDisallowContacts } - static func parse_privacyValueDisallowAll(_ reader: BufferReader) -> PrivacyRule? { + public static func parse_privacyValueDisallowAll(_ reader: BufferReader) -> PrivacyRule? { return Api.PrivacyRule.privacyValueDisallowAll } - static func parse_privacyValueDisallowUsers(_ reader: BufferReader) -> PrivacyRule? { + public static func parse_privacyValueDisallowUsers(_ reader: BufferReader) -> PrivacyRule? { var _1: [Int32]? if let _ = reader.readInt32() { _1 = Api.parseVector(reader, elementSignature: -1471112230, elementType: Int32.self) @@ -16959,7 +16927,7 @@ extension Api { return nil } } - static func parse_privacyValueAllowChatParticipants(_ reader: BufferReader) -> PrivacyRule? { + public static func parse_privacyValueAllowChatParticipants(_ reader: BufferReader) -> PrivacyRule? { var _1: [Int32]? if let _ = reader.readInt32() { _1 = Api.parseVector(reader, elementSignature: -1471112230, elementType: Int32.self) @@ -16972,7 +16940,7 @@ extension Api { return nil } } - static func parse_privacyValueDisallowChatParticipants(_ reader: BufferReader) -> PrivacyRule? { + public static func parse_privacyValueDisallowChatParticipants(_ reader: BufferReader) -> PrivacyRule? { var _1: [Int32]? if let _ = reader.readInt32() { _1 = Api.parseVector(reader, elementSignature: -1471112230, elementType: Int32.self) @@ -16987,7 +16955,7 @@ extension Api { } } - enum MessageAction: TypeConstructorDescription { + public enum MessageAction: TypeConstructorDescription { case messageActionEmpty case messageActionChatCreate(title: String, users: [Int32]) case messageActionChatEditTitle(title: String) @@ -17012,7 +16980,7 @@ extension Api { case messageActionSecureValuesSent(types: [Api.SecureValueType]) case messageActionContactSignUp - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .messageActionEmpty: if boxed { @@ -17185,7 +17153,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .messageActionEmpty: return ("messageActionEmpty", []) @@ -17236,10 +17204,10 @@ extension Api { } } - static func parse_messageActionEmpty(_ reader: BufferReader) -> MessageAction? { + public static func parse_messageActionEmpty(_ reader: BufferReader) -> MessageAction? { return Api.MessageAction.messageActionEmpty } - static func parse_messageActionChatCreate(_ reader: BufferReader) -> MessageAction? { + public static func parse_messageActionChatCreate(_ reader: BufferReader) -> MessageAction? { var _1: String? _1 = parseString(reader) var _2: [Int32]? @@ -17255,7 +17223,7 @@ extension Api { return nil } } - static func parse_messageActionChatEditTitle(_ reader: BufferReader) -> MessageAction? { + public static func parse_messageActionChatEditTitle(_ reader: BufferReader) -> MessageAction? { var _1: String? _1 = parseString(reader) let _c1 = _1 != nil @@ -17266,7 +17234,7 @@ extension Api { return nil } } - static func parse_messageActionChatEditPhoto(_ reader: BufferReader) -> MessageAction? { + public static func parse_messageActionChatEditPhoto(_ reader: BufferReader) -> MessageAction? { var _1: Api.Photo? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.Photo @@ -17279,10 +17247,10 @@ extension Api { return nil } } - static func parse_messageActionChatDeletePhoto(_ reader: BufferReader) -> MessageAction? { + public static func parse_messageActionChatDeletePhoto(_ reader: BufferReader) -> MessageAction? { return Api.MessageAction.messageActionChatDeletePhoto } - static func parse_messageActionChatAddUser(_ reader: BufferReader) -> MessageAction? { + public static func parse_messageActionChatAddUser(_ reader: BufferReader) -> MessageAction? { var _1: [Int32]? if let _ = reader.readInt32() { _1 = Api.parseVector(reader, elementSignature: -1471112230, elementType: Int32.self) @@ -17295,7 +17263,7 @@ extension Api { return nil } } - static func parse_messageActionChatDeleteUser(_ reader: BufferReader) -> MessageAction? { + public static func parse_messageActionChatDeleteUser(_ reader: BufferReader) -> MessageAction? { var _1: Int32? _1 = reader.readInt32() let _c1 = _1 != nil @@ -17306,7 +17274,7 @@ extension Api { return nil } } - static func parse_messageActionChatJoinedByLink(_ reader: BufferReader) -> MessageAction? { + public static func parse_messageActionChatJoinedByLink(_ reader: BufferReader) -> MessageAction? { var _1: Int32? _1 = reader.readInt32() let _c1 = _1 != nil @@ -17317,7 +17285,7 @@ extension Api { return nil } } - static func parse_messageActionChannelCreate(_ reader: BufferReader) -> MessageAction? { + public static func parse_messageActionChannelCreate(_ reader: BufferReader) -> MessageAction? { var _1: String? _1 = parseString(reader) let _c1 = _1 != nil @@ -17328,7 +17296,7 @@ extension Api { return nil } } - static func parse_messageActionChatMigrateTo(_ reader: BufferReader) -> MessageAction? { + public static func parse_messageActionChatMigrateTo(_ reader: BufferReader) -> MessageAction? { var _1: Int32? _1 = reader.readInt32() let _c1 = _1 != nil @@ -17339,7 +17307,7 @@ extension Api { return nil } } - static func parse_messageActionChannelMigrateFrom(_ reader: BufferReader) -> MessageAction? { + public static func parse_messageActionChannelMigrateFrom(_ reader: BufferReader) -> MessageAction? { var _1: String? _1 = parseString(reader) var _2: Int32? @@ -17353,13 +17321,13 @@ extension Api { return nil } } - static func parse_messageActionPinMessage(_ reader: BufferReader) -> MessageAction? { + public static func parse_messageActionPinMessage(_ reader: BufferReader) -> MessageAction? { return Api.MessageAction.messageActionPinMessage } - static func parse_messageActionHistoryClear(_ reader: BufferReader) -> MessageAction? { + public static func parse_messageActionHistoryClear(_ reader: BufferReader) -> MessageAction? { return Api.MessageAction.messageActionHistoryClear } - static func parse_messageActionGameScore(_ reader: BufferReader) -> MessageAction? { + public static func parse_messageActionGameScore(_ reader: BufferReader) -> MessageAction? { var _1: Int64? _1 = reader.readInt64() var _2: Int32? @@ -17373,7 +17341,7 @@ extension Api { return nil } } - static func parse_messageActionPaymentSentMe(_ reader: BufferReader) -> MessageAction? { + public static func parse_messageActionPaymentSentMe(_ reader: BufferReader) -> MessageAction? { var _1: Int32? _1 = reader.readInt32() var _2: String? @@ -17406,7 +17374,7 @@ extension Api { return nil } } - static func parse_messageActionPaymentSent(_ reader: BufferReader) -> MessageAction? { + public static func parse_messageActionPaymentSent(_ reader: BufferReader) -> MessageAction? { var _1: String? _1 = parseString(reader) var _2: Int64? @@ -17420,7 +17388,7 @@ extension Api { return nil } } - static func parse_messageActionPhoneCall(_ reader: BufferReader) -> MessageAction? { + public static func parse_messageActionPhoneCall(_ reader: BufferReader) -> MessageAction? { var _1: Int32? _1 = reader.readInt32() var _2: Int64? @@ -17442,10 +17410,10 @@ extension Api { return nil } } - static func parse_messageActionScreenshotTaken(_ reader: BufferReader) -> MessageAction? { + public static func parse_messageActionScreenshotTaken(_ reader: BufferReader) -> MessageAction? { return Api.MessageAction.messageActionScreenshotTaken } - static func parse_messageActionCustomAction(_ reader: BufferReader) -> MessageAction? { + public static func parse_messageActionCustomAction(_ reader: BufferReader) -> MessageAction? { var _1: String? _1 = parseString(reader) let _c1 = _1 != nil @@ -17456,7 +17424,7 @@ extension Api { return nil } } - static func parse_messageActionBotAllowed(_ reader: BufferReader) -> MessageAction? { + public static func parse_messageActionBotAllowed(_ reader: BufferReader) -> MessageAction? { var _1: String? _1 = parseString(reader) let _c1 = _1 != nil @@ -17467,7 +17435,7 @@ extension Api { return nil } } - static func parse_messageActionSecureValuesSentMe(_ reader: BufferReader) -> MessageAction? { + public static func parse_messageActionSecureValuesSentMe(_ reader: BufferReader) -> MessageAction? { var _1: [Api.SecureValue]? if let _ = reader.readInt32() { _1 = Api.parseVector(reader, elementSignature: 0, elementType: Api.SecureValue.self) @@ -17485,7 +17453,7 @@ extension Api { return nil } } - static func parse_messageActionSecureValuesSent(_ reader: BufferReader) -> MessageAction? { + public static func parse_messageActionSecureValuesSent(_ reader: BufferReader) -> MessageAction? { var _1: [Api.SecureValueType]? if let _ = reader.readInt32() { _1 = Api.parseVector(reader, elementSignature: 0, elementType: Api.SecureValueType.self) @@ -17498,12 +17466,12 @@ extension Api { return nil } } - static func parse_messageActionContactSignUp(_ reader: BufferReader) -> MessageAction? { + public static func parse_messageActionContactSignUp(_ reader: BufferReader) -> MessageAction? { return Api.MessageAction.messageActionContactSignUp } } - enum PhoneCall: TypeConstructorDescription { + public enum PhoneCall: TypeConstructorDescription { case phoneCallEmpty(id: Int64) case phoneCallWaiting(flags: Int32, id: Int64, accessHash: Int64, date: Int32, adminId: Int32, participantId: Int32, protocol: Api.PhoneCallProtocol, receiveDate: Int32?) case phoneCallRequested(flags: Int32, id: Int64, accessHash: Int64, date: Int32, adminId: Int32, participantId: Int32, gAHash: Buffer, protocol: Api.PhoneCallProtocol) @@ -17511,7 +17479,7 @@ extension Api { case phoneCall(flags: Int32, id: Int64, accessHash: Int64, date: Int32, adminId: Int32, participantId: Int32, gAOrB: Buffer, keyFingerprint: Int64, protocol: Api.PhoneCallProtocol, connections: [Api.PhoneConnection], startDate: Int32) case phoneCallDiscarded(flags: Int32, id: Int64, reason: Api.PhoneCallDiscardReason?, duration: Int32?) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .phoneCallEmpty(let id): if boxed { @@ -17590,7 +17558,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .phoneCallEmpty(let id): return ("phoneCallEmpty", [("id", id)]) @@ -17607,7 +17575,7 @@ extension Api { } } - static func parse_phoneCallEmpty(_ reader: BufferReader) -> PhoneCall? { + public static func parse_phoneCallEmpty(_ reader: BufferReader) -> PhoneCall? { var _1: Int64? _1 = reader.readInt64() let _c1 = _1 != nil @@ -17618,7 +17586,7 @@ extension Api { return nil } } - static func parse_phoneCallWaiting(_ reader: BufferReader) -> PhoneCall? { + public static func parse_phoneCallWaiting(_ reader: BufferReader) -> PhoneCall? { var _1: Int32? _1 = reader.readInt32() var _2: Int64? @@ -17652,7 +17620,7 @@ extension Api { return nil } } - static func parse_phoneCallRequested(_ reader: BufferReader) -> PhoneCall? { + public static func parse_phoneCallRequested(_ reader: BufferReader) -> PhoneCall? { var _1: Int32? _1 = reader.readInt32() var _2: Int64? @@ -17686,7 +17654,7 @@ extension Api { return nil } } - static func parse_phoneCallAccepted(_ reader: BufferReader) -> PhoneCall? { + public static func parse_phoneCallAccepted(_ reader: BufferReader) -> PhoneCall? { var _1: Int32? _1 = reader.readInt32() var _2: Int64? @@ -17720,7 +17688,7 @@ extension Api { return nil } } - static func parse_phoneCall(_ reader: BufferReader) -> PhoneCall? { + public static func parse_phoneCall(_ reader: BufferReader) -> PhoneCall? { var _1: Int32? _1 = reader.readInt32() var _2: Int64? @@ -17765,7 +17733,7 @@ extension Api { return nil } } - static func parse_phoneCallDiscarded(_ reader: BufferReader) -> PhoneCall? { + public static func parse_phoneCallDiscarded(_ reader: BufferReader) -> PhoneCall? { var _1: Int32? _1 = reader.readInt32() var _2: Int64? @@ -17789,11 +17757,11 @@ extension Api { } } - enum DialogPeer: TypeConstructorDescription { + public enum DialogPeer: TypeConstructorDescription { case dialogPeer(peer: Api.Peer) case dialogPeerFolder(folderId: Int32) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .dialogPeer(let peer): if boxed { @@ -17810,7 +17778,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .dialogPeer(let peer): return ("dialogPeer", [("peer", peer)]) @@ -17819,7 +17787,7 @@ extension Api { } } - static func parse_dialogPeer(_ reader: BufferReader) -> DialogPeer? { + public static func parse_dialogPeer(_ reader: BufferReader) -> DialogPeer? { var _1: Api.Peer? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.Peer @@ -17832,7 +17800,7 @@ extension Api { return nil } } - static func parse_dialogPeerFolder(_ reader: BufferReader) -> DialogPeer? { + public static func parse_dialogPeerFolder(_ reader: BufferReader) -> DialogPeer? { var _1: Int32? _1 = reader.readInt32() let _c1 = _1 != nil @@ -17845,61 +17813,11 @@ extension Api { } } - enum ContactLink: TypeConstructorDescription { - case contactLinkUnknown - case contactLinkNone - case contactLinkContact - - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { - switch self { - case .contactLinkUnknown: - if boxed { - buffer.appendInt32(1599050311) - } - - break - case .contactLinkNone: - if boxed { - buffer.appendInt32(-17968211) - } - - break - case .contactLinkContact: - if boxed { - buffer.appendInt32(-721239344) - } - - break - } - } - - func descriptionFields() -> (String, [(String, Any)]) { - switch self { - case .contactLinkUnknown: - return ("contactLinkUnknown", []) - case .contactLinkNone: - return ("contactLinkNone", []) - case .contactLinkContact: - return ("contactLinkContact", []) - } - } - - static func parse_contactLinkUnknown(_ reader: BufferReader) -> ContactLink? { - return Api.ContactLink.contactLinkUnknown - } - static func parse_contactLinkNone(_ reader: BufferReader) -> ContactLink? { - return Api.ContactLink.contactLinkNone - } - static func parse_contactLinkContact(_ reader: BufferReader) -> ContactLink? { - return Api.ContactLink.contactLinkContact - } - - } - enum WebDocument: TypeConstructorDescription { + public enum WebDocument: TypeConstructorDescription { case webDocumentNoProxy(url: String, size: Int32, mimeType: String, attributes: [Api.DocumentAttribute]) case webDocument(url: String, accessHash: Int64, size: Int32, mimeType: String, attributes: [Api.DocumentAttribute]) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .webDocumentNoProxy(let url, let size, let mimeType, let attributes): if boxed { @@ -17931,7 +17849,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .webDocumentNoProxy(let url, let size, let mimeType, let attributes): return ("webDocumentNoProxy", [("url", url), ("size", size), ("mimeType", mimeType), ("attributes", attributes)]) @@ -17940,7 +17858,7 @@ extension Api { } } - static func parse_webDocumentNoProxy(_ reader: BufferReader) -> WebDocument? { + public static func parse_webDocumentNoProxy(_ reader: BufferReader) -> WebDocument? { var _1: String? _1 = parseString(reader) var _2: Int32? @@ -17962,7 +17880,7 @@ extension Api { return nil } } - static func parse_webDocument(_ reader: BufferReader) -> WebDocument? { + public static func parse_webDocument(_ reader: BufferReader) -> WebDocument? { var _1: String? _1 = parseString(reader) var _2: Int64? @@ -17989,10 +17907,10 @@ extension Api { } } - enum ChannelAdminLogEventsFilter: TypeConstructorDescription { + public enum ChannelAdminLogEventsFilter: TypeConstructorDescription { case channelAdminLogEventsFilter(flags: Int32) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .channelAdminLogEventsFilter(let flags): if boxed { @@ -18003,14 +17921,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .channelAdminLogEventsFilter(let flags): return ("channelAdminLogEventsFilter", [("flags", flags)]) } } - static func parse_channelAdminLogEventsFilter(_ reader: BufferReader) -> ChannelAdminLogEventsFilter? { + public static func parse_channelAdminLogEventsFilter(_ reader: BufferReader) -> ChannelAdminLogEventsFilter? { var _1: Int32? _1 = reader.readInt32() let _c1 = _1 != nil @@ -18023,11 +17941,11 @@ extension Api { } } - enum PeerNotifySettings: TypeConstructorDescription { + public enum PeerNotifySettings: TypeConstructorDescription { case peerNotifySettingsEmpty case peerNotifySettings(flags: Int32, showPreviews: Api.Bool?, silent: Api.Bool?, muteUntil: Int32?, sound: String?) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .peerNotifySettingsEmpty: if boxed { @@ -18048,7 +17966,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .peerNotifySettingsEmpty: return ("peerNotifySettingsEmpty", []) @@ -18057,10 +17975,10 @@ extension Api { } } - static func parse_peerNotifySettingsEmpty(_ reader: BufferReader) -> PeerNotifySettings? { + public static func parse_peerNotifySettingsEmpty(_ reader: BufferReader) -> PeerNotifySettings? { return Api.PeerNotifySettings.peerNotifySettingsEmpty } - static func parse_peerNotifySettings(_ reader: BufferReader) -> PeerNotifySettings? { + public static func parse_peerNotifySettings(_ reader: BufferReader) -> PeerNotifySettings? { var _1: Int32? _1 = reader.readInt32() var _2: Api.Bool? @@ -18089,10 +18007,10 @@ extension Api { } } - enum InputBotInlineMessageID: TypeConstructorDescription { + public enum InputBotInlineMessageID: TypeConstructorDescription { case inputBotInlineMessageID(dcId: Int32, id: Int64, accessHash: Int64) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .inputBotInlineMessageID(let dcId, let id, let accessHash): if boxed { @@ -18105,14 +18023,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .inputBotInlineMessageID(let dcId, let id, let accessHash): return ("inputBotInlineMessageID", [("dcId", dcId), ("id", id), ("accessHash", accessHash)]) } } - static func parse_inputBotInlineMessageID(_ reader: BufferReader) -> InputBotInlineMessageID? { + public static func parse_inputBotInlineMessageID(_ reader: BufferReader) -> InputBotInlineMessageID? { var _1: Int32? _1 = reader.readInt32() var _2: Int64? @@ -18131,10 +18049,10 @@ extension Api { } } - enum PageRelatedArticle: TypeConstructorDescription { + public enum PageRelatedArticle: TypeConstructorDescription { case pageRelatedArticle(flags: Int32, url: String, webpageId: Int64, title: String?, description: String?, photoId: Int64?, author: String?, publishedDate: Int32?) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .pageRelatedArticle(let flags, let url, let webpageId, let title, let description, let photoId, let author, let publishedDate): if boxed { @@ -18152,14 +18070,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .pageRelatedArticle(let flags, let url, let webpageId, let title, let description, let photoId, let author, let publishedDate): return ("pageRelatedArticle", [("flags", flags), ("url", url), ("webpageId", webpageId), ("title", title), ("description", description), ("photoId", photoId), ("author", author), ("publishedDate", publishedDate)]) } } - static func parse_pageRelatedArticle(_ reader: BufferReader) -> PageRelatedArticle? { + public static func parse_pageRelatedArticle(_ reader: BufferReader) -> PageRelatedArticle? { var _1: Int32? _1 = reader.readInt32() var _2: String? @@ -18193,10 +18111,10 @@ extension Api { } } - enum StickerPack: TypeConstructorDescription { + public enum StickerPack: TypeConstructorDescription { case stickerPack(emoticon: String, documents: [Int64]) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .stickerPack(let emoticon, let documents): if boxed { @@ -18212,14 +18130,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .stickerPack(let emoticon, let documents): return ("stickerPack", [("emoticon", emoticon), ("documents", documents)]) } } - static func parse_stickerPack(_ reader: BufferReader) -> StickerPack? { + public static func parse_stickerPack(_ reader: BufferReader) -> StickerPack? { var _1: String? _1 = parseString(reader) var _2: [Int64]? @@ -18237,11 +18155,11 @@ extension Api { } } - enum UserProfilePhoto: TypeConstructorDescription { + public enum UserProfilePhoto: TypeConstructorDescription { case userProfilePhotoEmpty case userProfilePhoto(photoId: Int64, photoSmall: Api.FileLocation, photoBig: Api.FileLocation, dcId: Int32) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .userProfilePhotoEmpty: if boxed { @@ -18261,7 +18179,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .userProfilePhotoEmpty: return ("userProfilePhotoEmpty", []) @@ -18270,10 +18188,10 @@ extension Api { } } - static func parse_userProfilePhotoEmpty(_ reader: BufferReader) -> UserProfilePhoto? { + public static func parse_userProfilePhotoEmpty(_ reader: BufferReader) -> UserProfilePhoto? { return Api.UserProfilePhoto.userProfilePhotoEmpty } - static func parse_userProfilePhoto(_ reader: BufferReader) -> UserProfilePhoto? { + public static func parse_userProfilePhoto(_ reader: BufferReader) -> UserProfilePhoto? { var _1: Int64? _1 = reader.readInt64() var _2: Api.FileLocation? @@ -18299,10 +18217,10 @@ extension Api { } } - enum ChatOnlines: TypeConstructorDescription { + public enum ChatOnlines: TypeConstructorDescription { case chatOnlines(onlines: Int32) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .chatOnlines(let onlines): if boxed { @@ -18313,14 +18231,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .chatOnlines(let onlines): return ("chatOnlines", [("onlines", onlines)]) } } - static func parse_chatOnlines(_ reader: BufferReader) -> ChatOnlines? { + public static func parse_chatOnlines(_ reader: BufferReader) -> ChatOnlines? { var _1: Int32? _1 = reader.readInt32() let _c1 = _1 != nil @@ -18333,10 +18251,10 @@ extension Api { } } - enum InputAppEvent: TypeConstructorDescription { + public enum InputAppEvent: TypeConstructorDescription { case inputAppEvent(time: Double, type: String, peer: Int64, data: Api.JSONValue) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .inputAppEvent(let time, let type, let peer, let data): if boxed { @@ -18350,14 +18268,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .inputAppEvent(let time, let type, let peer, let data): return ("inputAppEvent", [("time", time), ("type", type), ("peer", peer), ("data", data)]) } } - static func parse_inputAppEvent(_ reader: BufferReader) -> InputAppEvent? { + public static func parse_inputAppEvent(_ reader: BufferReader) -> InputAppEvent? { var _1: Double? _1 = reader.readDouble() var _2: String? @@ -18381,7 +18299,7 @@ extension Api { } } - enum MessageEntity: TypeConstructorDescription { + public enum MessageEntity: TypeConstructorDescription { case messageEntityUnknown(offset: Int32, length: Int32) case messageEntityMention(offset: Int32, length: Int32) case messageEntityHashtag(offset: Int32, length: Int32) @@ -18401,7 +18319,7 @@ extension Api { case messageEntityStrike(offset: Int32, length: Int32) case messageEntityBlockquote(offset: Int32, length: Int32) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .messageEntityUnknown(let offset, let length): if boxed { @@ -18536,7 +18454,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .messageEntityUnknown(let offset, let length): return ("messageEntityUnknown", [("offset", offset), ("length", length)]) @@ -18577,7 +18495,7 @@ extension Api { } } - static func parse_messageEntityUnknown(_ reader: BufferReader) -> MessageEntity? { + public static func parse_messageEntityUnknown(_ reader: BufferReader) -> MessageEntity? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -18591,7 +18509,7 @@ extension Api { return nil } } - static func parse_messageEntityMention(_ reader: BufferReader) -> MessageEntity? { + public static func parse_messageEntityMention(_ reader: BufferReader) -> MessageEntity? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -18605,7 +18523,7 @@ extension Api { return nil } } - static func parse_messageEntityHashtag(_ reader: BufferReader) -> MessageEntity? { + public static func parse_messageEntityHashtag(_ reader: BufferReader) -> MessageEntity? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -18619,7 +18537,7 @@ extension Api { return nil } } - static func parse_messageEntityBotCommand(_ reader: BufferReader) -> MessageEntity? { + public static func parse_messageEntityBotCommand(_ reader: BufferReader) -> MessageEntity? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -18633,7 +18551,7 @@ extension Api { return nil } } - static func parse_messageEntityUrl(_ reader: BufferReader) -> MessageEntity? { + public static func parse_messageEntityUrl(_ reader: BufferReader) -> MessageEntity? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -18647,7 +18565,7 @@ extension Api { return nil } } - static func parse_messageEntityEmail(_ reader: BufferReader) -> MessageEntity? { + public static func parse_messageEntityEmail(_ reader: BufferReader) -> MessageEntity? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -18661,7 +18579,7 @@ extension Api { return nil } } - static func parse_messageEntityBold(_ reader: BufferReader) -> MessageEntity? { + public static func parse_messageEntityBold(_ reader: BufferReader) -> MessageEntity? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -18675,7 +18593,7 @@ extension Api { return nil } } - static func parse_messageEntityItalic(_ reader: BufferReader) -> MessageEntity? { + public static func parse_messageEntityItalic(_ reader: BufferReader) -> MessageEntity? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -18689,7 +18607,7 @@ extension Api { return nil } } - static func parse_messageEntityCode(_ reader: BufferReader) -> MessageEntity? { + public static func parse_messageEntityCode(_ reader: BufferReader) -> MessageEntity? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -18703,7 +18621,7 @@ extension Api { return nil } } - static func parse_messageEntityPre(_ reader: BufferReader) -> MessageEntity? { + public static func parse_messageEntityPre(_ reader: BufferReader) -> MessageEntity? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -18720,7 +18638,7 @@ extension Api { return nil } } - static func parse_messageEntityTextUrl(_ reader: BufferReader) -> MessageEntity? { + public static func parse_messageEntityTextUrl(_ reader: BufferReader) -> MessageEntity? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -18737,7 +18655,7 @@ extension Api { return nil } } - static func parse_messageEntityMentionName(_ reader: BufferReader) -> MessageEntity? { + public static func parse_messageEntityMentionName(_ reader: BufferReader) -> MessageEntity? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -18754,7 +18672,7 @@ extension Api { return nil } } - static func parse_inputMessageEntityMentionName(_ reader: BufferReader) -> MessageEntity? { + public static func parse_inputMessageEntityMentionName(_ reader: BufferReader) -> MessageEntity? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -18773,7 +18691,7 @@ extension Api { return nil } } - static func parse_messageEntityPhone(_ reader: BufferReader) -> MessageEntity? { + public static func parse_messageEntityPhone(_ reader: BufferReader) -> MessageEntity? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -18787,7 +18705,7 @@ extension Api { return nil } } - static func parse_messageEntityCashtag(_ reader: BufferReader) -> MessageEntity? { + public static func parse_messageEntityCashtag(_ reader: BufferReader) -> MessageEntity? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -18801,7 +18719,7 @@ extension Api { return nil } } - static func parse_messageEntityUnderline(_ reader: BufferReader) -> MessageEntity? { + public static func parse_messageEntityUnderline(_ reader: BufferReader) -> MessageEntity? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -18815,7 +18733,7 @@ extension Api { return nil } } - static func parse_messageEntityStrike(_ reader: BufferReader) -> MessageEntity? { + public static func parse_messageEntityStrike(_ reader: BufferReader) -> MessageEntity? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -18829,7 +18747,7 @@ extension Api { return nil } } - static func parse_messageEntityBlockquote(_ reader: BufferReader) -> MessageEntity? { + public static func parse_messageEntityBlockquote(_ reader: BufferReader) -> MessageEntity? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -18845,11 +18763,11 @@ extension Api { } } - enum InputPhoto: TypeConstructorDescription { + public enum InputPhoto: TypeConstructorDescription { case inputPhotoEmpty case inputPhoto(id: Int64, accessHash: Int64, fileReference: Buffer) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .inputPhotoEmpty: if boxed { @@ -18868,7 +18786,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .inputPhotoEmpty: return ("inputPhotoEmpty", []) @@ -18877,10 +18795,10 @@ extension Api { } } - static func parse_inputPhotoEmpty(_ reader: BufferReader) -> InputPhoto? { + public static func parse_inputPhotoEmpty(_ reader: BufferReader) -> InputPhoto? { return Api.InputPhoto.inputPhotoEmpty } - static func parse_inputPhoto(_ reader: BufferReader) -> InputPhoto? { + public static func parse_inputPhoto(_ reader: BufferReader) -> InputPhoto? { var _1: Int64? _1 = reader.readInt64() var _2: Int64? @@ -18899,11 +18817,11 @@ extension Api { } } - enum PageListOrderedItem: TypeConstructorDescription { + public enum PageListOrderedItem: TypeConstructorDescription { case pageListOrderedItemText(num: String, text: Api.RichText) case pageListOrderedItemBlocks(num: String, blocks: [Api.PageBlock]) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .pageListOrderedItemText(let num, let text): if boxed { @@ -18926,7 +18844,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .pageListOrderedItemText(let num, let text): return ("pageListOrderedItemText", [("num", num), ("text", text)]) @@ -18935,7 +18853,7 @@ extension Api { } } - static func parse_pageListOrderedItemText(_ reader: BufferReader) -> PageListOrderedItem? { + public static func parse_pageListOrderedItemText(_ reader: BufferReader) -> PageListOrderedItem? { var _1: String? _1 = parseString(reader) var _2: Api.RichText? @@ -18951,7 +18869,7 @@ extension Api { return nil } } - static func parse_pageListOrderedItemBlocks(_ reader: BufferReader) -> PageListOrderedItem? { + public static func parse_pageListOrderedItemBlocks(_ reader: BufferReader) -> PageListOrderedItem? { var _1: String? _1 = parseString(reader) var _2: [Api.PageBlock]? @@ -18969,14 +18887,14 @@ extension Api { } } - enum EncryptedChat: TypeConstructorDescription { + public enum EncryptedChat: TypeConstructorDescription { case encryptedChatEmpty(id: Int32) case encryptedChatWaiting(id: Int32, accessHash: Int64, date: Int32, adminId: Int32, participantId: Int32) case encryptedChatRequested(id: Int32, accessHash: Int64, date: Int32, adminId: Int32, participantId: Int32, gA: Buffer) case encryptedChat(id: Int32, accessHash: Int64, date: Int32, adminId: Int32, participantId: Int32, gAOrB: Buffer, keyFingerprint: Int64) case encryptedChatDiscarded(id: Int32) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .encryptedChatEmpty(let id): if boxed { @@ -19026,7 +18944,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .encryptedChatEmpty(let id): return ("encryptedChatEmpty", [("id", id)]) @@ -19041,7 +18959,7 @@ extension Api { } } - static func parse_encryptedChatEmpty(_ reader: BufferReader) -> EncryptedChat? { + public static func parse_encryptedChatEmpty(_ reader: BufferReader) -> EncryptedChat? { var _1: Int32? _1 = reader.readInt32() let _c1 = _1 != nil @@ -19052,7 +18970,7 @@ extension Api { return nil } } - static func parse_encryptedChatWaiting(_ reader: BufferReader) -> EncryptedChat? { + public static func parse_encryptedChatWaiting(_ reader: BufferReader) -> EncryptedChat? { var _1: Int32? _1 = reader.readInt32() var _2: Int64? @@ -19075,7 +18993,7 @@ extension Api { return nil } } - static func parse_encryptedChatRequested(_ reader: BufferReader) -> EncryptedChat? { + public static func parse_encryptedChatRequested(_ reader: BufferReader) -> EncryptedChat? { var _1: Int32? _1 = reader.readInt32() var _2: Int64? @@ -19101,7 +19019,7 @@ extension Api { return nil } } - static func parse_encryptedChat(_ reader: BufferReader) -> EncryptedChat? { + public static func parse_encryptedChat(_ reader: BufferReader) -> EncryptedChat? { var _1: Int32? _1 = reader.readInt32() var _2: Int64? @@ -19130,7 +19048,7 @@ extension Api { return nil } } - static func parse_encryptedChatDiscarded(_ reader: BufferReader) -> EncryptedChat? { + public static func parse_encryptedChatDiscarded(_ reader: BufferReader) -> EncryptedChat? { var _1: Int32? _1 = reader.readInt32() let _c1 = _1 != nil @@ -19143,10 +19061,10 @@ extension Api { } } - enum PeerLocated: TypeConstructorDescription { + public enum PeerLocated: TypeConstructorDescription { case peerLocated(peer: Api.Peer, expires: Int32, distance: Int32) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .peerLocated(let peer, let expires, let distance): if boxed { @@ -19159,14 +19077,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .peerLocated(let peer, let expires, let distance): return ("peerLocated", [("peer", peer), ("expires", expires), ("distance", distance)]) } } - static func parse_peerLocated(_ reader: BufferReader) -> PeerLocated? { + public static func parse_peerLocated(_ reader: BufferReader) -> PeerLocated? { var _1: Api.Peer? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.Peer @@ -19187,11 +19105,11 @@ extension Api { } } - enum Document: TypeConstructorDescription { + public enum Document: TypeConstructorDescription { case documentEmpty(id: Int64) case document(flags: Int32, id: Int64, accessHash: Int64, fileReference: Buffer, date: Int32, mimeType: String, size: Int32, thumbs: [Api.PhotoSize]?, dcId: Int32, attributes: [Api.DocumentAttribute]) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .documentEmpty(let id): if boxed { @@ -19225,7 +19143,7 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .documentEmpty(let id): return ("documentEmpty", [("id", id)]) @@ -19234,7 +19152,7 @@ extension Api { } } - static func parse_documentEmpty(_ reader: BufferReader) -> Document? { + public static func parse_documentEmpty(_ reader: BufferReader) -> Document? { var _1: Int64? _1 = reader.readInt64() let _c1 = _1 != nil @@ -19245,7 +19163,7 @@ extension Api { return nil } } - static func parse_document(_ reader: BufferReader) -> Document? { + public static func parse_document(_ reader: BufferReader) -> Document? { var _1: Int32? _1 = reader.readInt32() var _2: Int64? @@ -19289,10 +19207,10 @@ extension Api { } } - enum WebAuthorization: TypeConstructorDescription { + public enum WebAuthorization: TypeConstructorDescription { case webAuthorization(hash: Int64, botId: Int32, domain: String, browser: String, platform: String, dateCreated: Int32, dateActive: Int32, ip: String, region: String) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .webAuthorization(let hash, let botId, let domain, let browser, let platform, let dateCreated, let dateActive, let ip, let region): if boxed { @@ -19311,14 +19229,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .webAuthorization(let hash, let botId, let domain, let browser, let platform, let dateCreated, let dateActive, let ip, let region): return ("webAuthorization", [("hash", hash), ("botId", botId), ("domain", domain), ("browser", browser), ("platform", platform), ("dateCreated", dateCreated), ("dateActive", dateActive), ("ip", ip), ("region", region)]) } } - static func parse_webAuthorization(_ reader: BufferReader) -> WebAuthorization? { + public static func parse_webAuthorization(_ reader: BufferReader) -> WebAuthorization? { var _1: Int64? _1 = reader.readInt64() var _2: Int32? @@ -19355,10 +19273,10 @@ extension Api { } } - enum ImportedContact: TypeConstructorDescription { + public enum ImportedContact: TypeConstructorDescription { case importedContact(userId: Int32, clientId: Int64) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .importedContact(let userId, let clientId): if boxed { @@ -19370,14 +19288,14 @@ extension Api { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .importedContact(let userId, let clientId): return ("importedContact", [("userId", userId), ("clientId", clientId)]) } } - static func parse_importedContact(_ reader: BufferReader) -> ImportedContact? { + public static func parse_importedContact(_ reader: BufferReader) -> ImportedContact? { var _1: Int32? _1 = reader.readInt32() var _2: Int64? diff --git a/submodules/TelegramApi/Sources/Api2.swift b/submodules/TelegramApi/Sources/Api2.swift index 59661bace0..38caa256b2 100644 --- a/submodules/TelegramApi/Sources/Api2.swift +++ b/submodules/TelegramApi/Sources/Api2.swift @@ -1,10 +1,10 @@ -extension Api { -struct channels { - enum ChannelParticipants: TypeConstructorDescription { +public extension Api { +public struct channels { + public enum ChannelParticipants: TypeConstructorDescription { case channelParticipants(count: Int32, participants: [Api.ChannelParticipant], users: [Api.User]) case channelParticipantsNotModified - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .channelParticipants(let count, let participants, let users): if boxed { @@ -31,7 +31,7 @@ struct channels { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .channelParticipants(let count, let participants, let users): return ("channelParticipants", [("count", count), ("participants", participants), ("users", users)]) @@ -40,7 +40,7 @@ struct channels { } } - static func parse_channelParticipants(_ reader: BufferReader) -> ChannelParticipants? { + public static func parse_channelParticipants(_ reader: BufferReader) -> ChannelParticipants? { var _1: Int32? _1 = reader.readInt32() var _2: [Api.ChannelParticipant]? @@ -61,15 +61,15 @@ struct channels { return nil } } - static func parse_channelParticipantsNotModified(_ reader: BufferReader) -> ChannelParticipants? { + public static func parse_channelParticipantsNotModified(_ reader: BufferReader) -> ChannelParticipants? { return Api.channels.ChannelParticipants.channelParticipantsNotModified } } - enum ChannelParticipant: TypeConstructorDescription { + public enum ChannelParticipant: TypeConstructorDescription { case channelParticipant(participant: Api.ChannelParticipant, users: [Api.User]) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .channelParticipant(let participant, let users): if boxed { @@ -85,14 +85,14 @@ struct channels { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .channelParticipant(let participant, let users): return ("channelParticipant", [("participant", participant), ("users", users)]) } } - static func parse_channelParticipant(_ reader: BufferReader) -> ChannelParticipant? { + public static func parse_channelParticipant(_ reader: BufferReader) -> ChannelParticipant? { var _1: Api.ChannelParticipant? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.ChannelParticipant @@ -112,10 +112,10 @@ struct channels { } } - enum AdminLogResults: TypeConstructorDescription { + public enum AdminLogResults: TypeConstructorDescription { case adminLogResults(events: [Api.ChannelAdminLogEvent], chats: [Api.Chat], users: [Api.User]) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .adminLogResults(let events, let chats, let users): if boxed { @@ -140,14 +140,14 @@ struct channels { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .adminLogResults(let events, let chats, let users): return ("adminLogResults", [("events", events), ("chats", chats), ("users", users)]) } } - static func parse_adminLogResults(_ reader: BufferReader) -> AdminLogResults? { + public static func parse_adminLogResults(_ reader: BufferReader) -> AdminLogResults? { var _1: [Api.ChannelAdminLogEvent]? if let _ = reader.readInt32() { _1 = Api.parseVector(reader, elementSignature: 0, elementType: Api.ChannelAdminLogEvent.self) @@ -174,12 +174,12 @@ struct channels { } } } -extension Api { -struct payments { - enum ValidatedRequestedInfo: TypeConstructorDescription { +public extension Api { +public struct payments { + public enum ValidatedRequestedInfo: TypeConstructorDescription { case validatedRequestedInfo(flags: Int32, id: String?, shippingOptions: [Api.ShippingOption]?) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .validatedRequestedInfo(let flags, let id, let shippingOptions): if boxed { @@ -196,14 +196,14 @@ struct payments { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .validatedRequestedInfo(let flags, let id, let shippingOptions): return ("validatedRequestedInfo", [("flags", flags), ("id", id), ("shippingOptions", shippingOptions)]) } } - static func parse_validatedRequestedInfo(_ reader: BufferReader) -> ValidatedRequestedInfo? { + public static func parse_validatedRequestedInfo(_ reader: BufferReader) -> ValidatedRequestedInfo? { var _1: Int32? _1 = reader.readInt32() var _2: String? @@ -224,11 +224,11 @@ struct payments { } } - enum PaymentResult: TypeConstructorDescription { + public enum PaymentResult: TypeConstructorDescription { case paymentResult(updates: Api.Updates) case paymentVerficationNeeded(url: String) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .paymentResult(let updates): if boxed { @@ -245,7 +245,7 @@ struct payments { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .paymentResult(let updates): return ("paymentResult", [("updates", updates)]) @@ -254,7 +254,7 @@ struct payments { } } - static func parse_paymentResult(_ reader: BufferReader) -> PaymentResult? { + public static func parse_paymentResult(_ reader: BufferReader) -> PaymentResult? { var _1: Api.Updates? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.Updates @@ -267,7 +267,7 @@ struct payments { return nil } } - static func parse_paymentVerficationNeeded(_ reader: BufferReader) -> PaymentResult? { + public static func parse_paymentVerficationNeeded(_ reader: BufferReader) -> PaymentResult? { var _1: String? _1 = parseString(reader) let _c1 = _1 != nil @@ -280,10 +280,10 @@ struct payments { } } - enum PaymentForm: TypeConstructorDescription { + public enum PaymentForm: TypeConstructorDescription { case paymentForm(flags: Int32, botId: Int32, invoice: Api.Invoice, providerId: Int32, url: String, nativeProvider: String?, nativeParams: Api.DataJSON?, savedInfo: Api.PaymentRequestedInfo?, savedCredentials: Api.PaymentSavedCredentials?, users: [Api.User]) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .paymentForm(let flags, let botId, let invoice, let providerId, let url, let nativeProvider, let nativeParams, let savedInfo, let savedCredentials, let users): if boxed { @@ -307,14 +307,14 @@ struct payments { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .paymentForm(let flags, let botId, let invoice, let providerId, let url, let nativeProvider, let nativeParams, let savedInfo, let savedCredentials, let users): return ("paymentForm", [("flags", flags), ("botId", botId), ("invoice", invoice), ("providerId", providerId), ("url", url), ("nativeProvider", nativeProvider), ("nativeParams", nativeParams), ("savedInfo", savedInfo), ("savedCredentials", savedCredentials), ("users", users)]) } } - static func parse_paymentForm(_ reader: BufferReader) -> PaymentForm? { + public static func parse_paymentForm(_ reader: BufferReader) -> PaymentForm? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -364,10 +364,10 @@ struct payments { } } - enum PaymentReceipt: TypeConstructorDescription { + public enum PaymentReceipt: TypeConstructorDescription { case paymentReceipt(flags: Int32, date: Int32, botId: Int32, invoice: Api.Invoice, providerId: Int32, info: Api.PaymentRequestedInfo?, shipping: Api.ShippingOption?, currency: String, totalAmount: Int64, credentialsTitle: String, users: [Api.User]) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .paymentReceipt(let flags, let date, let botId, let invoice, let providerId, let info, let shipping, let currency, let totalAmount, let credentialsTitle, let users): if boxed { @@ -392,14 +392,14 @@ struct payments { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .paymentReceipt(let flags, let date, let botId, let invoice, let providerId, let info, let shipping, let currency, let totalAmount, let credentialsTitle, let users): return ("paymentReceipt", [("flags", flags), ("date", date), ("botId", botId), ("invoice", invoice), ("providerId", providerId), ("info", info), ("shipping", shipping), ("currency", currency), ("totalAmount", totalAmount), ("credentialsTitle", credentialsTitle), ("users", users)]) } } - static func parse_paymentReceipt(_ reader: BufferReader) -> PaymentReceipt? { + public static func parse_paymentReceipt(_ reader: BufferReader) -> PaymentReceipt? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -450,10 +450,10 @@ struct payments { } } - enum SavedInfo: TypeConstructorDescription { + public enum SavedInfo: TypeConstructorDescription { case savedInfo(flags: Int32, savedInfo: Api.PaymentRequestedInfo?) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .savedInfo(let flags, let savedInfo): if boxed { @@ -465,14 +465,14 @@ struct payments { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .savedInfo(let flags, let savedInfo): return ("savedInfo", [("flags", flags), ("savedInfo", savedInfo)]) } } - static func parse_savedInfo(_ reader: BufferReader) -> SavedInfo? { + public static func parse_savedInfo(_ reader: BufferReader) -> SavedInfo? { var _1: Int32? _1 = reader.readInt32() var _2: Api.PaymentRequestedInfo? @@ -492,12 +492,12 @@ struct payments { } } } -extension Api { -struct auth { - enum Authorization: TypeConstructorDescription { +public extension Api { +public struct auth { + public enum Authorization: TypeConstructorDescription { case authorization(flags: Int32, tmpSessions: Int32?, user: Api.User) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .authorization(let flags, let tmpSessions, let user): if boxed { @@ -510,14 +510,14 @@ struct auth { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .authorization(let flags, let tmpSessions, let user): return ("authorization", [("flags", flags), ("tmpSessions", tmpSessions), ("user", user)]) } } - static func parse_authorization(_ reader: BufferReader) -> Authorization? { + public static func parse_authorization(_ reader: BufferReader) -> Authorization? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -538,10 +538,10 @@ struct auth { } } - enum PasswordRecovery: TypeConstructorDescription { + public enum PasswordRecovery: TypeConstructorDescription { case passwordRecovery(emailPattern: String) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .passwordRecovery(let emailPattern): if boxed { @@ -552,14 +552,14 @@ struct auth { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .passwordRecovery(let emailPattern): return ("passwordRecovery", [("emailPattern", emailPattern)]) } } - static func parse_passwordRecovery(_ reader: BufferReader) -> PasswordRecovery? { + public static func parse_passwordRecovery(_ reader: BufferReader) -> PasswordRecovery? { var _1: String? _1 = parseString(reader) let _c1 = _1 != nil @@ -572,10 +572,10 @@ struct auth { } } - enum ExportedAuthorization: TypeConstructorDescription { + public enum ExportedAuthorization: TypeConstructorDescription { case exportedAuthorization(id: Int32, bytes: Buffer) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .exportedAuthorization(let id, let bytes): if boxed { @@ -587,14 +587,14 @@ struct auth { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .exportedAuthorization(let id, let bytes): return ("exportedAuthorization", [("id", id), ("bytes", bytes)]) } } - static func parse_exportedAuthorization(_ reader: BufferReader) -> ExportedAuthorization? { + public static func parse_exportedAuthorization(_ reader: BufferReader) -> ExportedAuthorization? { var _1: Int32? _1 = reader.readInt32() var _2: Buffer? @@ -610,10 +610,10 @@ struct auth { } } - enum CheckedPhone: TypeConstructorDescription { + public enum CheckedPhone: TypeConstructorDescription { case checkedPhone(phoneRegistered: Api.Bool) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .checkedPhone(let phoneRegistered): if boxed { @@ -624,14 +624,14 @@ struct auth { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .checkedPhone(let phoneRegistered): return ("checkedPhone", [("phoneRegistered", phoneRegistered)]) } } - static func parse_checkedPhone(_ reader: BufferReader) -> CheckedPhone? { + public static func parse_checkedPhone(_ reader: BufferReader) -> CheckedPhone? { var _1: Api.Bool? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.Bool @@ -646,10 +646,10 @@ struct auth { } } - enum SentCode: TypeConstructorDescription { + public enum SentCode: TypeConstructorDescription { case sentCode(flags: Int32, type: Api.auth.SentCodeType, phoneCodeHash: String, nextType: Api.auth.CodeType?, timeout: Int32?, termsOfService: Api.help.TermsOfService?) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .sentCode(let flags, let type, let phoneCodeHash, let nextType, let timeout, let termsOfService): if boxed { @@ -665,14 +665,14 @@ struct auth { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .sentCode(let flags, let type, let phoneCodeHash, let nextType, let timeout, let termsOfService): return ("sentCode", [("flags", flags), ("type", type), ("phoneCodeHash", phoneCodeHash), ("nextType", nextType), ("timeout", timeout), ("termsOfService", termsOfService)]) } } - static func parse_sentCode(_ reader: BufferReader) -> SentCode? { + public static func parse_sentCode(_ reader: BufferReader) -> SentCode? { var _1: Int32? _1 = reader.readInt32() var _2: Api.auth.SentCodeType? @@ -706,12 +706,12 @@ struct auth { } } - enum CodeType: TypeConstructorDescription { + public enum CodeType: TypeConstructorDescription { case codeTypeSms case codeTypeCall case codeTypeFlashCall - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .codeTypeSms: if boxed { @@ -734,7 +734,7 @@ struct auth { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .codeTypeSms: return ("codeTypeSms", []) @@ -745,24 +745,24 @@ struct auth { } } - static func parse_codeTypeSms(_ reader: BufferReader) -> CodeType? { + public static func parse_codeTypeSms(_ reader: BufferReader) -> CodeType? { return Api.auth.CodeType.codeTypeSms } - static func parse_codeTypeCall(_ reader: BufferReader) -> CodeType? { + public static func parse_codeTypeCall(_ reader: BufferReader) -> CodeType? { return Api.auth.CodeType.codeTypeCall } - static func parse_codeTypeFlashCall(_ reader: BufferReader) -> CodeType? { + public static func parse_codeTypeFlashCall(_ reader: BufferReader) -> CodeType? { return Api.auth.CodeType.codeTypeFlashCall } } - enum SentCodeType: TypeConstructorDescription { + public enum SentCodeType: TypeConstructorDescription { case sentCodeTypeApp(length: Int32) case sentCodeTypeSms(length: Int32) case sentCodeTypeCall(length: Int32) case sentCodeTypeFlashCall(pattern: String) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .sentCodeTypeApp(let length): if boxed { @@ -791,7 +791,7 @@ struct auth { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .sentCodeTypeApp(let length): return ("sentCodeTypeApp", [("length", length)]) @@ -804,7 +804,7 @@ struct auth { } } - static func parse_sentCodeTypeApp(_ reader: BufferReader) -> SentCodeType? { + public static func parse_sentCodeTypeApp(_ reader: BufferReader) -> SentCodeType? { var _1: Int32? _1 = reader.readInt32() let _c1 = _1 != nil @@ -815,7 +815,7 @@ struct auth { return nil } } - static func parse_sentCodeTypeSms(_ reader: BufferReader) -> SentCodeType? { + public static func parse_sentCodeTypeSms(_ reader: BufferReader) -> SentCodeType? { var _1: Int32? _1 = reader.readInt32() let _c1 = _1 != nil @@ -826,7 +826,7 @@ struct auth { return nil } } - static func parse_sentCodeTypeCall(_ reader: BufferReader) -> SentCodeType? { + public static func parse_sentCodeTypeCall(_ reader: BufferReader) -> SentCodeType? { var _1: Int32? _1 = reader.readInt32() let _c1 = _1 != nil @@ -837,7 +837,7 @@ struct auth { return nil } } - static func parse_sentCodeTypeFlashCall(_ reader: BufferReader) -> SentCodeType? { + public static func parse_sentCodeTypeFlashCall(_ reader: BufferReader) -> SentCodeType? { var _1: String? _1 = parseString(reader) let _c1 = _1 != nil @@ -852,13 +852,13 @@ struct auth { } } } -extension Api { -struct contacts { - enum Blocked: TypeConstructorDescription { +public extension Api { +public struct contacts { + public enum Blocked: TypeConstructorDescription { case blocked(blocked: [Api.ContactBlocked], users: [Api.User]) case blockedSlice(count: Int32, blocked: [Api.ContactBlocked], users: [Api.User]) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .blocked(let blocked, let users): if boxed { @@ -894,7 +894,7 @@ struct contacts { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .blocked(let blocked, let users): return ("blocked", [("blocked", blocked), ("users", users)]) @@ -903,7 +903,7 @@ struct contacts { } } - static func parse_blocked(_ reader: BufferReader) -> Blocked? { + public static func parse_blocked(_ reader: BufferReader) -> Blocked? { var _1: [Api.ContactBlocked]? if let _ = reader.readInt32() { _1 = Api.parseVector(reader, elementSignature: 0, elementType: Api.ContactBlocked.self) @@ -921,7 +921,7 @@ struct contacts { return nil } } - static func parse_blockedSlice(_ reader: BufferReader) -> Blocked? { + public static func parse_blockedSlice(_ reader: BufferReader) -> Blocked? { var _1: Int32? _1 = reader.readInt32() var _2: [Api.ContactBlocked]? @@ -944,11 +944,11 @@ struct contacts { } } - enum Contacts: TypeConstructorDescription { + public enum Contacts: TypeConstructorDescription { case contactsNotModified case contacts(contacts: [Api.Contact], savedCount: Int32, users: [Api.User]) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .contactsNotModified: if boxed { @@ -975,7 +975,7 @@ struct contacts { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .contactsNotModified: return ("contactsNotModified", []) @@ -984,10 +984,10 @@ struct contacts { } } - static func parse_contactsNotModified(_ reader: BufferReader) -> Contacts? { + public static func parse_contactsNotModified(_ reader: BufferReader) -> Contacts? { return Api.contacts.Contacts.contactsNotModified } - static func parse_contacts(_ reader: BufferReader) -> Contacts? { + public static func parse_contacts(_ reader: BufferReader) -> Contacts? { var _1: [Api.Contact]? if let _ = reader.readInt32() { _1 = Api.parseVector(reader, elementSignature: 0, elementType: Api.Contact.self) @@ -1010,10 +1010,10 @@ struct contacts { } } - enum ResolvedPeer: TypeConstructorDescription { + public enum ResolvedPeer: TypeConstructorDescription { case resolvedPeer(peer: Api.Peer, chats: [Api.Chat], users: [Api.User]) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .resolvedPeer(let peer, let chats, let users): if boxed { @@ -1034,14 +1034,14 @@ struct contacts { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .resolvedPeer(let peer, let chats, let users): return ("resolvedPeer", [("peer", peer), ("chats", chats), ("users", users)]) } } - static func parse_resolvedPeer(_ reader: BufferReader) -> ResolvedPeer? { + public static func parse_resolvedPeer(_ reader: BufferReader) -> ResolvedPeer? { var _1: Api.Peer? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.Peer @@ -1066,10 +1066,10 @@ struct contacts { } } - enum ImportedContacts: TypeConstructorDescription { + public enum ImportedContacts: TypeConstructorDescription { case importedContacts(imported: [Api.ImportedContact], popularInvites: [Api.PopularContact], retryContacts: [Int64], users: [Api.User]) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .importedContacts(let imported, let popularInvites, let retryContacts, let users): if boxed { @@ -1099,14 +1099,14 @@ struct contacts { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .importedContacts(let imported, let popularInvites, let retryContacts, let users): return ("importedContacts", [("imported", imported), ("popularInvites", popularInvites), ("retryContacts", retryContacts), ("users", users)]) } } - static func parse_importedContacts(_ reader: BufferReader) -> ImportedContacts? { + public static func parse_importedContacts(_ reader: BufferReader) -> ImportedContacts? { var _1: [Api.ImportedContact]? if let _ = reader.readInt32() { _1 = Api.parseVector(reader, elementSignature: 0, elementType: Api.ImportedContact.self) @@ -1136,10 +1136,10 @@ struct contacts { } } - enum Found: TypeConstructorDescription { + public enum Found: TypeConstructorDescription { case found(myResults: [Api.Peer], results: [Api.Peer], chats: [Api.Chat], users: [Api.User]) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .found(let myResults, let results, let chats, let users): if boxed { @@ -1169,14 +1169,14 @@ struct contacts { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .found(let myResults, let results, let chats, let users): return ("found", [("myResults", myResults), ("results", results), ("chats", chats), ("users", users)]) } } - static func parse_found(_ reader: BufferReader) -> Found? { + public static func parse_found(_ reader: BufferReader) -> Found? { var _1: [Api.Peer]? if let _ = reader.readInt32() { _1 = Api.parseVector(reader, elementSignature: 0, elementType: Api.Peer.self) @@ -1206,12 +1206,12 @@ struct contacts { } } - enum TopPeers: TypeConstructorDescription { + public enum TopPeers: TypeConstructorDescription { case topPeersNotModified case topPeers(categories: [Api.TopPeerCategoryPeers], chats: [Api.Chat], users: [Api.User]) case topPeersDisabled - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .topPeersNotModified: if boxed { @@ -1248,7 +1248,7 @@ struct contacts { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .topPeersNotModified: return ("topPeersNotModified", []) @@ -1259,10 +1259,10 @@ struct contacts { } } - static func parse_topPeersNotModified(_ reader: BufferReader) -> TopPeers? { + public static func parse_topPeersNotModified(_ reader: BufferReader) -> TopPeers? { return Api.contacts.TopPeers.topPeersNotModified } - static func parse_topPeers(_ reader: BufferReader) -> TopPeers? { + public static func parse_topPeers(_ reader: BufferReader) -> TopPeers? { var _1: [Api.TopPeerCategoryPeers]? if let _ = reader.readInt32() { _1 = Api.parseVector(reader, elementSignature: 0, elementType: Api.TopPeerCategoryPeers.self) @@ -1285,20 +1285,20 @@ struct contacts { return nil } } - static func parse_topPeersDisabled(_ reader: BufferReader) -> TopPeers? { + public static func parse_topPeersDisabled(_ reader: BufferReader) -> TopPeers? { return Api.contacts.TopPeers.topPeersDisabled } } } } -extension Api { -struct help { - enum AppUpdate: TypeConstructorDescription { +public extension Api { +public struct help { + public enum AppUpdate: TypeConstructorDescription { case appUpdate(id: Int32, critical: Api.Bool, url: String, text: String) case noAppUpdate - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .appUpdate(let id, let critical, let url, let text): if boxed { @@ -1318,7 +1318,7 @@ struct help { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .appUpdate(let id, let critical, let url, let text): return ("appUpdate", [("id", id), ("critical", critical), ("url", url), ("text", text)]) @@ -1327,7 +1327,7 @@ struct help { } } - static func parse_appUpdate(_ reader: BufferReader) -> AppUpdate? { + public static func parse_appUpdate(_ reader: BufferReader) -> AppUpdate? { var _1: Int32? _1 = reader.readInt32() var _2: Api.Bool? @@ -1349,16 +1349,16 @@ struct help { return nil } } - static func parse_noAppUpdate(_ reader: BufferReader) -> AppUpdate? { + public static func parse_noAppUpdate(_ reader: BufferReader) -> AppUpdate? { return Api.help.AppUpdate.noAppUpdate } } - enum PassportConfig: TypeConstructorDescription { + public enum PassportConfig: TypeConstructorDescription { case passportConfigNotModified case passportConfig(hash: Int32, countriesLangs: Api.DataJSON) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .passportConfigNotModified: if boxed { @@ -1376,7 +1376,7 @@ struct help { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .passportConfigNotModified: return ("passportConfigNotModified", []) @@ -1385,10 +1385,10 @@ struct help { } } - static func parse_passportConfigNotModified(_ reader: BufferReader) -> PassportConfig? { + public static func parse_passportConfigNotModified(_ reader: BufferReader) -> PassportConfig? { return Api.help.PassportConfig.passportConfigNotModified } - static func parse_passportConfig(_ reader: BufferReader) -> PassportConfig? { + public static func parse_passportConfig(_ reader: BufferReader) -> PassportConfig? { var _1: Int32? _1 = reader.readInt32() var _2: Api.DataJSON? @@ -1406,11 +1406,11 @@ struct help { } } - enum ProxyData: TypeConstructorDescription { + public enum ProxyData: TypeConstructorDescription { case proxyDataEmpty(expires: Int32) case proxyDataPromo(expires: Int32, peer: Api.Peer, chats: [Api.Chat], users: [Api.User]) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .proxyDataEmpty(let expires): if boxed { @@ -1438,7 +1438,7 @@ struct help { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .proxyDataEmpty(let expires): return ("proxyDataEmpty", [("expires", expires)]) @@ -1447,7 +1447,7 @@ struct help { } } - static func parse_proxyDataEmpty(_ reader: BufferReader) -> ProxyData? { + public static func parse_proxyDataEmpty(_ reader: BufferReader) -> ProxyData? { var _1: Int32? _1 = reader.readInt32() let _c1 = _1 != nil @@ -1458,7 +1458,7 @@ struct help { return nil } } - static func parse_proxyDataPromo(_ reader: BufferReader) -> ProxyData? { + public static func parse_proxyDataPromo(_ reader: BufferReader) -> ProxyData? { var _1: Int32? _1 = reader.readInt32() var _2: Api.Peer? @@ -1486,11 +1486,11 @@ struct help { } } - enum DeepLinkInfo: TypeConstructorDescription { + public enum DeepLinkInfo: TypeConstructorDescription { case deepLinkInfoEmpty case deepLinkInfo(flags: Int32, message: String, entities: [Api.MessageEntity]?) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .deepLinkInfoEmpty: if boxed { @@ -1513,7 +1513,7 @@ struct help { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .deepLinkInfoEmpty: return ("deepLinkInfoEmpty", []) @@ -1522,10 +1522,10 @@ struct help { } } - static func parse_deepLinkInfoEmpty(_ reader: BufferReader) -> DeepLinkInfo? { + public static func parse_deepLinkInfoEmpty(_ reader: BufferReader) -> DeepLinkInfo? { return Api.help.DeepLinkInfo.deepLinkInfoEmpty } - static func parse_deepLinkInfo(_ reader: BufferReader) -> DeepLinkInfo? { + public static func parse_deepLinkInfo(_ reader: BufferReader) -> DeepLinkInfo? { var _1: Int32? _1 = reader.readInt32() var _2: String? @@ -1546,10 +1546,10 @@ struct help { } } - enum TermsOfService: TypeConstructorDescription { + public enum TermsOfService: TypeConstructorDescription { case termsOfService(flags: Int32, id: Api.DataJSON, text: String, entities: [Api.MessageEntity], minAgeConfirm: Int32?) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .termsOfService(let flags, let id, let text, let entities, let minAgeConfirm): if boxed { @@ -1568,14 +1568,14 @@ struct help { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .termsOfService(let flags, let id, let text, let entities, let minAgeConfirm): return ("termsOfService", [("flags", flags), ("id", id), ("text", text), ("entities", entities), ("minAgeConfirm", minAgeConfirm)]) } } - static func parse_termsOfService(_ reader: BufferReader) -> TermsOfService? { + public static func parse_termsOfService(_ reader: BufferReader) -> TermsOfService? { var _1: Int32? _1 = reader.readInt32() var _2: Api.DataJSON? @@ -1604,10 +1604,10 @@ struct help { } } - enum RecentMeUrls: TypeConstructorDescription { + public enum RecentMeUrls: TypeConstructorDescription { case recentMeUrls(urls: [Api.RecentMeUrl], chats: [Api.Chat], users: [Api.User]) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .recentMeUrls(let urls, let chats, let users): if boxed { @@ -1632,14 +1632,14 @@ struct help { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .recentMeUrls(let urls, let chats, let users): return ("recentMeUrls", [("urls", urls), ("chats", chats), ("users", users)]) } } - static func parse_recentMeUrls(_ reader: BufferReader) -> RecentMeUrls? { + public static func parse_recentMeUrls(_ reader: BufferReader) -> RecentMeUrls? { var _1: [Api.RecentMeUrl]? if let _ = reader.readInt32() { _1 = Api.parseVector(reader, elementSignature: 0, elementType: Api.RecentMeUrl.self) @@ -1664,10 +1664,10 @@ struct help { } } - enum Support: TypeConstructorDescription { + public enum Support: TypeConstructorDescription { case support(phoneNumber: String, user: Api.User) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .support(let phoneNumber, let user): if boxed { @@ -1679,14 +1679,14 @@ struct help { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .support(let phoneNumber, let user): return ("support", [("phoneNumber", phoneNumber), ("user", user)]) } } - static func parse_support(_ reader: BufferReader) -> Support? { + public static func parse_support(_ reader: BufferReader) -> Support? { var _1: String? _1 = parseString(reader) var _2: Api.User? @@ -1704,10 +1704,10 @@ struct help { } } - enum InviteText: TypeConstructorDescription { + public enum InviteText: TypeConstructorDescription { case inviteText(message: String) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .inviteText(let message): if boxed { @@ -1718,14 +1718,14 @@ struct help { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .inviteText(let message): return ("inviteText", [("message", message)]) } } - static func parse_inviteText(_ reader: BufferReader) -> InviteText? { + public static func parse_inviteText(_ reader: BufferReader) -> InviteText? { var _1: String? _1 = parseString(reader) let _c1 = _1 != nil @@ -1738,11 +1738,11 @@ struct help { } } - enum TermsOfServiceUpdate: TypeConstructorDescription { + public enum TermsOfServiceUpdate: TypeConstructorDescription { case termsOfServiceUpdateEmpty(expires: Int32) case termsOfServiceUpdate(expires: Int32, termsOfService: Api.help.TermsOfService) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .termsOfServiceUpdateEmpty(let expires): if boxed { @@ -1760,7 +1760,7 @@ struct help { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .termsOfServiceUpdateEmpty(let expires): return ("termsOfServiceUpdateEmpty", [("expires", expires)]) @@ -1769,7 +1769,7 @@ struct help { } } - static func parse_termsOfServiceUpdateEmpty(_ reader: BufferReader) -> TermsOfServiceUpdate? { + public static func parse_termsOfServiceUpdateEmpty(_ reader: BufferReader) -> TermsOfServiceUpdate? { var _1: Int32? _1 = reader.readInt32() let _c1 = _1 != nil @@ -1780,7 +1780,7 @@ struct help { return nil } } - static func parse_termsOfServiceUpdate(_ reader: BufferReader) -> TermsOfServiceUpdate? { + public static func parse_termsOfServiceUpdate(_ reader: BufferReader) -> TermsOfServiceUpdate? { var _1: Int32? _1 = reader.readInt32() var _2: Api.help.TermsOfService? @@ -1800,15 +1800,15 @@ struct help { } } } -extension Api { -struct updates { - enum Difference: TypeConstructorDescription { +public extension Api { +public struct updates { + public enum Difference: TypeConstructorDescription { case differenceEmpty(date: Int32, seq: Int32) case difference(newMessages: [Api.Message], newEncryptedMessages: [Api.EncryptedMessage], otherUpdates: [Api.Update], chats: [Api.Chat], users: [Api.User], state: Api.updates.State) case differenceSlice(newMessages: [Api.Message], newEncryptedMessages: [Api.EncryptedMessage], otherUpdates: [Api.Update], chats: [Api.Chat], users: [Api.User], intermediateState: Api.updates.State) case differenceTooLong(pts: Int32) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .differenceEmpty(let date, let seq): if boxed { @@ -1888,7 +1888,7 @@ struct updates { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .differenceEmpty(let date, let seq): return ("differenceEmpty", [("date", date), ("seq", seq)]) @@ -1901,7 +1901,7 @@ struct updates { } } - static func parse_differenceEmpty(_ reader: BufferReader) -> Difference? { + public static func parse_differenceEmpty(_ reader: BufferReader) -> Difference? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -1915,7 +1915,7 @@ struct updates { return nil } } - static func parse_difference(_ reader: BufferReader) -> Difference? { + public static func parse_difference(_ reader: BufferReader) -> Difference? { var _1: [Api.Message]? if let _ = reader.readInt32() { _1 = Api.parseVector(reader, elementSignature: 0, elementType: Api.Message.self) @@ -1953,7 +1953,7 @@ struct updates { return nil } } - static func parse_differenceSlice(_ reader: BufferReader) -> Difference? { + public static func parse_differenceSlice(_ reader: BufferReader) -> Difference? { var _1: [Api.Message]? if let _ = reader.readInt32() { _1 = Api.parseVector(reader, elementSignature: 0, elementType: Api.Message.self) @@ -1991,7 +1991,7 @@ struct updates { return nil } } - static func parse_differenceTooLong(_ reader: BufferReader) -> Difference? { + public static func parse_differenceTooLong(_ reader: BufferReader) -> Difference? { var _1: Int32? _1 = reader.readInt32() let _c1 = _1 != nil @@ -2004,10 +2004,10 @@ struct updates { } } - enum State: TypeConstructorDescription { + public enum State: TypeConstructorDescription { case state(pts: Int32, qts: Int32, date: Int32, seq: Int32, unreadCount: Int32) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .state(let pts, let qts, let date, let seq, let unreadCount): if boxed { @@ -2022,14 +2022,14 @@ struct updates { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .state(let pts, let qts, let date, let seq, let unreadCount): return ("state", [("pts", pts), ("qts", qts), ("date", date), ("seq", seq), ("unreadCount", unreadCount)]) } } - static func parse_state(_ reader: BufferReader) -> State? { + public static func parse_state(_ reader: BufferReader) -> State? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -2054,12 +2054,12 @@ struct updates { } } - enum ChannelDifference: TypeConstructorDescription { + public enum ChannelDifference: TypeConstructorDescription { case channelDifferenceEmpty(flags: Int32, pts: Int32, timeout: Int32?) case channelDifference(flags: Int32, pts: Int32, timeout: Int32?, newMessages: [Api.Message], otherUpdates: [Api.Update], chats: [Api.Chat], users: [Api.User]) case channelDifferenceTooLong(flags: Int32, timeout: Int32?, dialog: Api.Dialog, messages: [Api.Message], chats: [Api.Chat], users: [Api.User]) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .channelDifferenceEmpty(let flags, let pts, let timeout): if boxed { @@ -2123,7 +2123,7 @@ struct updates { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .channelDifferenceEmpty(let flags, let pts, let timeout): return ("channelDifferenceEmpty", [("flags", flags), ("pts", pts), ("timeout", timeout)]) @@ -2134,7 +2134,7 @@ struct updates { } } - static func parse_channelDifferenceEmpty(_ reader: BufferReader) -> ChannelDifference? { + public static func parse_channelDifferenceEmpty(_ reader: BufferReader) -> ChannelDifference? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -2151,7 +2151,7 @@ struct updates { return nil } } - static func parse_channelDifference(_ reader: BufferReader) -> ChannelDifference? { + public static func parse_channelDifference(_ reader: BufferReader) -> ChannelDifference? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -2188,7 +2188,7 @@ struct updates { return nil } } - static func parse_channelDifferenceTooLong(_ reader: BufferReader) -> ChannelDifference? { + public static func parse_channelDifferenceTooLong(_ reader: BufferReader) -> ChannelDifference? { var _1: Int32? _1 = reader.readInt32() var _2: Int32? @@ -2226,199 +2226,3 @@ struct updates { } } } -extension Api { -struct upload { - enum WebFile: TypeConstructorDescription { - case webFile(size: Int32, mimeType: String, fileType: Api.storage.FileType, mtime: Int32, bytes: Buffer) - - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { - switch self { - case .webFile(let size, let mimeType, let fileType, let mtime, let bytes): - if boxed { - buffer.appendInt32(568808380) - } - serializeInt32(size, buffer: buffer, boxed: false) - serializeString(mimeType, buffer: buffer, boxed: false) - fileType.serialize(buffer, true) - serializeInt32(mtime, buffer: buffer, boxed: false) - serializeBytes(bytes, buffer: buffer, boxed: false) - break - } - } - - func descriptionFields() -> (String, [(String, Any)]) { - switch self { - case .webFile(let size, let mimeType, let fileType, let mtime, let bytes): - return ("webFile", [("size", size), ("mimeType", mimeType), ("fileType", fileType), ("mtime", mtime), ("bytes", bytes)]) - } - } - - static func parse_webFile(_ reader: BufferReader) -> WebFile? { - var _1: Int32? - _1 = reader.readInt32() - var _2: String? - _2 = parseString(reader) - var _3: Api.storage.FileType? - if let signature = reader.readInt32() { - _3 = Api.parse(reader, signature: signature) as? Api.storage.FileType - } - var _4: Int32? - _4 = reader.readInt32() - var _5: Buffer? - _5 = parseBytes(reader) - let _c1 = _1 != nil - let _c2 = _2 != nil - let _c3 = _3 != nil - let _c4 = _4 != nil - let _c5 = _5 != nil - if _c1 && _c2 && _c3 && _c4 && _c5 { - return Api.upload.WebFile.webFile(size: _1!, mimeType: _2!, fileType: _3!, mtime: _4!, bytes: _5!) - } - else { - return nil - } - } - - } - enum File: TypeConstructorDescription { - case file(type: Api.storage.FileType, mtime: Int32, bytes: Buffer) - case fileCdnRedirect(dcId: Int32, fileToken: Buffer, encryptionKey: Buffer, encryptionIv: Buffer, fileHashes: [Api.FileHash]) - - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { - switch self { - case .file(let type, let mtime, let bytes): - if boxed { - buffer.appendInt32(157948117) - } - type.serialize(buffer, true) - serializeInt32(mtime, buffer: buffer, boxed: false) - serializeBytes(bytes, buffer: buffer, boxed: false) - break - case .fileCdnRedirect(let dcId, let fileToken, let encryptionKey, let encryptionIv, let fileHashes): - if boxed { - buffer.appendInt32(-242427324) - } - serializeInt32(dcId, buffer: buffer, boxed: false) - serializeBytes(fileToken, buffer: buffer, boxed: false) - serializeBytes(encryptionKey, buffer: buffer, boxed: false) - serializeBytes(encryptionIv, buffer: buffer, boxed: false) - buffer.appendInt32(481674261) - buffer.appendInt32(Int32(fileHashes.count)) - for item in fileHashes { - item.serialize(buffer, true) - } - break - } - } - - func descriptionFields() -> (String, [(String, Any)]) { - switch self { - case .file(let type, let mtime, let bytes): - return ("file", [("type", type), ("mtime", mtime), ("bytes", bytes)]) - case .fileCdnRedirect(let dcId, let fileToken, let encryptionKey, let encryptionIv, let fileHashes): - return ("fileCdnRedirect", [("dcId", dcId), ("fileToken", fileToken), ("encryptionKey", encryptionKey), ("encryptionIv", encryptionIv), ("fileHashes", fileHashes)]) - } - } - - static func parse_file(_ reader: BufferReader) -> File? { - var _1: Api.storage.FileType? - if let signature = reader.readInt32() { - _1 = Api.parse(reader, signature: signature) as? Api.storage.FileType - } - var _2: Int32? - _2 = reader.readInt32() - var _3: Buffer? - _3 = parseBytes(reader) - let _c1 = _1 != nil - let _c2 = _2 != nil - let _c3 = _3 != nil - if _c1 && _c2 && _c3 { - return Api.upload.File.file(type: _1!, mtime: _2!, bytes: _3!) - } - else { - return nil - } - } - static func parse_fileCdnRedirect(_ reader: BufferReader) -> File? { - var _1: Int32? - _1 = reader.readInt32() - var _2: Buffer? - _2 = parseBytes(reader) - var _3: Buffer? - _3 = parseBytes(reader) - var _4: Buffer? - _4 = parseBytes(reader) - var _5: [Api.FileHash]? - if let _ = reader.readInt32() { - _5 = Api.parseVector(reader, elementSignature: 0, elementType: Api.FileHash.self) - } - let _c1 = _1 != nil - let _c2 = _2 != nil - let _c3 = _3 != nil - let _c4 = _4 != nil - let _c5 = _5 != nil - if _c1 && _c2 && _c3 && _c4 && _c5 { - return Api.upload.File.fileCdnRedirect(dcId: _1!, fileToken: _2!, encryptionKey: _3!, encryptionIv: _4!, fileHashes: _5!) - } - else { - return nil - } - } - - } - enum CdnFile: TypeConstructorDescription { - case cdnFileReuploadNeeded(requestToken: Buffer) - case cdnFile(bytes: Buffer) - - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { - switch self { - case .cdnFileReuploadNeeded(let requestToken): - if boxed { - buffer.appendInt32(-290921362) - } - serializeBytes(requestToken, buffer: buffer, boxed: false) - break - case .cdnFile(let bytes): - if boxed { - buffer.appendInt32(-1449145777) - } - serializeBytes(bytes, buffer: buffer, boxed: false) - break - } - } - - func descriptionFields() -> (String, [(String, Any)]) { - switch self { - case .cdnFileReuploadNeeded(let requestToken): - return ("cdnFileReuploadNeeded", [("requestToken", requestToken)]) - case .cdnFile(let bytes): - return ("cdnFile", [("bytes", bytes)]) - } - } - - static func parse_cdnFileReuploadNeeded(_ reader: BufferReader) -> CdnFile? { - var _1: Buffer? - _1 = parseBytes(reader) - let _c1 = _1 != nil - if _c1 { - return Api.upload.CdnFile.cdnFileReuploadNeeded(requestToken: _1!) - } - else { - return nil - } - } - static func parse_cdnFile(_ reader: BufferReader) -> CdnFile? { - var _1: Buffer? - _1 = parseBytes(reader) - let _c1 = _1 != nil - if _c1 { - return Api.upload.CdnFile.cdnFile(bytes: _1!) - } - else { - return nil - } - } - - } -} -} diff --git a/submodules/TelegramApi/Sources/Api3.swift b/submodules/TelegramApi/Sources/Api3.swift index fe9d324aba..c063c822b7 100644 --- a/submodules/TelegramApi/Sources/Api3.swift +++ b/submodules/TelegramApi/Sources/Api3.swift @@ -1,6 +1,202 @@ -extension Api { -struct storage { - enum FileType: TypeConstructorDescription { +public extension Api { +public struct upload { + public enum WebFile: TypeConstructorDescription { + case webFile(size: Int32, mimeType: String, fileType: Api.storage.FileType, mtime: Int32, bytes: Buffer) + + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + switch self { + case .webFile(let size, let mimeType, let fileType, let mtime, let bytes): + if boxed { + buffer.appendInt32(568808380) + } + serializeInt32(size, buffer: buffer, boxed: false) + serializeString(mimeType, buffer: buffer, boxed: false) + fileType.serialize(buffer, true) + serializeInt32(mtime, buffer: buffer, boxed: false) + serializeBytes(bytes, buffer: buffer, boxed: false) + break + } + } + + public func descriptionFields() -> (String, [(String, Any)]) { + switch self { + case .webFile(let size, let mimeType, let fileType, let mtime, let bytes): + return ("webFile", [("size", size), ("mimeType", mimeType), ("fileType", fileType), ("mtime", mtime), ("bytes", bytes)]) + } + } + + public static func parse_webFile(_ reader: BufferReader) -> WebFile? { + var _1: Int32? + _1 = reader.readInt32() + var _2: String? + _2 = parseString(reader) + var _3: Api.storage.FileType? + if let signature = reader.readInt32() { + _3 = Api.parse(reader, signature: signature) as? Api.storage.FileType + } + var _4: Int32? + _4 = reader.readInt32() + var _5: Buffer? + _5 = parseBytes(reader) + let _c1 = _1 != nil + let _c2 = _2 != nil + let _c3 = _3 != nil + let _c4 = _4 != nil + let _c5 = _5 != nil + if _c1 && _c2 && _c3 && _c4 && _c5 { + return Api.upload.WebFile.webFile(size: _1!, mimeType: _2!, fileType: _3!, mtime: _4!, bytes: _5!) + } + else { + return nil + } + } + + } + public enum File: TypeConstructorDescription { + case file(type: Api.storage.FileType, mtime: Int32, bytes: Buffer) + case fileCdnRedirect(dcId: Int32, fileToken: Buffer, encryptionKey: Buffer, encryptionIv: Buffer, fileHashes: [Api.FileHash]) + + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + switch self { + case .file(let type, let mtime, let bytes): + if boxed { + buffer.appendInt32(157948117) + } + type.serialize(buffer, true) + serializeInt32(mtime, buffer: buffer, boxed: false) + serializeBytes(bytes, buffer: buffer, boxed: false) + break + case .fileCdnRedirect(let dcId, let fileToken, let encryptionKey, let encryptionIv, let fileHashes): + if boxed { + buffer.appendInt32(-242427324) + } + serializeInt32(dcId, buffer: buffer, boxed: false) + serializeBytes(fileToken, buffer: buffer, boxed: false) + serializeBytes(encryptionKey, buffer: buffer, boxed: false) + serializeBytes(encryptionIv, buffer: buffer, boxed: false) + buffer.appendInt32(481674261) + buffer.appendInt32(Int32(fileHashes.count)) + for item in fileHashes { + item.serialize(buffer, true) + } + break + } + } + + public func descriptionFields() -> (String, [(String, Any)]) { + switch self { + case .file(let type, let mtime, let bytes): + return ("file", [("type", type), ("mtime", mtime), ("bytes", bytes)]) + case .fileCdnRedirect(let dcId, let fileToken, let encryptionKey, let encryptionIv, let fileHashes): + return ("fileCdnRedirect", [("dcId", dcId), ("fileToken", fileToken), ("encryptionKey", encryptionKey), ("encryptionIv", encryptionIv), ("fileHashes", fileHashes)]) + } + } + + public static func parse_file(_ reader: BufferReader) -> File? { + var _1: Api.storage.FileType? + if let signature = reader.readInt32() { + _1 = Api.parse(reader, signature: signature) as? Api.storage.FileType + } + var _2: Int32? + _2 = reader.readInt32() + var _3: Buffer? + _3 = parseBytes(reader) + let _c1 = _1 != nil + let _c2 = _2 != nil + let _c3 = _3 != nil + if _c1 && _c2 && _c3 { + return Api.upload.File.file(type: _1!, mtime: _2!, bytes: _3!) + } + else { + return nil + } + } + public static func parse_fileCdnRedirect(_ reader: BufferReader) -> File? { + var _1: Int32? + _1 = reader.readInt32() + var _2: Buffer? + _2 = parseBytes(reader) + var _3: Buffer? + _3 = parseBytes(reader) + var _4: Buffer? + _4 = parseBytes(reader) + var _5: [Api.FileHash]? + if let _ = reader.readInt32() { + _5 = Api.parseVector(reader, elementSignature: 0, elementType: Api.FileHash.self) + } + let _c1 = _1 != nil + let _c2 = _2 != nil + let _c3 = _3 != nil + let _c4 = _4 != nil + let _c5 = _5 != nil + if _c1 && _c2 && _c3 && _c4 && _c5 { + return Api.upload.File.fileCdnRedirect(dcId: _1!, fileToken: _2!, encryptionKey: _3!, encryptionIv: _4!, fileHashes: _5!) + } + else { + return nil + } + } + + } + public enum CdnFile: TypeConstructorDescription { + case cdnFileReuploadNeeded(requestToken: Buffer) + case cdnFile(bytes: Buffer) + + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + switch self { + case .cdnFileReuploadNeeded(let requestToken): + if boxed { + buffer.appendInt32(-290921362) + } + serializeBytes(requestToken, buffer: buffer, boxed: false) + break + case .cdnFile(let bytes): + if boxed { + buffer.appendInt32(-1449145777) + } + serializeBytes(bytes, buffer: buffer, boxed: false) + break + } + } + + public func descriptionFields() -> (String, [(String, Any)]) { + switch self { + case .cdnFileReuploadNeeded(let requestToken): + return ("cdnFileReuploadNeeded", [("requestToken", requestToken)]) + case .cdnFile(let bytes): + return ("cdnFile", [("bytes", bytes)]) + } + } + + public static func parse_cdnFileReuploadNeeded(_ reader: BufferReader) -> CdnFile? { + var _1: Buffer? + _1 = parseBytes(reader) + let _c1 = _1 != nil + if _c1 { + return Api.upload.CdnFile.cdnFileReuploadNeeded(requestToken: _1!) + } + else { + return nil + } + } + public static func parse_cdnFile(_ reader: BufferReader) -> CdnFile? { + var _1: Buffer? + _1 = parseBytes(reader) + let _c1 = _1 != nil + if _c1 { + return Api.upload.CdnFile.cdnFile(bytes: _1!) + } + else { + return nil + } + } + + } +} +} +public extension Api { +public struct storage { + public enum FileType: TypeConstructorDescription { case fileUnknown case filePartial case fileJpeg @@ -12,7 +208,7 @@ struct storage { case fileMp4 case fileWebp - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .fileUnknown: if boxed { @@ -77,7 +273,7 @@ struct storage { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .fileUnknown: return ("fileUnknown", []) @@ -102,46 +298,46 @@ struct storage { } } - static func parse_fileUnknown(_ reader: BufferReader) -> FileType? { + public static func parse_fileUnknown(_ reader: BufferReader) -> FileType? { return Api.storage.FileType.fileUnknown } - static func parse_filePartial(_ reader: BufferReader) -> FileType? { + public static func parse_filePartial(_ reader: BufferReader) -> FileType? { return Api.storage.FileType.filePartial } - static func parse_fileJpeg(_ reader: BufferReader) -> FileType? { + public static func parse_fileJpeg(_ reader: BufferReader) -> FileType? { return Api.storage.FileType.fileJpeg } - static func parse_fileGif(_ reader: BufferReader) -> FileType? { + public static func parse_fileGif(_ reader: BufferReader) -> FileType? { return Api.storage.FileType.fileGif } - static func parse_filePng(_ reader: BufferReader) -> FileType? { + public static func parse_filePng(_ reader: BufferReader) -> FileType? { return Api.storage.FileType.filePng } - static func parse_filePdf(_ reader: BufferReader) -> FileType? { + public static func parse_filePdf(_ reader: BufferReader) -> FileType? { return Api.storage.FileType.filePdf } - static func parse_fileMp3(_ reader: BufferReader) -> FileType? { + public static func parse_fileMp3(_ reader: BufferReader) -> FileType? { return Api.storage.FileType.fileMp3 } - static func parse_fileMov(_ reader: BufferReader) -> FileType? { + public static func parse_fileMov(_ reader: BufferReader) -> FileType? { return Api.storage.FileType.fileMov } - static func parse_fileMp4(_ reader: BufferReader) -> FileType? { + public static func parse_fileMp4(_ reader: BufferReader) -> FileType? { return Api.storage.FileType.fileMp4 } - static func parse_fileWebp(_ reader: BufferReader) -> FileType? { + public static func parse_fileWebp(_ reader: BufferReader) -> FileType? { return Api.storage.FileType.fileWebp } } } } -extension Api { -struct account { - enum TmpPassword: TypeConstructorDescription { +public extension Api { +public struct account { + public enum TmpPassword: TypeConstructorDescription { case tmpPassword(tmpPassword: Buffer, validUntil: Int32) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .tmpPassword(let tmpPassword, let validUntil): if boxed { @@ -153,14 +349,14 @@ struct account { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .tmpPassword(let tmpPassword, let validUntil): return ("tmpPassword", [("tmpPassword", tmpPassword), ("validUntil", validUntil)]) } } - static func parse_tmpPassword(_ reader: BufferReader) -> TmpPassword? { + public static func parse_tmpPassword(_ reader: BufferReader) -> TmpPassword? { var _1: Buffer? _1 = parseBytes(reader) var _2: Int32? @@ -176,10 +372,10 @@ struct account { } } - enum PasswordSettings: TypeConstructorDescription { + public enum PasswordSettings: TypeConstructorDescription { case passwordSettings(flags: Int32, email: String?, secureSettings: Api.SecureSecretSettings?) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .passwordSettings(let flags, let email, let secureSettings): if boxed { @@ -192,14 +388,14 @@ struct account { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .passwordSettings(let flags, let email, let secureSettings): return ("passwordSettings", [("flags", flags), ("email", email), ("secureSettings", secureSettings)]) } } - static func parse_passwordSettings(_ reader: BufferReader) -> PasswordSettings? { + public static func parse_passwordSettings(_ reader: BufferReader) -> PasswordSettings? { var _1: Int32? _1 = reader.readInt32() var _2: String? @@ -220,11 +416,11 @@ struct account { } } - enum WallPapers: TypeConstructorDescription { + public enum WallPapers: TypeConstructorDescription { case wallPapersNotModified case wallPapers(hash: Int32, wallpapers: [Api.WallPaper]) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .wallPapersNotModified: if boxed { @@ -246,7 +442,7 @@ struct account { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .wallPapersNotModified: return ("wallPapersNotModified", []) @@ -255,10 +451,10 @@ struct account { } } - static func parse_wallPapersNotModified(_ reader: BufferReader) -> WallPapers? { + public static func parse_wallPapersNotModified(_ reader: BufferReader) -> WallPapers? { return Api.account.WallPapers.wallPapersNotModified } - static func parse_wallPapers(_ reader: BufferReader) -> WallPapers? { + public static func parse_wallPapers(_ reader: BufferReader) -> WallPapers? { var _1: Int32? _1 = reader.readInt32() var _2: [Api.WallPaper]? @@ -276,10 +472,10 @@ struct account { } } - enum PasswordInputSettings: TypeConstructorDescription { + public enum PasswordInputSettings: TypeConstructorDescription { case passwordInputSettings(flags: Int32, newAlgo: Api.PasswordKdfAlgo?, newPasswordHash: Buffer?, hint: String?, email: String?, newSecureSettings: Api.SecureSecretSettings?) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .passwordInputSettings(let flags, let newAlgo, let newPasswordHash, let hint, let email, let newSecureSettings): if boxed { @@ -295,14 +491,14 @@ struct account { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .passwordInputSettings(let flags, let newAlgo, let newPasswordHash, let hint, let email, let newSecureSettings): return ("passwordInputSettings", [("flags", flags), ("newAlgo", newAlgo), ("newPasswordHash", newPasswordHash), ("hint", hint), ("email", email), ("newSecureSettings", newSecureSettings)]) } } - static func parse_passwordInputSettings(_ reader: BufferReader) -> PasswordInputSettings? { + public static func parse_passwordInputSettings(_ reader: BufferReader) -> PasswordInputSettings? { var _1: Int32? _1 = reader.readInt32() var _2: Api.PasswordKdfAlgo? @@ -334,10 +530,10 @@ struct account { } } - enum WebAuthorizations: TypeConstructorDescription { + public enum WebAuthorizations: TypeConstructorDescription { case webAuthorizations(authorizations: [Api.WebAuthorization], users: [Api.User]) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .webAuthorizations(let authorizations, let users): if boxed { @@ -357,14 +553,14 @@ struct account { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .webAuthorizations(let authorizations, let users): return ("webAuthorizations", [("authorizations", authorizations), ("users", users)]) } } - static func parse_webAuthorizations(_ reader: BufferReader) -> WebAuthorizations? { + public static func parse_webAuthorizations(_ reader: BufferReader) -> WebAuthorizations? { var _1: [Api.WebAuthorization]? if let _ = reader.readInt32() { _1 = Api.parseVector(reader, elementSignature: 0, elementType: Api.WebAuthorization.self) @@ -384,10 +580,10 @@ struct account { } } - enum SentEmailCode: TypeConstructorDescription { + public enum SentEmailCode: TypeConstructorDescription { case sentEmailCode(emailPattern: String, length: Int32) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .sentEmailCode(let emailPattern, let length): if boxed { @@ -399,14 +595,14 @@ struct account { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .sentEmailCode(let emailPattern, let length): return ("sentEmailCode", [("emailPattern", emailPattern), ("length", length)]) } } - static func parse_sentEmailCode(_ reader: BufferReader) -> SentEmailCode? { + public static func parse_sentEmailCode(_ reader: BufferReader) -> SentEmailCode? { var _1: String? _1 = parseString(reader) var _2: Int32? @@ -422,10 +618,10 @@ struct account { } } - enum Authorizations: TypeConstructorDescription { + public enum Authorizations: TypeConstructorDescription { case authorizations(authorizations: [Api.Authorization]) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .authorizations(let authorizations): if boxed { @@ -440,14 +636,14 @@ struct account { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .authorizations(let authorizations): return ("authorizations", [("authorizations", authorizations)]) } } - static func parse_authorizations(_ reader: BufferReader) -> Authorizations? { + public static func parse_authorizations(_ reader: BufferReader) -> Authorizations? { var _1: [Api.Authorization]? if let _ = reader.readInt32() { _1 = Api.parseVector(reader, elementSignature: 0, elementType: Api.Authorization.self) @@ -462,10 +658,10 @@ struct account { } } - enum AuthorizationForm: TypeConstructorDescription { + public enum AuthorizationForm: TypeConstructorDescription { case authorizationForm(flags: Int32, requiredTypes: [Api.SecureRequiredType], values: [Api.SecureValue], errors: [Api.SecureValueError], users: [Api.User], privacyPolicyUrl: String?) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .authorizationForm(let flags, let requiredTypes, let values, let errors, let users, let privacyPolicyUrl): if boxed { @@ -497,14 +693,14 @@ struct account { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .authorizationForm(let flags, let requiredTypes, let values, let errors, let users, let privacyPolicyUrl): return ("authorizationForm", [("flags", flags), ("requiredTypes", requiredTypes), ("values", values), ("errors", errors), ("users", users), ("privacyPolicyUrl", privacyPolicyUrl)]) } } - static func parse_authorizationForm(_ reader: BufferReader) -> AuthorizationForm? { + public static func parse_authorizationForm(_ reader: BufferReader) -> AuthorizationForm? { var _1: Int32? _1 = reader.readInt32() var _2: [Api.SecureRequiredType]? @@ -540,10 +736,10 @@ struct account { } } - enum Password: TypeConstructorDescription { + public enum Password: TypeConstructorDescription { case password(flags: Int32, currentAlgo: Api.PasswordKdfAlgo?, srpB: Buffer?, srpId: Int64?, hint: String?, emailUnconfirmedPattern: String?, newAlgo: Api.PasswordKdfAlgo, newSecureAlgo: Api.SecurePasswordKdfAlgo, secureRandom: Buffer) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .password(let flags, let currentAlgo, let srpB, let srpId, let hint, let emailUnconfirmedPattern, let newAlgo, let newSecureAlgo, let secureRandom): if boxed { @@ -562,14 +758,14 @@ struct account { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .password(let flags, let currentAlgo, let srpB, let srpId, let hint, let emailUnconfirmedPattern, let newAlgo, let newSecureAlgo, let secureRandom): return ("password", [("flags", flags), ("currentAlgo", currentAlgo), ("srpB", srpB), ("srpId", srpId), ("hint", hint), ("emailUnconfirmedPattern", emailUnconfirmedPattern), ("newAlgo", newAlgo), ("newSecureAlgo", newSecureAlgo), ("secureRandom", secureRandom)]) } } - static func parse_password(_ reader: BufferReader) -> Password? { + public static func parse_password(_ reader: BufferReader) -> Password? { var _1: Int32? _1 = reader.readInt32() var _2: Api.PasswordKdfAlgo? @@ -612,10 +808,10 @@ struct account { } } - enum PrivacyRules: TypeConstructorDescription { + public enum PrivacyRules: TypeConstructorDescription { case privacyRules(rules: [Api.PrivacyRule], chats: [Api.Chat], users: [Api.User]) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .privacyRules(let rules, let chats, let users): if boxed { @@ -640,14 +836,14 @@ struct account { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .privacyRules(let rules, let chats, let users): return ("privacyRules", [("rules", rules), ("chats", chats), ("users", users)]) } } - static func parse_privacyRules(_ reader: BufferReader) -> PrivacyRules? { + public static func parse_privacyRules(_ reader: BufferReader) -> PrivacyRules? { var _1: [Api.PrivacyRule]? if let _ = reader.readInt32() { _1 = Api.parseVector(reader, elementSignature: 0, elementType: Api.PrivacyRule.self) @@ -672,10 +868,10 @@ struct account { } } - enum AutoDownloadSettings: TypeConstructorDescription { + public enum AutoDownloadSettings: TypeConstructorDescription { case autoDownloadSettings(low: Api.AutoDownloadSettings, medium: Api.AutoDownloadSettings, high: Api.AutoDownloadSettings) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .autoDownloadSettings(let low, let medium, let high): if boxed { @@ -688,14 +884,14 @@ struct account { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .autoDownloadSettings(let low, let medium, let high): return ("autoDownloadSettings", [("low", low), ("medium", medium), ("high", high)]) } } - static func parse_autoDownloadSettings(_ reader: BufferReader) -> AutoDownloadSettings? { + public static func parse_autoDownloadSettings(_ reader: BufferReader) -> AutoDownloadSettings? { var _1: Api.AutoDownloadSettings? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.AutoDownloadSettings @@ -722,12 +918,12 @@ struct account { } } } -extension Api { -struct photos { - enum Photo: TypeConstructorDescription { +public extension Api { +public struct photos { + public enum Photo: TypeConstructorDescription { case photo(photo: Api.Photo, users: [Api.User]) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .photo(let photo, let users): if boxed { @@ -743,14 +939,14 @@ struct photos { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .photo(let photo, let users): return ("photo", [("photo", photo), ("users", users)]) } } - static func parse_photo(_ reader: BufferReader) -> Photo? { + public static func parse_photo(_ reader: BufferReader) -> Photo? { var _1: Api.Photo? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.Photo @@ -770,11 +966,11 @@ struct photos { } } - enum Photos: TypeConstructorDescription { + public enum Photos: TypeConstructorDescription { case photos(photos: [Api.Photo], users: [Api.User]) case photosSlice(count: Int32, photos: [Api.Photo], users: [Api.User]) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .photos(let photos, let users): if boxed { @@ -810,7 +1006,7 @@ struct photos { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .photos(let photos, let users): return ("photos", [("photos", photos), ("users", users)]) @@ -819,7 +1015,7 @@ struct photos { } } - static func parse_photos(_ reader: BufferReader) -> Photos? { + public static func parse_photos(_ reader: BufferReader) -> Photos? { var _1: [Api.Photo]? if let _ = reader.readInt32() { _1 = Api.parseVector(reader, elementSignature: 0, elementType: Api.Photo.self) @@ -837,7 +1033,7 @@ struct photos { return nil } } - static func parse_photosSlice(_ reader: BufferReader) -> Photos? { + public static func parse_photosSlice(_ reader: BufferReader) -> Photos? { var _1: Int32? _1 = reader.readInt32() var _2: [Api.Photo]? @@ -862,12 +1058,12 @@ struct photos { } } } -extension Api { -struct phone { - enum PhoneCall: TypeConstructorDescription { +public extension Api { +public struct phone { + public enum PhoneCall: TypeConstructorDescription { case phoneCall(phoneCall: Api.PhoneCall, users: [Api.User]) - func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { + public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) { switch self { case .phoneCall(let phoneCall, let users): if boxed { @@ -883,14 +1079,14 @@ struct phone { } } - func descriptionFields() -> (String, [(String, Any)]) { + public func descriptionFields() -> (String, [(String, Any)]) { switch self { case .phoneCall(let phoneCall, let users): return ("phoneCall", [("phoneCall", phoneCall), ("users", users)]) } } - static func parse_phoneCall(_ reader: BufferReader) -> PhoneCall? { + public static func parse_phoneCall(_ reader: BufferReader) -> PhoneCall? { var _1: Api.PhoneCall? if let signature = reader.readInt32() { _1 = Api.parse(reader, signature: signature) as? Api.PhoneCall @@ -912,10 +1108,10 @@ struct phone { } } } -extension Api { - struct functions { - struct messages { - static func getHistory(peer: Api.InputPeer, offsetId: Int32, offsetDate: Int32, addOffset: Int32, limit: Int32, maxId: Int32, minId: Int32, hash: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { +public extension Api { + public struct functions { + public struct messages { + public static func getHistory(peer: Api.InputPeer, offsetId: Int32, offsetDate: Int32, addOffset: Int32, limit: Int32, maxId: Int32, minId: Int32, hash: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-591691168) peer.serialize(buffer, true) @@ -936,7 +1132,7 @@ extension Api { }) } - static func readHistory(peer: Api.InputPeer, maxId: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func readHistory(peer: Api.InputPeer, maxId: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(238054714) peer.serialize(buffer, true) @@ -951,7 +1147,7 @@ extension Api { }) } - static func deleteHistory(flags: Int32, peer: Api.InputPeer, maxId: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func deleteHistory(flags: Int32, peer: Api.InputPeer, maxId: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(469850889) serializeInt32(flags, buffer: buffer, boxed: false) @@ -967,7 +1163,7 @@ extension Api { }) } - static func deleteMessages(flags: Int32, id: [Int32]) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func deleteMessages(flags: Int32, id: [Int32]) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-443640366) serializeInt32(flags, buffer: buffer, boxed: false) @@ -986,7 +1182,7 @@ extension Api { }) } - static func receivedMessages(maxId: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse<[Api.ReceivedNotifyMessage]>) { + public static func receivedMessages(maxId: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse<[Api.ReceivedNotifyMessage]>) { let buffer = Buffer() buffer.appendInt32(94983360) serializeInt32(maxId, buffer: buffer, boxed: false) @@ -1000,7 +1196,7 @@ extension Api { }) } - static func setTyping(peer: Api.InputPeer, action: Api.SendMessageAction) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func setTyping(peer: Api.InputPeer, action: Api.SendMessageAction) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-1551737264) peer.serialize(buffer, true) @@ -1015,7 +1211,7 @@ extension Api { }) } - static func sendMessage(flags: Int32, peer: Api.InputPeer, replyToMsgId: Int32?, message: String, randomId: Int64, replyMarkup: Api.ReplyMarkup?, entities: [Api.MessageEntity]?) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func sendMessage(flags: Int32, peer: Api.InputPeer, replyToMsgId: Int32?, message: String, randomId: Int64, replyMarkup: Api.ReplyMarkup?, entities: [Api.MessageEntity]?) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-91733382) serializeInt32(flags, buffer: buffer, boxed: false) @@ -1039,7 +1235,7 @@ extension Api { }) } - static func reportSpam(peer: Api.InputPeer) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func reportSpam(peer: Api.InputPeer) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-820669733) peer.serialize(buffer, true) @@ -1053,7 +1249,7 @@ extension Api { }) } - static func getPeerSettings(peer: Api.InputPeer) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getPeerSettings(peer: Api.InputPeer) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(913498268) peer.serialize(buffer, true) @@ -1067,7 +1263,7 @@ extension Api { }) } - static func getChats(id: [Int32]) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getChats(id: [Int32]) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(1013621127) buffer.appendInt32(481674261) @@ -1085,7 +1281,7 @@ extension Api { }) } - static func getFullChat(chatId: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getFullChat(chatId: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(998448230) serializeInt32(chatId, buffer: buffer, boxed: false) @@ -1099,7 +1295,7 @@ extension Api { }) } - static func editChatTitle(chatId: Int32, title: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func editChatTitle(chatId: Int32, title: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-599447467) serializeInt32(chatId, buffer: buffer, boxed: false) @@ -1114,7 +1310,7 @@ extension Api { }) } - static func editChatPhoto(chatId: Int32, photo: Api.InputChatPhoto) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func editChatPhoto(chatId: Int32, photo: Api.InputChatPhoto) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-900957736) serializeInt32(chatId, buffer: buffer, boxed: false) @@ -1129,7 +1325,7 @@ extension Api { }) } - static func addChatUser(chatId: Int32, userId: Api.InputUser, fwdLimit: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func addChatUser(chatId: Int32, userId: Api.InputUser, fwdLimit: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-106911223) serializeInt32(chatId, buffer: buffer, boxed: false) @@ -1145,7 +1341,7 @@ extension Api { }) } - static func deleteChatUser(chatId: Int32, userId: Api.InputUser) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func deleteChatUser(chatId: Int32, userId: Api.InputUser) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-530505962) serializeInt32(chatId, buffer: buffer, boxed: false) @@ -1160,7 +1356,7 @@ extension Api { }) } - static func createChat(users: [Api.InputUser], title: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func createChat(users: [Api.InputUser], title: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(164303470) buffer.appendInt32(481674261) @@ -1179,7 +1375,7 @@ extension Api { }) } - static func forwardMessage(peer: Api.InputPeer, id: Int32, randomId: Int64) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func forwardMessage(peer: Api.InputPeer, id: Int32, randomId: Int64) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(865483769) peer.serialize(buffer, true) @@ -1195,7 +1391,7 @@ extension Api { }) } - static func getDhConfig(version: Int32, randomLength: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getDhConfig(version: Int32, randomLength: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(651135312) serializeInt32(version, buffer: buffer, boxed: false) @@ -1210,7 +1406,7 @@ extension Api { }) } - static func requestEncryption(userId: Api.InputUser, randomId: Int32, gA: Buffer) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func requestEncryption(userId: Api.InputUser, randomId: Int32, gA: Buffer) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-162681021) userId.serialize(buffer, true) @@ -1226,7 +1422,7 @@ extension Api { }) } - static func acceptEncryption(peer: Api.InputEncryptedChat, gB: Buffer, keyFingerprint: Int64) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func acceptEncryption(peer: Api.InputEncryptedChat, gB: Buffer, keyFingerprint: Int64) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(1035731989) peer.serialize(buffer, true) @@ -1242,7 +1438,7 @@ extension Api { }) } - static func discardEncryption(chatId: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func discardEncryption(chatId: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-304536635) serializeInt32(chatId, buffer: buffer, boxed: false) @@ -1256,7 +1452,7 @@ extension Api { }) } - static func setEncryptedTyping(peer: Api.InputEncryptedChat, typing: Api.Bool) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func setEncryptedTyping(peer: Api.InputEncryptedChat, typing: Api.Bool) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(2031374829) peer.serialize(buffer, true) @@ -1271,7 +1467,7 @@ extension Api { }) } - static func readEncryptedHistory(peer: Api.InputEncryptedChat, maxDate: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func readEncryptedHistory(peer: Api.InputEncryptedChat, maxDate: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(2135648522) peer.serialize(buffer, true) @@ -1286,7 +1482,7 @@ extension Api { }) } - static func sendEncrypted(peer: Api.InputEncryptedChat, randomId: Int64, data: Buffer) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func sendEncrypted(peer: Api.InputEncryptedChat, randomId: Int64, data: Buffer) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-1451792525) peer.serialize(buffer, true) @@ -1302,7 +1498,7 @@ extension Api { }) } - static func sendEncryptedFile(peer: Api.InputEncryptedChat, randomId: Int64, data: Buffer, file: Api.InputEncryptedFile) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func sendEncryptedFile(peer: Api.InputEncryptedChat, randomId: Int64, data: Buffer, file: Api.InputEncryptedFile) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-1701831834) peer.serialize(buffer, true) @@ -1319,7 +1515,7 @@ extension Api { }) } - static func sendEncryptedService(peer: Api.InputEncryptedChat, randomId: Int64, data: Buffer) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func sendEncryptedService(peer: Api.InputEncryptedChat, randomId: Int64, data: Buffer) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(852769188) peer.serialize(buffer, true) @@ -1335,7 +1531,7 @@ extension Api { }) } - static func receivedQueue(maxQts: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse<[Int64]>) { + public static func receivedQueue(maxQts: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse<[Int64]>) { let buffer = Buffer() buffer.appendInt32(1436924774) serializeInt32(maxQts, buffer: buffer, boxed: false) @@ -1349,7 +1545,7 @@ extension Api { }) } - static func reportEncryptedSpam(peer: Api.InputEncryptedChat) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func reportEncryptedSpam(peer: Api.InputEncryptedChat) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(1259113487) peer.serialize(buffer, true) @@ -1363,7 +1559,7 @@ extension Api { }) } - static func readMessageContents(id: [Int32]) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func readMessageContents(id: [Int32]) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(916930423) buffer.appendInt32(481674261) @@ -1381,7 +1577,7 @@ extension Api { }) } - static func getAllStickers(hash: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getAllStickers(hash: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(479598769) serializeInt32(hash, buffer: buffer, boxed: false) @@ -1395,7 +1591,7 @@ extension Api { }) } - static func checkChatInvite(hash: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func checkChatInvite(hash: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(1051570619) serializeString(hash, buffer: buffer, boxed: false) @@ -1409,7 +1605,7 @@ extension Api { }) } - static func importChatInvite(hash: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func importChatInvite(hash: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(1817183516) serializeString(hash, buffer: buffer, boxed: false) @@ -1423,7 +1619,7 @@ extension Api { }) } - static func getStickerSet(stickerset: Api.InputStickerSet) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getStickerSet(stickerset: Api.InputStickerSet) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(639215886) stickerset.serialize(buffer, true) @@ -1437,7 +1633,7 @@ extension Api { }) } - static func installStickerSet(stickerset: Api.InputStickerSet, archived: Api.Bool) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func installStickerSet(stickerset: Api.InputStickerSet, archived: Api.Bool) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-946871200) stickerset.serialize(buffer, true) @@ -1452,7 +1648,7 @@ extension Api { }) } - static func uninstallStickerSet(stickerset: Api.InputStickerSet) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func uninstallStickerSet(stickerset: Api.InputStickerSet) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-110209570) stickerset.serialize(buffer, true) @@ -1466,7 +1662,7 @@ extension Api { }) } - static func startBot(bot: Api.InputUser, peer: Api.InputPeer, randomId: Int64, startParam: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func startBot(bot: Api.InputUser, peer: Api.InputPeer, randomId: Int64, startParam: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-421563528) bot.serialize(buffer, true) @@ -1483,7 +1679,7 @@ extension Api { }) } - static func getMessagesViews(peer: Api.InputPeer, id: [Int32], increment: Api.Bool) -> (FunctionDescription, Buffer, DeserializeFunctionResponse<[Int32]>) { + public static func getMessagesViews(peer: Api.InputPeer, id: [Int32], increment: Api.Bool) -> (FunctionDescription, Buffer, DeserializeFunctionResponse<[Int32]>) { let buffer = Buffer() buffer.appendInt32(-993483427) peer.serialize(buffer, true) @@ -1503,7 +1699,7 @@ extension Api { }) } - static func editChatAdmin(chatId: Int32, userId: Api.InputUser, isAdmin: Api.Bool) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func editChatAdmin(chatId: Int32, userId: Api.InputUser, isAdmin: Api.Bool) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-1444503762) serializeInt32(chatId, buffer: buffer, boxed: false) @@ -1519,7 +1715,7 @@ extension Api { }) } - static func migrateChat(chatId: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func migrateChat(chatId: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(363051235) serializeInt32(chatId, buffer: buffer, boxed: false) @@ -1533,7 +1729,7 @@ extension Api { }) } - static func reorderStickerSets(flags: Int32, order: [Int64]) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func reorderStickerSets(flags: Int32, order: [Int64]) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(2016638777) serializeInt32(flags, buffer: buffer, boxed: false) @@ -1552,7 +1748,7 @@ extension Api { }) } - static func getDocumentByHash(sha256: Buffer, size: Int32, mimeType: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getDocumentByHash(sha256: Buffer, size: Int32, mimeType: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(864953444) serializeBytes(sha256, buffer: buffer, boxed: false) @@ -1568,7 +1764,7 @@ extension Api { }) } - static func searchGifs(q: String, offset: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func searchGifs(q: String, offset: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-1080395925) serializeString(q, buffer: buffer, boxed: false) @@ -1583,7 +1779,7 @@ extension Api { }) } - static func getSavedGifs(hash: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getSavedGifs(hash: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-2084618926) serializeInt32(hash, buffer: buffer, boxed: false) @@ -1597,7 +1793,7 @@ extension Api { }) } - static func saveGif(id: Api.InputDocument, unsave: Api.Bool) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func saveGif(id: Api.InputDocument, unsave: Api.Bool) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(846868683) id.serialize(buffer, true) @@ -1612,7 +1808,7 @@ extension Api { }) } - static func getInlineBotResults(flags: Int32, bot: Api.InputUser, peer: Api.InputPeer, geoPoint: Api.InputGeoPoint?, query: String, offset: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getInlineBotResults(flags: Int32, bot: Api.InputUser, peer: Api.InputPeer, geoPoint: Api.InputGeoPoint?, query: String, offset: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(1364105629) serializeInt32(flags, buffer: buffer, boxed: false) @@ -1631,7 +1827,7 @@ extension Api { }) } - static func setInlineBotResults(flags: Int32, queryId: Int64, results: [Api.InputBotInlineResult], cacheTime: Int32, nextOffset: String?, switchPm: Api.InlineBotSwitchPM?) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func setInlineBotResults(flags: Int32, queryId: Int64, results: [Api.InputBotInlineResult], cacheTime: Int32, nextOffset: String?, switchPm: Api.InlineBotSwitchPM?) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-346119674) serializeInt32(flags, buffer: buffer, boxed: false) @@ -1654,7 +1850,7 @@ extension Api { }) } - static func sendInlineBotResult(flags: Int32, peer: Api.InputPeer, replyToMsgId: Int32?, randomId: Int64, queryId: Int64, id: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func sendInlineBotResult(flags: Int32, peer: Api.InputPeer, replyToMsgId: Int32?, randomId: Int64, queryId: Int64, id: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-1318189314) serializeInt32(flags, buffer: buffer, boxed: false) @@ -1673,7 +1869,7 @@ extension Api { }) } - static func getMessageEditData(peer: Api.InputPeer, id: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getMessageEditData(peer: Api.InputPeer, id: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-39416522) peer.serialize(buffer, true) @@ -1688,7 +1884,7 @@ extension Api { }) } - static func getBotCallbackAnswer(flags: Int32, peer: Api.InputPeer, msgId: Int32, data: Buffer?) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getBotCallbackAnswer(flags: Int32, peer: Api.InputPeer, msgId: Int32, data: Buffer?) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-2130010132) serializeInt32(flags, buffer: buffer, boxed: false) @@ -1705,7 +1901,7 @@ extension Api { }) } - static func setBotCallbackAnswer(flags: Int32, queryId: Int64, message: String?, url: String?, cacheTime: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func setBotCallbackAnswer(flags: Int32, queryId: Int64, message: String?, url: String?, cacheTime: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-712043766) serializeInt32(flags, buffer: buffer, boxed: false) @@ -1723,7 +1919,7 @@ extension Api { }) } - static func saveDraft(flags: Int32, replyToMsgId: Int32?, peer: Api.InputPeer, message: String, entities: [Api.MessageEntity]?) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func saveDraft(flags: Int32, replyToMsgId: Int32?, peer: Api.InputPeer, message: String, entities: [Api.MessageEntity]?) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-1137057461) serializeInt32(flags, buffer: buffer, boxed: false) @@ -1745,7 +1941,7 @@ extension Api { }) } - static func getAllDrafts() -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getAllDrafts() -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(1782549861) @@ -1759,7 +1955,7 @@ extension Api { }) } - static func getFeaturedStickers(hash: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getFeaturedStickers(hash: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(766298703) serializeInt32(hash, buffer: buffer, boxed: false) @@ -1773,7 +1969,7 @@ extension Api { }) } - static func readFeaturedStickers(id: [Int64]) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func readFeaturedStickers(id: [Int64]) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(1527873830) buffer.appendInt32(481674261) @@ -1791,7 +1987,7 @@ extension Api { }) } - static func getRecentStickers(flags: Int32, hash: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getRecentStickers(flags: Int32, hash: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(1587647177) serializeInt32(flags, buffer: buffer, boxed: false) @@ -1806,7 +2002,7 @@ extension Api { }) } - static func saveRecentSticker(flags: Int32, id: Api.InputDocument, unsave: Api.Bool) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func saveRecentSticker(flags: Int32, id: Api.InputDocument, unsave: Api.Bool) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(958863608) serializeInt32(flags, buffer: buffer, boxed: false) @@ -1822,7 +2018,7 @@ extension Api { }) } - static func clearRecentStickers(flags: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func clearRecentStickers(flags: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-1986437075) serializeInt32(flags, buffer: buffer, boxed: false) @@ -1836,7 +2032,7 @@ extension Api { }) } - static func getArchivedStickers(flags: Int32, offsetId: Int64, limit: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getArchivedStickers(flags: Int32, offsetId: Int64, limit: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(1475442322) serializeInt32(flags, buffer: buffer, boxed: false) @@ -1852,7 +2048,7 @@ extension Api { }) } - static func getMaskStickers(hash: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getMaskStickers(hash: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(1706608543) serializeInt32(hash, buffer: buffer, boxed: false) @@ -1866,7 +2062,7 @@ extension Api { }) } - static func getAttachedStickers(media: Api.InputStickeredMedia) -> (FunctionDescription, Buffer, DeserializeFunctionResponse<[Api.StickerSetCovered]>) { + public static func getAttachedStickers(media: Api.InputStickeredMedia) -> (FunctionDescription, Buffer, DeserializeFunctionResponse<[Api.StickerSetCovered]>) { let buffer = Buffer() buffer.appendInt32(-866424884) media.serialize(buffer, true) @@ -1880,7 +2076,7 @@ extension Api { }) } - static func setGameScore(flags: Int32, peer: Api.InputPeer, id: Int32, userId: Api.InputUser, score: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func setGameScore(flags: Int32, peer: Api.InputPeer, id: Int32, userId: Api.InputUser, score: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-1896289088) serializeInt32(flags, buffer: buffer, boxed: false) @@ -1898,7 +2094,7 @@ extension Api { }) } - static func setInlineGameScore(flags: Int32, id: Api.InputBotInlineMessageID, userId: Api.InputUser, score: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func setInlineGameScore(flags: Int32, id: Api.InputBotInlineMessageID, userId: Api.InputUser, score: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(363700068) serializeInt32(flags, buffer: buffer, boxed: false) @@ -1915,7 +2111,7 @@ extension Api { }) } - static func getGameHighScores(peer: Api.InputPeer, id: Int32, userId: Api.InputUser) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getGameHighScores(peer: Api.InputPeer, id: Int32, userId: Api.InputUser) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-400399203) peer.serialize(buffer, true) @@ -1931,7 +2127,7 @@ extension Api { }) } - static func getInlineGameHighScores(id: Api.InputBotInlineMessageID, userId: Api.InputUser) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getInlineGameHighScores(id: Api.InputBotInlineMessageID, userId: Api.InputUser) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(258170395) id.serialize(buffer, true) @@ -1946,7 +2142,7 @@ extension Api { }) } - static func getCommonChats(userId: Api.InputUser, maxId: Int32, limit: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getCommonChats(userId: Api.InputUser, maxId: Int32, limit: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(218777796) userId.serialize(buffer, true) @@ -1962,7 +2158,7 @@ extension Api { }) } - static func getAllChats(exceptIds: [Int32]) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getAllChats(exceptIds: [Int32]) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-341307408) buffer.appendInt32(481674261) @@ -1980,7 +2176,7 @@ extension Api { }) } - static func getWebPage(url: String, hash: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getWebPage(url: String, hash: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(852135825) serializeString(url, buffer: buffer, boxed: false) @@ -1995,7 +2191,7 @@ extension Api { }) } - static func setBotShippingResults(flags: Int32, queryId: Int64, error: String?, shippingOptions: [Api.ShippingOption]?) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func setBotShippingResults(flags: Int32, queryId: Int64, error: String?, shippingOptions: [Api.ShippingOption]?) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-436833542) serializeInt32(flags, buffer: buffer, boxed: false) @@ -2016,7 +2212,7 @@ extension Api { }) } - static func setBotPrecheckoutResults(flags: Int32, queryId: Int64, error: String?) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func setBotPrecheckoutResults(flags: Int32, queryId: Int64, error: String?) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(163765653) serializeInt32(flags, buffer: buffer, boxed: false) @@ -2032,7 +2228,7 @@ extension Api { }) } - static func sendScreenshotNotification(peer: Api.InputPeer, replyToMsgId: Int32, randomId: Int64) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func sendScreenshotNotification(peer: Api.InputPeer, replyToMsgId: Int32, randomId: Int64) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-914493408) peer.serialize(buffer, true) @@ -2048,7 +2244,7 @@ extension Api { }) } - static func getFavedStickers(hash: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getFavedStickers(hash: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(567151374) serializeInt32(hash, buffer: buffer, boxed: false) @@ -2062,7 +2258,7 @@ extension Api { }) } - static func faveSticker(id: Api.InputDocument, unfave: Api.Bool) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func faveSticker(id: Api.InputDocument, unfave: Api.Bool) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-1174420133) id.serialize(buffer, true) @@ -2077,7 +2273,7 @@ extension Api { }) } - static func getUnreadMentions(peer: Api.InputPeer, offsetId: Int32, addOffset: Int32, limit: Int32, maxId: Int32, minId: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getUnreadMentions(peer: Api.InputPeer, offsetId: Int32, addOffset: Int32, limit: Int32, maxId: Int32, minId: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(1180140658) peer.serialize(buffer, true) @@ -2096,7 +2292,7 @@ extension Api { }) } - static func readMentions(peer: Api.InputPeer) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func readMentions(peer: Api.InputPeer) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(251759059) peer.serialize(buffer, true) @@ -2110,7 +2306,7 @@ extension Api { }) } - static func uploadMedia(peer: Api.InputPeer, media: Api.InputMedia) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func uploadMedia(peer: Api.InputPeer, media: Api.InputMedia) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(1369162417) peer.serialize(buffer, true) @@ -2125,7 +2321,7 @@ extension Api { }) } - static func sendMultiMedia(flags: Int32, peer: Api.InputPeer, replyToMsgId: Int32?, multiMedia: [Api.InputSingleMedia]) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func sendMultiMedia(flags: Int32, peer: Api.InputPeer, replyToMsgId: Int32?, multiMedia: [Api.InputSingleMedia]) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(546656559) serializeInt32(flags, buffer: buffer, boxed: false) @@ -2146,7 +2342,7 @@ extension Api { }) } - static func forwardMessages(flags: Int32, fromPeer: Api.InputPeer, id: [Int32], randomId: [Int64], toPeer: Api.InputPeer) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func forwardMessages(flags: Int32, fromPeer: Api.InputPeer, id: [Int32], randomId: [Int64], toPeer: Api.InputPeer) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(1888354709) serializeInt32(flags, buffer: buffer, boxed: false) @@ -2172,7 +2368,7 @@ extension Api { }) } - static func uploadEncryptedFile(peer: Api.InputEncryptedChat, file: Api.InputEncryptedFile) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func uploadEncryptedFile(peer: Api.InputEncryptedChat, file: Api.InputEncryptedFile) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(1347929239) peer.serialize(buffer, true) @@ -2187,7 +2383,7 @@ extension Api { }) } - static func getWebPagePreview(flags: Int32, message: String, entities: [Api.MessageEntity]?) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getWebPagePreview(flags: Int32, message: String, entities: [Api.MessageEntity]?) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-1956073268) serializeInt32(flags, buffer: buffer, boxed: false) @@ -2207,7 +2403,7 @@ extension Api { }) } - static func sendMedia(flags: Int32, peer: Api.InputPeer, replyToMsgId: Int32?, media: Api.InputMedia, message: String, randomId: Int64, replyMarkup: Api.ReplyMarkup?, entities: [Api.MessageEntity]?) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func sendMedia(flags: Int32, peer: Api.InputPeer, replyToMsgId: Int32?, media: Api.InputMedia, message: String, randomId: Int64, replyMarkup: Api.ReplyMarkup?, entities: [Api.MessageEntity]?) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-1194252757) serializeInt32(flags, buffer: buffer, boxed: false) @@ -2232,7 +2428,7 @@ extension Api { }) } - static func getMessages(id: [Api.InputMessage]) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getMessages(id: [Api.InputMessage]) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(1673946374) buffer.appendInt32(481674261) @@ -2250,7 +2446,7 @@ extension Api { }) } - static func report(peer: Api.InputPeer, id: [Int32], reason: Api.ReportReason) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func report(peer: Api.InputPeer, id: [Int32], reason: Api.ReportReason) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-1115507112) peer.serialize(buffer, true) @@ -2270,7 +2466,7 @@ extension Api { }) } - static func getRecentLocations(peer: Api.InputPeer, limit: Int32, hash: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getRecentLocations(peer: Api.InputPeer, limit: Int32, hash: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-1144759543) peer.serialize(buffer, true) @@ -2286,7 +2482,7 @@ extension Api { }) } - static func search(flags: Int32, peer: Api.InputPeer, q: String, fromId: Api.InputUser?, filter: Api.MessagesFilter, minDate: Int32, maxDate: Int32, offsetId: Int32, addOffset: Int32, limit: Int32, maxId: Int32, minId: Int32, hash: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func search(flags: Int32, peer: Api.InputPeer, q: String, fromId: Api.InputUser?, filter: Api.MessagesFilter, minDate: Int32, maxDate: Int32, offsetId: Int32, addOffset: Int32, limit: Int32, maxId: Int32, minId: Int32, hash: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-2045448344) serializeInt32(flags, buffer: buffer, boxed: false) @@ -2312,7 +2508,7 @@ extension Api { }) } - static func toggleDialogPin(flags: Int32, peer: Api.InputDialogPeer) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func toggleDialogPin(flags: Int32, peer: Api.InputDialogPeer) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-1489903017) serializeInt32(flags, buffer: buffer, boxed: false) @@ -2327,7 +2523,7 @@ extension Api { }) } - static func getPeerDialogs(peers: [Api.InputDialogPeer]) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getPeerDialogs(peers: [Api.InputDialogPeer]) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-462373635) buffer.appendInt32(481674261) @@ -2345,7 +2541,7 @@ extension Api { }) } - static func searchStickerSets(flags: Int32, q: String, hash: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func searchStickerSets(flags: Int32, q: String, hash: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-1028140917) serializeInt32(flags, buffer: buffer, boxed: false) @@ -2361,7 +2557,7 @@ extension Api { }) } - static func getStickers(emoticon: String, hash: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getStickers(emoticon: String, hash: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(71126828) serializeString(emoticon, buffer: buffer, boxed: false) @@ -2376,7 +2572,7 @@ extension Api { }) } - static func markDialogUnread(flags: Int32, peer: Api.InputDialogPeer) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func markDialogUnread(flags: Int32, peer: Api.InputDialogPeer) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-1031349873) serializeInt32(flags, buffer: buffer, boxed: false) @@ -2391,7 +2587,7 @@ extension Api { }) } - static func getDialogUnreadMarks() -> (FunctionDescription, Buffer, DeserializeFunctionResponse<[Api.DialogPeer]>) { + public static func getDialogUnreadMarks() -> (FunctionDescription, Buffer, DeserializeFunctionResponse<[Api.DialogPeer]>) { let buffer = Buffer() buffer.appendInt32(585256482) @@ -2405,7 +2601,7 @@ extension Api { }) } - static func updatePinnedMessage(flags: Int32, peer: Api.InputPeer, id: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func updatePinnedMessage(flags: Int32, peer: Api.InputPeer, id: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-760547348) serializeInt32(flags, buffer: buffer, boxed: false) @@ -2421,7 +2617,7 @@ extension Api { }) } - static func sendVote(peer: Api.InputPeer, msgId: Int32, options: [Buffer]) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func sendVote(peer: Api.InputPeer, msgId: Int32, options: [Buffer]) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(283795844) peer.serialize(buffer, true) @@ -2441,7 +2637,7 @@ extension Api { }) } - static func getPollResults(peer: Api.InputPeer, msgId: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getPollResults(peer: Api.InputPeer, msgId: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(1941660731) peer.serialize(buffer, true) @@ -2456,7 +2652,7 @@ extension Api { }) } - static func getOnlines(peer: Api.InputPeer) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getOnlines(peer: Api.InputPeer) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(1848369232) peer.serialize(buffer, true) @@ -2470,7 +2666,7 @@ extension Api { }) } - static func getStatsURL(flags: Int32, peer: Api.InputPeer, params: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getStatsURL(flags: Int32, peer: Api.InputPeer, params: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-2127811866) serializeInt32(flags, buffer: buffer, boxed: false) @@ -2486,7 +2682,7 @@ extension Api { }) } - static func editMessage(flags: Int32, peer: Api.InputPeer, id: Int32, message: String?, media: Api.InputMedia?, replyMarkup: Api.ReplyMarkup?, entities: [Api.MessageEntity]?) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func editMessage(flags: Int32, peer: Api.InputPeer, id: Int32, message: String?, media: Api.InputMedia?, replyMarkup: Api.ReplyMarkup?, entities: [Api.MessageEntity]?) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-787025122) serializeInt32(flags, buffer: buffer, boxed: false) @@ -2510,7 +2706,7 @@ extension Api { }) } - static func editInlineBotMessage(flags: Int32, id: Api.InputBotInlineMessageID, message: String?, media: Api.InputMedia?, replyMarkup: Api.ReplyMarkup?, entities: [Api.MessageEntity]?) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func editInlineBotMessage(flags: Int32, id: Api.InputBotInlineMessageID, message: String?, media: Api.InputMedia?, replyMarkup: Api.ReplyMarkup?, entities: [Api.MessageEntity]?) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-2091549254) serializeInt32(flags, buffer: buffer, boxed: false) @@ -2533,7 +2729,7 @@ extension Api { }) } - static func editChatAbout(peer: Api.InputPeer, about: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func editChatAbout(peer: Api.InputPeer, about: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-554301545) peer.serialize(buffer, true) @@ -2548,7 +2744,7 @@ extension Api { }) } - static func editChatDefaultBannedRights(peer: Api.InputPeer, bannedRights: Api.ChatBannedRights) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func editChatDefaultBannedRights(peer: Api.InputPeer, bannedRights: Api.ChatBannedRights) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-1517917375) peer.serialize(buffer, true) @@ -2563,7 +2759,7 @@ extension Api { }) } - static func exportChatInvite(peer: Api.InputPeer) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func exportChatInvite(peer: Api.InputPeer) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(234312524) peer.serialize(buffer, true) @@ -2577,7 +2773,7 @@ extension Api { }) } - static func getEmojiKeywords(langCode: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getEmojiKeywords(langCode: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(899735650) serializeString(langCode, buffer: buffer, boxed: false) @@ -2591,7 +2787,7 @@ extension Api { }) } - static func getEmojiKeywordsDifference(langCode: String, fromVersion: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getEmojiKeywordsDifference(langCode: String, fromVersion: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(352892591) serializeString(langCode, buffer: buffer, boxed: false) @@ -2606,7 +2802,7 @@ extension Api { }) } - static func getEmojiURL(langCode: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getEmojiURL(langCode: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-709817306) serializeString(langCode, buffer: buffer, boxed: false) @@ -2620,7 +2816,7 @@ extension Api { }) } - static func reorderPinnedDialogs(flags: Int32, folderId: Int32, order: [Api.InputDialogPeer]) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func reorderPinnedDialogs(flags: Int32, folderId: Int32, order: [Api.InputDialogPeer]) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(991616823) serializeInt32(flags, buffer: buffer, boxed: false) @@ -2640,7 +2836,7 @@ extension Api { }) } - static func getPinnedDialogs(folderId: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getPinnedDialogs(folderId: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-692498958) serializeInt32(folderId, buffer: buffer, boxed: false) @@ -2654,7 +2850,7 @@ extension Api { }) } - static func getDialogs(flags: Int32, folderId: Int32?, offsetDate: Int32, offsetId: Int32, offsetPeer: Api.InputPeer, limit: Int32, hash: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getDialogs(flags: Int32, folderId: Int32?, offsetDate: Int32, offsetId: Int32, offsetPeer: Api.InputPeer, limit: Int32, hash: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-1594999949) serializeInt32(flags, buffer: buffer, boxed: false) @@ -2674,7 +2870,7 @@ extension Api { }) } - static func getSearchCounters(peer: Api.InputPeer, filters: [Api.MessagesFilter]) -> (FunctionDescription, Buffer, DeserializeFunctionResponse<[Api.messages.SearchCounter]>) { + public static func getSearchCounters(peer: Api.InputPeer, filters: [Api.MessagesFilter]) -> (FunctionDescription, Buffer, DeserializeFunctionResponse<[Api.messages.SearchCounter]>) { let buffer = Buffer() buffer.appendInt32(1932455680) peer.serialize(buffer, true) @@ -2693,7 +2889,7 @@ extension Api { }) } - static func requestUrlAuth(peer: Api.InputPeer, msgId: Int32, buttonId: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func requestUrlAuth(peer: Api.InputPeer, msgId: Int32, buttonId: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-482388461) peer.serialize(buffer, true) @@ -2709,7 +2905,7 @@ extension Api { }) } - static func acceptUrlAuth(flags: Int32, peer: Api.InputPeer, msgId: Int32, buttonId: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func acceptUrlAuth(flags: Int32, peer: Api.InputPeer, msgId: Int32, buttonId: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-148247912) serializeInt32(flags, buffer: buffer, boxed: false) @@ -2726,7 +2922,7 @@ extension Api { }) } - static func hidePeerSettingsBar(peer: Api.InputPeer) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func hidePeerSettingsBar(peer: Api.InputPeer) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(1336717624) peer.serialize(buffer, true) @@ -2740,7 +2936,7 @@ extension Api { }) } - static func searchGlobal(flags: Int32, folderId: Int32?, q: String, offsetRate: Int32, offsetPeer: Api.InputPeer, offsetId: Int32, limit: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func searchGlobal(flags: Int32, folderId: Int32?, q: String, offsetRate: Int32, offsetPeer: Api.InputPeer, offsetId: Int32, limit: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-1083038300) serializeInt32(flags, buffer: buffer, boxed: false) @@ -2760,8 +2956,8 @@ extension Api { }) } } - struct channels { - static func readHistory(channel: Api.InputChannel, maxId: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public struct channels { + public static func readHistory(channel: Api.InputChannel, maxId: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-871347913) channel.serialize(buffer, true) @@ -2776,7 +2972,7 @@ extension Api { }) } - static func deleteMessages(channel: Api.InputChannel, id: [Int32]) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func deleteMessages(channel: Api.InputChannel, id: [Int32]) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-2067661490) channel.serialize(buffer, true) @@ -2795,7 +2991,7 @@ extension Api { }) } - static func deleteUserHistory(channel: Api.InputChannel, userId: Api.InputUser) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func deleteUserHistory(channel: Api.InputChannel, userId: Api.InputUser) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-787622117) channel.serialize(buffer, true) @@ -2810,7 +3006,7 @@ extension Api { }) } - static func reportSpam(channel: Api.InputChannel, userId: Api.InputUser, id: [Int32]) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func reportSpam(channel: Api.InputChannel, userId: Api.InputUser, id: [Int32]) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-32999408) channel.serialize(buffer, true) @@ -2830,7 +3026,7 @@ extension Api { }) } - static func getParticipant(channel: Api.InputChannel, userId: Api.InputUser) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getParticipant(channel: Api.InputChannel, userId: Api.InputUser) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(1416484774) channel.serialize(buffer, true) @@ -2845,7 +3041,7 @@ extension Api { }) } - static func getChannels(id: [Api.InputChannel]) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getChannels(id: [Api.InputChannel]) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(176122811) buffer.appendInt32(481674261) @@ -2863,7 +3059,7 @@ extension Api { }) } - static func getFullChannel(channel: Api.InputChannel) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getFullChannel(channel: Api.InputChannel) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(141781513) channel.serialize(buffer, true) @@ -2877,7 +3073,7 @@ extension Api { }) } - static func createChannel(flags: Int32, title: String, about: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func createChannel(flags: Int32, title: String, about: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-192332417) serializeInt32(flags, buffer: buffer, boxed: false) @@ -2893,7 +3089,7 @@ extension Api { }) } - static func editTitle(channel: Api.InputChannel, title: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func editTitle(channel: Api.InputChannel, title: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(1450044624) channel.serialize(buffer, true) @@ -2908,7 +3104,7 @@ extension Api { }) } - static func editPhoto(channel: Api.InputChannel, photo: Api.InputChatPhoto) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func editPhoto(channel: Api.InputChannel, photo: Api.InputChatPhoto) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-248621111) channel.serialize(buffer, true) @@ -2923,7 +3119,7 @@ extension Api { }) } - static func checkUsername(channel: Api.InputChannel, username: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func checkUsername(channel: Api.InputChannel, username: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(283557164) channel.serialize(buffer, true) @@ -2938,7 +3134,7 @@ extension Api { }) } - static func updateUsername(channel: Api.InputChannel, username: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func updateUsername(channel: Api.InputChannel, username: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(890549214) channel.serialize(buffer, true) @@ -2953,7 +3149,7 @@ extension Api { }) } - static func joinChannel(channel: Api.InputChannel) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func joinChannel(channel: Api.InputChannel) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(615851205) channel.serialize(buffer, true) @@ -2967,7 +3163,7 @@ extension Api { }) } - static func leaveChannel(channel: Api.InputChannel) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func leaveChannel(channel: Api.InputChannel) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-130635115) channel.serialize(buffer, true) @@ -2981,7 +3177,7 @@ extension Api { }) } - static func inviteToChannel(channel: Api.InputChannel, users: [Api.InputUser]) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func inviteToChannel(channel: Api.InputChannel, users: [Api.InputUser]) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(429865580) channel.serialize(buffer, true) @@ -3000,7 +3196,7 @@ extension Api { }) } - static func kickFromChannel(channel: Api.InputChannel, userId: Api.InputUser, kicked: Api.Bool) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func kickFromChannel(channel: Api.InputChannel, userId: Api.InputUser, kicked: Api.Bool) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-1502421484) channel.serialize(buffer, true) @@ -3016,7 +3212,7 @@ extension Api { }) } - static func deleteChannel(channel: Api.InputChannel) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func deleteChannel(channel: Api.InputChannel) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-1072619549) channel.serialize(buffer, true) @@ -3030,7 +3226,7 @@ extension Api { }) } - static func toggleSignatures(channel: Api.InputChannel, enabled: Api.Bool) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func toggleSignatures(channel: Api.InputChannel, enabled: Api.Bool) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(527021574) channel.serialize(buffer, true) @@ -3045,7 +3241,7 @@ extension Api { }) } - static func getAdminedPublicChannels() -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getAdminedPublicChannels() -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-1920105769) @@ -3059,7 +3255,7 @@ extension Api { }) } - static func getAdminLog(flags: Int32, channel: Api.InputChannel, q: String, eventsFilter: Api.ChannelAdminLogEventsFilter?, admins: [Api.InputUser]?, maxId: Int64, minId: Int64, limit: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getAdminLog(flags: Int32, channel: Api.InputChannel, q: String, eventsFilter: Api.ChannelAdminLogEventsFilter?, admins: [Api.InputUser]?, maxId: Int64, minId: Int64, limit: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(870184064) serializeInt32(flags, buffer: buffer, boxed: false) @@ -3084,7 +3280,7 @@ extension Api { }) } - static func setStickers(channel: Api.InputChannel, stickerset: Api.InputStickerSet) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func setStickers(channel: Api.InputChannel, stickerset: Api.InputStickerSet) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-359881479) channel.serialize(buffer, true) @@ -3099,7 +3295,7 @@ extension Api { }) } - static func readMessageContents(channel: Api.InputChannel, id: [Int32]) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func readMessageContents(channel: Api.InputChannel, id: [Int32]) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-357180360) channel.serialize(buffer, true) @@ -3118,7 +3314,7 @@ extension Api { }) } - static func deleteHistory(channel: Api.InputChannel, maxId: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func deleteHistory(channel: Api.InputChannel, maxId: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-1355375294) channel.serialize(buffer, true) @@ -3133,7 +3329,7 @@ extension Api { }) } - static func togglePreHistoryHidden(channel: Api.InputChannel, enabled: Api.Bool) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func togglePreHistoryHidden(channel: Api.InputChannel, enabled: Api.Bool) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-356796084) channel.serialize(buffer, true) @@ -3148,7 +3344,7 @@ extension Api { }) } - static func getParticipants(channel: Api.InputChannel, filter: Api.ChannelParticipantsFilter, offset: Int32, limit: Int32, hash: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getParticipants(channel: Api.InputChannel, filter: Api.ChannelParticipantsFilter, offset: Int32, limit: Int32, hash: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(306054633) channel.serialize(buffer, true) @@ -3166,7 +3362,7 @@ extension Api { }) } - static func exportMessageLink(channel: Api.InputChannel, id: Int32, grouped: Api.Bool) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func exportMessageLink(channel: Api.InputChannel, id: Int32, grouped: Api.Bool) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-826838685) channel.serialize(buffer, true) @@ -3182,7 +3378,7 @@ extension Api { }) } - static func getMessages(channel: Api.InputChannel, id: [Api.InputMessage]) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getMessages(channel: Api.InputChannel, id: [Api.InputMessage]) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-1383294429) channel.serialize(buffer, true) @@ -3201,7 +3397,7 @@ extension Api { }) } - static func editAdmin(channel: Api.InputChannel, userId: Api.InputUser, adminRights: Api.ChatAdminRights) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func editAdmin(channel: Api.InputChannel, userId: Api.InputUser, adminRights: Api.ChatAdminRights) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(1895338938) channel.serialize(buffer, true) @@ -3217,7 +3413,7 @@ extension Api { }) } - static func editBanned(channel: Api.InputChannel, userId: Api.InputUser, bannedRights: Api.ChatBannedRights) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func editBanned(channel: Api.InputChannel, userId: Api.InputUser, bannedRights: Api.ChatBannedRights) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(1920559378) channel.serialize(buffer, true) @@ -3233,7 +3429,7 @@ extension Api { }) } - static func getGroupsForDiscussion() -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getGroupsForDiscussion() -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-170208392) @@ -3247,7 +3443,7 @@ extension Api { }) } - static func getBroadcastsForDiscussion() -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getBroadcastsForDiscussion() -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(445117188) @@ -3261,7 +3457,7 @@ extension Api { }) } - static func setDiscussionGroup(broadcast: Api.InputChannel, group: Api.InputChannel) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func setDiscussionGroup(broadcast: Api.InputChannel, group: Api.InputChannel) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(1079520178) broadcast.serialize(buffer, true) @@ -3276,7 +3472,7 @@ extension Api { }) } - static func editCreator(channel: Api.InputChannel, userId: Api.InputUser, password: Api.InputCheckPasswordSRP) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func editCreator(channel: Api.InputChannel, userId: Api.InputUser, password: Api.InputCheckPasswordSRP) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-1892102881) channel.serialize(buffer, true) @@ -3292,7 +3488,7 @@ extension Api { }) } - static func editLocation(channel: Api.InputChannel, geoPoint: Api.InputGeoPoint, address: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func editLocation(channel: Api.InputChannel, geoPoint: Api.InputGeoPoint, address: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(1491484525) channel.serialize(buffer, true) @@ -3308,8 +3504,8 @@ extension Api { }) } } - struct payments { - static func getPaymentForm(msgId: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public struct payments { + public static func getPaymentForm(msgId: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-1712285883) serializeInt32(msgId, buffer: buffer, boxed: false) @@ -3323,7 +3519,7 @@ extension Api { }) } - static func getPaymentReceipt(msgId: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getPaymentReceipt(msgId: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-1601001088) serializeInt32(msgId, buffer: buffer, boxed: false) @@ -3337,7 +3533,7 @@ extension Api { }) } - static func validateRequestedInfo(flags: Int32, msgId: Int32, info: Api.PaymentRequestedInfo) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func validateRequestedInfo(flags: Int32, msgId: Int32, info: Api.PaymentRequestedInfo) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(1997180532) serializeInt32(flags, buffer: buffer, boxed: false) @@ -3353,7 +3549,7 @@ extension Api { }) } - static func sendPaymentForm(flags: Int32, msgId: Int32, requestedInfoId: String?, shippingOptionId: String?, credentials: Api.InputPaymentCredentials) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func sendPaymentForm(flags: Int32, msgId: Int32, requestedInfoId: String?, shippingOptionId: String?, credentials: Api.InputPaymentCredentials) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(730364339) serializeInt32(flags, buffer: buffer, boxed: false) @@ -3371,7 +3567,7 @@ extension Api { }) } - static func getSavedInfo() -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getSavedInfo() -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(578650699) @@ -3385,7 +3581,7 @@ extension Api { }) } - static func clearSavedInfo(flags: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func clearSavedInfo(flags: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-667062079) serializeInt32(flags, buffer: buffer, boxed: false) @@ -3399,8 +3595,8 @@ extension Api { }) } } - struct auth { - static func checkPhone(phoneNumber: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public struct auth { + public static func checkPhone(phoneNumber: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(1877286395) serializeString(phoneNumber, buffer: buffer, boxed: false) @@ -3414,7 +3610,7 @@ extension Api { }) } - static func sendCode(flags: Int32, phoneNumber: String, currentNumber: Api.Bool?, apiId: Int32, apiHash: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func sendCode(flags: Int32, phoneNumber: String, currentNumber: Api.Bool?, apiId: Int32, apiHash: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-2035355412) serializeInt32(flags, buffer: buffer, boxed: false) @@ -3432,7 +3628,7 @@ extension Api { }) } - static func signUp(phoneNumber: String, phoneCodeHash: String, phoneCode: String, firstName: String, lastName: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func signUp(phoneNumber: String, phoneCodeHash: String, phoneCode: String, firstName: String, lastName: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(453408308) serializeString(phoneNumber, buffer: buffer, boxed: false) @@ -3450,7 +3646,7 @@ extension Api { }) } - static func signIn(phoneNumber: String, phoneCodeHash: String, phoneCode: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func signIn(phoneNumber: String, phoneCodeHash: String, phoneCode: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-1126886015) serializeString(phoneNumber, buffer: buffer, boxed: false) @@ -3466,7 +3662,7 @@ extension Api { }) } - static func logOut() -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func logOut() -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(1461180992) @@ -3480,7 +3676,7 @@ extension Api { }) } - static func resetAuthorizations() -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func resetAuthorizations() -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-1616179942) @@ -3494,7 +3690,7 @@ extension Api { }) } - static func sendInvites(phoneNumbers: [String], message: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func sendInvites(phoneNumbers: [String], message: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(1998331287) buffer.appendInt32(481674261) @@ -3513,7 +3709,7 @@ extension Api { }) } - static func exportAuthorization(dcId: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func exportAuthorization(dcId: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-440401971) serializeInt32(dcId, buffer: buffer, boxed: false) @@ -3527,7 +3723,7 @@ extension Api { }) } - static func importAuthorization(id: Int32, bytes: Buffer) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func importAuthorization(id: Int32, bytes: Buffer) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-470837741) serializeInt32(id, buffer: buffer, boxed: false) @@ -3542,7 +3738,7 @@ extension Api { }) } - static func bindTempAuthKey(permAuthKeyId: Int64, nonce: Int64, expiresAt: Int32, encryptedMessage: Buffer) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func bindTempAuthKey(permAuthKeyId: Int64, nonce: Int64, expiresAt: Int32, encryptedMessage: Buffer) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-841733627) serializeInt64(permAuthKeyId, buffer: buffer, boxed: false) @@ -3559,7 +3755,7 @@ extension Api { }) } - static func importBotAuthorization(flags: Int32, apiId: Int32, apiHash: String, botAuthToken: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func importBotAuthorization(flags: Int32, apiId: Int32, apiHash: String, botAuthToken: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(1738800940) serializeInt32(flags, buffer: buffer, boxed: false) @@ -3576,7 +3772,7 @@ extension Api { }) } - static func requestPasswordRecovery() -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func requestPasswordRecovery() -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-661144474) @@ -3590,7 +3786,7 @@ extension Api { }) } - static func recoverPassword(code: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func recoverPassword(code: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(1319464594) serializeString(code, buffer: buffer, boxed: false) @@ -3604,7 +3800,7 @@ extension Api { }) } - static func resendCode(phoneNumber: String, phoneCodeHash: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func resendCode(phoneNumber: String, phoneCodeHash: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(1056025023) serializeString(phoneNumber, buffer: buffer, boxed: false) @@ -3619,7 +3815,7 @@ extension Api { }) } - static func cancelCode(phoneNumber: String, phoneCodeHash: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func cancelCode(phoneNumber: String, phoneCodeHash: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(520357240) serializeString(phoneNumber, buffer: buffer, boxed: false) @@ -3634,7 +3830,7 @@ extension Api { }) } - static func dropTempAuthKeys(exceptAuthKeys: [Int64]) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func dropTempAuthKeys(exceptAuthKeys: [Int64]) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-1907842680) buffer.appendInt32(481674261) @@ -3652,7 +3848,7 @@ extension Api { }) } - static func checkPassword(password: Api.InputCheckPasswordSRP) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func checkPassword(password: Api.InputCheckPasswordSRP) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-779399914) password.serialize(buffer, true) @@ -3666,8 +3862,8 @@ extension Api { }) } } - struct bots { - static func sendCustomRequest(customMethod: String, params: Api.DataJSON) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public struct bots { + public static func sendCustomRequest(customMethod: String, params: Api.DataJSON) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-1440257555) serializeString(customMethod, buffer: buffer, boxed: false) @@ -3682,7 +3878,7 @@ extension Api { }) } - static func answerWebhookJSONQuery(queryId: Int64, data: Api.DataJSON) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func answerWebhookJSONQuery(queryId: Int64, data: Api.DataJSON) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-434028723) serializeInt64(queryId, buffer: buffer, boxed: false) @@ -3697,8 +3893,8 @@ extension Api { }) } } - struct users { - static func getUsers(id: [Api.InputUser]) -> (FunctionDescription, Buffer, DeserializeFunctionResponse<[Api.User]>) { + public struct users { + public static func getUsers(id: [Api.InputUser]) -> (FunctionDescription, Buffer, DeserializeFunctionResponse<[Api.User]>) { let buffer = Buffer() buffer.appendInt32(227648840) buffer.appendInt32(481674261) @@ -3716,7 +3912,7 @@ extension Api { }) } - static func setSecureValueErrors(id: Api.InputUser, errors: [Api.SecureValueError]) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func setSecureValueErrors(id: Api.InputUser, errors: [Api.SecureValueError]) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-1865902923) id.serialize(buffer, true) @@ -3735,7 +3931,7 @@ extension Api { }) } - static func getFullUser(id: Api.InputUser) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getFullUser(id: Api.InputUser) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-902781519) id.serialize(buffer, true) @@ -3749,8 +3945,8 @@ extension Api { }) } } - struct contacts { - static func getStatuses() -> (FunctionDescription, Buffer, DeserializeFunctionResponse<[Api.ContactStatus]>) { + public struct contacts { + public static func getStatuses() -> (FunctionDescription, Buffer, DeserializeFunctionResponse<[Api.ContactStatus]>) { let buffer = Buffer() buffer.appendInt32(-995929106) @@ -3764,7 +3960,7 @@ extension Api { }) } - static func block(id: Api.InputUser) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func block(id: Api.InputUser) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(858475004) id.serialize(buffer, true) @@ -3778,7 +3974,7 @@ extension Api { }) } - static func unblock(id: Api.InputUser) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func unblock(id: Api.InputUser) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-448724803) id.serialize(buffer, true) @@ -3792,7 +3988,7 @@ extension Api { }) } - static func getBlocked(offset: Int32, limit: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getBlocked(offset: Int32, limit: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-176409329) serializeInt32(offset, buffer: buffer, boxed: false) @@ -3807,7 +4003,7 @@ extension Api { }) } - static func exportCard() -> (FunctionDescription, Buffer, DeserializeFunctionResponse<[Int32]>) { + public static func exportCard() -> (FunctionDescription, Buffer, DeserializeFunctionResponse<[Int32]>) { let buffer = Buffer() buffer.appendInt32(-2065352905) @@ -3821,7 +4017,7 @@ extension Api { }) } - static func importCard(exportCard: [Int32]) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func importCard(exportCard: [Int32]) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(1340184318) buffer.appendInt32(481674261) @@ -3839,7 +4035,7 @@ extension Api { }) } - static func search(q: String, limit: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func search(q: String, limit: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(301470424) serializeString(q, buffer: buffer, boxed: false) @@ -3854,7 +4050,7 @@ extension Api { }) } - static func resolveUsername(username: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func resolveUsername(username: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-113456221) serializeString(username, buffer: buffer, boxed: false) @@ -3868,7 +4064,7 @@ extension Api { }) } - static func getTopPeers(flags: Int32, offset: Int32, limit: Int32, hash: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getTopPeers(flags: Int32, offset: Int32, limit: Int32, hash: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-728224331) serializeInt32(flags, buffer: buffer, boxed: false) @@ -3885,7 +4081,7 @@ extension Api { }) } - static func resetTopPeerRating(category: Api.TopPeerCategory, peer: Api.InputPeer) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func resetTopPeerRating(category: Api.TopPeerCategory, peer: Api.InputPeer) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(451113900) category.serialize(buffer, true) @@ -3900,7 +4096,7 @@ extension Api { }) } - static func importContacts(contacts: [Api.InputContact]) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func importContacts(contacts: [Api.InputContact]) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(746589157) buffer.appendInt32(481674261) @@ -3918,7 +4114,7 @@ extension Api { }) } - static func resetSaved() -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func resetSaved() -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-2020263951) @@ -3932,7 +4128,7 @@ extension Api { }) } - static func getContacts(hash: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getContacts(hash: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-1071414113) serializeInt32(hash, buffer: buffer, boxed: false) @@ -3946,7 +4142,7 @@ extension Api { }) } - static func toggleTopPeers(enabled: Api.Bool) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func toggleTopPeers(enabled: Api.Bool) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-2062238246) enabled.serialize(buffer, true) @@ -3960,7 +4156,7 @@ extension Api { }) } - static func getContactIDs(hash: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse<[Int32]>) { + public static func getContactIDs(hash: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse<[Int32]>) { let buffer = Buffer() buffer.appendInt32(749357634) serializeInt32(hash, buffer: buffer, boxed: false) @@ -3974,7 +4170,7 @@ extension Api { }) } - static func addContact(flags: Int32, id: Api.InputUser, firstName: String, lastName: String, phone: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func addContact(flags: Int32, id: Api.InputUser, firstName: String, lastName: String, phone: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-386636848) serializeInt32(flags, buffer: buffer, boxed: false) @@ -3992,7 +4188,7 @@ extension Api { }) } - static func acceptContact(id: Api.InputUser) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func acceptContact(id: Api.InputUser) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-130964977) id.serialize(buffer, true) @@ -4006,7 +4202,7 @@ extension Api { }) } - static func deleteContacts(id: [Api.InputUser]) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func deleteContacts(id: [Api.InputUser]) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(157945344) buffer.appendInt32(481674261) @@ -4024,7 +4220,7 @@ extension Api { }) } - static func getLocated(geoPoint: Api.InputGeoPoint) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getLocated(geoPoint: Api.InputGeoPoint) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(171270230) geoPoint.serialize(buffer, true) @@ -4038,8 +4234,8 @@ extension Api { }) } } - struct help { - static func getConfig() -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public struct help { + public static func getConfig() -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-990308245) @@ -4053,7 +4249,7 @@ extension Api { }) } - static func getNearestDc() -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getNearestDc() -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(531836966) @@ -4067,7 +4263,7 @@ extension Api { }) } - static func getAppUpdate() -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getAppUpdate() -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-1372724842) @@ -4081,7 +4277,7 @@ extension Api { }) } - static func getInviteText() -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getInviteText() -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(1295590211) @@ -4095,7 +4291,7 @@ extension Api { }) } - static func getSupport() -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getSupport() -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-1663104819) @@ -4109,7 +4305,7 @@ extension Api { }) } - static func getAppChangelog(prevAppVersion: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getAppChangelog(prevAppVersion: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-1877938321) serializeString(prevAppVersion, buffer: buffer, boxed: false) @@ -4123,7 +4319,7 @@ extension Api { }) } - static func setBotUpdatesStatus(pendingUpdatesCount: Int32, message: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func setBotUpdatesStatus(pendingUpdatesCount: Int32, message: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-333262899) serializeInt32(pendingUpdatesCount, buffer: buffer, boxed: false) @@ -4138,7 +4334,7 @@ extension Api { }) } - static func getCdnConfig() -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getCdnConfig() -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(1375900482) @@ -4152,7 +4348,7 @@ extension Api { }) } - static func test() -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func test() -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-1058929929) @@ -4166,7 +4362,7 @@ extension Api { }) } - static func getRecentMeUrls(referer: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getRecentMeUrls(referer: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(1036054804) serializeString(referer, buffer: buffer, boxed: false) @@ -4180,7 +4376,7 @@ extension Api { }) } - static func getProxyData() -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getProxyData() -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(1031231713) @@ -4194,7 +4390,7 @@ extension Api { }) } - static func getTermsOfServiceUpdate() -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getTermsOfServiceUpdate() -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(749019089) @@ -4208,7 +4404,7 @@ extension Api { }) } - static func acceptTermsOfService(id: Api.DataJSON) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func acceptTermsOfService(id: Api.DataJSON) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-294455398) id.serialize(buffer, true) @@ -4222,7 +4418,7 @@ extension Api { }) } - static func getDeepLinkInfo(path: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getDeepLinkInfo(path: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(1072547679) serializeString(path, buffer: buffer, boxed: false) @@ -4236,7 +4432,7 @@ extension Api { }) } - static func getPassportConfig(hash: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getPassportConfig(hash: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-966677240) serializeInt32(hash, buffer: buffer, boxed: false) @@ -4250,7 +4446,7 @@ extension Api { }) } - static func getAppConfig() -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getAppConfig() -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-1735311088) @@ -4264,7 +4460,7 @@ extension Api { }) } - static func saveAppLog(events: [Api.InputAppEvent]) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func saveAppLog(events: [Api.InputAppEvent]) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(1862465352) buffer.appendInt32(481674261) @@ -4282,8 +4478,8 @@ extension Api { }) } } - struct updates { - static func getState() -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public struct updates { + public static func getState() -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-304838614) @@ -4297,7 +4493,7 @@ extension Api { }) } - static func getDifference(flags: Int32, pts: Int32, ptsTotalLimit: Int32?, date: Int32, qts: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getDifference(flags: Int32, pts: Int32, ptsTotalLimit: Int32?, date: Int32, qts: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(630429265) serializeInt32(flags, buffer: buffer, boxed: false) @@ -4315,7 +4511,7 @@ extension Api { }) } - static func getChannelDifference(flags: Int32, channel: Api.InputChannel, filter: Api.ChannelMessagesFilter, pts: Int32, limit: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getChannelDifference(flags: Int32, channel: Api.InputChannel, filter: Api.ChannelMessagesFilter, pts: Int32, limit: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(51854712) serializeInt32(flags, buffer: buffer, boxed: false) @@ -4333,8 +4529,8 @@ extension Api { }) } } - struct folders { - static func editPeerFolders(folderPeers: [Api.InputFolderPeer]) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public struct folders { + public static func editPeerFolders(folderPeers: [Api.InputFolderPeer]) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(1749536939) buffer.appendInt32(481674261) @@ -4352,7 +4548,7 @@ extension Api { }) } - static func deleteFolder(folderId: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func deleteFolder(folderId: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(472471681) serializeInt32(folderId, buffer: buffer, boxed: false) @@ -4366,8 +4562,8 @@ extension Api { }) } } - struct upload { - static func saveFilePart(fileId: Int64, filePart: Int32, bytes: Buffer) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public struct upload { + public static func saveFilePart(fileId: Int64, filePart: Int32, bytes: Buffer) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-1291540959) serializeInt64(fileId, buffer: buffer, boxed: false) @@ -4383,7 +4579,7 @@ extension Api { }) } - static func getFile(location: Api.InputFileLocation, offset: Int32, limit: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getFile(location: Api.InputFileLocation, offset: Int32, limit: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-475607115) location.serialize(buffer, true) @@ -4399,7 +4595,7 @@ extension Api { }) } - static func saveBigFilePart(fileId: Int64, filePart: Int32, fileTotalParts: Int32, bytes: Buffer) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func saveBigFilePart(fileId: Int64, filePart: Int32, fileTotalParts: Int32, bytes: Buffer) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-562337987) serializeInt64(fileId, buffer: buffer, boxed: false) @@ -4416,7 +4612,7 @@ extension Api { }) } - static func getWebFile(location: Api.InputWebFileLocation, offset: Int32, limit: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getWebFile(location: Api.InputWebFileLocation, offset: Int32, limit: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(619086221) location.serialize(buffer, true) @@ -4432,7 +4628,7 @@ extension Api { }) } - static func getCdnFile(fileToken: Buffer, offset: Int32, limit: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getCdnFile(fileToken: Buffer, offset: Int32, limit: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(536919235) serializeBytes(fileToken, buffer: buffer, boxed: false) @@ -4448,7 +4644,7 @@ extension Api { }) } - static func reuploadCdnFile(fileToken: Buffer, requestToken: Buffer) -> (FunctionDescription, Buffer, DeserializeFunctionResponse<[Api.FileHash]>) { + public static func reuploadCdnFile(fileToken: Buffer, requestToken: Buffer) -> (FunctionDescription, Buffer, DeserializeFunctionResponse<[Api.FileHash]>) { let buffer = Buffer() buffer.appendInt32(-1691921240) serializeBytes(fileToken, buffer: buffer, boxed: false) @@ -4463,7 +4659,7 @@ extension Api { }) } - static func getCdnFileHashes(fileToken: Buffer, offset: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse<[Api.FileHash]>) { + public static func getCdnFileHashes(fileToken: Buffer, offset: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse<[Api.FileHash]>) { let buffer = Buffer() buffer.appendInt32(1302676017) serializeBytes(fileToken, buffer: buffer, boxed: false) @@ -4478,7 +4674,7 @@ extension Api { }) } - static func getFileHashes(location: Api.InputFileLocation, offset: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse<[Api.FileHash]>) { + public static func getFileHashes(location: Api.InputFileLocation, offset: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse<[Api.FileHash]>) { let buffer = Buffer() buffer.appendInt32(-956147407) location.serialize(buffer, true) @@ -4493,8 +4689,8 @@ extension Api { }) } } - struct account { - static func updateNotifySettings(peer: Api.InputNotifyPeer, settings: Api.InputPeerNotifySettings) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public struct account { + public static func updateNotifySettings(peer: Api.InputNotifyPeer, settings: Api.InputPeerNotifySettings) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-2067899501) peer.serialize(buffer, true) @@ -4509,7 +4705,7 @@ extension Api { }) } - static func getNotifySettings(peer: Api.InputNotifyPeer) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getNotifySettings(peer: Api.InputNotifyPeer) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(313765169) peer.serialize(buffer, true) @@ -4523,7 +4719,7 @@ extension Api { }) } - static func resetNotifySettings() -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func resetNotifySettings() -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-612493497) @@ -4537,7 +4733,7 @@ extension Api { }) } - static func updateProfile(flags: Int32, firstName: String?, lastName: String?, about: String?) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func updateProfile(flags: Int32, firstName: String?, lastName: String?, about: String?) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(2018596725) serializeInt32(flags, buffer: buffer, boxed: false) @@ -4554,7 +4750,7 @@ extension Api { }) } - static func updateStatus(offline: Api.Bool) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func updateStatus(offline: Api.Bool) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(1713919532) offline.serialize(buffer, true) @@ -4568,7 +4764,7 @@ extension Api { }) } - static func reportPeer(peer: Api.InputPeer, reason: Api.ReportReason) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func reportPeer(peer: Api.InputPeer, reason: Api.ReportReason) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-1374118561) peer.serialize(buffer, true) @@ -4583,7 +4779,7 @@ extension Api { }) } - static func checkUsername(username: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func checkUsername(username: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(655677548) serializeString(username, buffer: buffer, boxed: false) @@ -4597,7 +4793,7 @@ extension Api { }) } - static func updateUsername(username: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func updateUsername(username: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(1040964988) serializeString(username, buffer: buffer, boxed: false) @@ -4611,7 +4807,7 @@ extension Api { }) } - static func getPrivacy(key: Api.InputPrivacyKey) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getPrivacy(key: Api.InputPrivacyKey) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-623130288) key.serialize(buffer, true) @@ -4625,7 +4821,7 @@ extension Api { }) } - static func setPrivacy(key: Api.InputPrivacyKey, rules: [Api.InputPrivacyRule]) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func setPrivacy(key: Api.InputPrivacyKey, rules: [Api.InputPrivacyRule]) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-906486552) key.serialize(buffer, true) @@ -4644,7 +4840,7 @@ extension Api { }) } - static func deleteAccount(reason: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func deleteAccount(reason: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(1099779595) serializeString(reason, buffer: buffer, boxed: false) @@ -4658,7 +4854,7 @@ extension Api { }) } - static func getAccountTTL() -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getAccountTTL() -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(150761757) @@ -4672,7 +4868,7 @@ extension Api { }) } - static func setAccountTTL(ttl: Api.AccountDaysTTL) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func setAccountTTL(ttl: Api.AccountDaysTTL) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(608323678) ttl.serialize(buffer, true) @@ -4686,7 +4882,7 @@ extension Api { }) } - static func sendChangePhoneCode(flags: Int32, phoneNumber: String, currentNumber: Api.Bool?) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func sendChangePhoneCode(flags: Int32, phoneNumber: String, currentNumber: Api.Bool?) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(149257707) serializeInt32(flags, buffer: buffer, boxed: false) @@ -4702,7 +4898,7 @@ extension Api { }) } - static func changePhone(phoneNumber: String, phoneCodeHash: String, phoneCode: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func changePhone(phoneNumber: String, phoneCodeHash: String, phoneCode: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(1891839707) serializeString(phoneNumber, buffer: buffer, boxed: false) @@ -4718,7 +4914,7 @@ extension Api { }) } - static func updateDeviceLocked(period: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func updateDeviceLocked(period: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(954152242) serializeInt32(period, buffer: buffer, boxed: false) @@ -4732,7 +4928,7 @@ extension Api { }) } - static func getAuthorizations() -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getAuthorizations() -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-484392616) @@ -4746,7 +4942,7 @@ extension Api { }) } - static func resetAuthorization(hash: Int64) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func resetAuthorization(hash: Int64) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-545786948) serializeInt64(hash, buffer: buffer, boxed: false) @@ -4760,7 +4956,7 @@ extension Api { }) } - static func getPassword() -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getPassword() -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(1418342645) @@ -4774,7 +4970,7 @@ extension Api { }) } - static func sendConfirmPhoneCode(flags: Int32, hash: String, currentNumber: Api.Bool?) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func sendConfirmPhoneCode(flags: Int32, hash: String, currentNumber: Api.Bool?) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(353818557) serializeInt32(flags, buffer: buffer, boxed: false) @@ -4790,7 +4986,7 @@ extension Api { }) } - static func confirmPhone(phoneCodeHash: String, phoneCode: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func confirmPhone(phoneCodeHash: String, phoneCode: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(1596029123) serializeString(phoneCodeHash, buffer: buffer, boxed: false) @@ -4805,7 +5001,7 @@ extension Api { }) } - static func unregisterDevice(tokenType: Int32, token: String, otherUids: [Int32]) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func unregisterDevice(tokenType: Int32, token: String, otherUids: [Int32]) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(813089983) serializeInt32(tokenType, buffer: buffer, boxed: false) @@ -4825,7 +5021,7 @@ extension Api { }) } - static func getWebAuthorizations() -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getWebAuthorizations() -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(405695855) @@ -4839,7 +5035,7 @@ extension Api { }) } - static func resetWebAuthorization(hash: Int64) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func resetWebAuthorization(hash: Int64) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(755087855) serializeInt64(hash, buffer: buffer, boxed: false) @@ -4853,7 +5049,7 @@ extension Api { }) } - static func resetWebAuthorizations() -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func resetWebAuthorizations() -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(1747789204) @@ -4867,7 +5063,7 @@ extension Api { }) } - static func registerDevice(tokenType: Int32, token: String, appSandbox: Api.Bool, secret: Buffer, otherUids: [Int32]) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func registerDevice(tokenType: Int32, token: String, appSandbox: Api.Bool, secret: Buffer, otherUids: [Int32]) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(1555998096) serializeInt32(tokenType, buffer: buffer, boxed: false) @@ -4889,7 +5085,7 @@ extension Api { }) } - static func getAllSecureValues() -> (FunctionDescription, Buffer, DeserializeFunctionResponse<[Api.SecureValue]>) { + public static func getAllSecureValues() -> (FunctionDescription, Buffer, DeserializeFunctionResponse<[Api.SecureValue]>) { let buffer = Buffer() buffer.appendInt32(-1299661699) @@ -4903,7 +5099,7 @@ extension Api { }) } - static func getSecureValue(types: [Api.SecureValueType]) -> (FunctionDescription, Buffer, DeserializeFunctionResponse<[Api.SecureValue]>) { + public static func getSecureValue(types: [Api.SecureValueType]) -> (FunctionDescription, Buffer, DeserializeFunctionResponse<[Api.SecureValue]>) { let buffer = Buffer() buffer.appendInt32(1936088002) buffer.appendInt32(481674261) @@ -4921,7 +5117,7 @@ extension Api { }) } - static func saveSecureValue(value: Api.InputSecureValue, secureSecretId: Int64) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func saveSecureValue(value: Api.InputSecureValue, secureSecretId: Int64) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-1986010339) value.serialize(buffer, true) @@ -4936,7 +5132,7 @@ extension Api { }) } - static func deleteSecureValue(types: [Api.SecureValueType]) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func deleteSecureValue(types: [Api.SecureValueType]) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-1199522741) buffer.appendInt32(481674261) @@ -4954,7 +5150,7 @@ extension Api { }) } - static func getAuthorizationForm(botId: Int32, scope: String, publicKey: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getAuthorizationForm(botId: Int32, scope: String, publicKey: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-1200903967) serializeInt32(botId, buffer: buffer, boxed: false) @@ -4970,7 +5166,7 @@ extension Api { }) } - static func acceptAuthorization(botId: Int32, scope: String, publicKey: String, valueHashes: [Api.SecureValueHash], credentials: Api.SecureCredentialsEncrypted) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func acceptAuthorization(botId: Int32, scope: String, publicKey: String, valueHashes: [Api.SecureValueHash], credentials: Api.SecureCredentialsEncrypted) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-419267436) serializeInt32(botId, buffer: buffer, boxed: false) @@ -4992,7 +5188,7 @@ extension Api { }) } - static func sendVerifyPhoneCode(flags: Int32, phoneNumber: String, currentNumber: Api.Bool?) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func sendVerifyPhoneCode(flags: Int32, phoneNumber: String, currentNumber: Api.Bool?) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-2110553932) serializeInt32(flags, buffer: buffer, boxed: false) @@ -5008,7 +5204,7 @@ extension Api { }) } - static func verifyPhone(phoneNumber: String, phoneCodeHash: String, phoneCode: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func verifyPhone(phoneNumber: String, phoneCodeHash: String, phoneCode: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(1305716726) serializeString(phoneNumber, buffer: buffer, boxed: false) @@ -5024,7 +5220,7 @@ extension Api { }) } - static func sendVerifyEmailCode(email: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func sendVerifyEmailCode(email: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(1880182943) serializeString(email, buffer: buffer, boxed: false) @@ -5038,7 +5234,7 @@ extension Api { }) } - static func verifyEmail(email: String, code: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func verifyEmail(email: String, code: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-323339813) serializeString(email, buffer: buffer, boxed: false) @@ -5053,7 +5249,7 @@ extension Api { }) } - static func getTmpPassword(password: Api.InputCheckPasswordSRP, period: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getTmpPassword(password: Api.InputCheckPasswordSRP, period: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(1151208273) password.serialize(buffer, true) @@ -5068,7 +5264,7 @@ extension Api { }) } - static func updatePasswordSettings(password: Api.InputCheckPasswordSRP, newSettings: Api.account.PasswordInputSettings) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func updatePasswordSettings(password: Api.InputCheckPasswordSRP, newSettings: Api.account.PasswordInputSettings) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-1516564433) password.serialize(buffer, true) @@ -5083,7 +5279,7 @@ extension Api { }) } - static func getPasswordSettings(password: Api.InputCheckPasswordSRP) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getPasswordSettings(password: Api.InputCheckPasswordSRP) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-1663767815) password.serialize(buffer, true) @@ -5097,7 +5293,7 @@ extension Api { }) } - static func confirmPasswordEmail(code: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func confirmPasswordEmail(code: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-1881204448) serializeString(code, buffer: buffer, boxed: false) @@ -5111,7 +5307,7 @@ extension Api { }) } - static func resendPasswordEmail() -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func resendPasswordEmail() -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(2055154197) @@ -5125,7 +5321,7 @@ extension Api { }) } - static func cancelPasswordEmail() -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func cancelPasswordEmail() -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-1043606090) @@ -5139,7 +5335,7 @@ extension Api { }) } - static func getContactSignUpNotification() -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getContactSignUpNotification() -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-1626880216) @@ -5153,7 +5349,7 @@ extension Api { }) } - static func setContactSignUpNotification(silent: Api.Bool) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func setContactSignUpNotification(silent: Api.Bool) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-806076575) silent.serialize(buffer, true) @@ -5167,7 +5363,7 @@ extension Api { }) } - static func getNotifyExceptions(flags: Int32, peer: Api.InputNotifyPeer?) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getNotifyExceptions(flags: Int32, peer: Api.InputNotifyPeer?) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(1398240377) serializeInt32(flags, buffer: buffer, boxed: false) @@ -5182,7 +5378,7 @@ extension Api { }) } - static func getWallPapers(hash: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getWallPapers(hash: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-1430579357) serializeInt32(hash, buffer: buffer, boxed: false) @@ -5196,7 +5392,7 @@ extension Api { }) } - static func uploadWallPaper(file: Api.InputFile, mimeType: String, settings: Api.WallPaperSettings) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func uploadWallPaper(file: Api.InputFile, mimeType: String, settings: Api.WallPaperSettings) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-578472351) file.serialize(buffer, true) @@ -5212,7 +5408,7 @@ extension Api { }) } - static func getWallPaper(wallpaper: Api.InputWallPaper) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getWallPaper(wallpaper: Api.InputWallPaper) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-57811990) wallpaper.serialize(buffer, true) @@ -5226,7 +5422,7 @@ extension Api { }) } - static func saveWallPaper(wallpaper: Api.InputWallPaper, unsave: Api.Bool, settings: Api.WallPaperSettings) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func saveWallPaper(wallpaper: Api.InputWallPaper, unsave: Api.Bool, settings: Api.WallPaperSettings) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(1817860919) wallpaper.serialize(buffer, true) @@ -5242,7 +5438,7 @@ extension Api { }) } - static func installWallPaper(wallpaper: Api.InputWallPaper, settings: Api.WallPaperSettings) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func installWallPaper(wallpaper: Api.InputWallPaper, settings: Api.WallPaperSettings) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-18000023) wallpaper.serialize(buffer, true) @@ -5257,7 +5453,7 @@ extension Api { }) } - static func resetWallPapers() -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func resetWallPapers() -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-1153722364) @@ -5271,7 +5467,7 @@ extension Api { }) } - static func getAutoDownloadSettings() -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getAutoDownloadSettings() -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(1457130303) @@ -5285,7 +5481,7 @@ extension Api { }) } - static func saveAutoDownloadSettings(flags: Int32, settings: Api.AutoDownloadSettings) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func saveAutoDownloadSettings(flags: Int32, settings: Api.AutoDownloadSettings) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(1995661875) serializeInt32(flags, buffer: buffer, boxed: false) @@ -5300,8 +5496,8 @@ extension Api { }) } } - struct langpack { - static func getLangPack(langPack: String, langCode: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public struct langpack { + public static func getLangPack(langPack: String, langCode: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-219008246) serializeString(langPack, buffer: buffer, boxed: false) @@ -5316,7 +5512,7 @@ extension Api { }) } - static func getStrings(langPack: String, langCode: String, keys: [String]) -> (FunctionDescription, Buffer, DeserializeFunctionResponse<[Api.LangPackString]>) { + public static func getStrings(langPack: String, langCode: String, keys: [String]) -> (FunctionDescription, Buffer, DeserializeFunctionResponse<[Api.LangPackString]>) { let buffer = Buffer() buffer.appendInt32(-269862909) serializeString(langPack, buffer: buffer, boxed: false) @@ -5336,7 +5532,7 @@ extension Api { }) } - static func getLanguages(langPack: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse<[Api.LangPackLanguage]>) { + public static func getLanguages(langPack: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse<[Api.LangPackLanguage]>) { let buffer = Buffer() buffer.appendInt32(1120311183) serializeString(langPack, buffer: buffer, boxed: false) @@ -5350,7 +5546,7 @@ extension Api { }) } - static func getDifference(langCode: String, fromVersion: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getDifference(langCode: String, fromVersion: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-1655576556) serializeString(langCode, buffer: buffer, boxed: false) @@ -5365,7 +5561,7 @@ extension Api { }) } - static func getLanguage(langPack: String, langCode: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getLanguage(langPack: String, langCode: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(1784243458) serializeString(langPack, buffer: buffer, boxed: false) @@ -5380,8 +5576,8 @@ extension Api { }) } } - struct photos { - static func updateProfilePhoto(id: Api.InputPhoto) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public struct photos { + public static func updateProfilePhoto(id: Api.InputPhoto) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-256159406) id.serialize(buffer, true) @@ -5395,7 +5591,7 @@ extension Api { }) } - static func uploadProfilePhoto(file: Api.InputFile) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func uploadProfilePhoto(file: Api.InputFile) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(1328726168) file.serialize(buffer, true) @@ -5409,7 +5605,7 @@ extension Api { }) } - static func deletePhotos(id: [Api.InputPhoto]) -> (FunctionDescription, Buffer, DeserializeFunctionResponse<[Int64]>) { + public static func deletePhotos(id: [Api.InputPhoto]) -> (FunctionDescription, Buffer, DeserializeFunctionResponse<[Int64]>) { let buffer = Buffer() buffer.appendInt32(-2016444625) buffer.appendInt32(481674261) @@ -5427,7 +5623,7 @@ extension Api { }) } - static func getUserPhotos(userId: Api.InputUser, offset: Int32, maxId: Int64, limit: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func getUserPhotos(userId: Api.InputUser, offset: Int32, maxId: Int64, limit: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-1848823128) userId.serialize(buffer, true) @@ -5444,8 +5640,8 @@ extension Api { }) } } - struct phone { - static func getCallConfig() -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public struct phone { + public static func getCallConfig() -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(1430593449) @@ -5459,7 +5655,7 @@ extension Api { }) } - static func acceptCall(peer: Api.InputPhoneCall, gB: Buffer, `protocol`: Api.PhoneCallProtocol) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func acceptCall(peer: Api.InputPhoneCall, gB: Buffer, `protocol`: Api.PhoneCallProtocol) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(1003664544) peer.serialize(buffer, true) @@ -5475,7 +5671,7 @@ extension Api { }) } - static func confirmCall(peer: Api.InputPhoneCall, gA: Buffer, keyFingerprint: Int64, `protocol`: Api.PhoneCallProtocol) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func confirmCall(peer: Api.InputPhoneCall, gA: Buffer, keyFingerprint: Int64, `protocol`: Api.PhoneCallProtocol) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(788404002) peer.serialize(buffer, true) @@ -5492,7 +5688,7 @@ extension Api { }) } - static func receivedCall(peer: Api.InputPhoneCall) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func receivedCall(peer: Api.InputPhoneCall) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(399855457) peer.serialize(buffer, true) @@ -5506,7 +5702,7 @@ extension Api { }) } - static func saveCallDebug(peer: Api.InputPhoneCall, debug: Api.DataJSON) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func saveCallDebug(peer: Api.InputPhoneCall, debug: Api.DataJSON) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(662363518) peer.serialize(buffer, true) @@ -5521,7 +5717,7 @@ extension Api { }) } - static func setCallRating(flags: Int32, peer: Api.InputPhoneCall, rating: Int32, comment: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func setCallRating(flags: Int32, peer: Api.InputPhoneCall, rating: Int32, comment: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(1508562471) serializeInt32(flags, buffer: buffer, boxed: false) @@ -5538,7 +5734,7 @@ extension Api { }) } - static func requestCall(flags: Int32, userId: Api.InputUser, randomId: Int32, gAHash: Buffer, `protocol`: Api.PhoneCallProtocol) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func requestCall(flags: Int32, userId: Api.InputUser, randomId: Int32, gAHash: Buffer, `protocol`: Api.PhoneCallProtocol) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(1124046573) serializeInt32(flags, buffer: buffer, boxed: false) @@ -5556,7 +5752,7 @@ extension Api { }) } - static func discardCall(flags: Int32, peer: Api.InputPhoneCall, duration: Int32, reason: Api.PhoneCallDiscardReason, connectionId: Int64) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + public static func discardCall(flags: Int32, peer: Api.InputPhoneCall, duration: Int32, reason: Api.PhoneCallDiscardReason, connectionId: Int64) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { let buffer = Buffer() buffer.appendInt32(-1295269440) serializeInt32(flags, buffer: buffer, boxed: false)