mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Update
This commit is contained in:
parent
26cc304ca0
commit
3b5707fe0f
45 changed files with 5065 additions and 1290 deletions
|
|
@ -30,8 +30,8 @@ class UITests: XCTestCase {
|
|||
XCTAssert(app.wait(for: .runningForeground, timeout: 10.0))
|
||||
}
|
||||
|
||||
func testLoginToSetName() throws {
|
||||
deleteTestAccount(phone: "9996625678")
|
||||
func testSignUp() throws {
|
||||
deleteTestAccount(phone: "9996629999")
|
||||
app.launch()
|
||||
|
||||
// Welcome screen — tap Start Messaging
|
||||
|
|
@ -50,7 +50,7 @@ class UITests: XCTestCase {
|
|||
|
||||
let phoneNumberField = app.textFields["Auth.PhoneEntry.PhoneNumberField"]
|
||||
phoneNumberField.tap()
|
||||
phoneNumberField.typeText("6625678")
|
||||
phoneNumberField.typeText("6629999")
|
||||
|
||||
let continueButton = app.buttons["Auth.PhoneEntry.ContinueButton"]
|
||||
XCTAssert(continueButton.waitForExistence(timeout: 3.0))
|
||||
|
|
@ -83,5 +83,10 @@ class UITests: XCTestCase {
|
|||
let signUpButton = app.buttons["Auth.SetName.ContinueButton"]
|
||||
XCTAssert(signUpButton.waitForExistence(timeout: 3.0))
|
||||
signUpButton.tap()
|
||||
|
||||
// Wait for post-signup UI to appear
|
||||
sleep(10)
|
||||
let description = app.debugDescription
|
||||
XCTFail("UI DUMP:\n\(description)")
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -185,7 +185,7 @@ fileprivate let parsers: [Int32 : (BufferReader) -> Any?] = {
|
|||
dict[-1798033689] = { return Api.ChannelMessagesFilter.parse_channelMessagesFilterEmpty($0) }
|
||||
dict[466961494] = { return Api.ChannelParticipant.parse_channelParticipant($0) }
|
||||
dict[885242707] = { return Api.ChannelParticipant.parse_channelParticipantAdmin($0) }
|
||||
dict[1844969806] = { return Api.ChannelParticipant.parse_channelParticipantBanned($0) }
|
||||
dict[-705647215] = { return Api.ChannelParticipant.parse_channelParticipantBanned($0) }
|
||||
dict[803602899] = { return Api.ChannelParticipant.parse_channelParticipantCreator($0) }
|
||||
dict[453242886] = { return Api.ChannelParticipant.parse_channelParticipantLeft($0) }
|
||||
dict[-1454929382] = { return Api.ChannelParticipant.parse_channelParticipantSelf($0) }
|
||||
|
|
@ -609,6 +609,8 @@ fileprivate let parsers: [Int32 : (BufferReader) -> Any?] = {
|
|||
dict[-1615153660] = { return Api.MessageAction.parse_messageActionHistoryClear($0) }
|
||||
dict[1345295095] = { return Api.MessageAction.parse_messageActionInviteToGroupCall($0) }
|
||||
dict[-1333866363] = { return Api.MessageAction.parse_messageActionNewCreatorPending($0) }
|
||||
dict[1042781114] = { return Api.MessageAction.parse_messageActionNoForwardsRequest($0) }
|
||||
dict[-1082301070] = { return Api.MessageAction.parse_messageActionNoForwardsToggle($0) }
|
||||
dict[-2068281992] = { return Api.MessageAction.parse_messageActionPaidMessagesPrice($0) }
|
||||
dict[-1407246387] = { return Api.MessageAction.parse_messageActionPaidMessagesRefunded($0) }
|
||||
dict[1102307842] = { return Api.MessageAction.parse_messageActionPaymentRefunded($0) }
|
||||
|
|
@ -1174,7 +1176,6 @@ fileprivate let parsers: [Int32 : (BufferReader) -> Any?] = {
|
|||
dict[-1094555409] = { return Api.Update.parse_updateNotifySettings($0) }
|
||||
dict[-1955438642] = { return Api.Update.parse_updatePaidReactionPrivacy($0) }
|
||||
dict[-337610926] = { return Api.Update.parse_updatePeerBlocked($0) }
|
||||
dict[1463202714] = { return Api.Update.parse_updatePeerHistoryNoForwards($0) }
|
||||
dict[-1147422299] = { return Api.Update.parse_updatePeerHistoryTTL($0) }
|
||||
dict[-1263546448] = { return Api.Update.parse_updatePeerLocated($0) }
|
||||
dict[1786671974] = { return Api.Update.parse_updatePeerSettings($0) }
|
||||
|
|
|
|||
|
|
@ -1,10 +1,13 @@
|
|||
public extension Api {
|
||||
enum AccountDaysTTL: TypeConstructorDescription {
|
||||
public class Cons_accountDaysTTL {
|
||||
public class Cons_accountDaysTTL: TypeConstructorDescription {
|
||||
public var days: Int32
|
||||
public init(days: Int32) {
|
||||
self.days = days
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("accountDaysTTL", [("days", self.days as Any)])
|
||||
}
|
||||
}
|
||||
case accountDaysTTL(Cons_accountDaysTTL)
|
||||
|
||||
|
|
@ -41,7 +44,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum AttachMenuBot: TypeConstructorDescription {
|
||||
public class Cons_attachMenuBot {
|
||||
public class Cons_attachMenuBot: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var botId: Int64
|
||||
public var shortName: String
|
||||
|
|
@ -54,6 +57,9 @@ public extension Api {
|
|||
self.peerTypes = peerTypes
|
||||
self.icons = icons
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("attachMenuBot", [("flags", self.flags as Any), ("botId", self.botId as Any), ("shortName", self.shortName as Any), ("peerTypes", self.peerTypes as Any), ("icons", self.icons as Any)])
|
||||
}
|
||||
}
|
||||
case attachMenuBot(Cons_attachMenuBot)
|
||||
|
||||
|
|
@ -122,7 +128,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum AttachMenuBotIcon: TypeConstructorDescription {
|
||||
public class Cons_attachMenuBotIcon {
|
||||
public class Cons_attachMenuBotIcon: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var name: String
|
||||
public var icon: Api.Document
|
||||
|
|
@ -133,6 +139,9 @@ public extension Api {
|
|||
self.icon = icon
|
||||
self.colors = colors
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("attachMenuBotIcon", [("flags", self.flags as Any), ("name", self.name as Any), ("icon", self.icon as Any), ("colors", self.colors as Any)])
|
||||
}
|
||||
}
|
||||
case attachMenuBotIcon(Cons_attachMenuBotIcon)
|
||||
|
||||
|
|
@ -193,13 +202,16 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum AttachMenuBotIconColor: TypeConstructorDescription {
|
||||
public class Cons_attachMenuBotIconColor {
|
||||
public class Cons_attachMenuBotIconColor: TypeConstructorDescription {
|
||||
public var name: String
|
||||
public var color: Int32
|
||||
public init(name: String, color: Int32) {
|
||||
self.name = name
|
||||
self.color = color
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("attachMenuBotIconColor", [("name", self.name as Any), ("color", self.color as Any)])
|
||||
}
|
||||
}
|
||||
case attachMenuBotIconColor(Cons_attachMenuBotIconColor)
|
||||
|
||||
|
|
@ -240,7 +252,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum AttachMenuBots: TypeConstructorDescription {
|
||||
public class Cons_attachMenuBots {
|
||||
public class Cons_attachMenuBots: TypeConstructorDescription {
|
||||
public var hash: Int64
|
||||
public var bots: [Api.AttachMenuBot]
|
||||
public var users: [Api.User]
|
||||
|
|
@ -249,6 +261,9 @@ public extension Api {
|
|||
self.bots = bots
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("attachMenuBots", [("hash", self.hash as Any), ("bots", self.bots as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case attachMenuBots(Cons_attachMenuBots)
|
||||
case attachMenuBotsNotModified
|
||||
|
|
@ -316,13 +331,16 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum AttachMenuBotsBot: TypeConstructorDescription {
|
||||
public class Cons_attachMenuBotsBot {
|
||||
public class Cons_attachMenuBotsBot: TypeConstructorDescription {
|
||||
public var bot: Api.AttachMenuBot
|
||||
public var users: [Api.User]
|
||||
public init(bot: Api.AttachMenuBot, users: [Api.User]) {
|
||||
self.bot = bot
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("attachMenuBotsBot", [("bot", self.bot as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case attachMenuBotsBot(Cons_attachMenuBotsBot)
|
||||
|
||||
|
|
@ -441,7 +459,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum AuctionBidLevel: TypeConstructorDescription {
|
||||
public class Cons_auctionBidLevel {
|
||||
public class Cons_auctionBidLevel: TypeConstructorDescription {
|
||||
public var pos: Int32
|
||||
public var amount: Int64
|
||||
public var date: Int32
|
||||
|
|
@ -450,6 +468,9 @@ public extension Api {
|
|||
self.amount = amount
|
||||
self.date = date
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("auctionBidLevel", [("pos", self.pos as Any), ("amount", self.amount as Any), ("date", self.date as Any)])
|
||||
}
|
||||
}
|
||||
case auctionBidLevel(Cons_auctionBidLevel)
|
||||
|
||||
|
|
@ -494,7 +515,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum Authorization: TypeConstructorDescription {
|
||||
public class Cons_authorization {
|
||||
public class Cons_authorization: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var hash: Int64
|
||||
public var deviceModel: String
|
||||
|
|
@ -523,6 +544,9 @@ public extension Api {
|
|||
self.country = country
|
||||
self.region = region
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("authorization", [("flags", self.flags as Any), ("hash", self.hash as Any), ("deviceModel", self.deviceModel as Any), ("platform", self.platform as Any), ("systemVersion", self.systemVersion as Any), ("apiId", self.apiId as Any), ("appName", self.appName as Any), ("appVersion", self.appVersion as Any), ("dateCreated", self.dateCreated as Any), ("dateActive", self.dateActive as Any), ("ip", self.ip as Any), ("country", self.country as Any), ("region", self.region as Any)])
|
||||
}
|
||||
}
|
||||
case authorization(Cons_authorization)
|
||||
|
||||
|
|
@ -607,7 +631,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum AutoDownloadSettings: TypeConstructorDescription {
|
||||
public class Cons_autoDownloadSettings {
|
||||
public class Cons_autoDownloadSettings: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var photoSizeMax: Int32
|
||||
public var videoSizeMax: Int64
|
||||
|
|
@ -624,6 +648,9 @@ public extension Api {
|
|||
self.smallQueueActiveOperationsMax = smallQueueActiveOperationsMax
|
||||
self.largeQueueActiveOperationsMax = largeQueueActiveOperationsMax
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("autoDownloadSettings", [("flags", self.flags as Any), ("photoSizeMax", self.photoSizeMax as Any), ("videoSizeMax", self.videoSizeMax as Any), ("fileSizeMax", self.fileSizeMax as Any), ("videoUploadMaxbitrate", self.videoUploadMaxbitrate as Any), ("smallQueueActiveOperationsMax", self.smallQueueActiveOperationsMax as Any), ("largeQueueActiveOperationsMax", self.largeQueueActiveOperationsMax as Any)])
|
||||
}
|
||||
}
|
||||
case autoDownloadSettings(Cons_autoDownloadSettings)
|
||||
|
||||
|
|
@ -684,13 +711,16 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum AutoSaveException: TypeConstructorDescription {
|
||||
public class Cons_autoSaveException {
|
||||
public class Cons_autoSaveException: TypeConstructorDescription {
|
||||
public var peer: Api.Peer
|
||||
public var settings: Api.AutoSaveSettings
|
||||
public init(peer: Api.Peer, settings: Api.AutoSaveSettings) {
|
||||
self.peer = peer
|
||||
self.settings = settings
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("autoSaveException", [("peer", self.peer as Any), ("settings", self.settings as Any)])
|
||||
}
|
||||
}
|
||||
case autoSaveException(Cons_autoSaveException)
|
||||
|
||||
|
|
@ -735,13 +765,16 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum AutoSaveSettings: TypeConstructorDescription {
|
||||
public class Cons_autoSaveSettings {
|
||||
public class Cons_autoSaveSettings: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var videoMaxSize: Int64?
|
||||
public init(flags: Int32, videoMaxSize: Int64?) {
|
||||
self.flags = flags
|
||||
self.videoMaxSize = videoMaxSize
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("autoSaveSettings", [("flags", self.flags as Any), ("videoMaxSize", self.videoMaxSize as Any)])
|
||||
}
|
||||
}
|
||||
case autoSaveSettings(Cons_autoSaveSettings)
|
||||
|
||||
|
|
@ -786,7 +819,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum AvailableEffect: TypeConstructorDescription {
|
||||
public class Cons_availableEffect {
|
||||
public class Cons_availableEffect: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var id: Int64
|
||||
public var emoticon: String
|
||||
|
|
@ -801,6 +834,9 @@ public extension Api {
|
|||
self.effectStickerId = effectStickerId
|
||||
self.effectAnimationId = effectAnimationId
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("availableEffect", [("flags", self.flags as Any), ("id", self.id as Any), ("emoticon", self.emoticon as Any), ("staticIconId", self.staticIconId as Any), ("effectStickerId", self.effectStickerId as Any), ("effectAnimationId", self.effectAnimationId as Any)])
|
||||
}
|
||||
}
|
||||
case availableEffect(Cons_availableEffect)
|
||||
|
||||
|
|
@ -865,7 +901,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum AvailableReaction: TypeConstructorDescription {
|
||||
public class Cons_availableReaction {
|
||||
public class Cons_availableReaction: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var reaction: String
|
||||
public var title: String
|
||||
|
|
@ -888,6 +924,9 @@ public extension Api {
|
|||
self.aroundAnimation = aroundAnimation
|
||||
self.centerIcon = centerIcon
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("availableReaction", [("flags", self.flags as Any), ("reaction", self.reaction as Any), ("title", self.title as Any), ("staticIcon", self.staticIcon as Any), ("appearAnimation", self.appearAnimation as Any), ("selectAnimation", self.selectAnimation as Any), ("activateAnimation", self.activateAnimation as Any), ("effectAnimation", self.effectAnimation as Any), ("aroundAnimation", self.aroundAnimation as Any), ("centerIcon", self.centerIcon as Any)])
|
||||
}
|
||||
}
|
||||
case availableReaction(Cons_availableReaction)
|
||||
|
||||
|
|
@ -982,13 +1021,16 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum BankCardOpenUrl: TypeConstructorDescription {
|
||||
public class Cons_bankCardOpenUrl {
|
||||
public class Cons_bankCardOpenUrl: TypeConstructorDescription {
|
||||
public var url: String
|
||||
public var name: String
|
||||
public init(url: String, name: String) {
|
||||
self.url = url
|
||||
self.name = name
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("bankCardOpenUrl", [("url", self.url as Any), ("name", self.name as Any)])
|
||||
}
|
||||
}
|
||||
case bankCardOpenUrl(Cons_bankCardOpenUrl)
|
||||
|
||||
|
|
@ -1099,7 +1141,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum Birthday: TypeConstructorDescription {
|
||||
public class Cons_birthday {
|
||||
public class Cons_birthday: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var day: Int32
|
||||
public var month: Int32
|
||||
|
|
@ -1110,6 +1152,9 @@ public extension Api {
|
|||
self.month = month
|
||||
self.year = year
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("birthday", [("flags", self.flags as Any), ("day", self.day as Any), ("month", self.month as Any), ("year", self.year as Any)])
|
||||
}
|
||||
}
|
||||
case birthday(Cons_birthday)
|
||||
|
||||
|
|
@ -1199,7 +1244,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum Boost: TypeConstructorDescription {
|
||||
public class Cons_boost {
|
||||
public class Cons_boost: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var id: String
|
||||
public var userId: Int64?
|
||||
|
|
@ -1220,6 +1265,9 @@ public extension Api {
|
|||
self.multiplier = multiplier
|
||||
self.stars = stars
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("boost", [("flags", self.flags as Any), ("id", self.id as Any), ("userId", self.userId as Any), ("giveawayMsgId", self.giveawayMsgId as Any), ("date", self.date as Any), ("expires", self.expires as Any), ("usedGiftSlug", self.usedGiftSlug as Any), ("multiplier", self.multiplier as Any), ("stars", self.stars as Any)])
|
||||
}
|
||||
}
|
||||
case boost(Cons_boost)
|
||||
|
||||
|
|
@ -1308,7 +1356,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum BotApp: TypeConstructorDescription {
|
||||
public class Cons_botApp {
|
||||
public class Cons_botApp: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var id: Int64
|
||||
public var accessHash: Int64
|
||||
|
|
@ -1329,6 +1377,9 @@ public extension Api {
|
|||
self.document = document
|
||||
self.hash = hash
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("botApp", [("flags", self.flags as Any), ("id", self.id as Any), ("accessHash", self.accessHash as Any), ("shortName", self.shortName as Any), ("title", self.title as Any), ("description", self.description as Any), ("photo", self.photo as Any), ("document", self.document as Any), ("hash", self.hash as Any)])
|
||||
}
|
||||
}
|
||||
case botApp(Cons_botApp)
|
||||
case botAppNotModified
|
||||
|
|
@ -1416,7 +1467,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum BotAppSettings: TypeConstructorDescription {
|
||||
public class Cons_botAppSettings {
|
||||
public class Cons_botAppSettings: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var placeholderPath: Buffer?
|
||||
public var backgroundColor: Int32?
|
||||
|
|
@ -1431,6 +1482,9 @@ public extension Api {
|
|||
self.headerColor = headerColor
|
||||
self.headerDarkColor = headerDarkColor
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("botAppSettings", [("flags", self.flags as Any), ("placeholderPath", self.placeholderPath as Any), ("backgroundColor", self.backgroundColor as Any), ("backgroundDarkColor", self.backgroundDarkColor as Any), ("headerColor", self.headerColor as Any), ("headerDarkColor", self.headerDarkColor as Any)])
|
||||
}
|
||||
}
|
||||
case botAppSettings(Cons_botAppSettings)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
public extension Api {
|
||||
indirect enum InputFileLocation: TypeConstructorDescription {
|
||||
public class Cons_inputDocumentFileLocation {
|
||||
public class Cons_inputDocumentFileLocation: TypeConstructorDescription {
|
||||
public var id: Int64
|
||||
public var accessHash: Int64
|
||||
public var fileReference: Buffer
|
||||
|
|
@ -11,16 +11,22 @@ public extension Api {
|
|||
self.fileReference = fileReference
|
||||
self.thumbSize = thumbSize
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputDocumentFileLocation", [("id", self.id as Any), ("accessHash", self.accessHash as Any), ("fileReference", self.fileReference as Any), ("thumbSize", self.thumbSize as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputEncryptedFileLocation {
|
||||
public class Cons_inputEncryptedFileLocation: TypeConstructorDescription {
|
||||
public var id: Int64
|
||||
public var accessHash: Int64
|
||||
public init(id: Int64, accessHash: Int64) {
|
||||
self.id = id
|
||||
self.accessHash = accessHash
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputEncryptedFileLocation", [("id", self.id as Any), ("accessHash", self.accessHash as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputFileLocation {
|
||||
public class Cons_inputFileLocation: TypeConstructorDescription {
|
||||
public var volumeId: Int64
|
||||
public var localId: Int32
|
||||
public var secret: Int64
|
||||
|
|
@ -31,8 +37,11 @@ public extension Api {
|
|||
self.secret = secret
|
||||
self.fileReference = fileReference
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputFileLocation", [("volumeId", self.volumeId as Any), ("localId", self.localId as Any), ("secret", self.secret as Any), ("fileReference", self.fileReference as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputGroupCallStream {
|
||||
public class Cons_inputGroupCallStream: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var call: Api.InputGroupCall
|
||||
public var timeMs: Int64
|
||||
|
|
@ -47,8 +56,11 @@ public extension Api {
|
|||
self.videoChannel = videoChannel
|
||||
self.videoQuality = videoQuality
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputGroupCallStream", [("flags", self.flags as Any), ("call", self.call as Any), ("timeMs", self.timeMs as Any), ("scale", self.scale as Any), ("videoChannel", self.videoChannel as Any), ("videoQuality", self.videoQuality as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputPeerPhotoFileLocation {
|
||||
public class Cons_inputPeerPhotoFileLocation: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var peer: Api.InputPeer
|
||||
public var photoId: Int64
|
||||
|
|
@ -57,8 +69,11 @@ public extension Api {
|
|||
self.peer = peer
|
||||
self.photoId = photoId
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputPeerPhotoFileLocation", [("flags", self.flags as Any), ("peer", self.peer as Any), ("photoId", self.photoId as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputPhotoFileLocation {
|
||||
public class Cons_inputPhotoFileLocation: TypeConstructorDescription {
|
||||
public var id: Int64
|
||||
public var accessHash: Int64
|
||||
public var fileReference: Buffer
|
||||
|
|
@ -69,8 +84,11 @@ public extension Api {
|
|||
self.fileReference = fileReference
|
||||
self.thumbSize = thumbSize
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputPhotoFileLocation", [("id", self.id as Any), ("accessHash", self.accessHash as Any), ("fileReference", self.fileReference as Any), ("thumbSize", self.thumbSize as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputPhotoLegacyFileLocation {
|
||||
public class Cons_inputPhotoLegacyFileLocation: TypeConstructorDescription {
|
||||
public var id: Int64
|
||||
public var accessHash: Int64
|
||||
public var fileReference: Buffer
|
||||
|
|
@ -85,22 +103,31 @@ public extension Api {
|
|||
self.localId = localId
|
||||
self.secret = secret
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputPhotoLegacyFileLocation", [("id", self.id as Any), ("accessHash", self.accessHash as Any), ("fileReference", self.fileReference as Any), ("volumeId", self.volumeId as Any), ("localId", self.localId as Any), ("secret", self.secret as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputSecureFileLocation {
|
||||
public class Cons_inputSecureFileLocation: TypeConstructorDescription {
|
||||
public var id: Int64
|
||||
public var accessHash: Int64
|
||||
public init(id: Int64, accessHash: Int64) {
|
||||
self.id = id
|
||||
self.accessHash = accessHash
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputSecureFileLocation", [("id", self.id as Any), ("accessHash", self.accessHash as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputStickerSetThumb {
|
||||
public class Cons_inputStickerSetThumb: TypeConstructorDescription {
|
||||
public var stickerset: Api.InputStickerSet
|
||||
public var thumbVersion: Int32
|
||||
public init(stickerset: Api.InputStickerSet, thumbVersion: Int32) {
|
||||
self.stickerset = stickerset
|
||||
self.thumbVersion = thumbVersion
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputStickerSetThumb", [("stickerset", self.stickerset as Any), ("thumbVersion", self.thumbVersion as Any)])
|
||||
}
|
||||
}
|
||||
case inputDocumentFileLocation(Cons_inputDocumentFileLocation)
|
||||
case inputEncryptedFileLocation(Cons_inputEncryptedFileLocation)
|
||||
|
|
@ -418,13 +445,16 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
indirect enum InputFolderPeer: TypeConstructorDescription {
|
||||
public class Cons_inputFolderPeer {
|
||||
public class Cons_inputFolderPeer: TypeConstructorDescription {
|
||||
public var peer: Api.InputPeer
|
||||
public var folderId: Int32
|
||||
public init(peer: Api.InputPeer, folderId: Int32) {
|
||||
self.peer = peer
|
||||
self.folderId = folderId
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputFolderPeer", [("peer", self.peer as Any), ("folderId", self.folderId as Any)])
|
||||
}
|
||||
}
|
||||
case inputFolderPeer(Cons_inputFolderPeer)
|
||||
|
||||
|
|
@ -467,21 +497,27 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
indirect enum InputGame: TypeConstructorDescription {
|
||||
public class Cons_inputGameID {
|
||||
public class Cons_inputGameID: TypeConstructorDescription {
|
||||
public var id: Int64
|
||||
public var accessHash: Int64
|
||||
public init(id: Int64, accessHash: Int64) {
|
||||
self.id = id
|
||||
self.accessHash = accessHash
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputGameID", [("id", self.id as Any), ("accessHash", self.accessHash as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputGameShortName {
|
||||
public class Cons_inputGameShortName: TypeConstructorDescription {
|
||||
public var botId: Api.InputUser
|
||||
public var shortName: String
|
||||
public init(botId: Api.InputUser, shortName: String) {
|
||||
self.botId = botId
|
||||
self.shortName = shortName
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputGameShortName", [("botId", self.botId as Any), ("shortName", self.shortName as Any)])
|
||||
}
|
||||
}
|
||||
case inputGameID(Cons_inputGameID)
|
||||
case inputGameShortName(Cons_inputGameShortName)
|
||||
|
|
@ -548,7 +584,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum InputGeoPoint: TypeConstructorDescription {
|
||||
public class Cons_inputGeoPoint {
|
||||
public class Cons_inputGeoPoint: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var lat: Double
|
||||
public var long: Double
|
||||
|
|
@ -559,6 +595,9 @@ public extension Api {
|
|||
self.long = long
|
||||
self.accuracyRadius = accuracyRadius
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputGeoPoint", [("flags", self.flags as Any), ("lat", self.lat as Any), ("long", self.long as Any), ("accuracyRadius", self.accuracyRadius as Any)])
|
||||
}
|
||||
}
|
||||
case inputGeoPoint(Cons_inputGeoPoint)
|
||||
case inputGeoPointEmpty
|
||||
|
|
@ -622,25 +661,34 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum InputGroupCall: TypeConstructorDescription {
|
||||
public class Cons_inputGroupCall {
|
||||
public class Cons_inputGroupCall: TypeConstructorDescription {
|
||||
public var id: Int64
|
||||
public var accessHash: Int64
|
||||
public init(id: Int64, accessHash: Int64) {
|
||||
self.id = id
|
||||
self.accessHash = accessHash
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputGroupCall", [("id", self.id as Any), ("accessHash", self.accessHash as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputGroupCallInviteMessage {
|
||||
public class Cons_inputGroupCallInviteMessage: TypeConstructorDescription {
|
||||
public var msgId: Int32
|
||||
public init(msgId: Int32) {
|
||||
self.msgId = msgId
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputGroupCallInviteMessage", [("msgId", self.msgId as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputGroupCallSlug {
|
||||
public class Cons_inputGroupCallSlug: TypeConstructorDescription {
|
||||
public var slug: String
|
||||
public init(slug: String) {
|
||||
self.slug = slug
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputGroupCallSlug", [("slug", self.slug as Any)])
|
||||
}
|
||||
}
|
||||
case inputGroupCall(Cons_inputGroupCall)
|
||||
case inputGroupCallInviteMessage(Cons_inputGroupCallInviteMessage)
|
||||
|
|
@ -721,43 +769,58 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
indirect enum InputInvoice: TypeConstructorDescription {
|
||||
public class Cons_inputInvoiceBusinessBotTransferStars {
|
||||
public class Cons_inputInvoiceBusinessBotTransferStars: TypeConstructorDescription {
|
||||
public var bot: Api.InputUser
|
||||
public var stars: Int64
|
||||
public init(bot: Api.InputUser, stars: Int64) {
|
||||
self.bot = bot
|
||||
self.stars = stars
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputInvoiceBusinessBotTransferStars", [("bot", self.bot as Any), ("stars", self.stars as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputInvoiceChatInviteSubscription {
|
||||
public class Cons_inputInvoiceChatInviteSubscription: TypeConstructorDescription {
|
||||
public var hash: String
|
||||
public init(hash: String) {
|
||||
self.hash = hash
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputInvoiceChatInviteSubscription", [("hash", self.hash as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputInvoiceMessage {
|
||||
public class Cons_inputInvoiceMessage: TypeConstructorDescription {
|
||||
public var peer: Api.InputPeer
|
||||
public var msgId: Int32
|
||||
public init(peer: Api.InputPeer, msgId: Int32) {
|
||||
self.peer = peer
|
||||
self.msgId = msgId
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputInvoiceMessage", [("peer", self.peer as Any), ("msgId", self.msgId as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputInvoicePremiumAuthCode {
|
||||
public class Cons_inputInvoicePremiumAuthCode: TypeConstructorDescription {
|
||||
public var purpose: Api.InputStorePaymentPurpose
|
||||
public init(purpose: Api.InputStorePaymentPurpose) {
|
||||
self.purpose = purpose
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputInvoicePremiumAuthCode", [("purpose", self.purpose as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputInvoicePremiumGiftCode {
|
||||
public class Cons_inputInvoicePremiumGiftCode: TypeConstructorDescription {
|
||||
public var purpose: Api.InputStorePaymentPurpose
|
||||
public var option: Api.PremiumGiftCodeOption
|
||||
public init(purpose: Api.InputStorePaymentPurpose, option: Api.PremiumGiftCodeOption) {
|
||||
self.purpose = purpose
|
||||
self.option = option
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputInvoicePremiumGiftCode", [("purpose", self.purpose as Any), ("option", self.option as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputInvoicePremiumGiftStars {
|
||||
public class Cons_inputInvoicePremiumGiftStars: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var userId: Api.InputUser
|
||||
public var months: Int32
|
||||
|
|
@ -768,14 +831,20 @@ public extension Api {
|
|||
self.months = months
|
||||
self.message = message
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputInvoicePremiumGiftStars", [("flags", self.flags as Any), ("userId", self.userId as Any), ("months", self.months as Any), ("message", self.message as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputInvoiceSlug {
|
||||
public class Cons_inputInvoiceSlug: TypeConstructorDescription {
|
||||
public var slug: String
|
||||
public init(slug: String) {
|
||||
self.slug = slug
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputInvoiceSlug", [("slug", self.slug as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputInvoiceStarGift {
|
||||
public class Cons_inputInvoiceStarGift: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var peer: Api.InputPeer
|
||||
public var giftId: Int64
|
||||
|
|
@ -786,8 +855,11 @@ public extension Api {
|
|||
self.giftId = giftId
|
||||
self.message = message
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputInvoiceStarGift", [("flags", self.flags as Any), ("peer", self.peer as Any), ("giftId", self.giftId as Any), ("message", self.message as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputInvoiceStarGiftAuctionBid {
|
||||
public class Cons_inputInvoiceStarGiftAuctionBid: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var peer: Api.InputPeer?
|
||||
public var giftId: Int64
|
||||
|
|
@ -800,22 +872,31 @@ public extension Api {
|
|||
self.bidAmount = bidAmount
|
||||
self.message = message
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputInvoiceStarGiftAuctionBid", [("flags", self.flags as Any), ("peer", self.peer as Any), ("giftId", self.giftId as Any), ("bidAmount", self.bidAmount as Any), ("message", self.message as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputInvoiceStarGiftDropOriginalDetails {
|
||||
public class Cons_inputInvoiceStarGiftDropOriginalDetails: TypeConstructorDescription {
|
||||
public var stargift: Api.InputSavedStarGift
|
||||
public init(stargift: Api.InputSavedStarGift) {
|
||||
self.stargift = stargift
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputInvoiceStarGiftDropOriginalDetails", [("stargift", self.stargift as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputInvoiceStarGiftPrepaidUpgrade {
|
||||
public class Cons_inputInvoiceStarGiftPrepaidUpgrade: TypeConstructorDescription {
|
||||
public var peer: Api.InputPeer
|
||||
public var hash: String
|
||||
public init(peer: Api.InputPeer, hash: String) {
|
||||
self.peer = peer
|
||||
self.hash = hash
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputInvoiceStarGiftPrepaidUpgrade", [("peer", self.peer as Any), ("hash", self.hash as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputInvoiceStarGiftResale {
|
||||
public class Cons_inputInvoiceStarGiftResale: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var slug: String
|
||||
public var toId: Api.InputPeer
|
||||
|
|
@ -824,28 +905,40 @@ public extension Api {
|
|||
self.slug = slug
|
||||
self.toId = toId
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputInvoiceStarGiftResale", [("flags", self.flags as Any), ("slug", self.slug as Any), ("toId", self.toId as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputInvoiceStarGiftTransfer {
|
||||
public class Cons_inputInvoiceStarGiftTransfer: TypeConstructorDescription {
|
||||
public var stargift: Api.InputSavedStarGift
|
||||
public var toId: Api.InputPeer
|
||||
public init(stargift: Api.InputSavedStarGift, toId: Api.InputPeer) {
|
||||
self.stargift = stargift
|
||||
self.toId = toId
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputInvoiceStarGiftTransfer", [("stargift", self.stargift as Any), ("toId", self.toId as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputInvoiceStarGiftUpgrade {
|
||||
public class Cons_inputInvoiceStarGiftUpgrade: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var stargift: Api.InputSavedStarGift
|
||||
public init(flags: Int32, stargift: Api.InputSavedStarGift) {
|
||||
self.flags = flags
|
||||
self.stargift = stargift
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputInvoiceStarGiftUpgrade", [("flags", self.flags as Any), ("stargift", self.stargift as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputInvoiceStars {
|
||||
public class Cons_inputInvoiceStars: TypeConstructorDescription {
|
||||
public var purpose: Api.InputStorePaymentPurpose
|
||||
public init(purpose: Api.InputStorePaymentPurpose) {
|
||||
self.purpose = purpose
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputInvoiceStars", [("purpose", self.purpose as Any)])
|
||||
}
|
||||
}
|
||||
case inputInvoiceBusinessBotTransferStars(Cons_inputInvoiceBusinessBotTransferStars)
|
||||
case inputInvoiceChatInviteSubscription(Cons_inputInvoiceChatInviteSubscription)
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
public extension Api {
|
||||
indirect enum InputMedia: TypeConstructorDescription {
|
||||
public class Cons_inputMediaContact {
|
||||
public class Cons_inputMediaContact: TypeConstructorDescription {
|
||||
public var phoneNumber: String
|
||||
public var firstName: String
|
||||
public var lastName: String
|
||||
|
|
@ -11,14 +11,20 @@ public extension Api {
|
|||
self.lastName = lastName
|
||||
self.vcard = vcard
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputMediaContact", [("phoneNumber", self.phoneNumber as Any), ("firstName", self.firstName as Any), ("lastName", self.lastName as Any), ("vcard", self.vcard as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputMediaDice {
|
||||
public class Cons_inputMediaDice: TypeConstructorDescription {
|
||||
public var emoticon: String
|
||||
public init(emoticon: String) {
|
||||
self.emoticon = emoticon
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputMediaDice", [("emoticon", self.emoticon as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputMediaDocument {
|
||||
public class Cons_inputMediaDocument: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var id: Api.InputDocument
|
||||
public var videoCover: Api.InputPhoto?
|
||||
|
|
@ -33,8 +39,11 @@ public extension Api {
|
|||
self.ttlSeconds = ttlSeconds
|
||||
self.query = query
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputMediaDocument", [("flags", self.flags as Any), ("id", self.id as Any), ("videoCover", self.videoCover as Any), ("videoTimestamp", self.videoTimestamp as Any), ("ttlSeconds", self.ttlSeconds as Any), ("query", self.query as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputMediaDocumentExternal {
|
||||
public class Cons_inputMediaDocumentExternal: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var url: String
|
||||
public var ttlSeconds: Int32?
|
||||
|
|
@ -47,14 +56,20 @@ public extension Api {
|
|||
self.videoCover = videoCover
|
||||
self.videoTimestamp = videoTimestamp
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputMediaDocumentExternal", [("flags", self.flags as Any), ("url", self.url as Any), ("ttlSeconds", self.ttlSeconds as Any), ("videoCover", self.videoCover as Any), ("videoTimestamp", self.videoTimestamp as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputMediaGame {
|
||||
public class Cons_inputMediaGame: TypeConstructorDescription {
|
||||
public var id: Api.InputGame
|
||||
public init(id: Api.InputGame) {
|
||||
self.id = id
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputMediaGame", [("id", self.id as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputMediaGeoLive {
|
||||
public class Cons_inputMediaGeoLive: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var geoPoint: Api.InputGeoPoint
|
||||
public var heading: Int32?
|
||||
|
|
@ -67,14 +82,20 @@ public extension Api {
|
|||
self.period = period
|
||||
self.proximityNotificationRadius = proximityNotificationRadius
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputMediaGeoLive", [("flags", self.flags as Any), ("geoPoint", self.geoPoint as Any), ("heading", self.heading as Any), ("period", self.period as Any), ("proximityNotificationRadius", self.proximityNotificationRadius as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputMediaGeoPoint {
|
||||
public class Cons_inputMediaGeoPoint: TypeConstructorDescription {
|
||||
public var geoPoint: Api.InputGeoPoint
|
||||
public init(geoPoint: Api.InputGeoPoint) {
|
||||
self.geoPoint = geoPoint
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputMediaGeoPoint", [("geoPoint", self.geoPoint as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputMediaInvoice {
|
||||
public class Cons_inputMediaInvoice: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var title: String
|
||||
public var description: String
|
||||
|
|
@ -97,8 +118,11 @@ public extension Api {
|
|||
self.startParam = startParam
|
||||
self.extendedMedia = extendedMedia
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputMediaInvoice", [("flags", self.flags as Any), ("title", self.title as Any), ("description", self.description as Any), ("photo", self.photo as Any), ("invoice", self.invoice as Any), ("payload", self.payload as Any), ("provider", self.provider as Any), ("providerData", self.providerData as Any), ("startParam", self.startParam as Any), ("extendedMedia", self.extendedMedia as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputMediaPaidMedia {
|
||||
public class Cons_inputMediaPaidMedia: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var starsAmount: Int64
|
||||
public var extendedMedia: [Api.InputMedia]
|
||||
|
|
@ -109,8 +133,11 @@ public extension Api {
|
|||
self.extendedMedia = extendedMedia
|
||||
self.payload = payload
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputMediaPaidMedia", [("flags", self.flags as Any), ("starsAmount", self.starsAmount as Any), ("extendedMedia", self.extendedMedia as Any), ("payload", self.payload as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputMediaPhoto {
|
||||
public class Cons_inputMediaPhoto: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var id: Api.InputPhoto
|
||||
public var ttlSeconds: Int32?
|
||||
|
|
@ -119,8 +146,11 @@ public extension Api {
|
|||
self.id = id
|
||||
self.ttlSeconds = ttlSeconds
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputMediaPhoto", [("flags", self.flags as Any), ("id", self.id as Any), ("ttlSeconds", self.ttlSeconds as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputMediaPhotoExternal {
|
||||
public class Cons_inputMediaPhotoExternal: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var url: String
|
||||
public var ttlSeconds: Int32?
|
||||
|
|
@ -129,8 +159,11 @@ public extension Api {
|
|||
self.url = url
|
||||
self.ttlSeconds = ttlSeconds
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputMediaPhotoExternal", [("flags", self.flags as Any), ("url", self.url as Any), ("ttlSeconds", self.ttlSeconds as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputMediaPoll {
|
||||
public class Cons_inputMediaPoll: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var poll: Api.Poll
|
||||
public var correctAnswers: [Buffer]?
|
||||
|
|
@ -143,8 +176,11 @@ public extension Api {
|
|||
self.solution = solution
|
||||
self.solutionEntities = solutionEntities
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputMediaPoll", [("flags", self.flags as Any), ("poll", self.poll as Any), ("correctAnswers", self.correctAnswers as Any), ("solution", self.solution as Any), ("solutionEntities", self.solutionEntities as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputMediaStakeDice {
|
||||
public class Cons_inputMediaStakeDice: TypeConstructorDescription {
|
||||
public var gameHash: String
|
||||
public var tonAmount: Int64
|
||||
public var clientSeed: Buffer
|
||||
|
|
@ -153,22 +189,31 @@ public extension Api {
|
|||
self.tonAmount = tonAmount
|
||||
self.clientSeed = clientSeed
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputMediaStakeDice", [("gameHash", self.gameHash as Any), ("tonAmount", self.tonAmount as Any), ("clientSeed", self.clientSeed as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputMediaStory {
|
||||
public class Cons_inputMediaStory: TypeConstructorDescription {
|
||||
public var peer: Api.InputPeer
|
||||
public var id: Int32
|
||||
public init(peer: Api.InputPeer, id: Int32) {
|
||||
self.peer = peer
|
||||
self.id = id
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputMediaStory", [("peer", self.peer as Any), ("id", self.id as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputMediaTodo {
|
||||
public class Cons_inputMediaTodo: TypeConstructorDescription {
|
||||
public var todo: Api.TodoList
|
||||
public init(todo: Api.TodoList) {
|
||||
self.todo = todo
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputMediaTodo", [("todo", self.todo as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputMediaUploadedDocument {
|
||||
public class Cons_inputMediaUploadedDocument: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var file: Api.InputFile
|
||||
public var thumb: Api.InputFile?
|
||||
|
|
@ -189,8 +234,11 @@ public extension Api {
|
|||
self.videoTimestamp = videoTimestamp
|
||||
self.ttlSeconds = ttlSeconds
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputMediaUploadedDocument", [("flags", self.flags as Any), ("file", self.file as Any), ("thumb", self.thumb as Any), ("mimeType", self.mimeType as Any), ("attributes", self.attributes as Any), ("stickers", self.stickers as Any), ("videoCover", self.videoCover as Any), ("videoTimestamp", self.videoTimestamp as Any), ("ttlSeconds", self.ttlSeconds as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputMediaUploadedPhoto {
|
||||
public class Cons_inputMediaUploadedPhoto: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var file: Api.InputFile
|
||||
public var stickers: [Api.InputDocument]?
|
||||
|
|
@ -201,8 +249,11 @@ public extension Api {
|
|||
self.stickers = stickers
|
||||
self.ttlSeconds = ttlSeconds
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputMediaUploadedPhoto", [("flags", self.flags as Any), ("file", self.file as Any), ("stickers", self.stickers as Any), ("ttlSeconds", self.ttlSeconds as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputMediaVenue {
|
||||
public class Cons_inputMediaVenue: TypeConstructorDescription {
|
||||
public var geoPoint: Api.InputGeoPoint
|
||||
public var title: String
|
||||
public var address: String
|
||||
|
|
@ -217,14 +268,20 @@ public extension Api {
|
|||
self.venueId = venueId
|
||||
self.venueType = venueType
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputMediaVenue", [("geoPoint", self.geoPoint as Any), ("title", self.title as Any), ("address", self.address as Any), ("provider", self.provider as Any), ("venueId", self.venueId as Any), ("venueType", self.venueType as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputMediaWebPage {
|
||||
public class Cons_inputMediaWebPage: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var url: String
|
||||
public init(flags: Int32, url: String) {
|
||||
self.flags = flags
|
||||
self.url = url
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputMediaWebPage", [("flags", self.flags as Any), ("url", self.url as Any)])
|
||||
}
|
||||
}
|
||||
case inputMediaContact(Cons_inputMediaContact)
|
||||
case inputMediaDice(Cons_inputMediaDice)
|
||||
|
|
@ -1038,25 +1095,34 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum InputMessage: TypeConstructorDescription {
|
||||
public class Cons_inputMessageCallbackQuery {
|
||||
public class Cons_inputMessageCallbackQuery: TypeConstructorDescription {
|
||||
public var id: Int32
|
||||
public var queryId: Int64
|
||||
public init(id: Int32, queryId: Int64) {
|
||||
self.id = id
|
||||
self.queryId = queryId
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputMessageCallbackQuery", [("id", self.id as Any), ("queryId", self.queryId as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputMessageID {
|
||||
public class Cons_inputMessageID: TypeConstructorDescription {
|
||||
public var id: Int32
|
||||
public init(id: Int32) {
|
||||
self.id = id
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputMessageID", [("id", self.id as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputMessageReplyTo {
|
||||
public class Cons_inputMessageReplyTo: TypeConstructorDescription {
|
||||
public var id: Int32
|
||||
public init(id: Int32) {
|
||||
self.id = id
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputMessageReplyTo", [("id", self.id as Any)])
|
||||
}
|
||||
}
|
||||
case inputMessageCallbackQuery(Cons_inputMessageCallbackQuery)
|
||||
case inputMessageID(Cons_inputMessageID)
|
||||
|
|
@ -1148,19 +1214,25 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
indirect enum InputNotifyPeer: TypeConstructorDescription {
|
||||
public class Cons_inputNotifyForumTopic {
|
||||
public class Cons_inputNotifyForumTopic: TypeConstructorDescription {
|
||||
public var peer: Api.InputPeer
|
||||
public var topMsgId: Int32
|
||||
public init(peer: Api.InputPeer, topMsgId: Int32) {
|
||||
self.peer = peer
|
||||
self.topMsgId = topMsgId
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputNotifyForumTopic", [("peer", self.peer as Any), ("topMsgId", self.topMsgId as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputNotifyPeer {
|
||||
public class Cons_inputNotifyPeer: TypeConstructorDescription {
|
||||
public var peer: Api.InputPeer
|
||||
public init(peer: Api.InputPeer) {
|
||||
self.peer = peer
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputNotifyPeer", [("peer", self.peer as Any)])
|
||||
}
|
||||
}
|
||||
case inputNotifyBroadcasts
|
||||
case inputNotifyChats
|
||||
|
|
@ -1258,13 +1330,16 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum InputPasskeyCredential: TypeConstructorDescription {
|
||||
public class Cons_inputPasskeyCredentialFirebasePNV {
|
||||
public class Cons_inputPasskeyCredentialFirebasePNV: TypeConstructorDescription {
|
||||
public var pnvToken: String
|
||||
public init(pnvToken: String) {
|
||||
self.pnvToken = pnvToken
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputPasskeyCredentialFirebasePNV", [("pnvToken", self.pnvToken as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputPasskeyCredentialPublicKey {
|
||||
public class Cons_inputPasskeyCredentialPublicKey: TypeConstructorDescription {
|
||||
public var id: String
|
||||
public var rawId: String
|
||||
public var response: Api.InputPasskeyResponse
|
||||
|
|
@ -1273,6 +1348,9 @@ public extension Api {
|
|||
self.rawId = rawId
|
||||
self.response = response
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputPasskeyCredentialPublicKey", [("id", self.id as Any), ("rawId", self.rawId as Any), ("response", self.response as Any)])
|
||||
}
|
||||
}
|
||||
case inputPasskeyCredentialFirebasePNV(Cons_inputPasskeyCredentialFirebasePNV)
|
||||
case inputPasskeyCredentialPublicKey(Cons_inputPasskeyCredentialPublicKey)
|
||||
|
|
@ -1339,7 +1417,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum InputPasskeyResponse: TypeConstructorDescription {
|
||||
public class Cons_inputPasskeyResponseLogin {
|
||||
public class Cons_inputPasskeyResponseLogin: TypeConstructorDescription {
|
||||
public var clientData: Api.DataJSON
|
||||
public var authenticatorData: Buffer
|
||||
public var signature: Buffer
|
||||
|
|
@ -1350,14 +1428,20 @@ public extension Api {
|
|||
self.signature = signature
|
||||
self.userHandle = userHandle
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputPasskeyResponseLogin", [("clientData", self.clientData as Any), ("authenticatorData", self.authenticatorData as Any), ("signature", self.signature as Any), ("userHandle", self.userHandle as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputPasskeyResponseRegister {
|
||||
public class Cons_inputPasskeyResponseRegister: TypeConstructorDescription {
|
||||
public var clientData: Api.DataJSON
|
||||
public var attestationData: Buffer
|
||||
public init(clientData: Api.DataJSON, attestationData: Buffer) {
|
||||
self.clientData = clientData
|
||||
self.attestationData = attestationData
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputPasskeyResponseRegister", [("clientData", self.clientData as Any), ("attestationData", self.attestationData as Any)])
|
||||
}
|
||||
}
|
||||
case inputPasskeyResponseLogin(Cons_inputPasskeyResponseLogin)
|
||||
case inputPasskeyResponseRegister(Cons_inputPasskeyResponseRegister)
|
||||
|
|
|
|||
|
|
@ -1,32 +1,44 @@
|
|||
public extension Api {
|
||||
enum InputPaymentCredentials: TypeConstructorDescription {
|
||||
public class Cons_inputPaymentCredentials {
|
||||
public class Cons_inputPaymentCredentials: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var data: Api.DataJSON
|
||||
public init(flags: Int32, data: Api.DataJSON) {
|
||||
self.flags = flags
|
||||
self.data = data
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputPaymentCredentials", [("flags", self.flags as Any), ("data", self.data as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputPaymentCredentialsApplePay {
|
||||
public class Cons_inputPaymentCredentialsApplePay: TypeConstructorDescription {
|
||||
public var paymentData: Api.DataJSON
|
||||
public init(paymentData: Api.DataJSON) {
|
||||
self.paymentData = paymentData
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputPaymentCredentialsApplePay", [("paymentData", self.paymentData as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputPaymentCredentialsGooglePay {
|
||||
public class Cons_inputPaymentCredentialsGooglePay: TypeConstructorDescription {
|
||||
public var paymentToken: Api.DataJSON
|
||||
public init(paymentToken: Api.DataJSON) {
|
||||
self.paymentToken = paymentToken
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputPaymentCredentialsGooglePay", [("paymentToken", self.paymentToken as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputPaymentCredentialsSaved {
|
||||
public class Cons_inputPaymentCredentialsSaved: TypeConstructorDescription {
|
||||
public var id: String
|
||||
public var tmpPassword: Buffer
|
||||
public init(id: String, tmpPassword: Buffer) {
|
||||
self.id = id
|
||||
self.tmpPassword = tmpPassword
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputPaymentCredentialsSaved", [("id", self.id as Any), ("tmpPassword", self.tmpPassword as Any)])
|
||||
}
|
||||
}
|
||||
case inputPaymentCredentials(Cons_inputPaymentCredentials)
|
||||
case inputPaymentCredentialsApplePay(Cons_inputPaymentCredentialsApplePay)
|
||||
|
|
@ -137,15 +149,18 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
indirect enum InputPeer: TypeConstructorDescription {
|
||||
public class Cons_inputPeerChannel {
|
||||
public class Cons_inputPeerChannel: TypeConstructorDescription {
|
||||
public var channelId: Int64
|
||||
public var accessHash: Int64
|
||||
public init(channelId: Int64, accessHash: Int64) {
|
||||
self.channelId = channelId
|
||||
self.accessHash = accessHash
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputPeerChannel", [("channelId", self.channelId as Any), ("accessHash", self.accessHash as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputPeerChannelFromMessage {
|
||||
public class Cons_inputPeerChannelFromMessage: TypeConstructorDescription {
|
||||
public var peer: Api.InputPeer
|
||||
public var msgId: Int32
|
||||
public var channelId: Int64
|
||||
|
|
@ -154,22 +169,31 @@ public extension Api {
|
|||
self.msgId = msgId
|
||||
self.channelId = channelId
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputPeerChannelFromMessage", [("peer", self.peer as Any), ("msgId", self.msgId as Any), ("channelId", self.channelId as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputPeerChat {
|
||||
public class Cons_inputPeerChat: TypeConstructorDescription {
|
||||
public var chatId: Int64
|
||||
public init(chatId: Int64) {
|
||||
self.chatId = chatId
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputPeerChat", [("chatId", self.chatId as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputPeerUser {
|
||||
public class Cons_inputPeerUser: TypeConstructorDescription {
|
||||
public var userId: Int64
|
||||
public var accessHash: Int64
|
||||
public init(userId: Int64, accessHash: Int64) {
|
||||
self.userId = userId
|
||||
self.accessHash = accessHash
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputPeerUser", [("userId", self.userId as Any), ("accessHash", self.accessHash as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputPeerUserFromMessage {
|
||||
public class Cons_inputPeerUserFromMessage: TypeConstructorDescription {
|
||||
public var peer: Api.InputPeer
|
||||
public var msgId: Int32
|
||||
public var userId: Int64
|
||||
|
|
@ -178,6 +202,9 @@ public extension Api {
|
|||
self.msgId = msgId
|
||||
self.userId = userId
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputPeerUserFromMessage", [("peer", self.peer as Any), ("msgId", self.msgId as Any), ("userId", self.userId as Any)])
|
||||
}
|
||||
}
|
||||
case inputPeerChannel(Cons_inputPeerChannel)
|
||||
case inputPeerChannelFromMessage(Cons_inputPeerChannelFromMessage)
|
||||
|
|
@ -344,7 +371,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum InputPeerNotifySettings: TypeConstructorDescription {
|
||||
public class Cons_inputPeerNotifySettings {
|
||||
public class Cons_inputPeerNotifySettings: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var showPreviews: Api.Bool?
|
||||
public var silent: Api.Bool?
|
||||
|
|
@ -363,6 +390,9 @@ public extension Api {
|
|||
self.storiesHideSender = storiesHideSender
|
||||
self.storiesSound = storiesSound
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputPeerNotifySettings", [("flags", self.flags as Any), ("showPreviews", self.showPreviews as Any), ("silent", self.silent as Any), ("muteUntil", self.muteUntil as Any), ("sound", self.sound as Any), ("storiesMuted", self.storiesMuted as Any), ("storiesHideSender", self.storiesHideSender as Any), ("storiesSound", self.storiesSound as Any)])
|
||||
}
|
||||
}
|
||||
case inputPeerNotifySettings(Cons_inputPeerNotifySettings)
|
||||
|
||||
|
|
@ -467,13 +497,16 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum InputPhoneCall: TypeConstructorDescription {
|
||||
public class Cons_inputPhoneCall {
|
||||
public class Cons_inputPhoneCall: TypeConstructorDescription {
|
||||
public var id: Int64
|
||||
public var accessHash: Int64
|
||||
public init(id: Int64, accessHash: Int64) {
|
||||
self.id = id
|
||||
self.accessHash = accessHash
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputPhoneCall", [("id", self.id as Any), ("accessHash", self.accessHash as Any)])
|
||||
}
|
||||
}
|
||||
case inputPhoneCall(Cons_inputPhoneCall)
|
||||
|
||||
|
|
@ -514,7 +547,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum InputPhoto: TypeConstructorDescription {
|
||||
public class Cons_inputPhoto {
|
||||
public class Cons_inputPhoto: TypeConstructorDescription {
|
||||
public var id: Int64
|
||||
public var accessHash: Int64
|
||||
public var fileReference: Buffer
|
||||
|
|
@ -523,6 +556,9 @@ public extension Api {
|
|||
self.accessHash = accessHash
|
||||
self.fileReference = fileReference
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputPhoto", [("id", self.id as Any), ("accessHash", self.accessHash as Any), ("fileReference", self.fileReference as Any)])
|
||||
}
|
||||
}
|
||||
case inputPhoto(Cons_inputPhoto)
|
||||
case inputPhotoEmpty
|
||||
|
|
@ -747,29 +783,41 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum InputPrivacyRule: TypeConstructorDescription {
|
||||
public class Cons_inputPrivacyValueAllowChatParticipants {
|
||||
public class Cons_inputPrivacyValueAllowChatParticipants: TypeConstructorDescription {
|
||||
public var chats: [Int64]
|
||||
public init(chats: [Int64]) {
|
||||
self.chats = chats
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputPrivacyValueAllowChatParticipants", [("chats", self.chats as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputPrivacyValueAllowUsers {
|
||||
public class Cons_inputPrivacyValueAllowUsers: TypeConstructorDescription {
|
||||
public var users: [Api.InputUser]
|
||||
public init(users: [Api.InputUser]) {
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputPrivacyValueAllowUsers", [("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputPrivacyValueDisallowChatParticipants {
|
||||
public class Cons_inputPrivacyValueDisallowChatParticipants: TypeConstructorDescription {
|
||||
public var chats: [Int64]
|
||||
public init(chats: [Int64]) {
|
||||
self.chats = chats
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputPrivacyValueDisallowChatParticipants", [("chats", self.chats as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputPrivacyValueDisallowUsers {
|
||||
public class Cons_inputPrivacyValueDisallowUsers: TypeConstructorDescription {
|
||||
public var users: [Api.InputUser]
|
||||
public init(users: [Api.InputUser]) {
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputPrivacyValueDisallowUsers", [("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case inputPrivacyValueAllowAll
|
||||
case inputPrivacyValueAllowBots
|
||||
|
|
|
|||
|
|
@ -1,16 +1,22 @@
|
|||
public extension Api {
|
||||
enum InputQuickReplyShortcut: TypeConstructorDescription {
|
||||
public class Cons_inputQuickReplyShortcut {
|
||||
public class Cons_inputQuickReplyShortcut: TypeConstructorDescription {
|
||||
public var shortcut: String
|
||||
public init(shortcut: String) {
|
||||
self.shortcut = shortcut
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputQuickReplyShortcut", [("shortcut", self.shortcut as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputQuickReplyShortcutId {
|
||||
public class Cons_inputQuickReplyShortcutId: TypeConstructorDescription {
|
||||
public var shortcutId: Int32
|
||||
public init(shortcutId: Int32) {
|
||||
self.shortcutId = shortcutId
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputQuickReplyShortcutId", [("shortcutId", self.shortcutId as Any)])
|
||||
}
|
||||
}
|
||||
case inputQuickReplyShortcut(Cons_inputQuickReplyShortcut)
|
||||
case inputQuickReplyShortcutId(Cons_inputQuickReplyShortcutId)
|
||||
|
|
@ -67,7 +73,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
indirect enum InputReplyTo: TypeConstructorDescription {
|
||||
public class Cons_inputReplyToMessage {
|
||||
public class Cons_inputReplyToMessage: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var replyToMsgId: Int32
|
||||
public var topMsgId: Int32?
|
||||
|
|
@ -88,20 +94,29 @@ public extension Api {
|
|||
self.monoforumPeerId = monoforumPeerId
|
||||
self.todoItemId = todoItemId
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputReplyToMessage", [("flags", self.flags as Any), ("replyToMsgId", self.replyToMsgId as Any), ("topMsgId", self.topMsgId as Any), ("replyToPeerId", self.replyToPeerId as Any), ("quoteText", self.quoteText as Any), ("quoteEntities", self.quoteEntities as Any), ("quoteOffset", self.quoteOffset as Any), ("monoforumPeerId", self.monoforumPeerId as Any), ("todoItemId", self.todoItemId as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputReplyToMonoForum {
|
||||
public class Cons_inputReplyToMonoForum: TypeConstructorDescription {
|
||||
public var monoforumPeerId: Api.InputPeer
|
||||
public init(monoforumPeerId: Api.InputPeer) {
|
||||
self.monoforumPeerId = monoforumPeerId
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputReplyToMonoForum", [("monoforumPeerId", self.monoforumPeerId as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputReplyToStory {
|
||||
public class Cons_inputReplyToStory: TypeConstructorDescription {
|
||||
public var peer: Api.InputPeer
|
||||
public var storyId: Int32
|
||||
public init(peer: Api.InputPeer, storyId: Int32) {
|
||||
self.peer = peer
|
||||
self.storyId = storyId
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputReplyToStory", [("peer", self.peer as Any), ("storyId", self.storyId as Any)])
|
||||
}
|
||||
}
|
||||
case inputReplyToMessage(Cons_inputReplyToMessage)
|
||||
case inputReplyToMonoForum(Cons_inputReplyToMonoForum)
|
||||
|
|
@ -256,25 +271,34 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
indirect enum InputSavedStarGift: TypeConstructorDescription {
|
||||
public class Cons_inputSavedStarGiftChat {
|
||||
public class Cons_inputSavedStarGiftChat: TypeConstructorDescription {
|
||||
public var peer: Api.InputPeer
|
||||
public var savedId: Int64
|
||||
public init(peer: Api.InputPeer, savedId: Int64) {
|
||||
self.peer = peer
|
||||
self.savedId = savedId
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputSavedStarGiftChat", [("peer", self.peer as Any), ("savedId", self.savedId as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputSavedStarGiftSlug {
|
||||
public class Cons_inputSavedStarGiftSlug: TypeConstructorDescription {
|
||||
public var slug: String
|
||||
public init(slug: String) {
|
||||
self.slug = slug
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputSavedStarGiftSlug", [("slug", self.slug as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputSavedStarGiftUser {
|
||||
public class Cons_inputSavedStarGiftUser: TypeConstructorDescription {
|
||||
public var msgId: Int32
|
||||
public init(msgId: Int32) {
|
||||
self.msgId = msgId
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputSavedStarGiftUser", [("msgId", self.msgId as Any)])
|
||||
}
|
||||
}
|
||||
case inputSavedStarGiftChat(Cons_inputSavedStarGiftChat)
|
||||
case inputSavedStarGiftSlug(Cons_inputSavedStarGiftSlug)
|
||||
|
|
@ -357,15 +381,18 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum InputSecureFile: TypeConstructorDescription {
|
||||
public class Cons_inputSecureFile {
|
||||
public class Cons_inputSecureFile: TypeConstructorDescription {
|
||||
public var id: Int64
|
||||
public var accessHash: Int64
|
||||
public init(id: Int64, accessHash: Int64) {
|
||||
self.id = id
|
||||
self.accessHash = accessHash
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputSecureFile", [("id", self.id as Any), ("accessHash", self.accessHash as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputSecureFileUploaded {
|
||||
public class Cons_inputSecureFileUploaded: TypeConstructorDescription {
|
||||
public var id: Int64
|
||||
public var parts: Int32
|
||||
public var md5Checksum: String
|
||||
|
|
@ -378,6 +405,9 @@ public extension Api {
|
|||
self.fileHash = fileHash
|
||||
self.secret = secret
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputSecureFileUploaded", [("id", self.id as Any), ("parts", self.parts as Any), ("md5Checksum", self.md5Checksum as Any), ("fileHash", self.fileHash as Any), ("secret", self.secret as Any)])
|
||||
}
|
||||
}
|
||||
case inputSecureFile(Cons_inputSecureFile)
|
||||
case inputSecureFileUploaded(Cons_inputSecureFileUploaded)
|
||||
|
|
@ -454,7 +484,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum InputSecureValue: TypeConstructorDescription {
|
||||
public class Cons_inputSecureValue {
|
||||
public class Cons_inputSecureValue: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var type: Api.SecureValueType
|
||||
public var data: Api.SecureData?
|
||||
|
|
@ -475,6 +505,9 @@ public extension Api {
|
|||
self.files = files
|
||||
self.plainData = plainData
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputSecureValue", [("flags", self.flags as Any), ("type", self.type as Any), ("data", self.data as Any), ("frontSide", self.frontSide as Any), ("reverseSide", self.reverseSide as Any), ("selfie", self.selfie as Any), ("translation", self.translation as Any), ("files", self.files as Any), ("plainData", self.plainData as Any)])
|
||||
}
|
||||
}
|
||||
case inputSecureValue(Cons_inputSecureValue)
|
||||
|
||||
|
|
@ -595,7 +628,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
indirect enum InputSingleMedia: TypeConstructorDescription {
|
||||
public class Cons_inputSingleMedia {
|
||||
public class Cons_inputSingleMedia: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var media: Api.InputMedia
|
||||
public var randomId: Int64
|
||||
|
|
@ -608,6 +641,9 @@ public extension Api {
|
|||
self.message = message
|
||||
self.entities = entities
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputSingleMedia", [("flags", self.flags as Any), ("media", self.media as Any), ("randomId", self.randomId as Any), ("message", self.message as Any), ("entities", self.entities as Any)])
|
||||
}
|
||||
}
|
||||
case inputSingleMedia(Cons_inputSingleMedia)
|
||||
|
||||
|
|
@ -672,17 +708,23 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum InputStarGiftAuction: TypeConstructorDescription {
|
||||
public class Cons_inputStarGiftAuction {
|
||||
public class Cons_inputStarGiftAuction: TypeConstructorDescription {
|
||||
public var giftId: Int64
|
||||
public init(giftId: Int64) {
|
||||
self.giftId = giftId
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputStarGiftAuction", [("giftId", self.giftId as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputStarGiftAuctionSlug {
|
||||
public class Cons_inputStarGiftAuctionSlug: TypeConstructorDescription {
|
||||
public var slug: String
|
||||
public init(slug: String) {
|
||||
self.slug = slug
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputStarGiftAuctionSlug", [("slug", self.slug as Any)])
|
||||
}
|
||||
}
|
||||
case inputStarGiftAuction(Cons_inputStarGiftAuction)
|
||||
case inputStarGiftAuctionSlug(Cons_inputStarGiftAuctionSlug)
|
||||
|
|
@ -739,13 +781,16 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum InputStarsTransaction: TypeConstructorDescription {
|
||||
public class Cons_inputStarsTransaction {
|
||||
public class Cons_inputStarsTransaction: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var id: String
|
||||
public init(flags: Int32, id: String) {
|
||||
self.flags = flags
|
||||
self.id = id
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputStarsTransaction", [("flags", self.flags as Any), ("id", self.id as Any)])
|
||||
}
|
||||
}
|
||||
case inputStarsTransaction(Cons_inputStarsTransaction)
|
||||
|
||||
|
|
@ -786,25 +831,34 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum InputStickerSet: TypeConstructorDescription {
|
||||
public class Cons_inputStickerSetDice {
|
||||
public class Cons_inputStickerSetDice: TypeConstructorDescription {
|
||||
public var emoticon: String
|
||||
public init(emoticon: String) {
|
||||
self.emoticon = emoticon
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputStickerSetDice", [("emoticon", self.emoticon as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputStickerSetID {
|
||||
public class Cons_inputStickerSetID: TypeConstructorDescription {
|
||||
public var id: Int64
|
||||
public var accessHash: Int64
|
||||
public init(id: Int64, accessHash: Int64) {
|
||||
self.id = id
|
||||
self.accessHash = accessHash
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputStickerSetID", [("id", self.id as Any), ("accessHash", self.accessHash as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputStickerSetShortName {
|
||||
public class Cons_inputStickerSetShortName: TypeConstructorDescription {
|
||||
public var shortName: String
|
||||
public init(shortName: String) {
|
||||
self.shortName = shortName
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputStickerSetShortName", [("shortName", self.shortName as Any)])
|
||||
}
|
||||
}
|
||||
case inputStickerSetAnimatedEmoji
|
||||
case inputStickerSetAnimatedEmojiAnimations
|
||||
|
|
@ -984,7 +1038,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum InputStickerSetItem: TypeConstructorDescription {
|
||||
public class Cons_inputStickerSetItem {
|
||||
public class Cons_inputStickerSetItem: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var document: Api.InputDocument
|
||||
public var emoji: String
|
||||
|
|
@ -997,6 +1051,9 @@ public extension Api {
|
|||
self.maskCoords = maskCoords
|
||||
self.keywords = keywords
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputStickerSetItem", [("flags", self.flags as Any), ("document", self.document as Any), ("emoji", self.emoji as Any), ("maskCoords", self.maskCoords as Any), ("keywords", self.keywords as Any)])
|
||||
}
|
||||
}
|
||||
case inputStickerSetItem(Cons_inputStickerSetItem)
|
||||
|
||||
|
|
@ -1061,17 +1118,23 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum InputStickeredMedia: TypeConstructorDescription {
|
||||
public class Cons_inputStickeredMediaDocument {
|
||||
public class Cons_inputStickeredMediaDocument: TypeConstructorDescription {
|
||||
public var id: Api.InputDocument
|
||||
public init(id: Api.InputDocument) {
|
||||
self.id = id
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputStickeredMediaDocument", [("id", self.id as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputStickeredMediaPhoto {
|
||||
public class Cons_inputStickeredMediaPhoto: TypeConstructorDescription {
|
||||
public var id: Api.InputPhoto
|
||||
public init(id: Api.InputPhoto) {
|
||||
self.id = id
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputStickeredMediaPhoto", [("id", self.id as Any)])
|
||||
}
|
||||
}
|
||||
case inputStickeredMediaDocument(Cons_inputStickeredMediaDocument)
|
||||
case inputStickeredMediaPhoto(Cons_inputStickeredMediaPhoto)
|
||||
|
|
@ -1132,7 +1195,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
indirect enum InputStorePaymentPurpose: TypeConstructorDescription {
|
||||
public class Cons_inputStorePaymentAuthCode {
|
||||
public class Cons_inputStorePaymentAuthCode: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var phoneNumber: String
|
||||
public var phoneCodeHash: String
|
||||
|
|
@ -1145,8 +1208,11 @@ public extension Api {
|
|||
self.currency = currency
|
||||
self.amount = amount
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputStorePaymentAuthCode", [("flags", self.flags as Any), ("phoneNumber", self.phoneNumber as Any), ("phoneCodeHash", self.phoneCodeHash as Any), ("currency", self.currency as Any), ("amount", self.amount as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputStorePaymentGiftPremium {
|
||||
public class Cons_inputStorePaymentGiftPremium: TypeConstructorDescription {
|
||||
public var userId: Api.InputUser
|
||||
public var currency: String
|
||||
public var amount: Int64
|
||||
|
|
@ -1155,8 +1221,11 @@ public extension Api {
|
|||
self.currency = currency
|
||||
self.amount = amount
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputStorePaymentGiftPremium", [("userId", self.userId as Any), ("currency", self.currency as Any), ("amount", self.amount as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputStorePaymentPremiumGiftCode {
|
||||
public class Cons_inputStorePaymentPremiumGiftCode: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var users: [Api.InputUser]
|
||||
public var boostPeer: Api.InputPeer?
|
||||
|
|
@ -1171,8 +1240,11 @@ public extension Api {
|
|||
self.amount = amount
|
||||
self.message = message
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputStorePaymentPremiumGiftCode", [("flags", self.flags as Any), ("users", self.users as Any), ("boostPeer", self.boostPeer as Any), ("currency", self.currency as Any), ("amount", self.amount as Any), ("message", self.message as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputStorePaymentPremiumGiveaway {
|
||||
public class Cons_inputStorePaymentPremiumGiveaway: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var boostPeer: Api.InputPeer
|
||||
public var additionalPeers: [Api.InputPeer]?
|
||||
|
|
@ -1193,14 +1265,20 @@ public extension Api {
|
|||
self.currency = currency
|
||||
self.amount = amount
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputStorePaymentPremiumGiveaway", [("flags", self.flags as Any), ("boostPeer", self.boostPeer as Any), ("additionalPeers", self.additionalPeers as Any), ("countriesIso2", self.countriesIso2 as Any), ("prizeDescription", self.prizeDescription as Any), ("randomId", self.randomId as Any), ("untilDate", self.untilDate as Any), ("currency", self.currency as Any), ("amount", self.amount as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputStorePaymentPremiumSubscription {
|
||||
public class Cons_inputStorePaymentPremiumSubscription: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public init(flags: Int32) {
|
||||
self.flags = flags
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputStorePaymentPremiumSubscription", [("flags", self.flags as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputStorePaymentStarsGift {
|
||||
public class Cons_inputStorePaymentStarsGift: TypeConstructorDescription {
|
||||
public var userId: Api.InputUser
|
||||
public var stars: Int64
|
||||
public var currency: String
|
||||
|
|
@ -1211,8 +1289,11 @@ public extension Api {
|
|||
self.currency = currency
|
||||
self.amount = amount
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputStorePaymentStarsGift", [("userId", self.userId as Any), ("stars", self.stars as Any), ("currency", self.currency as Any), ("amount", self.amount as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputStorePaymentStarsGiveaway {
|
||||
public class Cons_inputStorePaymentStarsGiveaway: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var stars: Int64
|
||||
public var boostPeer: Api.InputPeer
|
||||
|
|
@ -1237,8 +1318,11 @@ public extension Api {
|
|||
self.amount = amount
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputStorePaymentStarsGiveaway", [("flags", self.flags as Any), ("stars", self.stars as Any), ("boostPeer", self.boostPeer as Any), ("additionalPeers", self.additionalPeers as Any), ("countriesIso2", self.countriesIso2 as Any), ("prizeDescription", self.prizeDescription as Any), ("randomId", self.randomId as Any), ("untilDate", self.untilDate as Any), ("currency", self.currency as Any), ("amount", self.amount as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputStorePaymentStarsTopup {
|
||||
public class Cons_inputStorePaymentStarsTopup: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var stars: Int64
|
||||
public var currency: String
|
||||
|
|
@ -1251,6 +1335,9 @@ public extension Api {
|
|||
self.amount = amount
|
||||
self.spendPurposePeer = spendPurposePeer
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputStorePaymentStarsTopup", [("flags", self.flags as Any), ("stars", self.stars as Any), ("currency", self.currency as Any), ("amount", self.amount as Any), ("spendPurposePeer", self.spendPurposePeer as Any)])
|
||||
}
|
||||
}
|
||||
case inputStorePaymentAuthCode(Cons_inputStorePaymentAuthCode)
|
||||
case inputStorePaymentGiftPremium(Cons_inputStorePaymentGiftPremium)
|
||||
|
|
|
|||
|
|
@ -1,18 +1,24 @@
|
|||
public extension Api {
|
||||
enum InputTheme: TypeConstructorDescription {
|
||||
public class Cons_inputTheme {
|
||||
public class Cons_inputTheme: TypeConstructorDescription {
|
||||
public var id: Int64
|
||||
public var accessHash: Int64
|
||||
public init(id: Int64, accessHash: Int64) {
|
||||
self.id = id
|
||||
self.accessHash = accessHash
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputTheme", [("id", self.id as Any), ("accessHash", self.accessHash as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputThemeSlug {
|
||||
public class Cons_inputThemeSlug: TypeConstructorDescription {
|
||||
public var slug: String
|
||||
public init(slug: String) {
|
||||
self.slug = slug
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputThemeSlug", [("slug", self.slug as Any)])
|
||||
}
|
||||
}
|
||||
case inputTheme(Cons_inputTheme)
|
||||
case inputThemeSlug(Cons_inputThemeSlug)
|
||||
|
|
@ -73,7 +79,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum InputThemeSettings: TypeConstructorDescription {
|
||||
public class Cons_inputThemeSettings {
|
||||
public class Cons_inputThemeSettings: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var baseTheme: Api.BaseTheme
|
||||
public var accentColor: Int32
|
||||
|
|
@ -90,6 +96,9 @@ public extension Api {
|
|||
self.wallpaper = wallpaper
|
||||
self.wallpaperSettings = wallpaperSettings
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputThemeSettings", [("flags", self.flags as Any), ("baseTheme", self.baseTheme as Any), ("accentColor", self.accentColor as Any), ("outboxAccentColor", self.outboxAccentColor as Any), ("messageColors", self.messageColors as Any), ("wallpaper", self.wallpaper as Any), ("wallpaperSettings", self.wallpaperSettings as Any)])
|
||||
}
|
||||
}
|
||||
case inputThemeSettings(Cons_inputThemeSettings)
|
||||
|
||||
|
|
@ -178,15 +187,18 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
indirect enum InputUser: TypeConstructorDescription {
|
||||
public class Cons_inputUser {
|
||||
public class Cons_inputUser: TypeConstructorDescription {
|
||||
public var userId: Int64
|
||||
public var accessHash: Int64
|
||||
public init(userId: Int64, accessHash: Int64) {
|
||||
self.userId = userId
|
||||
self.accessHash = accessHash
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputUser", [("userId", self.userId as Any), ("accessHash", self.accessHash as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputUserFromMessage {
|
||||
public class Cons_inputUserFromMessage: TypeConstructorDescription {
|
||||
public var peer: Api.InputPeer
|
||||
public var msgId: Int32
|
||||
public var userId: Int64
|
||||
|
|
@ -195,6 +207,9 @@ public extension Api {
|
|||
self.msgId = msgId
|
||||
self.userId = userId
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputUserFromMessage", [("peer", self.peer as Any), ("msgId", self.msgId as Any), ("userId", self.userId as Any)])
|
||||
}
|
||||
}
|
||||
case inputUser(Cons_inputUser)
|
||||
case inputUserEmpty
|
||||
|
|
@ -287,25 +302,34 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum InputWallPaper: TypeConstructorDescription {
|
||||
public class Cons_inputWallPaper {
|
||||
public class Cons_inputWallPaper: TypeConstructorDescription {
|
||||
public var id: Int64
|
||||
public var accessHash: Int64
|
||||
public init(id: Int64, accessHash: Int64) {
|
||||
self.id = id
|
||||
self.accessHash = accessHash
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputWallPaper", [("id", self.id as Any), ("accessHash", self.accessHash as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputWallPaperNoFile {
|
||||
public class Cons_inputWallPaperNoFile: TypeConstructorDescription {
|
||||
public var id: Int64
|
||||
public init(id: Int64) {
|
||||
self.id = id
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputWallPaperNoFile", [("id", self.id as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputWallPaperSlug {
|
||||
public class Cons_inputWallPaperSlug: TypeConstructorDescription {
|
||||
public var slug: String
|
||||
public init(slug: String) {
|
||||
self.slug = slug
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputWallPaperSlug", [("slug", self.slug as Any)])
|
||||
}
|
||||
}
|
||||
case inputWallPaper(Cons_inputWallPaper)
|
||||
case inputWallPaperNoFile(Cons_inputWallPaperNoFile)
|
||||
|
|
@ -386,7 +410,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum InputWebDocument: TypeConstructorDescription {
|
||||
public class Cons_inputWebDocument {
|
||||
public class Cons_inputWebDocument: TypeConstructorDescription {
|
||||
public var url: String
|
||||
public var size: Int32
|
||||
public var mimeType: String
|
||||
|
|
@ -397,6 +421,9 @@ public extension Api {
|
|||
self.mimeType = mimeType
|
||||
self.attributes = attributes
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputWebDocument", [("url", self.url as Any), ("size", self.size as Any), ("mimeType", self.mimeType as Any), ("attributes", self.attributes as Any)])
|
||||
}
|
||||
}
|
||||
case inputWebDocument(Cons_inputWebDocument)
|
||||
|
||||
|
|
@ -451,7 +478,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum InputWebFileLocation: TypeConstructorDescription {
|
||||
public class Cons_inputWebFileAudioAlbumThumbLocation {
|
||||
public class Cons_inputWebFileAudioAlbumThumbLocation: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var document: Api.InputDocument?
|
||||
public var title: String?
|
||||
|
|
@ -462,8 +489,11 @@ public extension Api {
|
|||
self.title = title
|
||||
self.performer = performer
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputWebFileAudioAlbumThumbLocation", [("flags", self.flags as Any), ("document", self.document as Any), ("title", self.title as Any), ("performer", self.performer as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputWebFileGeoPointLocation {
|
||||
public class Cons_inputWebFileGeoPointLocation: TypeConstructorDescription {
|
||||
public var geoPoint: Api.InputGeoPoint
|
||||
public var accessHash: Int64
|
||||
public var w: Int32
|
||||
|
|
@ -478,14 +508,20 @@ public extension Api {
|
|||
self.zoom = zoom
|
||||
self.scale = scale
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputWebFileGeoPointLocation", [("geoPoint", self.geoPoint as Any), ("accessHash", self.accessHash as Any), ("w", self.w as Any), ("h", self.h as Any), ("zoom", self.zoom as Any), ("scale", self.scale as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputWebFileLocation {
|
||||
public class Cons_inputWebFileLocation: TypeConstructorDescription {
|
||||
public var url: String
|
||||
public var accessHash: Int64
|
||||
public init(url: String, accessHash: Int64) {
|
||||
self.url = url
|
||||
self.accessHash = accessHash
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputWebFileLocation", [("url", self.url as Any), ("accessHash", self.accessHash as Any)])
|
||||
}
|
||||
}
|
||||
case inputWebFileAudioAlbumThumbLocation(Cons_inputWebFileAudioAlbumThumbLocation)
|
||||
case inputWebFileGeoPointLocation(Cons_inputWebFileGeoPointLocation)
|
||||
|
|
@ -614,7 +650,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum Invoice: TypeConstructorDescription {
|
||||
public class Cons_invoice {
|
||||
public class Cons_invoice: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var currency: String
|
||||
public var prices: [Api.LabeledPrice]
|
||||
|
|
@ -631,6 +667,9 @@ public extension Api {
|
|||
self.termsUrl = termsUrl
|
||||
self.subscriptionPeriod = subscriptionPeriod
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("invoice", [("flags", self.flags as Any), ("currency", self.currency as Any), ("prices", self.prices as Any), ("maxTipAmount", self.maxTipAmount as Any), ("suggestedTipAmounts", self.suggestedTipAmounts as Any), ("termsUrl", self.termsUrl as Any), ("subscriptionPeriod", self.subscriptionPeriod as Any)])
|
||||
}
|
||||
}
|
||||
case invoice(Cons_invoice)
|
||||
|
||||
|
|
@ -719,13 +758,16 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum JSONObjectValue: TypeConstructorDescription {
|
||||
public class Cons_jsonObjectValue {
|
||||
public class Cons_jsonObjectValue: TypeConstructorDescription {
|
||||
public var key: String
|
||||
public var value: Api.JSONValue
|
||||
public init(key: String, value: Api.JSONValue) {
|
||||
self.key = key
|
||||
self.value = value
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("jsonObjectValue", [("key", self.key as Any), ("value", self.value as Any)])
|
||||
}
|
||||
}
|
||||
case jsonObjectValue(Cons_jsonObjectValue)
|
||||
|
||||
|
|
@ -768,35 +810,50 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum JSONValue: TypeConstructorDescription {
|
||||
public class Cons_jsonArray {
|
||||
public class Cons_jsonArray: TypeConstructorDescription {
|
||||
public var value: [Api.JSONValue]
|
||||
public init(value: [Api.JSONValue]) {
|
||||
self.value = value
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("jsonArray", [("value", self.value as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_jsonBool {
|
||||
public class Cons_jsonBool: TypeConstructorDescription {
|
||||
public var value: Api.Bool
|
||||
public init(value: Api.Bool) {
|
||||
self.value = value
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("jsonBool", [("value", self.value as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_jsonNumber {
|
||||
public class Cons_jsonNumber: TypeConstructorDescription {
|
||||
public var value: Double
|
||||
public init(value: Double) {
|
||||
self.value = value
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("jsonNumber", [("value", self.value as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_jsonObject {
|
||||
public class Cons_jsonObject: TypeConstructorDescription {
|
||||
public var value: [Api.JSONObjectValue]
|
||||
public init(value: [Api.JSONObjectValue]) {
|
||||
self.value = value
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("jsonObject", [("value", self.value as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_jsonString {
|
||||
public class Cons_jsonString: TypeConstructorDescription {
|
||||
public var value: String
|
||||
public init(value: String) {
|
||||
self.value = value
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("jsonString", [("value", self.value as Any)])
|
||||
}
|
||||
}
|
||||
case jsonArray(Cons_jsonArray)
|
||||
case jsonBool(Cons_jsonBool)
|
||||
|
|
@ -938,7 +995,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
indirect enum KeyboardButton: TypeConstructorDescription {
|
||||
public class Cons_inputKeyboardButtonRequestPeer {
|
||||
public class Cons_inputKeyboardButtonRequestPeer: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var style: Api.KeyboardButtonStyle?
|
||||
public var text: String
|
||||
|
|
@ -953,8 +1010,11 @@ public extension Api {
|
|||
self.peerType = peerType
|
||||
self.maxQuantity = maxQuantity
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputKeyboardButtonRequestPeer", [("flags", self.flags as Any), ("style", self.style as Any), ("text", self.text as Any), ("buttonId", self.buttonId as Any), ("peerType", self.peerType as Any), ("maxQuantity", self.maxQuantity as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputKeyboardButtonUrlAuth {
|
||||
public class Cons_inputKeyboardButtonUrlAuth: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var style: Api.KeyboardButtonStyle?
|
||||
public var text: String
|
||||
|
|
@ -969,8 +1029,11 @@ public extension Api {
|
|||
self.url = url
|
||||
self.bot = bot
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputKeyboardButtonUrlAuth", [("flags", self.flags as Any), ("style", self.style as Any), ("text", self.text as Any), ("fwdText", self.fwdText as Any), ("url", self.url as Any), ("bot", self.bot as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputKeyboardButtonUserProfile {
|
||||
public class Cons_inputKeyboardButtonUserProfile: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var style: Api.KeyboardButtonStyle?
|
||||
public var text: String
|
||||
|
|
@ -981,8 +1044,11 @@ public extension Api {
|
|||
self.text = text
|
||||
self.userId = userId
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputKeyboardButtonUserProfile", [("flags", self.flags as Any), ("style", self.style as Any), ("text", self.text as Any), ("userId", self.userId as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_keyboardButton {
|
||||
public class Cons_keyboardButton: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var style: Api.KeyboardButtonStyle?
|
||||
public var text: String
|
||||
|
|
@ -991,8 +1057,11 @@ public extension Api {
|
|||
self.style = style
|
||||
self.text = text
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("keyboardButton", [("flags", self.flags as Any), ("style", self.style as Any), ("text", self.text as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_keyboardButtonBuy {
|
||||
public class Cons_keyboardButtonBuy: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var style: Api.KeyboardButtonStyle?
|
||||
public var text: String
|
||||
|
|
@ -1001,8 +1070,11 @@ public extension Api {
|
|||
self.style = style
|
||||
self.text = text
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("keyboardButtonBuy", [("flags", self.flags as Any), ("style", self.style as Any), ("text", self.text as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_keyboardButtonCallback {
|
||||
public class Cons_keyboardButtonCallback: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var style: Api.KeyboardButtonStyle?
|
||||
public var text: String
|
||||
|
|
@ -1013,8 +1085,11 @@ public extension Api {
|
|||
self.text = text
|
||||
self.data = data
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("keyboardButtonCallback", [("flags", self.flags as Any), ("style", self.style as Any), ("text", self.text as Any), ("data", self.data as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_keyboardButtonCopy {
|
||||
public class Cons_keyboardButtonCopy: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var style: Api.KeyboardButtonStyle?
|
||||
public var text: String
|
||||
|
|
@ -1025,8 +1100,11 @@ public extension Api {
|
|||
self.text = text
|
||||
self.copyText = copyText
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("keyboardButtonCopy", [("flags", self.flags as Any), ("style", self.style as Any), ("text", self.text as Any), ("copyText", self.copyText as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_keyboardButtonGame {
|
||||
public class Cons_keyboardButtonGame: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var style: Api.KeyboardButtonStyle?
|
||||
public var text: String
|
||||
|
|
@ -1035,8 +1113,11 @@ public extension Api {
|
|||
self.style = style
|
||||
self.text = text
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("keyboardButtonGame", [("flags", self.flags as Any), ("style", self.style as Any), ("text", self.text as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_keyboardButtonRequestGeoLocation {
|
||||
public class Cons_keyboardButtonRequestGeoLocation: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var style: Api.KeyboardButtonStyle?
|
||||
public var text: String
|
||||
|
|
@ -1045,8 +1126,11 @@ public extension Api {
|
|||
self.style = style
|
||||
self.text = text
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("keyboardButtonRequestGeoLocation", [("flags", self.flags as Any), ("style", self.style as Any), ("text", self.text as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_keyboardButtonRequestPeer {
|
||||
public class Cons_keyboardButtonRequestPeer: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var style: Api.KeyboardButtonStyle?
|
||||
public var text: String
|
||||
|
|
@ -1061,8 +1145,11 @@ public extension Api {
|
|||
self.peerType = peerType
|
||||
self.maxQuantity = maxQuantity
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("keyboardButtonRequestPeer", [("flags", self.flags as Any), ("style", self.style as Any), ("text", self.text as Any), ("buttonId", self.buttonId as Any), ("peerType", self.peerType as Any), ("maxQuantity", self.maxQuantity as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_keyboardButtonRequestPhone {
|
||||
public class Cons_keyboardButtonRequestPhone: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var style: Api.KeyboardButtonStyle?
|
||||
public var text: String
|
||||
|
|
@ -1071,8 +1158,11 @@ public extension Api {
|
|||
self.style = style
|
||||
self.text = text
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("keyboardButtonRequestPhone", [("flags", self.flags as Any), ("style", self.style as Any), ("text", self.text as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_keyboardButtonRequestPoll {
|
||||
public class Cons_keyboardButtonRequestPoll: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var style: Api.KeyboardButtonStyle?
|
||||
public var quiz: Api.Bool?
|
||||
|
|
@ -1083,8 +1173,11 @@ public extension Api {
|
|||
self.quiz = quiz
|
||||
self.text = text
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("keyboardButtonRequestPoll", [("flags", self.flags as Any), ("style", self.style as Any), ("quiz", self.quiz as Any), ("text", self.text as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_keyboardButtonSimpleWebView {
|
||||
public class Cons_keyboardButtonSimpleWebView: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var style: Api.KeyboardButtonStyle?
|
||||
public var text: String
|
||||
|
|
@ -1095,8 +1188,11 @@ public extension Api {
|
|||
self.text = text
|
||||
self.url = url
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("keyboardButtonSimpleWebView", [("flags", self.flags as Any), ("style", self.style as Any), ("text", self.text as Any), ("url", self.url as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_keyboardButtonSwitchInline {
|
||||
public class Cons_keyboardButtonSwitchInline: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var style: Api.KeyboardButtonStyle?
|
||||
public var text: String
|
||||
|
|
@ -1109,8 +1205,11 @@ public extension Api {
|
|||
self.query = query
|
||||
self.peerTypes = peerTypes
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("keyboardButtonSwitchInline", [("flags", self.flags as Any), ("style", self.style as Any), ("text", self.text as Any), ("query", self.query as Any), ("peerTypes", self.peerTypes as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_keyboardButtonUrl {
|
||||
public class Cons_keyboardButtonUrl: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var style: Api.KeyboardButtonStyle?
|
||||
public var text: String
|
||||
|
|
@ -1121,8 +1220,11 @@ public extension Api {
|
|||
self.text = text
|
||||
self.url = url
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("keyboardButtonUrl", [("flags", self.flags as Any), ("style", self.style as Any), ("text", self.text as Any), ("url", self.url as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_keyboardButtonUrlAuth {
|
||||
public class Cons_keyboardButtonUrlAuth: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var style: Api.KeyboardButtonStyle?
|
||||
public var text: String
|
||||
|
|
@ -1137,8 +1239,11 @@ public extension Api {
|
|||
self.url = url
|
||||
self.buttonId = buttonId
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("keyboardButtonUrlAuth", [("flags", self.flags as Any), ("style", self.style as Any), ("text", self.text as Any), ("fwdText", self.fwdText as Any), ("url", self.url as Any), ("buttonId", self.buttonId as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_keyboardButtonUserProfile {
|
||||
public class Cons_keyboardButtonUserProfile: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var style: Api.KeyboardButtonStyle?
|
||||
public var text: String
|
||||
|
|
@ -1149,8 +1254,11 @@ public extension Api {
|
|||
self.text = text
|
||||
self.userId = userId
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("keyboardButtonUserProfile", [("flags", self.flags as Any), ("style", self.style as Any), ("text", self.text as Any), ("userId", self.userId as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_keyboardButtonWebView {
|
||||
public class Cons_keyboardButtonWebView: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var style: Api.KeyboardButtonStyle?
|
||||
public var text: String
|
||||
|
|
@ -1161,6 +1269,9 @@ public extension Api {
|
|||
self.text = text
|
||||
self.url = url
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("keyboardButtonWebView", [("flags", self.flags as Any), ("style", self.style as Any), ("text", self.text as Any), ("url", self.url as Any)])
|
||||
}
|
||||
}
|
||||
case inputKeyboardButtonRequestPeer(Cons_inputKeyboardButtonRequestPeer)
|
||||
case inputKeyboardButtonUrlAuth(Cons_inputKeyboardButtonUrlAuth)
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -1,6 +1,6 @@
|
|||
public extension Api {
|
||||
indirect enum MessageEntity: TypeConstructorDescription {
|
||||
public class Cons_inputMessageEntityMentionName {
|
||||
public class Cons_inputMessageEntityMentionName: TypeConstructorDescription {
|
||||
public var offset: Int32
|
||||
public var length: Int32
|
||||
public var userId: Api.InputUser
|
||||
|
|
@ -9,16 +9,22 @@ public extension Api {
|
|||
self.length = length
|
||||
self.userId = userId
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputMessageEntityMentionName", [("offset", self.offset as Any), ("length", self.length as Any), ("userId", self.userId as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_messageEntityBankCard {
|
||||
public class Cons_messageEntityBankCard: TypeConstructorDescription {
|
||||
public var offset: Int32
|
||||
public var length: Int32
|
||||
public init(offset: Int32, length: Int32) {
|
||||
self.offset = offset
|
||||
self.length = length
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("messageEntityBankCard", [("offset", self.offset as Any), ("length", self.length as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_messageEntityBlockquote {
|
||||
public class Cons_messageEntityBlockquote: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var offset: Int32
|
||||
public var length: Int32
|
||||
|
|
@ -27,40 +33,55 @@ public extension Api {
|
|||
self.offset = offset
|
||||
self.length = length
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("messageEntityBlockquote", [("flags", self.flags as Any), ("offset", self.offset as Any), ("length", self.length as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_messageEntityBold {
|
||||
public class Cons_messageEntityBold: TypeConstructorDescription {
|
||||
public var offset: Int32
|
||||
public var length: Int32
|
||||
public init(offset: Int32, length: Int32) {
|
||||
self.offset = offset
|
||||
self.length = length
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("messageEntityBold", [("offset", self.offset as Any), ("length", self.length as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_messageEntityBotCommand {
|
||||
public class Cons_messageEntityBotCommand: TypeConstructorDescription {
|
||||
public var offset: Int32
|
||||
public var length: Int32
|
||||
public init(offset: Int32, length: Int32) {
|
||||
self.offset = offset
|
||||
self.length = length
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("messageEntityBotCommand", [("offset", self.offset as Any), ("length", self.length as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_messageEntityCashtag {
|
||||
public class Cons_messageEntityCashtag: TypeConstructorDescription {
|
||||
public var offset: Int32
|
||||
public var length: Int32
|
||||
public init(offset: Int32, length: Int32) {
|
||||
self.offset = offset
|
||||
self.length = length
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("messageEntityCashtag", [("offset", self.offset as Any), ("length", self.length as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_messageEntityCode {
|
||||
public class Cons_messageEntityCode: TypeConstructorDescription {
|
||||
public var offset: Int32
|
||||
public var length: Int32
|
||||
public init(offset: Int32, length: Int32) {
|
||||
self.offset = offset
|
||||
self.length = length
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("messageEntityCode", [("offset", self.offset as Any), ("length", self.length as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_messageEntityCustomEmoji {
|
||||
public class Cons_messageEntityCustomEmoji: TypeConstructorDescription {
|
||||
public var offset: Int32
|
||||
public var length: Int32
|
||||
public var documentId: Int64
|
||||
|
|
@ -69,16 +90,22 @@ public extension Api {
|
|||
self.length = length
|
||||
self.documentId = documentId
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("messageEntityCustomEmoji", [("offset", self.offset as Any), ("length", self.length as Any), ("documentId", self.documentId as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_messageEntityEmail {
|
||||
public class Cons_messageEntityEmail: TypeConstructorDescription {
|
||||
public var offset: Int32
|
||||
public var length: Int32
|
||||
public init(offset: Int32, length: Int32) {
|
||||
self.offset = offset
|
||||
self.length = length
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("messageEntityEmail", [("offset", self.offset as Any), ("length", self.length as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_messageEntityFormattedDate {
|
||||
public class Cons_messageEntityFormattedDate: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var offset: Int32
|
||||
public var length: Int32
|
||||
|
|
@ -89,32 +116,44 @@ public extension Api {
|
|||
self.length = length
|
||||
self.date = date
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("messageEntityFormattedDate", [("flags", self.flags as Any), ("offset", self.offset as Any), ("length", self.length as Any), ("date", self.date as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_messageEntityHashtag {
|
||||
public class Cons_messageEntityHashtag: TypeConstructorDescription {
|
||||
public var offset: Int32
|
||||
public var length: Int32
|
||||
public init(offset: Int32, length: Int32) {
|
||||
self.offset = offset
|
||||
self.length = length
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("messageEntityHashtag", [("offset", self.offset as Any), ("length", self.length as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_messageEntityItalic {
|
||||
public class Cons_messageEntityItalic: TypeConstructorDescription {
|
||||
public var offset: Int32
|
||||
public var length: Int32
|
||||
public init(offset: Int32, length: Int32) {
|
||||
self.offset = offset
|
||||
self.length = length
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("messageEntityItalic", [("offset", self.offset as Any), ("length", self.length as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_messageEntityMention {
|
||||
public class Cons_messageEntityMention: TypeConstructorDescription {
|
||||
public var offset: Int32
|
||||
public var length: Int32
|
||||
public init(offset: Int32, length: Int32) {
|
||||
self.offset = offset
|
||||
self.length = length
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("messageEntityMention", [("offset", self.offset as Any), ("length", self.length as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_messageEntityMentionName {
|
||||
public class Cons_messageEntityMentionName: TypeConstructorDescription {
|
||||
public var offset: Int32
|
||||
public var length: Int32
|
||||
public var userId: Int64
|
||||
|
|
@ -123,16 +162,22 @@ public extension Api {
|
|||
self.length = length
|
||||
self.userId = userId
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("messageEntityMentionName", [("offset", self.offset as Any), ("length", self.length as Any), ("userId", self.userId as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_messageEntityPhone {
|
||||
public class Cons_messageEntityPhone: TypeConstructorDescription {
|
||||
public var offset: Int32
|
||||
public var length: Int32
|
||||
public init(offset: Int32, length: Int32) {
|
||||
self.offset = offset
|
||||
self.length = length
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("messageEntityPhone", [("offset", self.offset as Any), ("length", self.length as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_messageEntityPre {
|
||||
public class Cons_messageEntityPre: TypeConstructorDescription {
|
||||
public var offset: Int32
|
||||
public var length: Int32
|
||||
public var language: String
|
||||
|
|
@ -141,24 +186,33 @@ public extension Api {
|
|||
self.length = length
|
||||
self.language = language
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("messageEntityPre", [("offset", self.offset as Any), ("length", self.length as Any), ("language", self.language as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_messageEntitySpoiler {
|
||||
public class Cons_messageEntitySpoiler: TypeConstructorDescription {
|
||||
public var offset: Int32
|
||||
public var length: Int32
|
||||
public init(offset: Int32, length: Int32) {
|
||||
self.offset = offset
|
||||
self.length = length
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("messageEntitySpoiler", [("offset", self.offset as Any), ("length", self.length as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_messageEntityStrike {
|
||||
public class Cons_messageEntityStrike: TypeConstructorDescription {
|
||||
public var offset: Int32
|
||||
public var length: Int32
|
||||
public init(offset: Int32, length: Int32) {
|
||||
self.offset = offset
|
||||
self.length = length
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("messageEntityStrike", [("offset", self.offset as Any), ("length", self.length as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_messageEntityTextUrl {
|
||||
public class Cons_messageEntityTextUrl: TypeConstructorDescription {
|
||||
public var offset: Int32
|
||||
public var length: Int32
|
||||
public var url: String
|
||||
|
|
@ -167,30 +221,42 @@ public extension Api {
|
|||
self.length = length
|
||||
self.url = url
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("messageEntityTextUrl", [("offset", self.offset as Any), ("length", self.length as Any), ("url", self.url as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_messageEntityUnderline {
|
||||
public class Cons_messageEntityUnderline: TypeConstructorDescription {
|
||||
public var offset: Int32
|
||||
public var length: Int32
|
||||
public init(offset: Int32, length: Int32) {
|
||||
self.offset = offset
|
||||
self.length = length
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("messageEntityUnderline", [("offset", self.offset as Any), ("length", self.length as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_messageEntityUnknown {
|
||||
public class Cons_messageEntityUnknown: TypeConstructorDescription {
|
||||
public var offset: Int32
|
||||
public var length: Int32
|
||||
public init(offset: Int32, length: Int32) {
|
||||
self.offset = offset
|
||||
self.length = length
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("messageEntityUnknown", [("offset", self.offset as Any), ("length", self.length as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_messageEntityUrl {
|
||||
public class Cons_messageEntityUrl: TypeConstructorDescription {
|
||||
public var offset: Int32
|
||||
public var length: Int32
|
||||
public init(offset: Int32, length: Int32) {
|
||||
self.offset = offset
|
||||
self.length = length
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("messageEntityUrl", [("offset", self.offset as Any), ("length", self.length as Any)])
|
||||
}
|
||||
}
|
||||
case inputMessageEntityMentionName(Cons_inputMessageEntityMentionName)
|
||||
case messageEntityBankCard(Cons_messageEntityBankCard)
|
||||
|
|
@ -769,13 +835,16 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
indirect enum MessageExtendedMedia: TypeConstructorDescription {
|
||||
public class Cons_messageExtendedMedia {
|
||||
public class Cons_messageExtendedMedia: TypeConstructorDescription {
|
||||
public var media: Api.MessageMedia
|
||||
public init(media: Api.MessageMedia) {
|
||||
self.media = media
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("messageExtendedMedia", [("media", self.media as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_messageExtendedMediaPreview {
|
||||
public class Cons_messageExtendedMediaPreview: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var w: Int32?
|
||||
public var h: Int32?
|
||||
|
|
@ -788,6 +857,9 @@ public extension Api {
|
|||
self.thumb = thumb
|
||||
self.videoDuration = videoDuration
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("messageExtendedMediaPreview", [("flags", self.flags as Any), ("w", self.w as Any), ("h", self.h as Any), ("thumb", self.thumb as Any), ("videoDuration", self.videoDuration as Any)])
|
||||
}
|
||||
}
|
||||
case messageExtendedMedia(Cons_messageExtendedMedia)
|
||||
case messageExtendedMediaPreview(Cons_messageExtendedMediaPreview)
|
||||
|
|
@ -880,7 +952,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum MessageFwdHeader: TypeConstructorDescription {
|
||||
public class Cons_messageFwdHeader {
|
||||
public class Cons_messageFwdHeader: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var fromId: Api.Peer?
|
||||
public var fromName: String?
|
||||
|
|
@ -907,6 +979,9 @@ public extension Api {
|
|||
self.savedDate = savedDate
|
||||
self.psaType = psaType
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("messageFwdHeader", [("flags", self.flags as Any), ("fromId", self.fromId as Any), ("fromName", self.fromName as Any), ("date", self.date as Any), ("channelPost", self.channelPost as Any), ("postAuthor", self.postAuthor as Any), ("savedFromPeer", self.savedFromPeer as Any), ("savedFromMsgId", self.savedFromMsgId as Any), ("savedFromId", self.savedFromId as Any), ("savedFromName", self.savedFromName as Any), ("savedDate", self.savedDate as Any), ("psaType", self.psaType as Any)])
|
||||
}
|
||||
}
|
||||
case messageFwdHeader(Cons_messageFwdHeader)
|
||||
|
||||
|
|
@ -1033,7 +1108,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
indirect enum MessageMedia: TypeConstructorDescription {
|
||||
public class Cons_messageMediaContact {
|
||||
public class Cons_messageMediaContact: TypeConstructorDescription {
|
||||
public var phoneNumber: String
|
||||
public var firstName: String
|
||||
public var lastName: String
|
||||
|
|
@ -1046,8 +1121,11 @@ public extension Api {
|
|||
self.vcard = vcard
|
||||
self.userId = userId
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("messageMediaContact", [("phoneNumber", self.phoneNumber as Any), ("firstName", self.firstName as Any), ("lastName", self.lastName as Any), ("vcard", self.vcard as Any), ("userId", self.userId as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_messageMediaDice {
|
||||
public class Cons_messageMediaDice: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var value: Int32
|
||||
public var emoticon: String
|
||||
|
|
@ -1058,8 +1136,11 @@ public extension Api {
|
|||
self.emoticon = emoticon
|
||||
self.gameOutcome = gameOutcome
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("messageMediaDice", [("flags", self.flags as Any), ("value", self.value as Any), ("emoticon", self.emoticon as Any), ("gameOutcome", self.gameOutcome as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_messageMediaDocument {
|
||||
public class Cons_messageMediaDocument: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var document: Api.Document?
|
||||
public var altDocuments: [Api.Document]?
|
||||
|
|
@ -1074,20 +1155,29 @@ public extension Api {
|
|||
self.videoTimestamp = videoTimestamp
|
||||
self.ttlSeconds = ttlSeconds
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("messageMediaDocument", [("flags", self.flags as Any), ("document", self.document as Any), ("altDocuments", self.altDocuments as Any), ("videoCover", self.videoCover as Any), ("videoTimestamp", self.videoTimestamp as Any), ("ttlSeconds", self.ttlSeconds as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_messageMediaGame {
|
||||
public class Cons_messageMediaGame: TypeConstructorDescription {
|
||||
public var game: Api.Game
|
||||
public init(game: Api.Game) {
|
||||
self.game = game
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("messageMediaGame", [("game", self.game as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_messageMediaGeo {
|
||||
public class Cons_messageMediaGeo: TypeConstructorDescription {
|
||||
public var geo: Api.GeoPoint
|
||||
public init(geo: Api.GeoPoint) {
|
||||
self.geo = geo
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("messageMediaGeo", [("geo", self.geo as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_messageMediaGeoLive {
|
||||
public class Cons_messageMediaGeoLive: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var geo: Api.GeoPoint
|
||||
public var heading: Int32?
|
||||
|
|
@ -1100,8 +1190,11 @@ public extension Api {
|
|||
self.period = period
|
||||
self.proximityNotificationRadius = proximityNotificationRadius
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("messageMediaGeoLive", [("flags", self.flags as Any), ("geo", self.geo as Any), ("heading", self.heading as Any), ("period", self.period as Any), ("proximityNotificationRadius", self.proximityNotificationRadius as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_messageMediaGiveaway {
|
||||
public class Cons_messageMediaGiveaway: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var channels: [Int64]
|
||||
public var countriesIso2: [String]?
|
||||
|
|
@ -1120,8 +1213,11 @@ public extension Api {
|
|||
self.stars = stars
|
||||
self.untilDate = untilDate
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("messageMediaGiveaway", [("flags", self.flags as Any), ("channels", self.channels as Any), ("countriesIso2", self.countriesIso2 as Any), ("prizeDescription", self.prizeDescription as Any), ("quantity", self.quantity as Any), ("months", self.months as Any), ("stars", self.stars as Any), ("untilDate", self.untilDate as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_messageMediaGiveawayResults {
|
||||
public class Cons_messageMediaGiveawayResults: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var channelId: Int64
|
||||
public var additionalPeersCount: Int32?
|
||||
|
|
@ -1146,8 +1242,11 @@ public extension Api {
|
|||
self.prizeDescription = prizeDescription
|
||||
self.untilDate = untilDate
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("messageMediaGiveawayResults", [("flags", self.flags as Any), ("channelId", self.channelId as Any), ("additionalPeersCount", self.additionalPeersCount as Any), ("launchMsgId", self.launchMsgId as Any), ("winnersCount", self.winnersCount as Any), ("unclaimedCount", self.unclaimedCount as Any), ("winners", self.winners as Any), ("months", self.months as Any), ("stars", self.stars as Any), ("prizeDescription", self.prizeDescription as Any), ("untilDate", self.untilDate as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_messageMediaInvoice {
|
||||
public class Cons_messageMediaInvoice: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var title: String
|
||||
public var description: String
|
||||
|
|
@ -1168,16 +1267,22 @@ public extension Api {
|
|||
self.startParam = startParam
|
||||
self.extendedMedia = extendedMedia
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("messageMediaInvoice", [("flags", self.flags as Any), ("title", self.title as Any), ("description", self.description as Any), ("photo", self.photo as Any), ("receiptMsgId", self.receiptMsgId as Any), ("currency", self.currency as Any), ("totalAmount", self.totalAmount as Any), ("startParam", self.startParam as Any), ("extendedMedia", self.extendedMedia as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_messageMediaPaidMedia {
|
||||
public class Cons_messageMediaPaidMedia: TypeConstructorDescription {
|
||||
public var starsAmount: Int64
|
||||
public var extendedMedia: [Api.MessageExtendedMedia]
|
||||
public init(starsAmount: Int64, extendedMedia: [Api.MessageExtendedMedia]) {
|
||||
self.starsAmount = starsAmount
|
||||
self.extendedMedia = extendedMedia
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("messageMediaPaidMedia", [("starsAmount", self.starsAmount as Any), ("extendedMedia", self.extendedMedia as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_messageMediaPhoto {
|
||||
public class Cons_messageMediaPhoto: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var photo: Api.Photo?
|
||||
public var ttlSeconds: Int32?
|
||||
|
|
@ -1186,16 +1291,22 @@ public extension Api {
|
|||
self.photo = photo
|
||||
self.ttlSeconds = ttlSeconds
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("messageMediaPhoto", [("flags", self.flags as Any), ("photo", self.photo as Any), ("ttlSeconds", self.ttlSeconds as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_messageMediaPoll {
|
||||
public class Cons_messageMediaPoll: TypeConstructorDescription {
|
||||
public var poll: Api.Poll
|
||||
public var results: Api.PollResults
|
||||
public init(poll: Api.Poll, results: Api.PollResults) {
|
||||
self.poll = poll
|
||||
self.results = results
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("messageMediaPoll", [("poll", self.poll as Any), ("results", self.results as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_messageMediaStory {
|
||||
public class Cons_messageMediaStory: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var peer: Api.Peer
|
||||
public var id: Int32
|
||||
|
|
@ -1206,8 +1317,11 @@ public extension Api {
|
|||
self.id = id
|
||||
self.story = story
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("messageMediaStory", [("flags", self.flags as Any), ("peer", self.peer as Any), ("id", self.id as Any), ("story", self.story as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_messageMediaToDo {
|
||||
public class Cons_messageMediaToDo: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var todo: Api.TodoList
|
||||
public var completions: [Api.TodoCompletion]?
|
||||
|
|
@ -1216,8 +1330,11 @@ public extension Api {
|
|||
self.todo = todo
|
||||
self.completions = completions
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("messageMediaToDo", [("flags", self.flags as Any), ("todo", self.todo as Any), ("completions", self.completions as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_messageMediaVenue {
|
||||
public class Cons_messageMediaVenue: TypeConstructorDescription {
|
||||
public var geo: Api.GeoPoint
|
||||
public var title: String
|
||||
public var address: String
|
||||
|
|
@ -1232,22 +1349,31 @@ public extension Api {
|
|||
self.venueId = venueId
|
||||
self.venueType = venueType
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("messageMediaVenue", [("geo", self.geo as Any), ("title", self.title as Any), ("address", self.address as Any), ("provider", self.provider as Any), ("venueId", self.venueId as Any), ("venueType", self.venueType as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_messageMediaVideoStream {
|
||||
public class Cons_messageMediaVideoStream: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var call: Api.InputGroupCall
|
||||
public init(flags: Int32, call: Api.InputGroupCall) {
|
||||
self.flags = flags
|
||||
self.call = call
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("messageMediaVideoStream", [("flags", self.flags as Any), ("call", self.call as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_messageMediaWebPage {
|
||||
public class Cons_messageMediaWebPage: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var webpage: Api.WebPage
|
||||
public init(flags: Int32, webpage: Api.WebPage) {
|
||||
self.flags = flags
|
||||
self.webpage = webpage
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("messageMediaWebPage", [("flags", self.flags as Any), ("webpage", self.webpage as Any)])
|
||||
}
|
||||
}
|
||||
case messageMediaContact(Cons_messageMediaContact)
|
||||
case messageMediaDice(Cons_messageMediaDice)
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
public extension Api {
|
||||
enum MessagePeerReaction: TypeConstructorDescription {
|
||||
public class Cons_messagePeerReaction {
|
||||
public class Cons_messagePeerReaction: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var peerId: Api.Peer
|
||||
public var date: Int32
|
||||
|
|
@ -11,6 +11,9 @@ public extension Api {
|
|||
self.date = date
|
||||
self.reaction = reaction
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("messagePeerReaction", [("flags", self.flags as Any), ("peerId", self.peerId as Any), ("date", self.date as Any), ("reaction", self.reaction as Any)])
|
||||
}
|
||||
}
|
||||
case messagePeerReaction(Cons_messagePeerReaction)
|
||||
|
||||
|
|
@ -63,7 +66,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum MessagePeerVote: TypeConstructorDescription {
|
||||
public class Cons_messagePeerVote {
|
||||
public class Cons_messagePeerVote: TypeConstructorDescription {
|
||||
public var peer: Api.Peer
|
||||
public var option: Buffer
|
||||
public var date: Int32
|
||||
|
|
@ -72,16 +75,22 @@ public extension Api {
|
|||
self.option = option
|
||||
self.date = date
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("messagePeerVote", [("peer", self.peer as Any), ("option", self.option as Any), ("date", self.date as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_messagePeerVoteInputOption {
|
||||
public class Cons_messagePeerVoteInputOption: TypeConstructorDescription {
|
||||
public var peer: Api.Peer
|
||||
public var date: Int32
|
||||
public init(peer: Api.Peer, date: Int32) {
|
||||
self.peer = peer
|
||||
self.date = date
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("messagePeerVoteInputOption", [("peer", self.peer as Any), ("date", self.date as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_messagePeerVoteMultiple {
|
||||
public class Cons_messagePeerVoteMultiple: TypeConstructorDescription {
|
||||
public var peer: Api.Peer
|
||||
public var options: [Buffer]
|
||||
public var date: Int32
|
||||
|
|
@ -90,6 +99,9 @@ public extension Api {
|
|||
self.options = options
|
||||
self.date = date
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("messagePeerVoteMultiple", [("peer", self.peer as Any), ("options", self.options as Any), ("date", self.date as Any)])
|
||||
}
|
||||
}
|
||||
case messagePeerVote(Cons_messagePeerVote)
|
||||
case messagePeerVoteInputOption(Cons_messagePeerVoteInputOption)
|
||||
|
|
@ -198,13 +210,16 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum MessageRange: TypeConstructorDescription {
|
||||
public class Cons_messageRange {
|
||||
public class Cons_messageRange: TypeConstructorDescription {
|
||||
public var minId: Int32
|
||||
public var maxId: Int32
|
||||
public init(minId: Int32, maxId: Int32) {
|
||||
self.minId = minId
|
||||
self.maxId = maxId
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("messageRange", [("minId", self.minId as Any), ("maxId", self.maxId as Any)])
|
||||
}
|
||||
}
|
||||
case messageRange(Cons_messageRange)
|
||||
|
||||
|
|
@ -245,7 +260,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum MessageReactions: TypeConstructorDescription {
|
||||
public class Cons_messageReactions {
|
||||
public class Cons_messageReactions: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var results: [Api.ReactionCount]
|
||||
public var recentReactions: [Api.MessagePeerReaction]?
|
||||
|
|
@ -256,6 +271,9 @@ public extension Api {
|
|||
self.recentReactions = recentReactions
|
||||
self.topReactors = topReactors
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("messageReactions", [("flags", self.flags as Any), ("results", self.results as Any), ("recentReactions", self.recentReactions as Any), ("topReactors", self.topReactors as Any)])
|
||||
}
|
||||
}
|
||||
case messageReactions(Cons_messageReactions)
|
||||
|
||||
|
|
@ -330,7 +348,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum MessageReactor: TypeConstructorDescription {
|
||||
public class Cons_messageReactor {
|
||||
public class Cons_messageReactor: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var peerId: Api.Peer?
|
||||
public var count: Int32
|
||||
|
|
@ -339,6 +357,9 @@ public extension Api {
|
|||
self.peerId = peerId
|
||||
self.count = count
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("messageReactor", [("flags", self.flags as Any), ("peerId", self.peerId as Any), ("count", self.count as Any)])
|
||||
}
|
||||
}
|
||||
case messageReactor(Cons_messageReactor)
|
||||
|
||||
|
|
@ -389,7 +410,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum MessageReplies: TypeConstructorDescription {
|
||||
public class Cons_messageReplies {
|
||||
public class Cons_messageReplies: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var replies: Int32
|
||||
public var repliesPts: Int32
|
||||
|
|
@ -406,6 +427,9 @@ public extension Api {
|
|||
self.maxId = maxId
|
||||
self.readMaxId = readMaxId
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("messageReplies", [("flags", self.flags as Any), ("replies", self.replies as Any), ("repliesPts", self.repliesPts as Any), ("recentRepliers", self.recentRepliers as Any), ("channelId", self.channelId as Any), ("maxId", self.maxId as Any), ("readMaxId", self.readMaxId as Any)])
|
||||
}
|
||||
}
|
||||
case messageReplies(Cons_messageReplies)
|
||||
|
||||
|
|
@ -488,7 +512,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
indirect enum MessageReplyHeader: TypeConstructorDescription {
|
||||
public class Cons_messageReplyHeader {
|
||||
public class Cons_messageReplyHeader: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var replyToMsgId: Int32?
|
||||
public var replyToPeerId: Api.Peer?
|
||||
|
|
@ -511,14 +535,20 @@ public extension Api {
|
|||
self.quoteOffset = quoteOffset
|
||||
self.todoItemId = todoItemId
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("messageReplyHeader", [("flags", self.flags as Any), ("replyToMsgId", self.replyToMsgId as Any), ("replyToPeerId", self.replyToPeerId as Any), ("replyFrom", self.replyFrom as Any), ("replyMedia", self.replyMedia as Any), ("replyToTopId", self.replyToTopId as Any), ("quoteText", self.quoteText as Any), ("quoteEntities", self.quoteEntities as Any), ("quoteOffset", self.quoteOffset as Any), ("todoItemId", self.todoItemId as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_messageReplyStoryHeader {
|
||||
public class Cons_messageReplyStoryHeader: TypeConstructorDescription {
|
||||
public var peer: Api.Peer
|
||||
public var storyId: Int32
|
||||
public init(peer: Api.Peer, storyId: Int32) {
|
||||
self.peer = peer
|
||||
self.storyId = storyId
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("messageReplyStoryHeader", [("peer", self.peer as Any), ("storyId", self.storyId as Any)])
|
||||
}
|
||||
}
|
||||
case messageReplyHeader(Cons_messageReplyHeader)
|
||||
case messageReplyStoryHeader(Cons_messageReplyStoryHeader)
|
||||
|
|
@ -665,13 +695,16 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum MessageReportOption: TypeConstructorDescription {
|
||||
public class Cons_messageReportOption {
|
||||
public class Cons_messageReportOption: TypeConstructorDescription {
|
||||
public var text: String
|
||||
public var option: Buffer
|
||||
public init(text: String, option: Buffer) {
|
||||
self.text = text
|
||||
self.option = option
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("messageReportOption", [("text", self.text as Any), ("option", self.option as Any)])
|
||||
}
|
||||
}
|
||||
case messageReportOption(Cons_messageReportOption)
|
||||
|
||||
|
|
@ -712,7 +745,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum MessageViews: TypeConstructorDescription {
|
||||
public class Cons_messageViews {
|
||||
public class Cons_messageViews: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var views: Int32?
|
||||
public var forwards: Int32?
|
||||
|
|
@ -723,6 +756,9 @@ public extension Api {
|
|||
self.forwards = forwards
|
||||
self.replies = replies
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("messageViews", [("flags", self.flags as Any), ("views", self.views as Any), ("forwards", self.forwards as Any), ("replies", self.replies as Any)])
|
||||
}
|
||||
}
|
||||
case messageViews(Cons_messageViews)
|
||||
|
||||
|
|
@ -785,11 +821,14 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum MessagesFilter: TypeConstructorDescription {
|
||||
public class Cons_inputMessagesFilterPhoneCalls {
|
||||
public class Cons_inputMessagesFilterPhoneCalls: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public init(flags: Int32) {
|
||||
self.flags = flags
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputMessagesFilterPhoneCalls", [("flags", self.flags as Any)])
|
||||
}
|
||||
}
|
||||
case inputMessagesFilterChatPhotos
|
||||
case inputMessagesFilterContacts
|
||||
|
|
@ -1002,13 +1041,16 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum MissingInvitee: TypeConstructorDescription {
|
||||
public class Cons_missingInvitee {
|
||||
public class Cons_missingInvitee: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var userId: Int64
|
||||
public init(flags: Int32, userId: Int64) {
|
||||
self.flags = flags
|
||||
self.userId = userId
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("missingInvitee", [("flags", self.flags as Any), ("userId", self.userId as Any)])
|
||||
}
|
||||
}
|
||||
case missingInvitee(Cons_missingInvitee)
|
||||
|
||||
|
|
@ -1049,7 +1091,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum MyBoost: TypeConstructorDescription {
|
||||
public class Cons_myBoost {
|
||||
public class Cons_myBoost: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var slot: Int32
|
||||
public var peer: Api.Peer?
|
||||
|
|
@ -1064,6 +1106,9 @@ public extension Api {
|
|||
self.expires = expires
|
||||
self.cooldownUntilDate = cooldownUntilDate
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("myBoost", [("flags", self.flags as Any), ("slot", self.slot as Any), ("peer", self.peer as Any), ("date", self.date as Any), ("expires", self.expires as Any), ("cooldownUntilDate", self.cooldownUntilDate as Any)])
|
||||
}
|
||||
}
|
||||
case myBoost(Cons_myBoost)
|
||||
|
||||
|
|
@ -1130,7 +1175,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum NearestDc: TypeConstructorDescription {
|
||||
public class Cons_nearestDc {
|
||||
public class Cons_nearestDc: TypeConstructorDescription {
|
||||
public var country: String
|
||||
public var thisDc: Int32
|
||||
public var nearestDc: Int32
|
||||
|
|
@ -1139,6 +1184,9 @@ public extension Api {
|
|||
self.thisDc = thisDc
|
||||
self.nearestDc = nearestDc
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("nearestDc", [("country", self.country as Any), ("thisDc", self.thisDc as Any), ("nearestDc", self.nearestDc as Any)])
|
||||
}
|
||||
}
|
||||
case nearestDc(Cons_nearestDc)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,18 +1,24 @@
|
|||
public extension Api {
|
||||
enum NotificationSound: TypeConstructorDescription {
|
||||
public class Cons_notificationSoundLocal {
|
||||
public class Cons_notificationSoundLocal: TypeConstructorDescription {
|
||||
public var title: String
|
||||
public var data: String
|
||||
public init(title: String, data: String) {
|
||||
self.title = title
|
||||
self.data = data
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("notificationSoundLocal", [("title", self.title as Any), ("data", self.data as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_notificationSoundRingtone {
|
||||
public class Cons_notificationSoundRingtone: TypeConstructorDescription {
|
||||
public var id: Int64
|
||||
public init(id: Int64) {
|
||||
self.id = id
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("notificationSoundRingtone", [("id", self.id as Any)])
|
||||
}
|
||||
}
|
||||
case notificationSoundDefault
|
||||
case notificationSoundLocal(Cons_notificationSoundLocal)
|
||||
|
|
@ -95,19 +101,25 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum NotifyPeer: TypeConstructorDescription {
|
||||
public class Cons_notifyForumTopic {
|
||||
public class Cons_notifyForumTopic: TypeConstructorDescription {
|
||||
public var peer: Api.Peer
|
||||
public var topMsgId: Int32
|
||||
public init(peer: Api.Peer, topMsgId: Int32) {
|
||||
self.peer = peer
|
||||
self.topMsgId = topMsgId
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("notifyForumTopic", [("peer", self.peer as Any), ("topMsgId", self.topMsgId as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_notifyPeer {
|
||||
public class Cons_notifyPeer: TypeConstructorDescription {
|
||||
public var peer: Api.Peer
|
||||
public init(peer: Api.Peer) {
|
||||
self.peer = peer
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("notifyPeer", [("peer", self.peer as Any)])
|
||||
}
|
||||
}
|
||||
case notifyBroadcasts
|
||||
case notifyChats
|
||||
|
|
@ -205,11 +217,14 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum OutboxReadDate: TypeConstructorDescription {
|
||||
public class Cons_outboxReadDate {
|
||||
public class Cons_outboxReadDate: TypeConstructorDescription {
|
||||
public var date: Int32
|
||||
public init(date: Int32) {
|
||||
self.date = date
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("outboxReadDate", [("date", self.date as Any)])
|
||||
}
|
||||
}
|
||||
case outboxReadDate(Cons_outboxReadDate)
|
||||
|
||||
|
|
@ -246,7 +261,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum Page: TypeConstructorDescription {
|
||||
public class Cons_page {
|
||||
public class Cons_page: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var url: String
|
||||
public var blocks: [Api.PageBlock]
|
||||
|
|
@ -261,6 +276,9 @@ public extension Api {
|
|||
self.documents = documents
|
||||
self.views = views
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("page", [("flags", self.flags as Any), ("url", self.url as Any), ("blocks", self.blocks as Any), ("photos", self.photos as Any), ("documents", self.documents as Any), ("views", self.views as Any)])
|
||||
}
|
||||
}
|
||||
case page(Cons_page)
|
||||
|
||||
|
|
@ -339,57 +357,78 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
indirect enum PageBlock: TypeConstructorDescription {
|
||||
public class Cons_pageBlockAnchor {
|
||||
public class Cons_pageBlockAnchor: TypeConstructorDescription {
|
||||
public var name: String
|
||||
public init(name: String) {
|
||||
self.name = name
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("pageBlockAnchor", [("name", self.name as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_pageBlockAudio {
|
||||
public class Cons_pageBlockAudio: TypeConstructorDescription {
|
||||
public var audioId: Int64
|
||||
public var caption: Api.PageCaption
|
||||
public init(audioId: Int64, caption: Api.PageCaption) {
|
||||
self.audioId = audioId
|
||||
self.caption = caption
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("pageBlockAudio", [("audioId", self.audioId as Any), ("caption", self.caption as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_pageBlockAuthorDate {
|
||||
public class Cons_pageBlockAuthorDate: TypeConstructorDescription {
|
||||
public var author: Api.RichText
|
||||
public var publishedDate: Int32
|
||||
public init(author: Api.RichText, publishedDate: Int32) {
|
||||
self.author = author
|
||||
self.publishedDate = publishedDate
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("pageBlockAuthorDate", [("author", self.author as Any), ("publishedDate", self.publishedDate as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_pageBlockBlockquote {
|
||||
public class Cons_pageBlockBlockquote: TypeConstructorDescription {
|
||||
public var text: Api.RichText
|
||||
public var caption: Api.RichText
|
||||
public init(text: Api.RichText, caption: Api.RichText) {
|
||||
self.text = text
|
||||
self.caption = caption
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("pageBlockBlockquote", [("text", self.text as Any), ("caption", self.caption as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_pageBlockChannel {
|
||||
public class Cons_pageBlockChannel: TypeConstructorDescription {
|
||||
public var channel: Api.Chat
|
||||
public init(channel: Api.Chat) {
|
||||
self.channel = channel
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("pageBlockChannel", [("channel", self.channel as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_pageBlockCollage {
|
||||
public class Cons_pageBlockCollage: TypeConstructorDescription {
|
||||
public var items: [Api.PageBlock]
|
||||
public var caption: Api.PageCaption
|
||||
public init(items: [Api.PageBlock], caption: Api.PageCaption) {
|
||||
self.items = items
|
||||
self.caption = caption
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("pageBlockCollage", [("items", self.items as Any), ("caption", self.caption as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_pageBlockCover {
|
||||
public class Cons_pageBlockCover: TypeConstructorDescription {
|
||||
public var cover: Api.PageBlock
|
||||
public init(cover: Api.PageBlock) {
|
||||
self.cover = cover
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("pageBlockCover", [("cover", self.cover as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_pageBlockDetails {
|
||||
public class Cons_pageBlockDetails: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var blocks: [Api.PageBlock]
|
||||
public var title: Api.RichText
|
||||
|
|
@ -398,8 +437,11 @@ public extension Api {
|
|||
self.blocks = blocks
|
||||
self.title = title
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("pageBlockDetails", [("flags", self.flags as Any), ("blocks", self.blocks as Any), ("title", self.title as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_pageBlockEmbed {
|
||||
public class Cons_pageBlockEmbed: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var url: String?
|
||||
public var html: String?
|
||||
|
|
@ -416,8 +458,11 @@ public extension Api {
|
|||
self.h = h
|
||||
self.caption = caption
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("pageBlockEmbed", [("flags", self.flags as Any), ("url", self.url as Any), ("html", self.html as Any), ("posterPhotoId", self.posterPhotoId as Any), ("w", self.w as Any), ("h", self.h as Any), ("caption", self.caption as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_pageBlockEmbedPost {
|
||||
public class Cons_pageBlockEmbedPost: TypeConstructorDescription {
|
||||
public var url: String
|
||||
public var webpageId: Int64
|
||||
public var authorPhotoId: Int64
|
||||
|
|
@ -434,32 +479,47 @@ public extension Api {
|
|||
self.blocks = blocks
|
||||
self.caption = caption
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("pageBlockEmbedPost", [("url", self.url as Any), ("webpageId", self.webpageId as Any), ("authorPhotoId", self.authorPhotoId as Any), ("author", self.author as Any), ("date", self.date as Any), ("blocks", self.blocks as Any), ("caption", self.caption as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_pageBlockFooter {
|
||||
public class Cons_pageBlockFooter: TypeConstructorDescription {
|
||||
public var text: Api.RichText
|
||||
public init(text: Api.RichText) {
|
||||
self.text = text
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("pageBlockFooter", [("text", self.text as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_pageBlockHeader {
|
||||
public class Cons_pageBlockHeader: TypeConstructorDescription {
|
||||
public var text: Api.RichText
|
||||
public init(text: Api.RichText) {
|
||||
self.text = text
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("pageBlockHeader", [("text", self.text as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_pageBlockKicker {
|
||||
public class Cons_pageBlockKicker: TypeConstructorDescription {
|
||||
public var text: Api.RichText
|
||||
public init(text: Api.RichText) {
|
||||
self.text = text
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("pageBlockKicker", [("text", self.text as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_pageBlockList {
|
||||
public class Cons_pageBlockList: TypeConstructorDescription {
|
||||
public var items: [Api.PageListItem]
|
||||
public init(items: [Api.PageListItem]) {
|
||||
self.items = items
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("pageBlockList", [("items", self.items as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_pageBlockMap {
|
||||
public class Cons_pageBlockMap: TypeConstructorDescription {
|
||||
public var geo: Api.GeoPoint
|
||||
public var zoom: Int32
|
||||
public var w: Int32
|
||||
|
|
@ -472,20 +532,29 @@ public extension Api {
|
|||
self.h = h
|
||||
self.caption = caption
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("pageBlockMap", [("geo", self.geo as Any), ("zoom", self.zoom as Any), ("w", self.w as Any), ("h", self.h as Any), ("caption", self.caption as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_pageBlockOrderedList {
|
||||
public class Cons_pageBlockOrderedList: TypeConstructorDescription {
|
||||
public var items: [Api.PageListOrderedItem]
|
||||
public init(items: [Api.PageListOrderedItem]) {
|
||||
self.items = items
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("pageBlockOrderedList", [("items", self.items as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_pageBlockParagraph {
|
||||
public class Cons_pageBlockParagraph: TypeConstructorDescription {
|
||||
public var text: Api.RichText
|
||||
public init(text: Api.RichText) {
|
||||
self.text = text
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("pageBlockParagraph", [("text", self.text as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_pageBlockPhoto {
|
||||
public class Cons_pageBlockPhoto: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var photoId: Int64
|
||||
public var caption: Api.PageCaption
|
||||
|
|
@ -498,52 +567,73 @@ public extension Api {
|
|||
self.url = url
|
||||
self.webpageId = webpageId
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("pageBlockPhoto", [("flags", self.flags as Any), ("photoId", self.photoId as Any), ("caption", self.caption as Any), ("url", self.url as Any), ("webpageId", self.webpageId as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_pageBlockPreformatted {
|
||||
public class Cons_pageBlockPreformatted: TypeConstructorDescription {
|
||||
public var text: Api.RichText
|
||||
public var language: String
|
||||
public init(text: Api.RichText, language: String) {
|
||||
self.text = text
|
||||
self.language = language
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("pageBlockPreformatted", [("text", self.text as Any), ("language", self.language as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_pageBlockPullquote {
|
||||
public class Cons_pageBlockPullquote: TypeConstructorDescription {
|
||||
public var text: Api.RichText
|
||||
public var caption: Api.RichText
|
||||
public init(text: Api.RichText, caption: Api.RichText) {
|
||||
self.text = text
|
||||
self.caption = caption
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("pageBlockPullquote", [("text", self.text as Any), ("caption", self.caption as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_pageBlockRelatedArticles {
|
||||
public class Cons_pageBlockRelatedArticles: TypeConstructorDescription {
|
||||
public var title: Api.RichText
|
||||
public var articles: [Api.PageRelatedArticle]
|
||||
public init(title: Api.RichText, articles: [Api.PageRelatedArticle]) {
|
||||
self.title = title
|
||||
self.articles = articles
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("pageBlockRelatedArticles", [("title", self.title as Any), ("articles", self.articles as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_pageBlockSlideshow {
|
||||
public class Cons_pageBlockSlideshow: TypeConstructorDescription {
|
||||
public var items: [Api.PageBlock]
|
||||
public var caption: Api.PageCaption
|
||||
public init(items: [Api.PageBlock], caption: Api.PageCaption) {
|
||||
self.items = items
|
||||
self.caption = caption
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("pageBlockSlideshow", [("items", self.items as Any), ("caption", self.caption as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_pageBlockSubheader {
|
||||
public class Cons_pageBlockSubheader: TypeConstructorDescription {
|
||||
public var text: Api.RichText
|
||||
public init(text: Api.RichText) {
|
||||
self.text = text
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("pageBlockSubheader", [("text", self.text as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_pageBlockSubtitle {
|
||||
public class Cons_pageBlockSubtitle: TypeConstructorDescription {
|
||||
public var text: Api.RichText
|
||||
public init(text: Api.RichText) {
|
||||
self.text = text
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("pageBlockSubtitle", [("text", self.text as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_pageBlockTable {
|
||||
public class Cons_pageBlockTable: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var title: Api.RichText
|
||||
public var rows: [Api.PageTableRow]
|
||||
|
|
@ -552,14 +642,20 @@ public extension Api {
|
|||
self.title = title
|
||||
self.rows = rows
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("pageBlockTable", [("flags", self.flags as Any), ("title", self.title as Any), ("rows", self.rows as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_pageBlockTitle {
|
||||
public class Cons_pageBlockTitle: TypeConstructorDescription {
|
||||
public var text: Api.RichText
|
||||
public init(text: Api.RichText) {
|
||||
self.text = text
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("pageBlockTitle", [("text", self.text as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_pageBlockVideo {
|
||||
public class Cons_pageBlockVideo: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var videoId: Int64
|
||||
public var caption: Api.PageCaption
|
||||
|
|
@ -568,6 +664,9 @@ public extension Api {
|
|||
self.videoId = videoId
|
||||
self.caption = caption
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("pageBlockVideo", [("flags", self.flags as Any), ("videoId", self.videoId as Any), ("caption", self.caption as Any)])
|
||||
}
|
||||
}
|
||||
case pageBlockAnchor(Cons_pageBlockAnchor)
|
||||
case pageBlockAudio(Cons_pageBlockAudio)
|
||||
|
|
|
|||
|
|
@ -1,12 +1,15 @@
|
|||
public extension Api {
|
||||
indirect enum PageCaption: TypeConstructorDescription {
|
||||
public class Cons_pageCaption {
|
||||
public class Cons_pageCaption: TypeConstructorDescription {
|
||||
public var text: Api.RichText
|
||||
public var credit: Api.RichText
|
||||
public init(text: Api.RichText, credit: Api.RichText) {
|
||||
self.text = text
|
||||
self.credit = credit
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("pageCaption", [("text", self.text as Any), ("credit", self.credit as Any)])
|
||||
}
|
||||
}
|
||||
case pageCaption(Cons_pageCaption)
|
||||
|
||||
|
|
@ -51,17 +54,23 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
indirect enum PageListItem: TypeConstructorDescription {
|
||||
public class Cons_pageListItemBlocks {
|
||||
public class Cons_pageListItemBlocks: TypeConstructorDescription {
|
||||
public var blocks: [Api.PageBlock]
|
||||
public init(blocks: [Api.PageBlock]) {
|
||||
self.blocks = blocks
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("pageListItemBlocks", [("blocks", self.blocks as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_pageListItemText {
|
||||
public class Cons_pageListItemText: TypeConstructorDescription {
|
||||
public var text: Api.RichText
|
||||
public init(text: Api.RichText) {
|
||||
self.text = text
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("pageListItemText", [("text", self.text as Any)])
|
||||
}
|
||||
}
|
||||
case pageListItemBlocks(Cons_pageListItemBlocks)
|
||||
case pageListItemText(Cons_pageListItemText)
|
||||
|
|
@ -126,21 +135,27 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
indirect enum PageListOrderedItem: TypeConstructorDescription {
|
||||
public class Cons_pageListOrderedItemBlocks {
|
||||
public class Cons_pageListOrderedItemBlocks: TypeConstructorDescription {
|
||||
public var num: String
|
||||
public var blocks: [Api.PageBlock]
|
||||
public init(num: String, blocks: [Api.PageBlock]) {
|
||||
self.num = num
|
||||
self.blocks = blocks
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("pageListOrderedItemBlocks", [("num", self.num as Any), ("blocks", self.blocks as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_pageListOrderedItemText {
|
||||
public class Cons_pageListOrderedItemText: TypeConstructorDescription {
|
||||
public var num: String
|
||||
public var text: Api.RichText
|
||||
public init(num: String, text: Api.RichText) {
|
||||
self.num = num
|
||||
self.text = text
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("pageListOrderedItemText", [("num", self.num as Any), ("text", self.text as Any)])
|
||||
}
|
||||
}
|
||||
case pageListOrderedItemBlocks(Cons_pageListOrderedItemBlocks)
|
||||
case pageListOrderedItemText(Cons_pageListOrderedItemText)
|
||||
|
|
@ -213,7 +228,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum PageRelatedArticle: TypeConstructorDescription {
|
||||
public class Cons_pageRelatedArticle {
|
||||
public class Cons_pageRelatedArticle: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var url: String
|
||||
public var webpageId: Int64
|
||||
|
|
@ -232,6 +247,9 @@ public extension Api {
|
|||
self.author = author
|
||||
self.publishedDate = publishedDate
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("pageRelatedArticle", [("flags", self.flags as Any), ("url", self.url as Any), ("webpageId", self.webpageId as Any), ("title", self.title as Any), ("description", self.description as Any), ("photoId", self.photoId as Any), ("author", self.author as Any), ("publishedDate", self.publishedDate as Any)])
|
||||
}
|
||||
}
|
||||
case pageRelatedArticle(Cons_pageRelatedArticle)
|
||||
|
||||
|
|
@ -316,7 +334,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
indirect enum PageTableCell: TypeConstructorDescription {
|
||||
public class Cons_pageTableCell {
|
||||
public class Cons_pageTableCell: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var text: Api.RichText?
|
||||
public var colspan: Int32?
|
||||
|
|
@ -327,6 +345,9 @@ public extension Api {
|
|||
self.colspan = colspan
|
||||
self.rowspan = rowspan
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("pageTableCell", [("flags", self.flags as Any), ("text", self.text as Any), ("colspan", self.colspan as Any), ("rowspan", self.rowspan as Any)])
|
||||
}
|
||||
}
|
||||
case pageTableCell(Cons_pageTableCell)
|
||||
|
||||
|
|
@ -389,11 +410,14 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum PageTableRow: TypeConstructorDescription {
|
||||
public class Cons_pageTableRow {
|
||||
public class Cons_pageTableRow: TypeConstructorDescription {
|
||||
public var cells: [Api.PageTableCell]
|
||||
public init(cells: [Api.PageTableCell]) {
|
||||
self.cells = cells
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("pageTableRow", [("cells", self.cells as Any)])
|
||||
}
|
||||
}
|
||||
case pageTableRow(Cons_pageTableRow)
|
||||
|
||||
|
|
@ -436,11 +460,14 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
indirect enum PaidReactionPrivacy: TypeConstructorDescription {
|
||||
public class Cons_paidReactionPrivacyPeer {
|
||||
public class Cons_paidReactionPrivacyPeer: TypeConstructorDescription {
|
||||
public var peer: Api.InputPeer
|
||||
public init(peer: Api.InputPeer) {
|
||||
self.peer = peer
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("paidReactionPrivacyPeer", [("peer", self.peer as Any)])
|
||||
}
|
||||
}
|
||||
case paidReactionPrivacyAnonymous
|
||||
case paidReactionPrivacyDefault
|
||||
|
|
@ -501,7 +528,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum Passkey: TypeConstructorDescription {
|
||||
public class Cons_passkey {
|
||||
public class Cons_passkey: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var id: String
|
||||
public var name: String
|
||||
|
|
@ -516,6 +543,9 @@ public extension Api {
|
|||
self.softwareEmojiId = softwareEmojiId
|
||||
self.lastUsageDate = lastUsageDate
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("passkey", [("flags", self.flags as Any), ("id", self.id as Any), ("name", self.name as Any), ("date", self.date as Any), ("softwareEmojiId", self.softwareEmojiId as Any), ("lastUsageDate", self.lastUsageDate as Any)])
|
||||
}
|
||||
}
|
||||
case passkey(Cons_passkey)
|
||||
|
||||
|
|
@ -580,7 +610,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum PasswordKdfAlgo: TypeConstructorDescription {
|
||||
public class Cons_passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow {
|
||||
public class Cons_passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow: TypeConstructorDescription {
|
||||
public var salt1: Buffer
|
||||
public var salt2: Buffer
|
||||
public var g: Int32
|
||||
|
|
@ -591,6 +621,9 @@ public extension Api {
|
|||
self.g = g
|
||||
self.p = p
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow", [("salt1", self.salt1 as Any), ("salt2", self.salt2 as Any), ("g", self.g as Any), ("p", self.p as Any)])
|
||||
}
|
||||
}
|
||||
case passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow(Cons_passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow)
|
||||
case passwordKdfAlgoUnknown
|
||||
|
|
@ -650,13 +683,16 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum PaymentCharge: TypeConstructorDescription {
|
||||
public class Cons_paymentCharge {
|
||||
public class Cons_paymentCharge: TypeConstructorDescription {
|
||||
public var id: String
|
||||
public var providerChargeId: String
|
||||
public init(id: String, providerChargeId: String) {
|
||||
self.id = id
|
||||
self.providerChargeId = providerChargeId
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("paymentCharge", [("id", self.id as Any), ("providerChargeId", self.providerChargeId as Any)])
|
||||
}
|
||||
}
|
||||
case paymentCharge(Cons_paymentCharge)
|
||||
|
||||
|
|
@ -697,13 +733,16 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum PaymentFormMethod: TypeConstructorDescription {
|
||||
public class Cons_paymentFormMethod {
|
||||
public class Cons_paymentFormMethod: TypeConstructorDescription {
|
||||
public var url: String
|
||||
public var title: String
|
||||
public init(url: String, title: String) {
|
||||
self.url = url
|
||||
self.title = title
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("paymentFormMethod", [("url", self.url as Any), ("title", self.title as Any)])
|
||||
}
|
||||
}
|
||||
case paymentFormMethod(Cons_paymentFormMethod)
|
||||
|
||||
|
|
@ -744,7 +783,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum PaymentRequestedInfo: TypeConstructorDescription {
|
||||
public class Cons_paymentRequestedInfo {
|
||||
public class Cons_paymentRequestedInfo: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var name: String?
|
||||
public var phone: String?
|
||||
|
|
@ -757,6 +796,9 @@ public extension Api {
|
|||
self.email = email
|
||||
self.shippingAddress = shippingAddress
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("paymentRequestedInfo", [("flags", self.flags as Any), ("name", self.name as Any), ("phone", self.phone as Any), ("email", self.email as Any), ("shippingAddress", self.shippingAddress as Any)])
|
||||
}
|
||||
}
|
||||
case paymentRequestedInfo(Cons_paymentRequestedInfo)
|
||||
|
||||
|
|
@ -827,13 +869,16 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum PaymentSavedCredentials: TypeConstructorDescription {
|
||||
public class Cons_paymentSavedCredentialsCard {
|
||||
public class Cons_paymentSavedCredentialsCard: TypeConstructorDescription {
|
||||
public var id: String
|
||||
public var title: String
|
||||
public init(id: String, title: String) {
|
||||
self.id = id
|
||||
self.title = title
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("paymentSavedCredentialsCard", [("id", self.id as Any), ("title", self.title as Any)])
|
||||
}
|
||||
}
|
||||
case paymentSavedCredentialsCard(Cons_paymentSavedCredentialsCard)
|
||||
|
||||
|
|
@ -874,23 +919,32 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum Peer: TypeConstructorDescription {
|
||||
public class Cons_peerChannel {
|
||||
public class Cons_peerChannel: TypeConstructorDescription {
|
||||
public var channelId: Int64
|
||||
public init(channelId: Int64) {
|
||||
self.channelId = channelId
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("peerChannel", [("channelId", self.channelId as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_peerChat {
|
||||
public class Cons_peerChat: TypeConstructorDescription {
|
||||
public var chatId: Int64
|
||||
public init(chatId: Int64) {
|
||||
self.chatId = chatId
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("peerChat", [("chatId", self.chatId as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_peerUser {
|
||||
public class Cons_peerUser: TypeConstructorDescription {
|
||||
public var userId: Int64
|
||||
public init(userId: Int64) {
|
||||
self.userId = userId
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("peerUser", [("userId", self.userId as Any)])
|
||||
}
|
||||
}
|
||||
case peerChannel(Cons_peerChannel)
|
||||
case peerChat(Cons_peerChat)
|
||||
|
|
@ -967,13 +1021,16 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum PeerBlocked: TypeConstructorDescription {
|
||||
public class Cons_peerBlocked {
|
||||
public class Cons_peerBlocked: TypeConstructorDescription {
|
||||
public var peerId: Api.Peer
|
||||
public var date: Int32
|
||||
public init(peerId: Api.Peer, date: Int32) {
|
||||
self.peerId = peerId
|
||||
self.date = date
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("peerBlocked", [("peerId", self.peerId as Any), ("date", self.date as Any)])
|
||||
}
|
||||
}
|
||||
case peerBlocked(Cons_peerBlocked)
|
||||
|
||||
|
|
@ -1016,13 +1073,16 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum PeerColor: TypeConstructorDescription {
|
||||
public class Cons_inputPeerColorCollectible {
|
||||
public class Cons_inputPeerColorCollectible: TypeConstructorDescription {
|
||||
public var collectibleId: Int64
|
||||
public init(collectibleId: Int64) {
|
||||
self.collectibleId = collectibleId
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputPeerColorCollectible", [("collectibleId", self.collectibleId as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_peerColor {
|
||||
public class Cons_peerColor: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var color: Int32?
|
||||
public var backgroundEmojiId: Int64?
|
||||
|
|
@ -1031,8 +1091,11 @@ public extension Api {
|
|||
self.color = color
|
||||
self.backgroundEmojiId = backgroundEmojiId
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("peerColor", [("flags", self.flags as Any), ("color", self.color as Any), ("backgroundEmojiId", self.backgroundEmojiId as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_peerColorCollectible {
|
||||
public class Cons_peerColorCollectible: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var collectibleId: Int64
|
||||
public var giftEmojiId: Int64
|
||||
|
|
@ -1051,6 +1114,9 @@ public extension Api {
|
|||
self.darkAccentColor = darkAccentColor
|
||||
self.darkColors = darkColors
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("peerColorCollectible", [("flags", self.flags as Any), ("collectibleId", self.collectibleId as Any), ("giftEmojiId", self.giftEmojiId as Any), ("backgroundEmojiId", self.backgroundEmojiId as Any), ("accentColor", self.accentColor as Any), ("colors", self.colors as Any), ("darkAccentColor", self.darkAccentColor as Any), ("darkColors", self.darkColors as Any)])
|
||||
}
|
||||
}
|
||||
case inputPeerColorCollectible(Cons_inputPeerColorCollectible)
|
||||
case peerColor(Cons_peerColor)
|
||||
|
|
@ -1191,7 +1257,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum PeerLocated: TypeConstructorDescription {
|
||||
public class Cons_peerLocated {
|
||||
public class Cons_peerLocated: TypeConstructorDescription {
|
||||
public var peer: Api.Peer
|
||||
public var expires: Int32
|
||||
public var distance: Int32
|
||||
|
|
@ -1200,12 +1266,18 @@ public extension Api {
|
|||
self.expires = expires
|
||||
self.distance = distance
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("peerLocated", [("peer", self.peer as Any), ("expires", self.expires as Any), ("distance", self.distance as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_peerSelfLocated {
|
||||
public class Cons_peerSelfLocated: TypeConstructorDescription {
|
||||
public var expires: Int32
|
||||
public init(expires: Int32) {
|
||||
self.expires = expires
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("peerSelfLocated", [("expires", self.expires as Any)])
|
||||
}
|
||||
}
|
||||
case peerLocated(Cons_peerLocated)
|
||||
case peerSelfLocated(Cons_peerSelfLocated)
|
||||
|
|
@ -1272,7 +1344,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum PeerNotifySettings: TypeConstructorDescription {
|
||||
public class Cons_peerNotifySettings {
|
||||
public class Cons_peerNotifySettings: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var showPreviews: Api.Bool?
|
||||
public var silent: Api.Bool?
|
||||
|
|
@ -1299,6 +1371,9 @@ public extension Api {
|
|||
self.storiesAndroidSound = storiesAndroidSound
|
||||
self.storiesOtherSound = storiesOtherSound
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("peerNotifySettings", [("flags", self.flags as Any), ("showPreviews", self.showPreviews as Any), ("silent", self.silent as Any), ("muteUntil", self.muteUntil as Any), ("iosSound", self.iosSound as Any), ("androidSound", self.androidSound as Any), ("otherSound", self.otherSound as Any), ("storiesMuted", self.storiesMuted as Any), ("storiesHideSender", self.storiesHideSender as Any), ("storiesIosSound", self.storiesIosSound as Any), ("storiesAndroidSound", self.storiesAndroidSound as Any), ("storiesOtherSound", self.storiesOtherSound as Any)])
|
||||
}
|
||||
}
|
||||
case peerNotifySettings(Cons_peerNotifySettings)
|
||||
|
||||
|
|
@ -1443,7 +1518,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum PeerSettings: TypeConstructorDescription {
|
||||
public class Cons_peerSettings {
|
||||
public class Cons_peerSettings: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var geoDistance: Int32?
|
||||
public var requestChatTitle: String?
|
||||
|
|
@ -1468,6 +1543,9 @@ public extension Api {
|
|||
self.nameChangeDate = nameChangeDate
|
||||
self.photoChangeDate = photoChangeDate
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("peerSettings", [("flags", self.flags as Any), ("geoDistance", self.geoDistance as Any), ("requestChatTitle", self.requestChatTitle as Any), ("requestChatDate", self.requestChatDate as Any), ("businessBotId", self.businessBotId as Any), ("businessBotManageUrl", self.businessBotManageUrl as Any), ("chargePaidMessageStars", self.chargePaidMessageStars as Any), ("registrationMonth", self.registrationMonth as Any), ("phoneCountry", self.phoneCountry as Any), ("nameChangeDate", self.nameChangeDate as Any), ("photoChangeDate", self.photoChangeDate as Any)])
|
||||
}
|
||||
}
|
||||
case peerSettings(Cons_peerSettings)
|
||||
|
||||
|
|
@ -1584,7 +1662,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum PeerStories: TypeConstructorDescription {
|
||||
public class Cons_peerStories {
|
||||
public class Cons_peerStories: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var peer: Api.Peer
|
||||
public var maxReadId: Int32?
|
||||
|
|
@ -1595,6 +1673,9 @@ public extension Api {
|
|||
self.maxReadId = maxReadId
|
||||
self.stories = stories
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("peerStories", [("flags", self.flags as Any), ("peer", self.peer as Any), ("maxReadId", self.maxReadId as Any), ("stories", self.stories as Any)])
|
||||
}
|
||||
}
|
||||
case peerStories(Cons_peerStories)
|
||||
|
||||
|
|
@ -1655,7 +1736,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum PendingSuggestion: TypeConstructorDescription {
|
||||
public class Cons_pendingSuggestion {
|
||||
public class Cons_pendingSuggestion: TypeConstructorDescription {
|
||||
public var suggestion: String
|
||||
public var title: Api.TextWithEntities
|
||||
public var description: Api.TextWithEntities
|
||||
|
|
@ -1666,6 +1747,9 @@ public extension Api {
|
|||
self.description = description
|
||||
self.url = url
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("pendingSuggestion", [("suggestion", self.suggestion as Any), ("title", self.title as Any), ("description", self.description as Any), ("url", self.url as Any)])
|
||||
}
|
||||
}
|
||||
case pendingSuggestion(Cons_pendingSuggestion)
|
||||
|
||||
|
|
@ -1718,7 +1802,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum PhoneCall: TypeConstructorDescription {
|
||||
public class Cons_phoneCall {
|
||||
public class Cons_phoneCall: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var id: Int64
|
||||
public var accessHash: Int64
|
||||
|
|
@ -1745,8 +1829,11 @@ public extension Api {
|
|||
self.startDate = startDate
|
||||
self.customParameters = customParameters
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("phoneCall", [("flags", self.flags as Any), ("id", self.id as Any), ("accessHash", self.accessHash as Any), ("date", self.date as Any), ("adminId", self.adminId as Any), ("participantId", self.participantId as Any), ("gAOrB", self.gAOrB as Any), ("keyFingerprint", self.keyFingerprint as Any), ("`protocol`", self.`protocol` as Any), ("connections", self.connections as Any), ("startDate", self.startDate as Any), ("customParameters", self.customParameters as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_phoneCallAccepted {
|
||||
public class Cons_phoneCallAccepted: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var id: Int64
|
||||
public var accessHash: Int64
|
||||
|
|
@ -1765,8 +1852,11 @@ public extension Api {
|
|||
self.gB = gB
|
||||
self.`protocol` = `protocol`
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("phoneCallAccepted", [("flags", self.flags as Any), ("id", self.id as Any), ("accessHash", self.accessHash as Any), ("date", self.date as Any), ("adminId", self.adminId as Any), ("participantId", self.participantId as Any), ("gB", self.gB as Any), ("`protocol`", self.`protocol` as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_phoneCallDiscarded {
|
||||
public class Cons_phoneCallDiscarded: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var id: Int64
|
||||
public var reason: Api.PhoneCallDiscardReason?
|
||||
|
|
@ -1777,14 +1867,20 @@ public extension Api {
|
|||
self.reason = reason
|
||||
self.duration = duration
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("phoneCallDiscarded", [("flags", self.flags as Any), ("id", self.id as Any), ("reason", self.reason as Any), ("duration", self.duration as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_phoneCallEmpty {
|
||||
public class Cons_phoneCallEmpty: TypeConstructorDescription {
|
||||
public var id: Int64
|
||||
public init(id: Int64) {
|
||||
self.id = id
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("phoneCallEmpty", [("id", self.id as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_phoneCallRequested {
|
||||
public class Cons_phoneCallRequested: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var id: Int64
|
||||
public var accessHash: Int64
|
||||
|
|
@ -1803,8 +1899,11 @@ public extension Api {
|
|||
self.gAHash = gAHash
|
||||
self.`protocol` = `protocol`
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("phoneCallRequested", [("flags", self.flags as Any), ("id", self.id as Any), ("accessHash", self.accessHash as Any), ("date", self.date as Any), ("adminId", self.adminId as Any), ("participantId", self.participantId as Any), ("gAHash", self.gAHash as Any), ("`protocol`", self.`protocol` as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_phoneCallWaiting {
|
||||
public class Cons_phoneCallWaiting: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var id: Int64
|
||||
public var accessHash: Int64
|
||||
|
|
@ -1823,6 +1922,9 @@ public extension Api {
|
|||
self.`protocol` = `protocol`
|
||||
self.receiveDate = receiveDate
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("phoneCallWaiting", [("flags", self.flags as Any), ("id", self.id as Any), ("accessHash", self.accessHash as Any), ("date", self.date as Any), ("adminId", self.adminId as Any), ("participantId", self.participantId as Any), ("`protocol`", self.`protocol` as Any), ("receiveDate", self.receiveDate as Any)])
|
||||
}
|
||||
}
|
||||
case phoneCall(Cons_phoneCall)
|
||||
case phoneCallAccepted(Cons_phoneCallAccepted)
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
public extension Api {
|
||||
enum BotBusinessConnection: TypeConstructorDescription {
|
||||
public class Cons_botBusinessConnection {
|
||||
public class Cons_botBusinessConnection: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var connectionId: String
|
||||
public var userId: Int64
|
||||
|
|
@ -15,6 +15,9 @@ public extension Api {
|
|||
self.date = date
|
||||
self.rights = rights
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("botBusinessConnection", [("flags", self.flags as Any), ("connectionId", self.connectionId as Any), ("userId", self.userId as Any), ("dcId", self.dcId as Any), ("date", self.date as Any), ("rights", self.rights as Any)])
|
||||
}
|
||||
}
|
||||
case botBusinessConnection(Cons_botBusinessConnection)
|
||||
|
||||
|
|
@ -77,13 +80,16 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum BotCommand: TypeConstructorDescription {
|
||||
public class Cons_botCommand {
|
||||
public class Cons_botCommand: TypeConstructorDescription {
|
||||
public var command: String
|
||||
public var description: String
|
||||
public init(command: String, description: String) {
|
||||
self.command = command
|
||||
self.description = description
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("botCommand", [("command", self.command as Any), ("description", self.description as Any)])
|
||||
}
|
||||
}
|
||||
case botCommand(Cons_botCommand)
|
||||
|
||||
|
|
@ -124,25 +130,34 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
indirect enum BotCommandScope: TypeConstructorDescription {
|
||||
public class Cons_botCommandScopePeer {
|
||||
public class Cons_botCommandScopePeer: TypeConstructorDescription {
|
||||
public var peer: Api.InputPeer
|
||||
public init(peer: Api.InputPeer) {
|
||||
self.peer = peer
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("botCommandScopePeer", [("peer", self.peer as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_botCommandScopePeerAdmins {
|
||||
public class Cons_botCommandScopePeerAdmins: TypeConstructorDescription {
|
||||
public var peer: Api.InputPeer
|
||||
public init(peer: Api.InputPeer) {
|
||||
self.peer = peer
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("botCommandScopePeerAdmins", [("peer", self.peer as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_botCommandScopePeerUser {
|
||||
public class Cons_botCommandScopePeerUser: TypeConstructorDescription {
|
||||
public var peer: Api.InputPeer
|
||||
public var userId: Api.InputUser
|
||||
public init(peer: Api.InputPeer, userId: Api.InputUser) {
|
||||
self.peer = peer
|
||||
self.userId = userId
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("botCommandScopePeerUser", [("peer", self.peer as Any), ("userId", self.userId as Any)])
|
||||
}
|
||||
}
|
||||
case botCommandScopeChatAdmins
|
||||
case botCommandScopeChats
|
||||
|
|
@ -275,7 +290,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum BotInfo: TypeConstructorDescription {
|
||||
public class Cons_botInfo {
|
||||
public class Cons_botInfo: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var userId: Int64?
|
||||
public var description: String?
|
||||
|
|
@ -298,6 +313,9 @@ public extension Api {
|
|||
self.appSettings = appSettings
|
||||
self.verifierSettings = verifierSettings
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("botInfo", [("flags", self.flags as Any), ("userId", self.userId as Any), ("description", self.description as Any), ("descriptionPhoto", self.descriptionPhoto as Any), ("descriptionDocument", self.descriptionDocument as Any), ("commands", self.commands as Any), ("menuButton", self.menuButton as Any), ("privacyPolicyUrl", self.privacyPolicyUrl as Any), ("appSettings", self.appSettings as Any), ("verifierSettings", self.verifierSettings as Any)])
|
||||
}
|
||||
}
|
||||
case botInfo(Cons_botInfo)
|
||||
|
||||
|
|
@ -422,7 +440,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum BotInlineMessage: TypeConstructorDescription {
|
||||
public class Cons_botInlineMessageMediaAuto {
|
||||
public class Cons_botInlineMessageMediaAuto: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var message: String
|
||||
public var entities: [Api.MessageEntity]?
|
||||
|
|
@ -433,8 +451,11 @@ public extension Api {
|
|||
self.entities = entities
|
||||
self.replyMarkup = replyMarkup
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("botInlineMessageMediaAuto", [("flags", self.flags as Any), ("message", self.message as Any), ("entities", self.entities as Any), ("replyMarkup", self.replyMarkup as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_botInlineMessageMediaContact {
|
||||
public class Cons_botInlineMessageMediaContact: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var phoneNumber: String
|
||||
public var firstName: String
|
||||
|
|
@ -449,8 +470,11 @@ public extension Api {
|
|||
self.vcard = vcard
|
||||
self.replyMarkup = replyMarkup
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("botInlineMessageMediaContact", [("flags", self.flags as Any), ("phoneNumber", self.phoneNumber as Any), ("firstName", self.firstName as Any), ("lastName", self.lastName as Any), ("vcard", self.vcard as Any), ("replyMarkup", self.replyMarkup as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_botInlineMessageMediaGeo {
|
||||
public class Cons_botInlineMessageMediaGeo: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var geo: Api.GeoPoint
|
||||
public var heading: Int32?
|
||||
|
|
@ -465,8 +489,11 @@ public extension Api {
|
|||
self.proximityNotificationRadius = proximityNotificationRadius
|
||||
self.replyMarkup = replyMarkup
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("botInlineMessageMediaGeo", [("flags", self.flags as Any), ("geo", self.geo as Any), ("heading", self.heading as Any), ("period", self.period as Any), ("proximityNotificationRadius", self.proximityNotificationRadius as Any), ("replyMarkup", self.replyMarkup as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_botInlineMessageMediaInvoice {
|
||||
public class Cons_botInlineMessageMediaInvoice: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var title: String
|
||||
public var description: String
|
||||
|
|
@ -483,8 +510,11 @@ public extension Api {
|
|||
self.totalAmount = totalAmount
|
||||
self.replyMarkup = replyMarkup
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("botInlineMessageMediaInvoice", [("flags", self.flags as Any), ("title", self.title as Any), ("description", self.description as Any), ("photo", self.photo as Any), ("currency", self.currency as Any), ("totalAmount", self.totalAmount as Any), ("replyMarkup", self.replyMarkup as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_botInlineMessageMediaVenue {
|
||||
public class Cons_botInlineMessageMediaVenue: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var geo: Api.GeoPoint
|
||||
public var title: String
|
||||
|
|
@ -503,8 +533,11 @@ public extension Api {
|
|||
self.venueType = venueType
|
||||
self.replyMarkup = replyMarkup
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("botInlineMessageMediaVenue", [("flags", self.flags as Any), ("geo", self.geo as Any), ("title", self.title as Any), ("address", self.address as Any), ("provider", self.provider as Any), ("venueId", self.venueId as Any), ("venueType", self.venueType as Any), ("replyMarkup", self.replyMarkup as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_botInlineMessageMediaWebPage {
|
||||
public class Cons_botInlineMessageMediaWebPage: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var message: String
|
||||
public var entities: [Api.MessageEntity]?
|
||||
|
|
@ -517,8 +550,11 @@ public extension Api {
|
|||
self.url = url
|
||||
self.replyMarkup = replyMarkup
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("botInlineMessageMediaWebPage", [("flags", self.flags as Any), ("message", self.message as Any), ("entities", self.entities as Any), ("url", self.url as Any), ("replyMarkup", self.replyMarkup as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_botInlineMessageText {
|
||||
public class Cons_botInlineMessageText: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var message: String
|
||||
public var entities: [Api.MessageEntity]?
|
||||
|
|
@ -529,6 +565,9 @@ public extension Api {
|
|||
self.entities = entities
|
||||
self.replyMarkup = replyMarkup
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("botInlineMessageText", [("flags", self.flags as Any), ("message", self.message as Any), ("entities", self.entities as Any), ("replyMarkup", self.replyMarkup as Any)])
|
||||
}
|
||||
}
|
||||
case botInlineMessageMediaAuto(Cons_botInlineMessageMediaAuto)
|
||||
case botInlineMessageMediaContact(Cons_botInlineMessageMediaContact)
|
||||
|
|
@ -911,7 +950,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum BotInlineResult: TypeConstructorDescription {
|
||||
public class Cons_botInlineMediaResult {
|
||||
public class Cons_botInlineMediaResult: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var id: String
|
||||
public var type: String
|
||||
|
|
@ -930,8 +969,11 @@ public extension Api {
|
|||
self.description = description
|
||||
self.sendMessage = sendMessage
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("botInlineMediaResult", [("flags", self.flags as Any), ("id", self.id as Any), ("type", self.type as Any), ("photo", self.photo as Any), ("document", self.document as Any), ("title", self.title as Any), ("description", self.description as Any), ("sendMessage", self.sendMessage as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_botInlineResult {
|
||||
public class Cons_botInlineResult: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var id: String
|
||||
public var type: String
|
||||
|
|
@ -952,6 +994,9 @@ public extension Api {
|
|||
self.content = content
|
||||
self.sendMessage = sendMessage
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("botInlineResult", [("flags", self.flags as Any), ("id", self.id as Any), ("type", self.type as Any), ("title", self.title as Any), ("description", self.description as Any), ("url", self.url as Any), ("thumb", self.thumb as Any), ("content", self.content as Any), ("sendMessage", self.sendMessage as Any)])
|
||||
}
|
||||
}
|
||||
case botInlineMediaResult(Cons_botInlineMediaResult)
|
||||
case botInlineResult(Cons_botInlineResult)
|
||||
|
|
@ -1116,13 +1161,16 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum BotMenuButton: TypeConstructorDescription {
|
||||
public class Cons_botMenuButton {
|
||||
public class Cons_botMenuButton: TypeConstructorDescription {
|
||||
public var text: String
|
||||
public var url: String
|
||||
public init(text: String, url: String) {
|
||||
self.text = text
|
||||
self.url = url
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("botMenuButton", [("text", self.text as Any), ("url", self.url as Any)])
|
||||
}
|
||||
}
|
||||
case botMenuButton(Cons_botMenuButton)
|
||||
case botMenuButtonCommands
|
||||
|
|
@ -1185,13 +1233,16 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
indirect enum BotPreviewMedia: TypeConstructorDescription {
|
||||
public class Cons_botPreviewMedia {
|
||||
public class Cons_botPreviewMedia: TypeConstructorDescription {
|
||||
public var date: Int32
|
||||
public var media: Api.MessageMedia
|
||||
public init(date: Int32, media: Api.MessageMedia) {
|
||||
self.date = date
|
||||
self.media = media
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("botPreviewMedia", [("date", self.date as Any), ("media", self.media as Any)])
|
||||
}
|
||||
}
|
||||
case botPreviewMedia(Cons_botPreviewMedia)
|
||||
|
||||
|
|
@ -1234,7 +1285,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum BotVerification: TypeConstructorDescription {
|
||||
public class Cons_botVerification {
|
||||
public class Cons_botVerification: TypeConstructorDescription {
|
||||
public var botId: Int64
|
||||
public var icon: Int64
|
||||
public var description: String
|
||||
|
|
@ -1243,6 +1294,9 @@ public extension Api {
|
|||
self.icon = icon
|
||||
self.description = description
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("botVerification", [("botId", self.botId as Any), ("icon", self.icon as Any), ("description", self.description as Any)])
|
||||
}
|
||||
}
|
||||
case botVerification(Cons_botVerification)
|
||||
|
||||
|
|
@ -1287,7 +1341,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum BotVerifierSettings: TypeConstructorDescription {
|
||||
public class Cons_botVerifierSettings {
|
||||
public class Cons_botVerifierSettings: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var icon: Int64
|
||||
public var company: String
|
||||
|
|
@ -1298,6 +1352,9 @@ public extension Api {
|
|||
self.company = company
|
||||
self.customDescription = customDescription
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("botVerifierSettings", [("flags", self.flags as Any), ("icon", self.icon as Any), ("company", self.company as Any), ("customDescription", self.customDescription as Any)])
|
||||
}
|
||||
}
|
||||
case botVerifierSettings(Cons_botVerifierSettings)
|
||||
|
||||
|
|
@ -1350,7 +1407,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum BusinessAwayMessage: TypeConstructorDescription {
|
||||
public class Cons_businessAwayMessage {
|
||||
public class Cons_businessAwayMessage: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var shortcutId: Int32
|
||||
public var schedule: Api.BusinessAwayMessageSchedule
|
||||
|
|
@ -1361,6 +1418,9 @@ public extension Api {
|
|||
self.schedule = schedule
|
||||
self.recipients = recipients
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("businessAwayMessage", [("flags", self.flags as Any), ("shortcutId", self.shortcutId as Any), ("schedule", self.schedule as Any), ("recipients", self.recipients as Any)])
|
||||
}
|
||||
}
|
||||
case businessAwayMessage(Cons_businessAwayMessage)
|
||||
|
||||
|
|
@ -1413,13 +1473,16 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum BusinessAwayMessageSchedule: TypeConstructorDescription {
|
||||
public class Cons_businessAwayMessageScheduleCustom {
|
||||
public class Cons_businessAwayMessageScheduleCustom: TypeConstructorDescription {
|
||||
public var startDate: Int32
|
||||
public var endDate: Int32
|
||||
public init(startDate: Int32, endDate: Int32) {
|
||||
self.startDate = startDate
|
||||
self.endDate = endDate
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("businessAwayMessageScheduleCustom", [("startDate", self.startDate as Any), ("endDate", self.endDate as Any)])
|
||||
}
|
||||
}
|
||||
case businessAwayMessageScheduleAlways
|
||||
case businessAwayMessageScheduleCustom(Cons_businessAwayMessageScheduleCustom)
|
||||
|
|
@ -1482,7 +1545,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum BusinessBotRecipients: TypeConstructorDescription {
|
||||
public class Cons_businessBotRecipients {
|
||||
public class Cons_businessBotRecipients: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var users: [Int64]?
|
||||
public var excludeUsers: [Int64]?
|
||||
|
|
@ -1491,6 +1554,9 @@ public extension Api {
|
|||
self.users = users
|
||||
self.excludeUsers = excludeUsers
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("businessBotRecipients", [("flags", self.flags as Any), ("users", self.users as Any), ("excludeUsers", self.excludeUsers as Any)])
|
||||
}
|
||||
}
|
||||
case businessBotRecipients(Cons_businessBotRecipients)
|
||||
|
||||
|
|
@ -1555,11 +1621,14 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum BusinessBotRights: TypeConstructorDescription {
|
||||
public class Cons_businessBotRights {
|
||||
public class Cons_businessBotRights: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public init(flags: Int32) {
|
||||
self.flags = flags
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("businessBotRights", [("flags", self.flags as Any)])
|
||||
}
|
||||
}
|
||||
case businessBotRights(Cons_businessBotRights)
|
||||
|
||||
|
|
@ -1596,7 +1665,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum BusinessChatLink: TypeConstructorDescription {
|
||||
public class Cons_businessChatLink {
|
||||
public class Cons_businessChatLink: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var link: String
|
||||
public var message: String
|
||||
|
|
@ -1611,6 +1680,9 @@ public extension Api {
|
|||
self.title = title
|
||||
self.views = views
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("businessChatLink", [("flags", self.flags as Any), ("link", self.link as Any), ("message", self.message as Any), ("entities", self.entities as Any), ("title", self.title as Any), ("views", self.views as Any)])
|
||||
}
|
||||
}
|
||||
case businessChatLink(Cons_businessChatLink)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +1,13 @@
|
|||
public extension Api {
|
||||
enum PhoneCallDiscardReason: TypeConstructorDescription {
|
||||
public class Cons_phoneCallDiscardReasonMigrateConferenceCall {
|
||||
public class Cons_phoneCallDiscardReasonMigrateConferenceCall: TypeConstructorDescription {
|
||||
public var slug: String
|
||||
public init(slug: String) {
|
||||
self.slug = slug
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("phoneCallDiscardReasonMigrateConferenceCall", [("slug", self.slug as Any)])
|
||||
}
|
||||
}
|
||||
case phoneCallDiscardReasonBusy
|
||||
case phoneCallDiscardReasonDisconnect
|
||||
|
|
@ -85,7 +88,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum PhoneCallProtocol: TypeConstructorDescription {
|
||||
public class Cons_phoneCallProtocol {
|
||||
public class Cons_phoneCallProtocol: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var minLayer: Int32
|
||||
public var maxLayer: Int32
|
||||
|
|
@ -96,6 +99,9 @@ public extension Api {
|
|||
self.maxLayer = maxLayer
|
||||
self.libraryVersions = libraryVersions
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("phoneCallProtocol", [("flags", self.flags as Any), ("minLayer", self.minLayer as Any), ("maxLayer", self.maxLayer as Any), ("libraryVersions", self.libraryVersions as Any)])
|
||||
}
|
||||
}
|
||||
case phoneCallProtocol(Cons_phoneCallProtocol)
|
||||
|
||||
|
|
@ -150,7 +156,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum PhoneConnection: TypeConstructorDescription {
|
||||
public class Cons_phoneConnection {
|
||||
public class Cons_phoneConnection: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var id: Int64
|
||||
public var ip: String
|
||||
|
|
@ -165,8 +171,11 @@ public extension Api {
|
|||
self.port = port
|
||||
self.peerTag = peerTag
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("phoneConnection", [("flags", self.flags as Any), ("id", self.id as Any), ("ip", self.ip as Any), ("ipv6", self.ipv6 as Any), ("port", self.port as Any), ("peerTag", self.peerTag as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_phoneConnectionWebrtc {
|
||||
public class Cons_phoneConnectionWebrtc: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var id: Int64
|
||||
public var ip: String
|
||||
|
|
@ -183,6 +192,9 @@ public extension Api {
|
|||
self.username = username
|
||||
self.password = password
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("phoneConnectionWebrtc", [("flags", self.flags as Any), ("id", self.id as Any), ("ip", self.ip as Any), ("ipv6", self.ipv6 as Any), ("port", self.port as Any), ("username", self.username as Any), ("password", self.password as Any)])
|
||||
}
|
||||
}
|
||||
case phoneConnection(Cons_phoneConnection)
|
||||
case phoneConnectionWebrtc(Cons_phoneConnectionWebrtc)
|
||||
|
|
@ -283,7 +295,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum Photo: TypeConstructorDescription {
|
||||
public class Cons_photo {
|
||||
public class Cons_photo: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var id: Int64
|
||||
public var accessHash: Int64
|
||||
|
|
@ -302,12 +314,18 @@ public extension Api {
|
|||
self.videoSizes = videoSizes
|
||||
self.dcId = dcId
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("photo", [("flags", self.flags as Any), ("id", self.id as Any), ("accessHash", self.accessHash as Any), ("fileReference", self.fileReference as Any), ("date", self.date as Any), ("sizes", self.sizes as Any), ("videoSizes", self.videoSizes as Any), ("dcId", self.dcId as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_photoEmpty {
|
||||
public class Cons_photoEmpty: TypeConstructorDescription {
|
||||
public var id: Int64
|
||||
public init(id: Int64) {
|
||||
self.id = id
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("photoEmpty", [("id", self.id as Any)])
|
||||
}
|
||||
}
|
||||
case photo(Cons_photo)
|
||||
case photoEmpty(Cons_photoEmpty)
|
||||
|
|
@ -408,7 +426,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum PhotoSize: TypeConstructorDescription {
|
||||
public class Cons_photoCachedSize {
|
||||
public class Cons_photoCachedSize: TypeConstructorDescription {
|
||||
public var type: String
|
||||
public var w: Int32
|
||||
public var h: Int32
|
||||
|
|
@ -419,16 +437,22 @@ public extension Api {
|
|||
self.h = h
|
||||
self.bytes = bytes
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("photoCachedSize", [("type", self.type as Any), ("w", self.w as Any), ("h", self.h as Any), ("bytes", self.bytes as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_photoPathSize {
|
||||
public class Cons_photoPathSize: TypeConstructorDescription {
|
||||
public var type: String
|
||||
public var bytes: Buffer
|
||||
public init(type: String, bytes: Buffer) {
|
||||
self.type = type
|
||||
self.bytes = bytes
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("photoPathSize", [("type", self.type as Any), ("bytes", self.bytes as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_photoSize {
|
||||
public class Cons_photoSize: TypeConstructorDescription {
|
||||
public var type: String
|
||||
public var w: Int32
|
||||
public var h: Int32
|
||||
|
|
@ -439,14 +463,20 @@ public extension Api {
|
|||
self.h = h
|
||||
self.size = size
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("photoSize", [("type", self.type as Any), ("w", self.w as Any), ("h", self.h as Any), ("size", self.size as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_photoSizeEmpty {
|
||||
public class Cons_photoSizeEmpty: TypeConstructorDescription {
|
||||
public var type: String
|
||||
public init(type: String) {
|
||||
self.type = type
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("photoSizeEmpty", [("type", self.type as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_photoSizeProgressive {
|
||||
public class Cons_photoSizeProgressive: TypeConstructorDescription {
|
||||
public var type: String
|
||||
public var w: Int32
|
||||
public var h: Int32
|
||||
|
|
@ -457,14 +487,20 @@ public extension Api {
|
|||
self.h = h
|
||||
self.sizes = sizes
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("photoSizeProgressive", [("type", self.type as Any), ("w", self.w as Any), ("h", self.h as Any), ("sizes", self.sizes as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_photoStrippedSize {
|
||||
public class Cons_photoStrippedSize: TypeConstructorDescription {
|
||||
public var type: String
|
||||
public var bytes: Buffer
|
||||
public init(type: String, bytes: Buffer) {
|
||||
self.type = type
|
||||
self.bytes = bytes
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("photoStrippedSize", [("type", self.type as Any), ("bytes", self.bytes as Any)])
|
||||
}
|
||||
}
|
||||
case photoCachedSize(Cons_photoCachedSize)
|
||||
case photoPathSize(Cons_photoPathSize)
|
||||
|
|
@ -651,7 +687,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum Poll: TypeConstructorDescription {
|
||||
public class Cons_poll {
|
||||
public class Cons_poll: TypeConstructorDescription {
|
||||
public var id: Int64
|
||||
public var flags: Int32
|
||||
public var question: Api.TextWithEntities
|
||||
|
|
@ -666,6 +702,9 @@ public extension Api {
|
|||
self.closePeriod = closePeriod
|
||||
self.closeDate = closeDate
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("poll", [("id", self.id as Any), ("flags", self.flags as Any), ("question", self.question as Any), ("answers", self.answers as Any), ("closePeriod", self.closePeriod as Any), ("closeDate", self.closeDate as Any)])
|
||||
}
|
||||
}
|
||||
case poll(Cons_poll)
|
||||
|
||||
|
|
@ -738,13 +777,16 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum PollAnswer: TypeConstructorDescription {
|
||||
public class Cons_pollAnswer {
|
||||
public class Cons_pollAnswer: TypeConstructorDescription {
|
||||
public var text: Api.TextWithEntities
|
||||
public var option: Buffer
|
||||
public init(text: Api.TextWithEntities, option: Buffer) {
|
||||
self.text = text
|
||||
self.option = option
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("pollAnswer", [("text", self.text as Any), ("option", self.option as Any)])
|
||||
}
|
||||
}
|
||||
case pollAnswer(Cons_pollAnswer)
|
||||
|
||||
|
|
@ -787,7 +829,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum PollAnswerVoters: TypeConstructorDescription {
|
||||
public class Cons_pollAnswerVoters {
|
||||
public class Cons_pollAnswerVoters: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var option: Buffer
|
||||
public var voters: Int32
|
||||
|
|
@ -796,6 +838,9 @@ public extension Api {
|
|||
self.option = option
|
||||
self.voters = voters
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("pollAnswerVoters", [("flags", self.flags as Any), ("option", self.option as Any), ("voters", self.voters as Any)])
|
||||
}
|
||||
}
|
||||
case pollAnswerVoters(Cons_pollAnswerVoters)
|
||||
|
||||
|
|
@ -840,7 +885,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum PollResults: TypeConstructorDescription {
|
||||
public class Cons_pollResults {
|
||||
public class Cons_pollResults: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var results: [Api.PollAnswerVoters]?
|
||||
public var totalVoters: Int32?
|
||||
|
|
@ -855,6 +900,9 @@ public extension Api {
|
|||
self.solution = solution
|
||||
self.solutionEntities = solutionEntities
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("pollResults", [("flags", self.flags as Any), ("results", self.results as Any), ("totalVoters", self.totalVoters as Any), ("recentVoters", self.recentVoters as Any), ("solution", self.solution as Any), ("solutionEntities", self.solutionEntities as Any)])
|
||||
}
|
||||
}
|
||||
case pollResults(Cons_pollResults)
|
||||
|
||||
|
|
@ -949,13 +997,16 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum PopularContact: TypeConstructorDescription {
|
||||
public class Cons_popularContact {
|
||||
public class Cons_popularContact: TypeConstructorDescription {
|
||||
public var clientId: Int64
|
||||
public var importers: Int32
|
||||
public init(clientId: Int64, importers: Int32) {
|
||||
self.clientId = clientId
|
||||
self.importers = importers
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("popularContact", [("clientId", self.clientId as Any), ("importers", self.importers as Any)])
|
||||
}
|
||||
}
|
||||
case popularContact(Cons_popularContact)
|
||||
|
||||
|
|
@ -996,7 +1047,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum PostAddress: TypeConstructorDescription {
|
||||
public class Cons_postAddress {
|
||||
public class Cons_postAddress: TypeConstructorDescription {
|
||||
public var streetLine1: String
|
||||
public var streetLine2: String
|
||||
public var city: String
|
||||
|
|
@ -1011,6 +1062,9 @@ public extension Api {
|
|||
self.countryIso2 = countryIso2
|
||||
self.postCode = postCode
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("postAddress", [("streetLine1", self.streetLine1 as Any), ("streetLine2", self.streetLine2 as Any), ("city", self.city as Any), ("state", self.state as Any), ("countryIso2", self.countryIso2 as Any), ("postCode", self.postCode as Any)])
|
||||
}
|
||||
}
|
||||
case postAddress(Cons_postAddress)
|
||||
|
||||
|
|
@ -1067,7 +1121,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum PostInteractionCounters: TypeConstructorDescription {
|
||||
public class Cons_postInteractionCountersMessage {
|
||||
public class Cons_postInteractionCountersMessage: TypeConstructorDescription {
|
||||
public var msgId: Int32
|
||||
public var views: Int32
|
||||
public var forwards: Int32
|
||||
|
|
@ -1078,8 +1132,11 @@ public extension Api {
|
|||
self.forwards = forwards
|
||||
self.reactions = reactions
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("postInteractionCountersMessage", [("msgId", self.msgId as Any), ("views", self.views as Any), ("forwards", self.forwards as Any), ("reactions", self.reactions as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_postInteractionCountersStory {
|
||||
public class Cons_postInteractionCountersStory: TypeConstructorDescription {
|
||||
public var storyId: Int32
|
||||
public var views: Int32
|
||||
public var forwards: Int32
|
||||
|
|
@ -1090,6 +1147,9 @@ public extension Api {
|
|||
self.forwards = forwards
|
||||
self.reactions = reactions
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("postInteractionCountersStory", [("storyId", self.storyId as Any), ("views", self.views as Any), ("forwards", self.forwards as Any), ("reactions", self.reactions as Any)])
|
||||
}
|
||||
}
|
||||
case postInteractionCountersMessage(Cons_postInteractionCountersMessage)
|
||||
case postInteractionCountersStory(Cons_postInteractionCountersStory)
|
||||
|
|
@ -1170,7 +1230,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum PremiumGiftCodeOption: TypeConstructorDescription {
|
||||
public class Cons_premiumGiftCodeOption {
|
||||
public class Cons_premiumGiftCodeOption: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var users: Int32
|
||||
public var months: Int32
|
||||
|
|
@ -1187,6 +1247,9 @@ public extension Api {
|
|||
self.currency = currency
|
||||
self.amount = amount
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("premiumGiftCodeOption", [("flags", self.flags as Any), ("users", self.users as Any), ("months", self.months as Any), ("storeProduct", self.storeProduct as Any), ("storeQuantity", self.storeQuantity as Any), ("currency", self.currency as Any), ("amount", self.amount as Any)])
|
||||
}
|
||||
}
|
||||
case premiumGiftCodeOption(Cons_premiumGiftCodeOption)
|
||||
|
||||
|
|
@ -1255,7 +1318,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum PremiumSubscriptionOption: TypeConstructorDescription {
|
||||
public class Cons_premiumSubscriptionOption {
|
||||
public class Cons_premiumSubscriptionOption: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var transaction: String?
|
||||
public var months: Int32
|
||||
|
|
@ -1272,6 +1335,9 @@ public extension Api {
|
|||
self.botUrl = botUrl
|
||||
self.storeProduct = storeProduct
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("premiumSubscriptionOption", [("flags", self.flags as Any), ("transaction", self.transaction as Any), ("months", self.months as Any), ("currency", self.currency as Any), ("amount", self.amount as Any), ("botUrl", self.botUrl as Any), ("storeProduct", self.storeProduct as Any)])
|
||||
}
|
||||
}
|
||||
case premiumSubscriptionOption(Cons_premiumSubscriptionOption)
|
||||
|
||||
|
|
@ -1340,7 +1406,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum PrepaidGiveaway: TypeConstructorDescription {
|
||||
public class Cons_prepaidGiveaway {
|
||||
public class Cons_prepaidGiveaway: TypeConstructorDescription {
|
||||
public var id: Int64
|
||||
public var months: Int32
|
||||
public var quantity: Int32
|
||||
|
|
@ -1351,8 +1417,11 @@ public extension Api {
|
|||
self.quantity = quantity
|
||||
self.date = date
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("prepaidGiveaway", [("id", self.id as Any), ("months", self.months as Any), ("quantity", self.quantity as Any), ("date", self.date as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_prepaidStarsGiveaway {
|
||||
public class Cons_prepaidStarsGiveaway: TypeConstructorDescription {
|
||||
public var id: Int64
|
||||
public var stars: Int64
|
||||
public var quantity: Int32
|
||||
|
|
@ -1365,6 +1434,9 @@ public extension Api {
|
|||
self.boosts = boosts
|
||||
self.date = date
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("prepaidStarsGiveaway", [("id", self.id as Any), ("stars", self.stars as Any), ("quantity", self.quantity as Any), ("boosts", self.boosts as Any), ("date", self.date as Any)])
|
||||
}
|
||||
}
|
||||
case prepaidGiveaway(Cons_prepaidGiveaway)
|
||||
case prepaidStarsGiveaway(Cons_prepaidStarsGiveaway)
|
||||
|
|
|
|||
|
|
@ -1,28 +1,40 @@
|
|||
public extension Api {
|
||||
enum PrivacyRule: TypeConstructorDescription {
|
||||
public class Cons_privacyValueAllowChatParticipants {
|
||||
public class Cons_privacyValueAllowChatParticipants: TypeConstructorDescription {
|
||||
public var chats: [Int64]
|
||||
public init(chats: [Int64]) {
|
||||
self.chats = chats
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("privacyValueAllowChatParticipants", [("chats", self.chats as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_privacyValueAllowUsers {
|
||||
public class Cons_privacyValueAllowUsers: TypeConstructorDescription {
|
||||
public var users: [Int64]
|
||||
public init(users: [Int64]) {
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("privacyValueAllowUsers", [("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_privacyValueDisallowChatParticipants {
|
||||
public class Cons_privacyValueDisallowChatParticipants: TypeConstructorDescription {
|
||||
public var chats: [Int64]
|
||||
public init(chats: [Int64]) {
|
||||
self.chats = chats
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("privacyValueDisallowChatParticipants", [("chats", self.chats as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_privacyValueDisallowUsers {
|
||||
public class Cons_privacyValueDisallowUsers: TypeConstructorDescription {
|
||||
public var users: [Int64]
|
||||
public init(users: [Int64]) {
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("privacyValueDisallowUsers", [("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case privacyValueAllowAll
|
||||
case privacyValueAllowBots
|
||||
|
|
@ -334,19 +346,25 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
indirect enum PublicForward: TypeConstructorDescription {
|
||||
public class Cons_publicForwardMessage {
|
||||
public class Cons_publicForwardMessage: TypeConstructorDescription {
|
||||
public var message: Api.Message
|
||||
public init(message: Api.Message) {
|
||||
self.message = message
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("publicForwardMessage", [("message", self.message as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_publicForwardStory {
|
||||
public class Cons_publicForwardStory: TypeConstructorDescription {
|
||||
public var peer: Api.Peer
|
||||
public var story: Api.StoryItem
|
||||
public init(peer: Api.Peer, story: Api.StoryItem) {
|
||||
self.peer = peer
|
||||
self.story = story
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("publicForwardStory", [("peer", self.peer as Any), ("story", self.story as Any)])
|
||||
}
|
||||
}
|
||||
case publicForwardMessage(Cons_publicForwardMessage)
|
||||
case publicForwardStory(Cons_publicForwardStory)
|
||||
|
|
@ -413,7 +431,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum QuickReply: TypeConstructorDescription {
|
||||
public class Cons_quickReply {
|
||||
public class Cons_quickReply: TypeConstructorDescription {
|
||||
public var shortcutId: Int32
|
||||
public var shortcut: String
|
||||
public var topMessage: Int32
|
||||
|
|
@ -424,6 +442,9 @@ public extension Api {
|
|||
self.topMessage = topMessage
|
||||
self.count = count
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("quickReply", [("shortcutId", self.shortcutId as Any), ("shortcut", self.shortcut as Any), ("topMessage", self.topMessage as Any), ("count", self.count as Any)])
|
||||
}
|
||||
}
|
||||
case quickReply(Cons_quickReply)
|
||||
|
||||
|
|
@ -472,17 +493,23 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum Reaction: TypeConstructorDescription {
|
||||
public class Cons_reactionCustomEmoji {
|
||||
public class Cons_reactionCustomEmoji: TypeConstructorDescription {
|
||||
public var documentId: Int64
|
||||
public init(documentId: Int64) {
|
||||
self.documentId = documentId
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("reactionCustomEmoji", [("documentId", self.documentId as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_reactionEmoji {
|
||||
public class Cons_reactionEmoji: TypeConstructorDescription {
|
||||
public var emoticon: String
|
||||
public init(emoticon: String) {
|
||||
self.emoticon = emoticon
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("reactionEmoji", [("emoticon", self.emoticon as Any)])
|
||||
}
|
||||
}
|
||||
case reactionCustomEmoji(Cons_reactionCustomEmoji)
|
||||
case reactionEmoji(Cons_reactionEmoji)
|
||||
|
|
@ -561,7 +588,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum ReactionCount: TypeConstructorDescription {
|
||||
public class Cons_reactionCount {
|
||||
public class Cons_reactionCount: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var chosenOrder: Int32?
|
||||
public var reaction: Api.Reaction
|
||||
|
|
@ -572,6 +599,9 @@ public extension Api {
|
|||
self.reaction = reaction
|
||||
self.count = count
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("reactionCount", [("flags", self.flags as Any), ("chosenOrder", self.chosenOrder as Any), ("reaction", self.reaction as Any), ("count", self.count as Any)])
|
||||
}
|
||||
}
|
||||
case reactionCount(Cons_reactionCount)
|
||||
|
||||
|
|
@ -663,7 +693,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum ReactionsNotifySettings: TypeConstructorDescription {
|
||||
public class Cons_reactionsNotifySettings {
|
||||
public class Cons_reactionsNotifySettings: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var messagesNotifyFrom: Api.ReactionNotificationsFrom?
|
||||
public var storiesNotifyFrom: Api.ReactionNotificationsFrom?
|
||||
|
|
@ -676,6 +706,9 @@ public extension Api {
|
|||
self.sound = sound
|
||||
self.showPreviews = showPreviews
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("reactionsNotifySettings", [("flags", self.flags as Any), ("messagesNotifyFrom", self.messagesNotifyFrom as Any), ("storiesNotifyFrom", self.storiesNotifyFrom as Any), ("sound", self.sound as Any), ("showPreviews", self.showPreviews as Any)])
|
||||
}
|
||||
}
|
||||
case reactionsNotifySettings(Cons_reactionsNotifySettings)
|
||||
|
||||
|
|
@ -744,13 +777,16 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum ReadParticipantDate: TypeConstructorDescription {
|
||||
public class Cons_readParticipantDate {
|
||||
public class Cons_readParticipantDate: TypeConstructorDescription {
|
||||
public var userId: Int64
|
||||
public var date: Int32
|
||||
public init(userId: Int64, date: Int32) {
|
||||
self.userId = userId
|
||||
self.date = date
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("readParticipantDate", [("userId", self.userId as Any), ("date", self.date as Any)])
|
||||
}
|
||||
}
|
||||
case readParticipantDate(Cons_readParticipantDate)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,12 +1,15 @@
|
|||
public extension Api {
|
||||
enum ReceivedNotifyMessage: TypeConstructorDescription {
|
||||
public class Cons_receivedNotifyMessage {
|
||||
public class Cons_receivedNotifyMessage: TypeConstructorDescription {
|
||||
public var id: Int32
|
||||
public var flags: Int32
|
||||
public init(id: Int32, flags: Int32) {
|
||||
self.id = id
|
||||
self.flags = flags
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("receivedNotifyMessage", [("id", self.id as Any), ("flags", self.flags as Any)])
|
||||
}
|
||||
}
|
||||
case receivedNotifyMessage(Cons_receivedNotifyMessage)
|
||||
|
||||
|
|
@ -47,43 +50,58 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
indirect enum RecentMeUrl: TypeConstructorDescription {
|
||||
public class Cons_recentMeUrlChat {
|
||||
public class Cons_recentMeUrlChat: TypeConstructorDescription {
|
||||
public var url: String
|
||||
public var chatId: Int64
|
||||
public init(url: String, chatId: Int64) {
|
||||
self.url = url
|
||||
self.chatId = chatId
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("recentMeUrlChat", [("url", self.url as Any), ("chatId", self.chatId as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_recentMeUrlChatInvite {
|
||||
public class Cons_recentMeUrlChatInvite: TypeConstructorDescription {
|
||||
public var url: String
|
||||
public var chatInvite: Api.ChatInvite
|
||||
public init(url: String, chatInvite: Api.ChatInvite) {
|
||||
self.url = url
|
||||
self.chatInvite = chatInvite
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("recentMeUrlChatInvite", [("url", self.url as Any), ("chatInvite", self.chatInvite as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_recentMeUrlStickerSet {
|
||||
public class Cons_recentMeUrlStickerSet: TypeConstructorDescription {
|
||||
public var url: String
|
||||
public var set: Api.StickerSetCovered
|
||||
public init(url: String, set: Api.StickerSetCovered) {
|
||||
self.url = url
|
||||
self.set = set
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("recentMeUrlStickerSet", [("url", self.url as Any), ("set", self.set as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_recentMeUrlUnknown {
|
||||
public class Cons_recentMeUrlUnknown: TypeConstructorDescription {
|
||||
public var url: String
|
||||
public init(url: String) {
|
||||
self.url = url
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("recentMeUrlUnknown", [("url", self.url as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_recentMeUrlUser {
|
||||
public class Cons_recentMeUrlUser: TypeConstructorDescription {
|
||||
public var url: String
|
||||
public var userId: Int64
|
||||
public init(url: String, userId: Int64) {
|
||||
self.url = url
|
||||
self.userId = userId
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("recentMeUrlUser", [("url", self.url as Any), ("userId", self.userId as Any)])
|
||||
}
|
||||
}
|
||||
case recentMeUrlChat(Cons_recentMeUrlChat)
|
||||
case recentMeUrlChatInvite(Cons_recentMeUrlChatInvite)
|
||||
|
|
@ -220,13 +238,16 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum RecentStory: TypeConstructorDescription {
|
||||
public class Cons_recentStory {
|
||||
public class Cons_recentStory: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var maxId: Int32?
|
||||
public init(flags: Int32, maxId: Int32?) {
|
||||
self.flags = flags
|
||||
self.maxId = maxId
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("recentStory", [("flags", self.flags as Any), ("maxId", self.maxId as Any)])
|
||||
}
|
||||
}
|
||||
case recentStory(Cons_recentStory)
|
||||
|
||||
|
|
@ -271,27 +292,36 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum ReplyMarkup: TypeConstructorDescription {
|
||||
public class Cons_replyInlineMarkup {
|
||||
public class Cons_replyInlineMarkup: TypeConstructorDescription {
|
||||
public var rows: [Api.KeyboardButtonRow]
|
||||
public init(rows: [Api.KeyboardButtonRow]) {
|
||||
self.rows = rows
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("replyInlineMarkup", [("rows", self.rows as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_replyKeyboardForceReply {
|
||||
public class Cons_replyKeyboardForceReply: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var placeholder: String?
|
||||
public init(flags: Int32, placeholder: String?) {
|
||||
self.flags = flags
|
||||
self.placeholder = placeholder
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("replyKeyboardForceReply", [("flags", self.flags as Any), ("placeholder", self.placeholder as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_replyKeyboardHide {
|
||||
public class Cons_replyKeyboardHide: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public init(flags: Int32) {
|
||||
self.flags = flags
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("replyKeyboardHide", [("flags", self.flags as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_replyKeyboardMarkup {
|
||||
public class Cons_replyKeyboardMarkup: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var rows: [Api.KeyboardButtonRow]
|
||||
public var placeholder: String?
|
||||
|
|
@ -300,6 +330,9 @@ public extension Api {
|
|||
self.rows = rows
|
||||
self.placeholder = placeholder
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("replyKeyboardMarkup", [("flags", self.flags as Any), ("rows", self.rows as Any), ("placeholder", self.placeholder as Any)])
|
||||
}
|
||||
}
|
||||
case replyInlineMarkup(Cons_replyInlineMarkup)
|
||||
case replyKeyboardForceReply(Cons_replyKeyboardForceReply)
|
||||
|
|
@ -553,21 +586,27 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum ReportResult: TypeConstructorDescription {
|
||||
public class Cons_reportResultAddComment {
|
||||
public class Cons_reportResultAddComment: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var option: Buffer
|
||||
public init(flags: Int32, option: Buffer) {
|
||||
self.flags = flags
|
||||
self.option = option
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("reportResultAddComment", [("flags", self.flags as Any), ("option", self.option as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_reportResultChooseOption {
|
||||
public class Cons_reportResultChooseOption: TypeConstructorDescription {
|
||||
public var title: String
|
||||
public var options: [Api.MessageReportOption]
|
||||
public init(title: String, options: [Api.MessageReportOption]) {
|
||||
self.title = title
|
||||
self.options = options
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("reportResultChooseOption", [("title", self.title as Any), ("options", self.options as Any)])
|
||||
}
|
||||
}
|
||||
case reportResultAddComment(Cons_reportResultAddComment)
|
||||
case reportResultChooseOption(Cons_reportResultChooseOption)
|
||||
|
|
@ -649,7 +688,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum RequestPeerType: TypeConstructorDescription {
|
||||
public class Cons_requestPeerTypeBroadcast {
|
||||
public class Cons_requestPeerTypeBroadcast: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var hasUsername: Api.Bool?
|
||||
public var userAdminRights: Api.ChatAdminRights?
|
||||
|
|
@ -660,8 +699,11 @@ public extension Api {
|
|||
self.userAdminRights = userAdminRights
|
||||
self.botAdminRights = botAdminRights
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("requestPeerTypeBroadcast", [("flags", self.flags as Any), ("hasUsername", self.hasUsername as Any), ("userAdminRights", self.userAdminRights as Any), ("botAdminRights", self.botAdminRights as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_requestPeerTypeChat {
|
||||
public class Cons_requestPeerTypeChat: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var hasUsername: Api.Bool?
|
||||
public var forum: Api.Bool?
|
||||
|
|
@ -674,8 +716,11 @@ public extension Api {
|
|||
self.userAdminRights = userAdminRights
|
||||
self.botAdminRights = botAdminRights
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("requestPeerTypeChat", [("flags", self.flags as Any), ("hasUsername", self.hasUsername as Any), ("forum", self.forum as Any), ("userAdminRights", self.userAdminRights as Any), ("botAdminRights", self.botAdminRights as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_requestPeerTypeUser {
|
||||
public class Cons_requestPeerTypeUser: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var bot: Api.Bool?
|
||||
public var premium: Api.Bool?
|
||||
|
|
@ -684,6 +729,9 @@ public extension Api {
|
|||
self.bot = bot
|
||||
self.premium = premium
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("requestPeerTypeUser", [("flags", self.flags as Any), ("bot", self.bot as Any), ("premium", self.premium as Any)])
|
||||
}
|
||||
}
|
||||
case requestPeerTypeBroadcast(Cons_requestPeerTypeBroadcast)
|
||||
case requestPeerTypeChat(Cons_requestPeerTypeChat)
|
||||
|
|
@ -850,7 +898,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum RequestedPeer: TypeConstructorDescription {
|
||||
public class Cons_requestedPeerChannel {
|
||||
public class Cons_requestedPeerChannel: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var channelId: Int64
|
||||
public var title: String?
|
||||
|
|
@ -863,8 +911,11 @@ public extension Api {
|
|||
self.username = username
|
||||
self.photo = photo
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("requestedPeerChannel", [("flags", self.flags as Any), ("channelId", self.channelId as Any), ("title", self.title as Any), ("username", self.username as Any), ("photo", self.photo as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_requestedPeerChat {
|
||||
public class Cons_requestedPeerChat: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var chatId: Int64
|
||||
public var title: String?
|
||||
|
|
@ -875,8 +926,11 @@ public extension Api {
|
|||
self.title = title
|
||||
self.photo = photo
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("requestedPeerChat", [("flags", self.flags as Any), ("chatId", self.chatId as Any), ("title", self.title as Any), ("photo", self.photo as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_requestedPeerUser {
|
||||
public class Cons_requestedPeerUser: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var userId: Int64
|
||||
public var firstName: String?
|
||||
|
|
@ -891,6 +945,9 @@ public extension Api {
|
|||
self.username = username
|
||||
self.photo = photo
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("requestedPeerUser", [("flags", self.flags as Any), ("userId", self.userId as Any), ("firstName", self.firstName as Any), ("lastName", self.lastName as Any), ("username", self.username as Any), ("photo", self.photo as Any)])
|
||||
}
|
||||
}
|
||||
case requestedPeerChannel(Cons_requestedPeerChannel)
|
||||
case requestedPeerChat(Cons_requestedPeerChat)
|
||||
|
|
@ -1057,11 +1114,14 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum RequirementToContact: TypeConstructorDescription {
|
||||
public class Cons_requirementToContactPaidMessages {
|
||||
public class Cons_requirementToContactPaidMessages: TypeConstructorDescription {
|
||||
public var starsAmount: Int64
|
||||
public init(starsAmount: Int64) {
|
||||
self.starsAmount = starsAmount
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("requirementToContactPaidMessages", [("starsAmount", self.starsAmount as Any)])
|
||||
}
|
||||
}
|
||||
case requirementToContactEmpty
|
||||
case requirementToContactPaidMessages(Cons_requirementToContactPaidMessages)
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
public extension Api {
|
||||
enum RestrictionReason: TypeConstructorDescription {
|
||||
public class Cons_restrictionReason {
|
||||
public class Cons_restrictionReason: TypeConstructorDescription {
|
||||
public var platform: String
|
||||
public var reason: String
|
||||
public var text: String
|
||||
|
|
@ -9,6 +9,9 @@ public extension Api {
|
|||
self.reason = reason
|
||||
self.text = text
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("restrictionReason", [("platform", self.platform as Any), ("reason", self.reason as Any), ("text", self.text as Any)])
|
||||
}
|
||||
}
|
||||
case restrictionReason(Cons_restrictionReason)
|
||||
|
||||
|
|
@ -53,41 +56,56 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
indirect enum RichText: TypeConstructorDescription {
|
||||
public class Cons_textAnchor {
|
||||
public class Cons_textAnchor: TypeConstructorDescription {
|
||||
public var text: Api.RichText
|
||||
public var name: String
|
||||
public init(text: Api.RichText, name: String) {
|
||||
self.text = text
|
||||
self.name = name
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("textAnchor", [("text", self.text as Any), ("name", self.name as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_textBold {
|
||||
public class Cons_textBold: TypeConstructorDescription {
|
||||
public var text: Api.RichText
|
||||
public init(text: Api.RichText) {
|
||||
self.text = text
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("textBold", [("text", self.text as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_textConcat {
|
||||
public class Cons_textConcat: TypeConstructorDescription {
|
||||
public var texts: [Api.RichText]
|
||||
public init(texts: [Api.RichText]) {
|
||||
self.texts = texts
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("textConcat", [("texts", self.texts as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_textEmail {
|
||||
public class Cons_textEmail: TypeConstructorDescription {
|
||||
public var text: Api.RichText
|
||||
public var email: String
|
||||
public init(text: Api.RichText, email: String) {
|
||||
self.text = text
|
||||
self.email = email
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("textEmail", [("text", self.text as Any), ("email", self.email as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_textFixed {
|
||||
public class Cons_textFixed: TypeConstructorDescription {
|
||||
public var text: Api.RichText
|
||||
public init(text: Api.RichText) {
|
||||
self.text = text
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("textFixed", [("text", self.text as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_textImage {
|
||||
public class Cons_textImage: TypeConstructorDescription {
|
||||
public var documentId: Int64
|
||||
public var w: Int32
|
||||
public var h: Int32
|
||||
|
|
@ -96,58 +114,85 @@ public extension Api {
|
|||
self.w = w
|
||||
self.h = h
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("textImage", [("documentId", self.documentId as Any), ("w", self.w as Any), ("h", self.h as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_textItalic {
|
||||
public class Cons_textItalic: TypeConstructorDescription {
|
||||
public var text: Api.RichText
|
||||
public init(text: Api.RichText) {
|
||||
self.text = text
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("textItalic", [("text", self.text as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_textMarked {
|
||||
public class Cons_textMarked: TypeConstructorDescription {
|
||||
public var text: Api.RichText
|
||||
public init(text: Api.RichText) {
|
||||
self.text = text
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("textMarked", [("text", self.text as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_textPhone {
|
||||
public class Cons_textPhone: TypeConstructorDescription {
|
||||
public var text: Api.RichText
|
||||
public var phone: String
|
||||
public init(text: Api.RichText, phone: String) {
|
||||
self.text = text
|
||||
self.phone = phone
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("textPhone", [("text", self.text as Any), ("phone", self.phone as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_textPlain {
|
||||
public class Cons_textPlain: TypeConstructorDescription {
|
||||
public var text: String
|
||||
public init(text: String) {
|
||||
self.text = text
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("textPlain", [("text", self.text as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_textStrike {
|
||||
public class Cons_textStrike: TypeConstructorDescription {
|
||||
public var text: Api.RichText
|
||||
public init(text: Api.RichText) {
|
||||
self.text = text
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("textStrike", [("text", self.text as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_textSubscript {
|
||||
public class Cons_textSubscript: TypeConstructorDescription {
|
||||
public var text: Api.RichText
|
||||
public init(text: Api.RichText) {
|
||||
self.text = text
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("textSubscript", [("text", self.text as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_textSuperscript {
|
||||
public class Cons_textSuperscript: TypeConstructorDescription {
|
||||
public var text: Api.RichText
|
||||
public init(text: Api.RichText) {
|
||||
self.text = text
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("textSuperscript", [("text", self.text as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_textUnderline {
|
||||
public class Cons_textUnderline: TypeConstructorDescription {
|
||||
public var text: Api.RichText
|
||||
public init(text: Api.RichText) {
|
||||
self.text = text
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("textUnderline", [("text", self.text as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_textUrl {
|
||||
public class Cons_textUrl: TypeConstructorDescription {
|
||||
public var text: Api.RichText
|
||||
public var url: String
|
||||
public var webpageId: Int64
|
||||
|
|
@ -156,6 +201,9 @@ public extension Api {
|
|||
self.url = url
|
||||
self.webpageId = webpageId
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("textUrl", [("text", self.text as Any), ("url", self.url as Any), ("webpageId", self.webpageId as Any)])
|
||||
}
|
||||
}
|
||||
case textAnchor(Cons_textAnchor)
|
||||
case textBold(Cons_textBold)
|
||||
|
|
@ -541,7 +589,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum SavedContact: TypeConstructorDescription {
|
||||
public class Cons_savedPhoneContact {
|
||||
public class Cons_savedPhoneContact: TypeConstructorDescription {
|
||||
public var phone: String
|
||||
public var firstName: String
|
||||
public var lastName: String
|
||||
|
|
@ -552,6 +600,9 @@ public extension Api {
|
|||
self.lastName = lastName
|
||||
self.date = date
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("savedPhoneContact", [("phone", self.phone as Any), ("firstName", self.firstName as Any), ("lastName", self.lastName as Any), ("date", self.date as Any)])
|
||||
}
|
||||
}
|
||||
case savedPhoneContact(Cons_savedPhoneContact)
|
||||
|
||||
|
|
@ -600,7 +651,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
indirect enum SavedDialog: TypeConstructorDescription {
|
||||
public class Cons_monoForumDialog {
|
||||
public class Cons_monoForumDialog: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var peer: Api.Peer
|
||||
public var topMessage: Int32
|
||||
|
|
@ -619,8 +670,11 @@ public extension Api {
|
|||
self.unreadReactionsCount = unreadReactionsCount
|
||||
self.draft = draft
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("monoForumDialog", [("flags", self.flags as Any), ("peer", self.peer as Any), ("topMessage", self.topMessage as Any), ("readInboxMaxId", self.readInboxMaxId as Any), ("readOutboxMaxId", self.readOutboxMaxId as Any), ("unreadCount", self.unreadCount as Any), ("unreadReactionsCount", self.unreadReactionsCount as Any), ("draft", self.draft as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_savedDialog {
|
||||
public class Cons_savedDialog: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var peer: Api.Peer
|
||||
public var topMessage: Int32
|
||||
|
|
@ -629,6 +683,9 @@ public extension Api {
|
|||
self.peer = peer
|
||||
self.topMessage = topMessage
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("savedDialog", [("flags", self.flags as Any), ("peer", self.peer as Any), ("topMessage", self.topMessage as Any)])
|
||||
}
|
||||
}
|
||||
case monoForumDialog(Cons_monoForumDialog)
|
||||
case savedDialog(Cons_savedDialog)
|
||||
|
|
@ -731,7 +788,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum SavedReactionTag: TypeConstructorDescription {
|
||||
public class Cons_savedReactionTag {
|
||||
public class Cons_savedReactionTag: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var reaction: Api.Reaction
|
||||
public var title: String?
|
||||
|
|
@ -742,6 +799,9 @@ public extension Api {
|
|||
self.title = title
|
||||
self.count = count
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("savedReactionTag", [("flags", self.flags as Any), ("reaction", self.reaction as Any), ("title", self.title as Any), ("count", self.count as Any)])
|
||||
}
|
||||
}
|
||||
case savedReactionTag(Cons_savedReactionTag)
|
||||
|
||||
|
|
@ -796,7 +856,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum SavedStarGift: TypeConstructorDescription {
|
||||
public class Cons_savedStarGift {
|
||||
public class Cons_savedStarGift: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var fromId: Api.Peer?
|
||||
public var date: Int32
|
||||
|
|
@ -835,6 +895,9 @@ public extension Api {
|
|||
self.giftNum = giftNum
|
||||
self.canCraftAt = canCraftAt
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("savedStarGift", [("flags", self.flags as Any), ("fromId", self.fromId as Any), ("date", self.date as Any), ("gift", self.gift as Any), ("message", self.message as Any), ("msgId", self.msgId as Any), ("savedId", self.savedId as Any), ("convertStars", self.convertStars as Any), ("upgradeStars", self.upgradeStars as Any), ("canExportAt", self.canExportAt as Any), ("transferStars", self.transferStars as Any), ("canTransferAt", self.canTransferAt as Any), ("canResellAt", self.canResellAt as Any), ("collectionId", self.collectionId as Any), ("prepaidUpgradeHash", self.prepaidUpgradeHash as Any), ("dropOriginalDetailsStars", self.dropOriginalDetailsStars as Any), ("giftNum", self.giftNum as Any), ("canCraftAt", self.canCraftAt as Any)])
|
||||
}
|
||||
}
|
||||
case savedStarGift(Cons_savedStarGift)
|
||||
|
||||
|
|
@ -1011,7 +1074,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum SearchPostsFlood: TypeConstructorDescription {
|
||||
public class Cons_searchPostsFlood {
|
||||
public class Cons_searchPostsFlood: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var totalDaily: Int32
|
||||
public var remains: Int32
|
||||
|
|
@ -1024,6 +1087,9 @@ public extension Api {
|
|||
self.waitTill = waitTill
|
||||
self.starsAmount = starsAmount
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("searchPostsFlood", [("flags", self.flags as Any), ("totalDaily", self.totalDaily as Any), ("remains", self.remains as Any), ("waitTill", self.waitTill as Any), ("starsAmount", self.starsAmount as Any)])
|
||||
}
|
||||
}
|
||||
case searchPostsFlood(Cons_searchPostsFlood)
|
||||
|
||||
|
|
@ -1080,7 +1146,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum SearchResultsCalendarPeriod: TypeConstructorDescription {
|
||||
public class Cons_searchResultsCalendarPeriod {
|
||||
public class Cons_searchResultsCalendarPeriod: TypeConstructorDescription {
|
||||
public var date: Int32
|
||||
public var minMsgId: Int32
|
||||
public var maxMsgId: Int32
|
||||
|
|
@ -1091,6 +1157,9 @@ public extension Api {
|
|||
self.maxMsgId = maxMsgId
|
||||
self.count = count
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("searchResultsCalendarPeriod", [("date", self.date as Any), ("minMsgId", self.minMsgId as Any), ("maxMsgId", self.maxMsgId as Any), ("count", self.count as Any)])
|
||||
}
|
||||
}
|
||||
case searchResultsCalendarPeriod(Cons_searchResultsCalendarPeriod)
|
||||
|
||||
|
|
@ -1139,7 +1208,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum SearchResultsPosition: TypeConstructorDescription {
|
||||
public class Cons_searchResultPosition {
|
||||
public class Cons_searchResultPosition: TypeConstructorDescription {
|
||||
public var msgId: Int32
|
||||
public var date: Int32
|
||||
public var offset: Int32
|
||||
|
|
@ -1148,6 +1217,9 @@ public extension Api {
|
|||
self.date = date
|
||||
self.offset = offset
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("searchResultPosition", [("msgId", self.msgId as Any), ("date", self.date as Any), ("offset", self.offset as Any)])
|
||||
}
|
||||
}
|
||||
case searchResultPosition(Cons_searchResultPosition)
|
||||
|
||||
|
|
@ -1192,7 +1264,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum SecureCredentialsEncrypted: TypeConstructorDescription {
|
||||
public class Cons_secureCredentialsEncrypted {
|
||||
public class Cons_secureCredentialsEncrypted: TypeConstructorDescription {
|
||||
public var data: Buffer
|
||||
public var hash: Buffer
|
||||
public var secret: Buffer
|
||||
|
|
@ -1201,6 +1273,9 @@ public extension Api {
|
|||
self.hash = hash
|
||||
self.secret = secret
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("secureCredentialsEncrypted", [("data", self.data as Any), ("hash", self.hash as Any), ("secret", self.secret as Any)])
|
||||
}
|
||||
}
|
||||
case secureCredentialsEncrypted(Cons_secureCredentialsEncrypted)
|
||||
|
||||
|
|
@ -1245,7 +1320,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum SecureData: TypeConstructorDescription {
|
||||
public class Cons_secureData {
|
||||
public class Cons_secureData: TypeConstructorDescription {
|
||||
public var data: Buffer
|
||||
public var dataHash: Buffer
|
||||
public var secret: Buffer
|
||||
|
|
@ -1254,6 +1329,9 @@ public extension Api {
|
|||
self.dataHash = dataHash
|
||||
self.secret = secret
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("secureData", [("data", self.data as Any), ("dataHash", self.dataHash as Any), ("secret", self.secret as Any)])
|
||||
}
|
||||
}
|
||||
case secureData(Cons_secureData)
|
||||
|
||||
|
|
@ -1298,7 +1376,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum SecureFile: TypeConstructorDescription {
|
||||
public class Cons_secureFile {
|
||||
public class Cons_secureFile: TypeConstructorDescription {
|
||||
public var id: Int64
|
||||
public var accessHash: Int64
|
||||
public var size: Int64
|
||||
|
|
@ -1315,6 +1393,9 @@ public extension Api {
|
|||
self.fileHash = fileHash
|
||||
self.secret = secret
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("secureFile", [("id", self.id as Any), ("accessHash", self.accessHash as Any), ("size", self.size as Any), ("dcId", self.dcId as Any), ("date", self.date as Any), ("fileHash", self.fileHash as Any), ("secret", self.secret as Any)])
|
||||
}
|
||||
}
|
||||
case secureFile(Cons_secureFile)
|
||||
case secureFileEmpty
|
||||
|
|
@ -1386,17 +1467,23 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum SecurePasswordKdfAlgo: TypeConstructorDescription {
|
||||
public class Cons_securePasswordKdfAlgoPBKDF2HMACSHA512iter100000 {
|
||||
public class Cons_securePasswordKdfAlgoPBKDF2HMACSHA512iter100000: TypeConstructorDescription {
|
||||
public var salt: Buffer
|
||||
public init(salt: Buffer) {
|
||||
self.salt = salt
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("securePasswordKdfAlgoPBKDF2HMACSHA512iter100000", [("salt", self.salt as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_securePasswordKdfAlgoSHA512 {
|
||||
public class Cons_securePasswordKdfAlgoSHA512: TypeConstructorDescription {
|
||||
public var salt: Buffer
|
||||
public init(salt: Buffer) {
|
||||
self.salt = salt
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("securePasswordKdfAlgoSHA512", [("salt", self.salt as Any)])
|
||||
}
|
||||
}
|
||||
case securePasswordKdfAlgoPBKDF2HMACSHA512iter100000(Cons_securePasswordKdfAlgoPBKDF2HMACSHA512iter100000)
|
||||
case securePasswordKdfAlgoSHA512(Cons_securePasswordKdfAlgoSHA512)
|
||||
|
|
|
|||
|
|
@ -1,16 +1,22 @@
|
|||
public extension Api {
|
||||
enum SecurePlainData: TypeConstructorDescription {
|
||||
public class Cons_securePlainEmail {
|
||||
public class Cons_securePlainEmail: TypeConstructorDescription {
|
||||
public var email: String
|
||||
public init(email: String) {
|
||||
self.email = email
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("securePlainEmail", [("email", self.email as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_securePlainPhone {
|
||||
public class Cons_securePlainPhone: TypeConstructorDescription {
|
||||
public var phone: String
|
||||
public init(phone: String) {
|
||||
self.phone = phone
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("securePlainPhone", [("phone", self.phone as Any)])
|
||||
}
|
||||
}
|
||||
case securePlainEmail(Cons_securePlainEmail)
|
||||
case securePlainPhone(Cons_securePlainPhone)
|
||||
|
|
@ -67,19 +73,25 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum SecureRequiredType: TypeConstructorDescription {
|
||||
public class Cons_secureRequiredType {
|
||||
public class Cons_secureRequiredType: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var type: Api.SecureValueType
|
||||
public init(flags: Int32, type: Api.SecureValueType) {
|
||||
self.flags = flags
|
||||
self.type = type
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("secureRequiredType", [("flags", self.flags as Any), ("type", self.type as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_secureRequiredTypeOneOf {
|
||||
public class Cons_secureRequiredTypeOneOf: TypeConstructorDescription {
|
||||
public var types: [Api.SecureRequiredType]
|
||||
public init(types: [Api.SecureRequiredType]) {
|
||||
self.types = types
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("secureRequiredTypeOneOf", [("types", self.types as Any)])
|
||||
}
|
||||
}
|
||||
case secureRequiredType(Cons_secureRequiredType)
|
||||
case secureRequiredTypeOneOf(Cons_secureRequiredTypeOneOf)
|
||||
|
|
@ -148,7 +160,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum SecureSecretSettings: TypeConstructorDescription {
|
||||
public class Cons_secureSecretSettings {
|
||||
public class Cons_secureSecretSettings: TypeConstructorDescription {
|
||||
public var secureAlgo: Api.SecurePasswordKdfAlgo
|
||||
public var secureSecret: Buffer
|
||||
public var secureSecretId: Int64
|
||||
|
|
@ -157,6 +169,9 @@ public extension Api {
|
|||
self.secureSecret = secureSecret
|
||||
self.secureSecretId = secureSecretId
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("secureSecretSettings", [("secureAlgo", self.secureAlgo as Any), ("secureSecret", self.secureSecret as Any), ("secureSecretId", self.secureSecretId as Any)])
|
||||
}
|
||||
}
|
||||
case secureSecretSettings(Cons_secureSecretSettings)
|
||||
|
||||
|
|
@ -203,7 +218,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum SecureValue: TypeConstructorDescription {
|
||||
public class Cons_secureValue {
|
||||
public class Cons_secureValue: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var type: Api.SecureValueType
|
||||
public var data: Api.SecureData?
|
||||
|
|
@ -226,6 +241,9 @@ public extension Api {
|
|||
self.plainData = plainData
|
||||
self.hash = hash
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("secureValue", [("flags", self.flags as Any), ("type", self.type as Any), ("data", self.data as Any), ("frontSide", self.frontSide as Any), ("reverseSide", self.reverseSide as Any), ("selfie", self.selfie as Any), ("translation", self.translation as Any), ("files", self.files as Any), ("plainData", self.plainData as Any), ("hash", self.hash as Any)])
|
||||
}
|
||||
}
|
||||
case secureValue(Cons_secureValue)
|
||||
|
||||
|
|
@ -350,7 +368,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum SecureValueError: TypeConstructorDescription {
|
||||
public class Cons_secureValueError {
|
||||
public class Cons_secureValueError: TypeConstructorDescription {
|
||||
public var type: Api.SecureValueType
|
||||
public var hash: Buffer
|
||||
public var text: String
|
||||
|
|
@ -359,8 +377,11 @@ public extension Api {
|
|||
self.hash = hash
|
||||
self.text = text
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("secureValueError", [("type", self.type as Any), ("hash", self.hash as Any), ("text", self.text as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_secureValueErrorData {
|
||||
public class Cons_secureValueErrorData: TypeConstructorDescription {
|
||||
public var type: Api.SecureValueType
|
||||
public var dataHash: Buffer
|
||||
public var field: String
|
||||
|
|
@ -371,8 +392,11 @@ public extension Api {
|
|||
self.field = field
|
||||
self.text = text
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("secureValueErrorData", [("type", self.type as Any), ("dataHash", self.dataHash as Any), ("field", self.field as Any), ("text", self.text as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_secureValueErrorFile {
|
||||
public class Cons_secureValueErrorFile: TypeConstructorDescription {
|
||||
public var type: Api.SecureValueType
|
||||
public var fileHash: Buffer
|
||||
public var text: String
|
||||
|
|
@ -381,8 +405,11 @@ public extension Api {
|
|||
self.fileHash = fileHash
|
||||
self.text = text
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("secureValueErrorFile", [("type", self.type as Any), ("fileHash", self.fileHash as Any), ("text", self.text as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_secureValueErrorFiles {
|
||||
public class Cons_secureValueErrorFiles: TypeConstructorDescription {
|
||||
public var type: Api.SecureValueType
|
||||
public var fileHash: [Buffer]
|
||||
public var text: String
|
||||
|
|
@ -391,8 +418,11 @@ public extension Api {
|
|||
self.fileHash = fileHash
|
||||
self.text = text
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("secureValueErrorFiles", [("type", self.type as Any), ("fileHash", self.fileHash as Any), ("text", self.text as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_secureValueErrorFrontSide {
|
||||
public class Cons_secureValueErrorFrontSide: TypeConstructorDescription {
|
||||
public var type: Api.SecureValueType
|
||||
public var fileHash: Buffer
|
||||
public var text: String
|
||||
|
|
@ -401,8 +431,11 @@ public extension Api {
|
|||
self.fileHash = fileHash
|
||||
self.text = text
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("secureValueErrorFrontSide", [("type", self.type as Any), ("fileHash", self.fileHash as Any), ("text", self.text as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_secureValueErrorReverseSide {
|
||||
public class Cons_secureValueErrorReverseSide: TypeConstructorDescription {
|
||||
public var type: Api.SecureValueType
|
||||
public var fileHash: Buffer
|
||||
public var text: String
|
||||
|
|
@ -411,8 +444,11 @@ public extension Api {
|
|||
self.fileHash = fileHash
|
||||
self.text = text
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("secureValueErrorReverseSide", [("type", self.type as Any), ("fileHash", self.fileHash as Any), ("text", self.text as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_secureValueErrorSelfie {
|
||||
public class Cons_secureValueErrorSelfie: TypeConstructorDescription {
|
||||
public var type: Api.SecureValueType
|
||||
public var fileHash: Buffer
|
||||
public var text: String
|
||||
|
|
@ -421,8 +457,11 @@ public extension Api {
|
|||
self.fileHash = fileHash
|
||||
self.text = text
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("secureValueErrorSelfie", [("type", self.type as Any), ("fileHash", self.fileHash as Any), ("text", self.text as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_secureValueErrorTranslationFile {
|
||||
public class Cons_secureValueErrorTranslationFile: TypeConstructorDescription {
|
||||
public var type: Api.SecureValueType
|
||||
public var fileHash: Buffer
|
||||
public var text: String
|
||||
|
|
@ -431,8 +470,11 @@ public extension Api {
|
|||
self.fileHash = fileHash
|
||||
self.text = text
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("secureValueErrorTranslationFile", [("type", self.type as Any), ("fileHash", self.fileHash as Any), ("text", self.text as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_secureValueErrorTranslationFiles {
|
||||
public class Cons_secureValueErrorTranslationFiles: TypeConstructorDescription {
|
||||
public var type: Api.SecureValueType
|
||||
public var fileHash: [Buffer]
|
||||
public var text: String
|
||||
|
|
@ -441,6 +483,9 @@ public extension Api {
|
|||
self.fileHash = fileHash
|
||||
self.text = text
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("secureValueErrorTranslationFiles", [("type", self.type as Any), ("fileHash", self.fileHash as Any), ("text", self.text as Any)])
|
||||
}
|
||||
}
|
||||
case secureValueError(Cons_secureValueError)
|
||||
case secureValueErrorData(Cons_secureValueErrorData)
|
||||
|
|
@ -743,13 +788,16 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum SecureValueHash: TypeConstructorDescription {
|
||||
public class Cons_secureValueHash {
|
||||
public class Cons_secureValueHash: TypeConstructorDescription {
|
||||
public var type: Api.SecureValueType
|
||||
public var hash: Buffer
|
||||
public init(type: Api.SecureValueType, hash: Buffer) {
|
||||
self.type = type
|
||||
self.hash = hash
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("secureValueHash", [("type", self.type as Any), ("hash", self.hash as Any)])
|
||||
}
|
||||
}
|
||||
case secureValueHash(Cons_secureValueHash)
|
||||
|
||||
|
|
@ -950,13 +998,16 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum SendAsPeer: TypeConstructorDescription {
|
||||
public class Cons_sendAsPeer {
|
||||
public class Cons_sendAsPeer: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var peer: Api.Peer
|
||||
public init(flags: Int32, peer: Api.Peer) {
|
||||
self.flags = flags
|
||||
self.peer = peer
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("sendAsPeer", [("flags", self.flags as Any), ("peer", self.peer as Any)])
|
||||
}
|
||||
}
|
||||
case sendAsPeer(Cons_sendAsPeer)
|
||||
|
||||
|
|
@ -999,7 +1050,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum SendMessageAction: TypeConstructorDescription {
|
||||
public class Cons_sendMessageEmojiInteraction {
|
||||
public class Cons_sendMessageEmojiInteraction: TypeConstructorDescription {
|
||||
public var emoticon: String
|
||||
public var msgId: Int32
|
||||
public var interaction: Api.DataJSON
|
||||
|
|
@ -1008,56 +1059,83 @@ public extension Api {
|
|||
self.msgId = msgId
|
||||
self.interaction = interaction
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("sendMessageEmojiInteraction", [("emoticon", self.emoticon as Any), ("msgId", self.msgId as Any), ("interaction", self.interaction as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_sendMessageEmojiInteractionSeen {
|
||||
public class Cons_sendMessageEmojiInteractionSeen: TypeConstructorDescription {
|
||||
public var emoticon: String
|
||||
public init(emoticon: String) {
|
||||
self.emoticon = emoticon
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("sendMessageEmojiInteractionSeen", [("emoticon", self.emoticon as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_sendMessageHistoryImportAction {
|
||||
public class Cons_sendMessageHistoryImportAction: TypeConstructorDescription {
|
||||
public var progress: Int32
|
||||
public init(progress: Int32) {
|
||||
self.progress = progress
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("sendMessageHistoryImportAction", [("progress", self.progress as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_sendMessageTextDraftAction {
|
||||
public class Cons_sendMessageTextDraftAction: TypeConstructorDescription {
|
||||
public var randomId: Int64
|
||||
public var text: Api.TextWithEntities
|
||||
public init(randomId: Int64, text: Api.TextWithEntities) {
|
||||
self.randomId = randomId
|
||||
self.text = text
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("sendMessageTextDraftAction", [("randomId", self.randomId as Any), ("text", self.text as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_sendMessageUploadAudioAction {
|
||||
public class Cons_sendMessageUploadAudioAction: TypeConstructorDescription {
|
||||
public var progress: Int32
|
||||
public init(progress: Int32) {
|
||||
self.progress = progress
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("sendMessageUploadAudioAction", [("progress", self.progress as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_sendMessageUploadDocumentAction {
|
||||
public class Cons_sendMessageUploadDocumentAction: TypeConstructorDescription {
|
||||
public var progress: Int32
|
||||
public init(progress: Int32) {
|
||||
self.progress = progress
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("sendMessageUploadDocumentAction", [("progress", self.progress as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_sendMessageUploadPhotoAction {
|
||||
public class Cons_sendMessageUploadPhotoAction: TypeConstructorDescription {
|
||||
public var progress: Int32
|
||||
public init(progress: Int32) {
|
||||
self.progress = progress
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("sendMessageUploadPhotoAction", [("progress", self.progress as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_sendMessageUploadRoundAction {
|
||||
public class Cons_sendMessageUploadRoundAction: TypeConstructorDescription {
|
||||
public var progress: Int32
|
||||
public init(progress: Int32) {
|
||||
self.progress = progress
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("sendMessageUploadRoundAction", [("progress", self.progress as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_sendMessageUploadVideoAction {
|
||||
public class Cons_sendMessageUploadVideoAction: TypeConstructorDescription {
|
||||
public var progress: Int32
|
||||
public init(progress: Int32) {
|
||||
self.progress = progress
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("sendMessageUploadVideoAction", [("progress", self.progress as Any)])
|
||||
}
|
||||
}
|
||||
case sendMessageCancelAction
|
||||
case sendMessageChooseContactAction
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
public extension Api {
|
||||
enum ShippingOption: TypeConstructorDescription {
|
||||
public class Cons_shippingOption {
|
||||
public class Cons_shippingOption: TypeConstructorDescription {
|
||||
public var id: String
|
||||
public var title: String
|
||||
public var prices: [Api.LabeledPrice]
|
||||
|
|
@ -9,6 +9,9 @@ public extension Api {
|
|||
self.title = title
|
||||
self.prices = prices
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("shippingOption", [("id", self.id as Any), ("title", self.title as Any), ("prices", self.prices as Any)])
|
||||
}
|
||||
}
|
||||
case shippingOption(Cons_shippingOption)
|
||||
|
||||
|
|
@ -59,7 +62,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum SmsJob: TypeConstructorDescription {
|
||||
public class Cons_smsJob {
|
||||
public class Cons_smsJob: TypeConstructorDescription {
|
||||
public var jobId: String
|
||||
public var phoneNumber: String
|
||||
public var text: String
|
||||
|
|
@ -68,6 +71,9 @@ public extension Api {
|
|||
self.phoneNumber = phoneNumber
|
||||
self.text = text
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("smsJob", [("jobId", self.jobId as Any), ("phoneNumber", self.phoneNumber as Any), ("text", self.text as Any)])
|
||||
}
|
||||
}
|
||||
case smsJob(Cons_smsJob)
|
||||
|
||||
|
|
@ -112,7 +118,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
indirect enum SponsoredMessage: TypeConstructorDescription {
|
||||
public class Cons_sponsoredMessage {
|
||||
public class Cons_sponsoredMessage: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var randomId: Buffer
|
||||
public var url: String
|
||||
|
|
@ -143,6 +149,9 @@ public extension Api {
|
|||
self.minDisplayDuration = minDisplayDuration
|
||||
self.maxDisplayDuration = maxDisplayDuration
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("sponsoredMessage", [("flags", self.flags as Any), ("randomId", self.randomId as Any), ("url", self.url as Any), ("title", self.title as Any), ("message", self.message as Any), ("entities", self.entities as Any), ("photo", self.photo as Any), ("media", self.media as Any), ("color", self.color as Any), ("buttonText", self.buttonText as Any), ("sponsorInfo", self.sponsorInfo as Any), ("additionalInfo", self.additionalInfo as Any), ("minDisplayDuration", self.minDisplayDuration as Any), ("maxDisplayDuration", self.maxDisplayDuration as Any)])
|
||||
}
|
||||
}
|
||||
case sponsoredMessage(Cons_sponsoredMessage)
|
||||
|
||||
|
|
@ -275,13 +284,16 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum SponsoredMessageReportOption: TypeConstructorDescription {
|
||||
public class Cons_sponsoredMessageReportOption {
|
||||
public class Cons_sponsoredMessageReportOption: TypeConstructorDescription {
|
||||
public var text: String
|
||||
public var option: Buffer
|
||||
public init(text: String, option: Buffer) {
|
||||
self.text = text
|
||||
self.option = option
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("sponsoredMessageReportOption", [("text", self.text as Any), ("option", self.option as Any)])
|
||||
}
|
||||
}
|
||||
case sponsoredMessageReportOption(Cons_sponsoredMessageReportOption)
|
||||
|
||||
|
|
@ -322,7 +334,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum SponsoredPeer: TypeConstructorDescription {
|
||||
public class Cons_sponsoredPeer {
|
||||
public class Cons_sponsoredPeer: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var randomId: Buffer
|
||||
public var peer: Api.Peer
|
||||
|
|
@ -335,6 +347,9 @@ public extension Api {
|
|||
self.sponsorInfo = sponsorInfo
|
||||
self.additionalInfo = additionalInfo
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("sponsoredPeer", [("flags", self.flags as Any), ("randomId", self.randomId as Any), ("peer", self.peer as Any), ("sponsorInfo", self.sponsorInfo as Any), ("additionalInfo", self.additionalInfo as Any)])
|
||||
}
|
||||
}
|
||||
case sponsoredPeer(Cons_sponsoredPeer)
|
||||
|
||||
|
|
@ -397,7 +412,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum StarGift: TypeConstructorDescription {
|
||||
public class Cons_starGift {
|
||||
public class Cons_starGift: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var id: Int64
|
||||
public var sticker: Api.Document
|
||||
|
|
@ -444,8 +459,11 @@ public extension Api {
|
|||
self.upgradeVariants = upgradeVariants
|
||||
self.background = background
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("starGift", [("flags", self.flags as Any), ("id", self.id as Any), ("sticker", self.sticker as Any), ("stars", self.stars as Any), ("availabilityRemains", self.availabilityRemains as Any), ("availabilityTotal", self.availabilityTotal as Any), ("availabilityResale", self.availabilityResale as Any), ("convertStars", self.convertStars as Any), ("firstSaleDate", self.firstSaleDate as Any), ("lastSaleDate", self.lastSaleDate as Any), ("upgradeStars", self.upgradeStars as Any), ("resellMinStars", self.resellMinStars as Any), ("title", self.title as Any), ("releasedBy", self.releasedBy as Any), ("perUserTotal", self.perUserTotal as Any), ("perUserRemains", self.perUserRemains as Any), ("lockedUntilDate", self.lockedUntilDate as Any), ("auctionSlug", self.auctionSlug as Any), ("giftsPerRound", self.giftsPerRound as Any), ("auctionStartDate", self.auctionStartDate as Any), ("upgradeVariants", self.upgradeVariants as Any), ("background", self.background as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_starGiftUnique {
|
||||
public class Cons_starGiftUnique: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var id: Int64
|
||||
public var giftId: Int64
|
||||
|
|
@ -494,6 +512,9 @@ public extension Api {
|
|||
self.offerMinStars = offerMinStars
|
||||
self.craftChancePermille = craftChancePermille
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("starGiftUnique", [("flags", self.flags as Any), ("id", self.id as Any), ("giftId", self.giftId as Any), ("title", self.title as Any), ("slug", self.slug as Any), ("num", self.num as Any), ("ownerId", self.ownerId as Any), ("ownerName", self.ownerName as Any), ("ownerAddress", self.ownerAddress as Any), ("attributes", self.attributes as Any), ("availabilityIssued", self.availabilityIssued as Any), ("availabilityTotal", self.availabilityTotal as Any), ("giftAddress", self.giftAddress as Any), ("resellAmount", self.resellAmount as Any), ("releasedBy", self.releasedBy as Any), ("valueAmount", self.valueAmount as Any), ("valueCurrency", self.valueCurrency as Any), ("valueUsdAmount", self.valueUsdAmount as Any), ("themePeer", self.themePeer as Any), ("peerColor", self.peerColor as Any), ("hostId", self.hostId as Any), ("offerMinStars", self.offerMinStars as Any), ("craftChancePermille", self.craftChancePermille as Any)])
|
||||
}
|
||||
}
|
||||
case starGift(Cons_starGift)
|
||||
case starGiftUnique(Cons_starGiftUnique)
|
||||
|
|
@ -874,7 +895,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum StarGiftActiveAuctionState: TypeConstructorDescription {
|
||||
public class Cons_starGiftActiveAuctionState {
|
||||
public class Cons_starGiftActiveAuctionState: TypeConstructorDescription {
|
||||
public var gift: Api.StarGift
|
||||
public var state: Api.StarGiftAuctionState
|
||||
public var userState: Api.StarGiftAuctionUserState
|
||||
|
|
@ -883,6 +904,9 @@ public extension Api {
|
|||
self.state = state
|
||||
self.userState = userState
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("starGiftActiveAuctionState", [("gift", self.gift as Any), ("state", self.state as Any), ("userState", self.userState as Any)])
|
||||
}
|
||||
}
|
||||
case starGiftActiveAuctionState(Cons_starGiftActiveAuctionState)
|
||||
|
||||
|
|
@ -933,7 +957,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum StarGiftAttribute: TypeConstructorDescription {
|
||||
public class Cons_starGiftAttributeBackdrop {
|
||||
public class Cons_starGiftAttributeBackdrop: TypeConstructorDescription {
|
||||
public var name: String
|
||||
public var backdropId: Int32
|
||||
public var centerColor: Int32
|
||||
|
|
@ -950,8 +974,11 @@ public extension Api {
|
|||
self.textColor = textColor
|
||||
self.rarity = rarity
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("starGiftAttributeBackdrop", [("name", self.name as Any), ("backdropId", self.backdropId as Any), ("centerColor", self.centerColor as Any), ("edgeColor", self.edgeColor as Any), ("patternColor", self.patternColor as Any), ("textColor", self.textColor as Any), ("rarity", self.rarity as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_starGiftAttributeModel {
|
||||
public class Cons_starGiftAttributeModel: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var name: String
|
||||
public var document: Api.Document
|
||||
|
|
@ -962,8 +989,11 @@ public extension Api {
|
|||
self.document = document
|
||||
self.rarity = rarity
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("starGiftAttributeModel", [("flags", self.flags as Any), ("name", self.name as Any), ("document", self.document as Any), ("rarity", self.rarity as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_starGiftAttributeOriginalDetails {
|
||||
public class Cons_starGiftAttributeOriginalDetails: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var senderId: Api.Peer?
|
||||
public var recipientId: Api.Peer
|
||||
|
|
@ -976,8 +1006,11 @@ public extension Api {
|
|||
self.date = date
|
||||
self.message = message
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("starGiftAttributeOriginalDetails", [("flags", self.flags as Any), ("senderId", self.senderId as Any), ("recipientId", self.recipientId as Any), ("date", self.date as Any), ("message", self.message as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_starGiftAttributePattern {
|
||||
public class Cons_starGiftAttributePattern: TypeConstructorDescription {
|
||||
public var name: String
|
||||
public var document: Api.Document
|
||||
public var rarity: Api.StarGiftAttributeRarity
|
||||
|
|
@ -986,6 +1019,9 @@ public extension Api {
|
|||
self.document = document
|
||||
self.rarity = rarity
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("starGiftAttributePattern", [("name", self.name as Any), ("document", self.document as Any), ("rarity", self.rarity as Any)])
|
||||
}
|
||||
}
|
||||
case starGiftAttributeBackdrop(Cons_starGiftAttributeBackdrop)
|
||||
case starGiftAttributeModel(Cons_starGiftAttributeModel)
|
||||
|
|
@ -1166,13 +1202,16 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum StarGiftAttributeCounter: TypeConstructorDescription {
|
||||
public class Cons_starGiftAttributeCounter {
|
||||
public class Cons_starGiftAttributeCounter: TypeConstructorDescription {
|
||||
public var attribute: Api.StarGiftAttributeId
|
||||
public var count: Int32
|
||||
public init(attribute: Api.StarGiftAttributeId, count: Int32) {
|
||||
self.attribute = attribute
|
||||
self.count = count
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("starGiftAttributeCounter", [("attribute", self.attribute as Any), ("count", self.count as Any)])
|
||||
}
|
||||
}
|
||||
case starGiftAttributeCounter(Cons_starGiftAttributeCounter)
|
||||
|
||||
|
|
@ -1215,23 +1254,32 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum StarGiftAttributeId: TypeConstructorDescription {
|
||||
public class Cons_starGiftAttributeIdBackdrop {
|
||||
public class Cons_starGiftAttributeIdBackdrop: TypeConstructorDescription {
|
||||
public var backdropId: Int32
|
||||
public init(backdropId: Int32) {
|
||||
self.backdropId = backdropId
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("starGiftAttributeIdBackdrop", [("backdropId", self.backdropId as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_starGiftAttributeIdModel {
|
||||
public class Cons_starGiftAttributeIdModel: TypeConstructorDescription {
|
||||
public var documentId: Int64
|
||||
public init(documentId: Int64) {
|
||||
self.documentId = documentId
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("starGiftAttributeIdModel", [("documentId", self.documentId as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_starGiftAttributeIdPattern {
|
||||
public class Cons_starGiftAttributeIdPattern: TypeConstructorDescription {
|
||||
public var documentId: Int64
|
||||
public init(documentId: Int64) {
|
||||
self.documentId = documentId
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("starGiftAttributeIdPattern", [("documentId", self.documentId as Any)])
|
||||
}
|
||||
}
|
||||
case starGiftAttributeIdBackdrop(Cons_starGiftAttributeIdBackdrop)
|
||||
case starGiftAttributeIdModel(Cons_starGiftAttributeIdModel)
|
||||
|
|
@ -1308,11 +1356,14 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum StarGiftAttributeRarity: TypeConstructorDescription {
|
||||
public class Cons_starGiftAttributeRarity {
|
||||
public class Cons_starGiftAttributeRarity: TypeConstructorDescription {
|
||||
public var permille: Int32
|
||||
public init(permille: Int32) {
|
||||
self.permille = permille
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("starGiftAttributeRarity", [("permille", self.permille as Any)])
|
||||
}
|
||||
}
|
||||
case starGiftAttributeRarity(Cons_starGiftAttributeRarity)
|
||||
case starGiftAttributeRarityEpic
|
||||
|
|
@ -1393,7 +1444,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum StarGiftAuctionAcquiredGift: TypeConstructorDescription {
|
||||
public class Cons_starGiftAuctionAcquiredGift {
|
||||
public class Cons_starGiftAuctionAcquiredGift: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var peer: Api.Peer
|
||||
public var date: Int32
|
||||
|
|
@ -1412,6 +1463,9 @@ public extension Api {
|
|||
self.message = message
|
||||
self.giftNum = giftNum
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("starGiftAuctionAcquiredGift", [("flags", self.flags as Any), ("peer", self.peer as Any), ("date", self.date as Any), ("bidAmount", self.bidAmount as Any), ("round", self.round as Any), ("pos", self.pos as Any), ("message", self.message as Any), ("giftNum", self.giftNum as Any)])
|
||||
}
|
||||
}
|
||||
case starGiftAuctionAcquiredGift(Cons_starGiftAuctionAcquiredGift)
|
||||
|
||||
|
|
@ -1488,15 +1542,18 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum StarGiftAuctionRound: TypeConstructorDescription {
|
||||
public class Cons_starGiftAuctionRound {
|
||||
public class Cons_starGiftAuctionRound: TypeConstructorDescription {
|
||||
public var num: Int32
|
||||
public var duration: Int32
|
||||
public init(num: Int32, duration: Int32) {
|
||||
self.num = num
|
||||
self.duration = duration
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("starGiftAuctionRound", [("num", self.num as Any), ("duration", self.duration as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_starGiftAuctionRoundExtendable {
|
||||
public class Cons_starGiftAuctionRoundExtendable: TypeConstructorDescription {
|
||||
public var num: Int32
|
||||
public var duration: Int32
|
||||
public var extendTop: Int32
|
||||
|
|
@ -1507,6 +1564,9 @@ public extension Api {
|
|||
self.extendTop = extendTop
|
||||
self.extendWindow = extendWindow
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("starGiftAuctionRoundExtendable", [("num", self.num as Any), ("duration", self.duration as Any), ("extendTop", self.extendTop as Any), ("extendWindow", self.extendWindow as Any)])
|
||||
}
|
||||
}
|
||||
case starGiftAuctionRound(Cons_starGiftAuctionRound)
|
||||
case starGiftAuctionRoundExtendable(Cons_starGiftAuctionRoundExtendable)
|
||||
|
|
@ -1579,7 +1639,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum StarGiftAuctionState: TypeConstructorDescription {
|
||||
public class Cons_starGiftAuctionState {
|
||||
public class Cons_starGiftAuctionState: TypeConstructorDescription {
|
||||
public var version: Int32
|
||||
public var startDate: Int32
|
||||
public var endDate: Int32
|
||||
|
|
@ -1606,8 +1666,11 @@ public extension Api {
|
|||
self.totalRounds = totalRounds
|
||||
self.rounds = rounds
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("starGiftAuctionState", [("version", self.version as Any), ("startDate", self.startDate as Any), ("endDate", self.endDate as Any), ("minBidAmount", self.minBidAmount as Any), ("bidLevels", self.bidLevels as Any), ("topBidders", self.topBidders as Any), ("nextRoundAt", self.nextRoundAt as Any), ("lastGiftNum", self.lastGiftNum as Any), ("giftsLeft", self.giftsLeft as Any), ("currentRound", self.currentRound as Any), ("totalRounds", self.totalRounds as Any), ("rounds", self.rounds as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_starGiftAuctionStateFinished {
|
||||
public class Cons_starGiftAuctionStateFinished: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var startDate: Int32
|
||||
public var endDate: Int32
|
||||
|
|
@ -1624,6 +1687,9 @@ public extension Api {
|
|||
self.fragmentListedCount = fragmentListedCount
|
||||
self.fragmentListedUrl = fragmentListedUrl
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("starGiftAuctionStateFinished", [("flags", self.flags as Any), ("startDate", self.startDate as Any), ("endDate", self.endDate as Any), ("averagePrice", self.averagePrice as Any), ("listedCount", self.listedCount as Any), ("fragmentListedCount", self.fragmentListedCount as Any), ("fragmentListedUrl", self.fragmentListedUrl as Any)])
|
||||
}
|
||||
}
|
||||
case starGiftAuctionState(Cons_starGiftAuctionState)
|
||||
case starGiftAuctionStateFinished(Cons_starGiftAuctionStateFinished)
|
||||
|
|
@ -1789,7 +1855,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum StarGiftAuctionUserState: TypeConstructorDescription {
|
||||
public class Cons_starGiftAuctionUserState {
|
||||
public class Cons_starGiftAuctionUserState: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var bidAmount: Int64?
|
||||
public var bidDate: Int32?
|
||||
|
|
@ -1804,6 +1870,9 @@ public extension Api {
|
|||
self.bidPeer = bidPeer
|
||||
self.acquiredCount = acquiredCount
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("starGiftAuctionUserState", [("flags", self.flags as Any), ("bidAmount", self.bidAmount as Any), ("bidDate", self.bidDate as Any), ("minBidAmount", self.minBidAmount as Any), ("bidPeer", self.bidPeer as Any), ("acquiredCount", self.acquiredCount as Any)])
|
||||
}
|
||||
}
|
||||
case starGiftAuctionUserState(Cons_starGiftAuctionUserState)
|
||||
|
||||
|
|
@ -1878,7 +1947,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum StarGiftBackground: TypeConstructorDescription {
|
||||
public class Cons_starGiftBackground {
|
||||
public class Cons_starGiftBackground: TypeConstructorDescription {
|
||||
public var centerColor: Int32
|
||||
public var edgeColor: Int32
|
||||
public var textColor: Int32
|
||||
|
|
@ -1887,6 +1956,9 @@ public extension Api {
|
|||
self.edgeColor = edgeColor
|
||||
self.textColor = textColor
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("starGiftBackground", [("centerColor", self.centerColor as Any), ("edgeColor", self.edgeColor as Any), ("textColor", self.textColor as Any)])
|
||||
}
|
||||
}
|
||||
case starGiftBackground(Cons_starGiftBackground)
|
||||
|
||||
|
|
@ -1931,7 +2003,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum StarGiftCollection: TypeConstructorDescription {
|
||||
public class Cons_starGiftCollection {
|
||||
public class Cons_starGiftCollection: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var collectionId: Int32
|
||||
public var title: String
|
||||
|
|
@ -1946,6 +2018,9 @@ public extension Api {
|
|||
self.giftsCount = giftsCount
|
||||
self.hash = hash
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("starGiftCollection", [("flags", self.flags as Any), ("collectionId", self.collectionId as Any), ("title", self.title as Any), ("icon", self.icon as Any), ("giftsCount", self.giftsCount as Any), ("hash", self.hash as Any)])
|
||||
}
|
||||
}
|
||||
case starGiftCollection(Cons_starGiftCollection)
|
||||
|
||||
|
|
@ -2008,13 +2083,16 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum StarGiftUpgradePrice: TypeConstructorDescription {
|
||||
public class Cons_starGiftUpgradePrice {
|
||||
public class Cons_starGiftUpgradePrice: TypeConstructorDescription {
|
||||
public var date: Int32
|
||||
public var upgradeStars: Int64
|
||||
public init(date: Int32, upgradeStars: Int64) {
|
||||
self.date = date
|
||||
self.upgradeStars = upgradeStars
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("starGiftUpgradePrice", [("date", self.date as Any), ("upgradeStars", self.upgradeStars as Any)])
|
||||
}
|
||||
}
|
||||
case starGiftUpgradePrice(Cons_starGiftUpgradePrice)
|
||||
|
||||
|
|
@ -2055,7 +2133,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum StarRefProgram: TypeConstructorDescription {
|
||||
public class Cons_starRefProgram {
|
||||
public class Cons_starRefProgram: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var botId: Int64
|
||||
public var commissionPermille: Int32
|
||||
|
|
@ -2070,6 +2148,9 @@ public extension Api {
|
|||
self.endDate = endDate
|
||||
self.dailyRevenuePerUser = dailyRevenuePerUser
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("starRefProgram", [("flags", self.flags as Any), ("botId", self.botId as Any), ("commissionPermille", self.commissionPermille as Any), ("durationMonths", self.durationMonths as Any), ("endDate", self.endDate as Any), ("dailyRevenuePerUser", self.dailyRevenuePerUser as Any)])
|
||||
}
|
||||
}
|
||||
case starRefProgram(Cons_starRefProgram)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,18 +1,24 @@
|
|||
public extension Api {
|
||||
enum StarsAmount: TypeConstructorDescription {
|
||||
public class Cons_starsAmount {
|
||||
public class Cons_starsAmount: TypeConstructorDescription {
|
||||
public var amount: Int64
|
||||
public var nanos: Int32
|
||||
public init(amount: Int64, nanos: Int32) {
|
||||
self.amount = amount
|
||||
self.nanos = nanos
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("starsAmount", [("amount", self.amount as Any), ("nanos", self.nanos as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_starsTonAmount {
|
||||
public class Cons_starsTonAmount: TypeConstructorDescription {
|
||||
public var amount: Int64
|
||||
public init(amount: Int64) {
|
||||
self.amount = amount
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("starsTonAmount", [("amount", self.amount as Any)])
|
||||
}
|
||||
}
|
||||
case starsAmount(Cons_starsAmount)
|
||||
case starsTonAmount(Cons_starsTonAmount)
|
||||
|
|
@ -73,7 +79,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum StarsGiftOption: TypeConstructorDescription {
|
||||
public class Cons_starsGiftOption {
|
||||
public class Cons_starsGiftOption: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var stars: Int64
|
||||
public var storeProduct: String?
|
||||
|
|
@ -86,6 +92,9 @@ public extension Api {
|
|||
self.currency = currency
|
||||
self.amount = amount
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("starsGiftOption", [("flags", self.flags as Any), ("stars", self.stars as Any), ("storeProduct", self.storeProduct as Any), ("currency", self.currency as Any), ("amount", self.amount as Any)])
|
||||
}
|
||||
}
|
||||
case starsGiftOption(Cons_starsGiftOption)
|
||||
|
||||
|
|
@ -142,7 +151,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum StarsGiveawayOption: TypeConstructorDescription {
|
||||
public class Cons_starsGiveawayOption {
|
||||
public class Cons_starsGiveawayOption: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var stars: Int64
|
||||
public var yearlyBoosts: Int32
|
||||
|
|
@ -159,6 +168,9 @@ public extension Api {
|
|||
self.amount = amount
|
||||
self.winners = winners
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("starsGiveawayOption", [("flags", self.flags as Any), ("stars", self.stars as Any), ("yearlyBoosts", self.yearlyBoosts as Any), ("storeProduct", self.storeProduct as Any), ("currency", self.currency as Any), ("amount", self.amount as Any), ("winners", self.winners as Any)])
|
||||
}
|
||||
}
|
||||
case starsGiveawayOption(Cons_starsGiveawayOption)
|
||||
|
||||
|
|
@ -229,7 +241,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum StarsGiveawayWinnersOption: TypeConstructorDescription {
|
||||
public class Cons_starsGiveawayWinnersOption {
|
||||
public class Cons_starsGiveawayWinnersOption: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var users: Int32
|
||||
public var perUserStars: Int64
|
||||
|
|
@ -238,6 +250,9 @@ public extension Api {
|
|||
self.users = users
|
||||
self.perUserStars = perUserStars
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("starsGiveawayWinnersOption", [("flags", self.flags as Any), ("users", self.users as Any), ("perUserStars", self.perUserStars as Any)])
|
||||
}
|
||||
}
|
||||
case starsGiveawayWinnersOption(Cons_starsGiveawayWinnersOption)
|
||||
|
||||
|
|
@ -282,7 +297,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum StarsRating: TypeConstructorDescription {
|
||||
public class Cons_starsRating {
|
||||
public class Cons_starsRating: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var level: Int32
|
||||
public var currentLevelStars: Int64
|
||||
|
|
@ -295,6 +310,9 @@ public extension Api {
|
|||
self.stars = stars
|
||||
self.nextLevelStars = nextLevelStars
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("starsRating", [("flags", self.flags as Any), ("level", self.level as Any), ("currentLevelStars", self.currentLevelStars as Any), ("stars", self.stars as Any), ("nextLevelStars", self.nextLevelStars as Any)])
|
||||
}
|
||||
}
|
||||
case starsRating(Cons_starsRating)
|
||||
|
||||
|
|
@ -351,7 +369,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum StarsRevenueStatus: TypeConstructorDescription {
|
||||
public class Cons_starsRevenueStatus {
|
||||
public class Cons_starsRevenueStatus: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var currentBalance: Api.StarsAmount
|
||||
public var availableBalance: Api.StarsAmount
|
||||
|
|
@ -364,6 +382,9 @@ public extension Api {
|
|||
self.overallRevenue = overallRevenue
|
||||
self.nextWithdrawalAt = nextWithdrawalAt
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("starsRevenueStatus", [("flags", self.flags as Any), ("currentBalance", self.currentBalance as Any), ("availableBalance", self.availableBalance as Any), ("overallRevenue", self.overallRevenue as Any), ("nextWithdrawalAt", self.nextWithdrawalAt as Any)])
|
||||
}
|
||||
}
|
||||
case starsRevenueStatus(Cons_starsRevenueStatus)
|
||||
|
||||
|
|
@ -426,7 +447,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum StarsSubscription: TypeConstructorDescription {
|
||||
public class Cons_starsSubscription {
|
||||
public class Cons_starsSubscription: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var id: String
|
||||
public var peer: Api.Peer
|
||||
|
|
@ -447,6 +468,9 @@ public extension Api {
|
|||
self.photo = photo
|
||||
self.invoiceSlug = invoiceSlug
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("starsSubscription", [("flags", self.flags as Any), ("id", self.id as Any), ("peer", self.peer as Any), ("untilDate", self.untilDate as Any), ("pricing", self.pricing as Any), ("chatInviteHash", self.chatInviteHash as Any), ("title", self.title as Any), ("photo", self.photo as Any), ("invoiceSlug", self.invoiceSlug as Any)])
|
||||
}
|
||||
}
|
||||
case starsSubscription(Cons_starsSubscription)
|
||||
|
||||
|
|
@ -537,13 +561,16 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum StarsSubscriptionPricing: TypeConstructorDescription {
|
||||
public class Cons_starsSubscriptionPricing {
|
||||
public class Cons_starsSubscriptionPricing: TypeConstructorDescription {
|
||||
public var period: Int32
|
||||
public var amount: Int64
|
||||
public init(period: Int32, amount: Int64) {
|
||||
self.period = period
|
||||
self.amount = amount
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("starsSubscriptionPricing", [("period", self.period as Any), ("amount", self.amount as Any)])
|
||||
}
|
||||
}
|
||||
case starsSubscriptionPricing(Cons_starsSubscriptionPricing)
|
||||
|
||||
|
|
@ -584,7 +611,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum StarsTopupOption: TypeConstructorDescription {
|
||||
public class Cons_starsTopupOption {
|
||||
public class Cons_starsTopupOption: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var stars: Int64
|
||||
public var storeProduct: String?
|
||||
|
|
@ -597,6 +624,9 @@ public extension Api {
|
|||
self.currency = currency
|
||||
self.amount = amount
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("starsTopupOption", [("flags", self.flags as Any), ("stars", self.stars as Any), ("storeProduct", self.storeProduct as Any), ("currency", self.currency as Any), ("amount", self.amount as Any)])
|
||||
}
|
||||
}
|
||||
case starsTopupOption(Cons_starsTopupOption)
|
||||
|
||||
|
|
@ -653,7 +683,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum StarsTransaction: TypeConstructorDescription {
|
||||
public class Cons_starsTransaction {
|
||||
public class Cons_starsTransaction: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var id: String
|
||||
public var amount: Api.StarsAmount
|
||||
|
|
@ -704,6 +734,9 @@ public extension Api {
|
|||
self.adsProceedsFromDate = adsProceedsFromDate
|
||||
self.adsProceedsToDate = adsProceedsToDate
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("starsTransaction", [("flags", self.flags as Any), ("id", self.id as Any), ("amount", self.amount as Any), ("date", self.date as Any), ("peer", self.peer as Any), ("title", self.title as Any), ("description", self.description as Any), ("photo", self.photo as Any), ("transactionDate", self.transactionDate as Any), ("transactionUrl", self.transactionUrl as Any), ("botPayload", self.botPayload as Any), ("msgId", self.msgId as Any), ("extendedMedia", self.extendedMedia as Any), ("subscriptionPeriod", self.subscriptionPeriod as Any), ("giveawayPostId", self.giveawayPostId as Any), ("stargift", self.stargift as Any), ("floodskipNumber", self.floodskipNumber as Any), ("starrefCommissionPermille", self.starrefCommissionPermille as Any), ("starrefPeer", self.starrefPeer as Any), ("starrefAmount", self.starrefAmount as Any), ("paidMessages", self.paidMessages as Any), ("premiumGiftMonths", self.premiumGiftMonths as Any), ("adsProceedsFromDate", self.adsProceedsFromDate as Any), ("adsProceedsToDate", self.adsProceedsToDate as Any)])
|
||||
}
|
||||
}
|
||||
case starsTransaction(Cons_starsTransaction)
|
||||
|
||||
|
|
@ -926,11 +959,14 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum StarsTransactionPeer: TypeConstructorDescription {
|
||||
public class Cons_starsTransactionPeer {
|
||||
public class Cons_starsTransactionPeer: TypeConstructorDescription {
|
||||
public var peer: Api.Peer
|
||||
public init(peer: Api.Peer) {
|
||||
self.peer = peer
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("starsTransactionPeer", [("peer", self.peer as Any)])
|
||||
}
|
||||
}
|
||||
case starsTransactionPeer(Cons_starsTransactionPeer)
|
||||
case starsTransactionPeerAPI
|
||||
|
|
@ -1046,13 +1082,16 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum StatsAbsValueAndPrev: TypeConstructorDescription {
|
||||
public class Cons_statsAbsValueAndPrev {
|
||||
public class Cons_statsAbsValueAndPrev: TypeConstructorDescription {
|
||||
public var current: Double
|
||||
public var previous: Double
|
||||
public init(current: Double, previous: Double) {
|
||||
self.current = current
|
||||
self.previous = previous
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("statsAbsValueAndPrev", [("current", self.current as Any), ("previous", self.previous as Any)])
|
||||
}
|
||||
}
|
||||
case statsAbsValueAndPrev(Cons_statsAbsValueAndPrev)
|
||||
|
||||
|
|
@ -1093,13 +1132,16 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum StatsDateRangeDays: TypeConstructorDescription {
|
||||
public class Cons_statsDateRangeDays {
|
||||
public class Cons_statsDateRangeDays: TypeConstructorDescription {
|
||||
public var minDate: Int32
|
||||
public var maxDate: Int32
|
||||
public init(minDate: Int32, maxDate: Int32) {
|
||||
self.minDate = minDate
|
||||
self.maxDate = maxDate
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("statsDateRangeDays", [("minDate", self.minDate as Any), ("maxDate", self.maxDate as Any)])
|
||||
}
|
||||
}
|
||||
case statsDateRangeDays(Cons_statsDateRangeDays)
|
||||
|
||||
|
|
@ -1140,7 +1182,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum StatsGraph: TypeConstructorDescription {
|
||||
public class Cons_statsGraph {
|
||||
public class Cons_statsGraph: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var json: Api.DataJSON
|
||||
public var zoomToken: String?
|
||||
|
|
@ -1149,18 +1191,27 @@ public extension Api {
|
|||
self.json = json
|
||||
self.zoomToken = zoomToken
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("statsGraph", [("flags", self.flags as Any), ("json", self.json as Any), ("zoomToken", self.zoomToken as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_statsGraphAsync {
|
||||
public class Cons_statsGraphAsync: TypeConstructorDescription {
|
||||
public var token: String
|
||||
public init(token: String) {
|
||||
self.token = token
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("statsGraphAsync", [("token", self.token as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_statsGraphError {
|
||||
public class Cons_statsGraphError: TypeConstructorDescription {
|
||||
public var error: String
|
||||
public init(error: String) {
|
||||
self.error = error
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("statsGraphError", [("error", self.error as Any)])
|
||||
}
|
||||
}
|
||||
case statsGraph(Cons_statsGraph)
|
||||
case statsGraphAsync(Cons_statsGraphAsync)
|
||||
|
|
@ -1251,7 +1302,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum StatsGroupTopAdmin: TypeConstructorDescription {
|
||||
public class Cons_statsGroupTopAdmin {
|
||||
public class Cons_statsGroupTopAdmin: TypeConstructorDescription {
|
||||
public var userId: Int64
|
||||
public var deleted: Int32
|
||||
public var kicked: Int32
|
||||
|
|
@ -1262,6 +1313,9 @@ public extension Api {
|
|||
self.kicked = kicked
|
||||
self.banned = banned
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("statsGroupTopAdmin", [("userId", self.userId as Any), ("deleted", self.deleted as Any), ("kicked", self.kicked as Any), ("banned", self.banned as Any)])
|
||||
}
|
||||
}
|
||||
case statsGroupTopAdmin(Cons_statsGroupTopAdmin)
|
||||
|
||||
|
|
@ -1310,13 +1364,16 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum StatsGroupTopInviter: TypeConstructorDescription {
|
||||
public class Cons_statsGroupTopInviter {
|
||||
public class Cons_statsGroupTopInviter: TypeConstructorDescription {
|
||||
public var userId: Int64
|
||||
public var invitations: Int32
|
||||
public init(userId: Int64, invitations: Int32) {
|
||||
self.userId = userId
|
||||
self.invitations = invitations
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("statsGroupTopInviter", [("userId", self.userId as Any), ("invitations", self.invitations as Any)])
|
||||
}
|
||||
}
|
||||
case statsGroupTopInviter(Cons_statsGroupTopInviter)
|
||||
|
||||
|
|
@ -1357,7 +1414,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum StatsGroupTopPoster: TypeConstructorDescription {
|
||||
public class Cons_statsGroupTopPoster {
|
||||
public class Cons_statsGroupTopPoster: TypeConstructorDescription {
|
||||
public var userId: Int64
|
||||
public var messages: Int32
|
||||
public var avgChars: Int32
|
||||
|
|
@ -1366,6 +1423,9 @@ public extension Api {
|
|||
self.messages = messages
|
||||
self.avgChars = avgChars
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("statsGroupTopPoster", [("userId", self.userId as Any), ("messages", self.messages as Any), ("avgChars", self.avgChars as Any)])
|
||||
}
|
||||
}
|
||||
case statsGroupTopPoster(Cons_statsGroupTopPoster)
|
||||
|
||||
|
|
@ -1410,13 +1470,16 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum StatsPercentValue: TypeConstructorDescription {
|
||||
public class Cons_statsPercentValue {
|
||||
public class Cons_statsPercentValue: TypeConstructorDescription {
|
||||
public var part: Double
|
||||
public var total: Double
|
||||
public init(part: Double, total: Double) {
|
||||
self.part = part
|
||||
self.total = total
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("statsPercentValue", [("part", self.part as Any), ("total", self.total as Any)])
|
||||
}
|
||||
}
|
||||
case statsPercentValue(Cons_statsPercentValue)
|
||||
|
||||
|
|
@ -1457,11 +1520,14 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum StatsURL: TypeConstructorDescription {
|
||||
public class Cons_statsURL {
|
||||
public class Cons_statsURL: TypeConstructorDescription {
|
||||
public var url: String
|
||||
public init(url: String) {
|
||||
self.url = url
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("statsURL", [("url", self.url as Any)])
|
||||
}
|
||||
}
|
||||
case statsURL(Cons_statsURL)
|
||||
|
||||
|
|
@ -1498,13 +1564,16 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum StickerKeyword: TypeConstructorDescription {
|
||||
public class Cons_stickerKeyword {
|
||||
public class Cons_stickerKeyword: TypeConstructorDescription {
|
||||
public var documentId: Int64
|
||||
public var keyword: [String]
|
||||
public init(documentId: Int64, keyword: [String]) {
|
||||
self.documentId = documentId
|
||||
self.keyword = keyword
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("stickerKeyword", [("documentId", self.documentId as Any), ("keyword", self.keyword as Any)])
|
||||
}
|
||||
}
|
||||
case stickerKeyword(Cons_stickerKeyword)
|
||||
|
||||
|
|
@ -1551,13 +1620,16 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum StickerPack: TypeConstructorDescription {
|
||||
public class Cons_stickerPack {
|
||||
public class Cons_stickerPack: TypeConstructorDescription {
|
||||
public var emoticon: String
|
||||
public var documents: [Int64]
|
||||
public init(emoticon: String, documents: [Int64]) {
|
||||
self.emoticon = emoticon
|
||||
self.documents = documents
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("stickerPack", [("emoticon", self.emoticon as Any), ("documents", self.documents as Any)])
|
||||
}
|
||||
}
|
||||
case stickerPack(Cons_stickerPack)
|
||||
|
||||
|
|
@ -1604,7 +1676,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum StickerSet: TypeConstructorDescription {
|
||||
public class Cons_stickerSet {
|
||||
public class Cons_stickerSet: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var installedDate: Int32?
|
||||
public var id: Int64
|
||||
|
|
@ -1631,6 +1703,9 @@ public extension Api {
|
|||
self.count = count
|
||||
self.hash = hash
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("stickerSet", [("flags", self.flags as Any), ("installedDate", self.installedDate as Any), ("id", self.id as Any), ("accessHash", self.accessHash as Any), ("title", self.title as Any), ("shortName", self.shortName as Any), ("thumbs", self.thumbs as Any), ("thumbDcId", self.thumbDcId as Any), ("thumbVersion", self.thumbVersion as Any), ("thumbDocumentId", self.thumbDocumentId as Any), ("count", self.count as Any), ("hash", self.hash as Any)])
|
||||
}
|
||||
}
|
||||
case stickerSet(Cons_stickerSet)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,14 +1,17 @@
|
|||
public extension Api {
|
||||
enum StickerSetCovered: TypeConstructorDescription {
|
||||
public class Cons_stickerSetCovered {
|
||||
public class Cons_stickerSetCovered: TypeConstructorDescription {
|
||||
public var set: Api.StickerSet
|
||||
public var cover: Api.Document
|
||||
public init(set: Api.StickerSet, cover: Api.Document) {
|
||||
self.set = set
|
||||
self.cover = cover
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("stickerSetCovered", [("set", self.set as Any), ("cover", self.cover as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_stickerSetFullCovered {
|
||||
public class Cons_stickerSetFullCovered: TypeConstructorDescription {
|
||||
public var set: Api.StickerSet
|
||||
public var packs: [Api.StickerPack]
|
||||
public var keywords: [Api.StickerKeyword]
|
||||
|
|
@ -19,20 +22,29 @@ public extension Api {
|
|||
self.keywords = keywords
|
||||
self.documents = documents
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("stickerSetFullCovered", [("set", self.set as Any), ("packs", self.packs as Any), ("keywords", self.keywords as Any), ("documents", self.documents as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_stickerSetMultiCovered {
|
||||
public class Cons_stickerSetMultiCovered: TypeConstructorDescription {
|
||||
public var set: Api.StickerSet
|
||||
public var covers: [Api.Document]
|
||||
public init(set: Api.StickerSet, covers: [Api.Document]) {
|
||||
self.set = set
|
||||
self.covers = covers
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("stickerSetMultiCovered", [("set", self.set as Any), ("covers", self.covers as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_stickerSetNoCovered {
|
||||
public class Cons_stickerSetNoCovered: TypeConstructorDescription {
|
||||
public var set: Api.StickerSet
|
||||
public init(set: Api.StickerSet) {
|
||||
self.set = set
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("stickerSetNoCovered", [("set", self.set as Any)])
|
||||
}
|
||||
}
|
||||
case stickerSetCovered(Cons_stickerSetCovered)
|
||||
case stickerSetFullCovered(Cons_stickerSetFullCovered)
|
||||
|
|
@ -183,7 +195,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum StoriesStealthMode: TypeConstructorDescription {
|
||||
public class Cons_storiesStealthMode {
|
||||
public class Cons_storiesStealthMode: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var activeUntilDate: Int32?
|
||||
public var cooldownUntilDate: Int32?
|
||||
|
|
@ -192,6 +204,9 @@ public extension Api {
|
|||
self.activeUntilDate = activeUntilDate
|
||||
self.cooldownUntilDate = cooldownUntilDate
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("storiesStealthMode", [("flags", self.flags as Any), ("activeUntilDate", self.activeUntilDate as Any), ("cooldownUntilDate", self.cooldownUntilDate as Any)])
|
||||
}
|
||||
}
|
||||
case storiesStealthMode(Cons_storiesStealthMode)
|
||||
|
||||
|
|
@ -244,7 +259,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum StoryAlbum: TypeConstructorDescription {
|
||||
public class Cons_storyAlbum {
|
||||
public class Cons_storyAlbum: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var albumId: Int32
|
||||
public var title: String
|
||||
|
|
@ -257,6 +272,9 @@ public extension Api {
|
|||
self.iconPhoto = iconPhoto
|
||||
self.iconVideo = iconVideo
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("storyAlbum", [("flags", self.flags as Any), ("albumId", self.albumId as Any), ("title", self.title as Any), ("iconPhoto", self.iconPhoto as Any), ("iconVideo", self.iconVideo as Any)])
|
||||
}
|
||||
}
|
||||
case storyAlbum(Cons_storyAlbum)
|
||||
|
||||
|
|
@ -321,7 +339,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum StoryFwdHeader: TypeConstructorDescription {
|
||||
public class Cons_storyFwdHeader {
|
||||
public class Cons_storyFwdHeader: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var from: Api.Peer?
|
||||
public var fromName: String?
|
||||
|
|
@ -332,6 +350,9 @@ public extension Api {
|
|||
self.fromName = fromName
|
||||
self.storyId = storyId
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("storyFwdHeader", [("flags", self.flags as Any), ("from", self.from as Any), ("fromName", self.fromName as Any), ("storyId", self.storyId as Any)])
|
||||
}
|
||||
}
|
||||
case storyFwdHeader(Cons_storyFwdHeader)
|
||||
|
||||
|
|
@ -394,7 +415,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
indirect enum StoryItem: TypeConstructorDescription {
|
||||
public class Cons_storyItem {
|
||||
public class Cons_storyItem: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var id: Int32
|
||||
public var date: Int32
|
||||
|
|
@ -425,14 +446,20 @@ public extension Api {
|
|||
self.sentReaction = sentReaction
|
||||
self.albums = albums
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("storyItem", [("flags", self.flags as Any), ("id", self.id as Any), ("date", self.date as Any), ("fromId", self.fromId as Any), ("fwdFrom", self.fwdFrom as Any), ("expireDate", self.expireDate as Any), ("caption", self.caption as Any), ("entities", self.entities as Any), ("media", self.media as Any), ("mediaAreas", self.mediaAreas as Any), ("privacy", self.privacy as Any), ("views", self.views as Any), ("sentReaction", self.sentReaction as Any), ("albums", self.albums as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_storyItemDeleted {
|
||||
public class Cons_storyItemDeleted: TypeConstructorDescription {
|
||||
public var id: Int32
|
||||
public init(id: Int32) {
|
||||
self.id = id
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("storyItemDeleted", [("id", self.id as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_storyItemSkipped {
|
||||
public class Cons_storyItemSkipped: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var id: Int32
|
||||
public var date: Int32
|
||||
|
|
@ -443,6 +470,9 @@ public extension Api {
|
|||
self.date = date
|
||||
self.expireDate = expireDate
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("storyItemSkipped", [("flags", self.flags as Any), ("id", self.id as Any), ("date", self.date as Any), ("expireDate", self.expireDate as Any)])
|
||||
}
|
||||
}
|
||||
case storyItem(Cons_storyItem)
|
||||
case storyItemDeleted(Cons_storyItemDeleted)
|
||||
|
|
@ -653,7 +683,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
indirect enum StoryReaction: TypeConstructorDescription {
|
||||
public class Cons_storyReaction {
|
||||
public class Cons_storyReaction: TypeConstructorDescription {
|
||||
public var peerId: Api.Peer
|
||||
public var date: Int32
|
||||
public var reaction: Api.Reaction
|
||||
|
|
@ -662,20 +692,29 @@ public extension Api {
|
|||
self.date = date
|
||||
self.reaction = reaction
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("storyReaction", [("peerId", self.peerId as Any), ("date", self.date as Any), ("reaction", self.reaction as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_storyReactionPublicForward {
|
||||
public class Cons_storyReactionPublicForward: TypeConstructorDescription {
|
||||
public var message: Api.Message
|
||||
public init(message: Api.Message) {
|
||||
self.message = message
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("storyReactionPublicForward", [("message", self.message as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_storyReactionPublicRepost {
|
||||
public class Cons_storyReactionPublicRepost: TypeConstructorDescription {
|
||||
public var peerId: Api.Peer
|
||||
public var story: Api.StoryItem
|
||||
public init(peerId: Api.Peer, story: Api.StoryItem) {
|
||||
self.peerId = peerId
|
||||
self.story = story
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("storyReactionPublicRepost", [("peerId", self.peerId as Any), ("story", self.story as Any)])
|
||||
}
|
||||
}
|
||||
case storyReaction(Cons_storyReaction)
|
||||
case storyReactionPublicForward(Cons_storyReactionPublicForward)
|
||||
|
|
@ -774,7 +813,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
indirect enum StoryView: TypeConstructorDescription {
|
||||
public class Cons_storyView {
|
||||
public class Cons_storyView: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var userId: Int64
|
||||
public var date: Int32
|
||||
|
|
@ -785,16 +824,22 @@ public extension Api {
|
|||
self.date = date
|
||||
self.reaction = reaction
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("storyView", [("flags", self.flags as Any), ("userId", self.userId as Any), ("date", self.date as Any), ("reaction", self.reaction as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_storyViewPublicForward {
|
||||
public class Cons_storyViewPublicForward: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var message: Api.Message
|
||||
public init(flags: Int32, message: Api.Message) {
|
||||
self.flags = flags
|
||||
self.message = message
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("storyViewPublicForward", [("flags", self.flags as Any), ("message", self.message as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_storyViewPublicRepost {
|
||||
public class Cons_storyViewPublicRepost: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var peerId: Api.Peer
|
||||
public var story: Api.StoryItem
|
||||
|
|
@ -803,6 +848,9 @@ public extension Api {
|
|||
self.peerId = peerId
|
||||
self.story = story
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("storyViewPublicRepost", [("flags", self.flags as Any), ("peerId", self.peerId as Any), ("story", self.story as Any)])
|
||||
}
|
||||
}
|
||||
case storyView(Cons_storyView)
|
||||
case storyViewPublicForward(Cons_storyViewPublicForward)
|
||||
|
|
@ -915,7 +963,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum StoryViews: TypeConstructorDescription {
|
||||
public class Cons_storyViews {
|
||||
public class Cons_storyViews: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var viewsCount: Int32
|
||||
public var forwardsCount: Int32?
|
||||
|
|
@ -930,6 +978,9 @@ public extension Api {
|
|||
self.reactionsCount = reactionsCount
|
||||
self.recentViewers = recentViewers
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("storyViews", [("flags", self.flags as Any), ("viewsCount", self.viewsCount as Any), ("forwardsCount", self.forwardsCount as Any), ("reactions", self.reactions as Any), ("reactionsCount", self.reactionsCount as Any), ("recentViewers", self.recentViewers as Any)])
|
||||
}
|
||||
}
|
||||
case storyViews(Cons_storyViews)
|
||||
|
||||
|
|
@ -1014,7 +1065,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum SuggestedPost: TypeConstructorDescription {
|
||||
public class Cons_suggestedPost {
|
||||
public class Cons_suggestedPost: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var price: Api.StarsAmount?
|
||||
public var scheduleDate: Int32?
|
||||
|
|
@ -1023,6 +1074,9 @@ public extension Api {
|
|||
self.price = price
|
||||
self.scheduleDate = scheduleDate
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("suggestedPost", [("flags", self.flags as Any), ("price", self.price as Any), ("scheduleDate", self.scheduleDate as Any)])
|
||||
}
|
||||
}
|
||||
case suggestedPost(Cons_suggestedPost)
|
||||
|
||||
|
|
@ -1077,13 +1131,16 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum TextWithEntities: TypeConstructorDescription {
|
||||
public class Cons_textWithEntities {
|
||||
public class Cons_textWithEntities: TypeConstructorDescription {
|
||||
public var text: String
|
||||
public var entities: [Api.MessageEntity]
|
||||
public init(text: String, entities: [Api.MessageEntity]) {
|
||||
self.text = text
|
||||
self.entities = entities
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("textWithEntities", [("text", self.text as Any), ("entities", self.entities as Any)])
|
||||
}
|
||||
}
|
||||
case textWithEntities(Cons_textWithEntities)
|
||||
|
||||
|
|
@ -1130,7 +1187,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum Theme: TypeConstructorDescription {
|
||||
public class Cons_theme {
|
||||
public class Cons_theme: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var id: Int64
|
||||
public var accessHash: Int64
|
||||
|
|
@ -1151,6 +1208,9 @@ public extension Api {
|
|||
self.emoticon = emoticon
|
||||
self.installsCount = installsCount
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("theme", [("flags", self.flags as Any), ("id", self.id as Any), ("accessHash", self.accessHash as Any), ("slug", self.slug as Any), ("title", self.title as Any), ("document", self.document as Any), ("settings", self.settings as Any), ("emoticon", self.emoticon as Any), ("installsCount", self.installsCount as Any)])
|
||||
}
|
||||
}
|
||||
case theme(Cons_theme)
|
||||
|
||||
|
|
@ -1243,7 +1303,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum ThemeSettings: TypeConstructorDescription {
|
||||
public class Cons_themeSettings {
|
||||
public class Cons_themeSettings: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var baseTheme: Api.BaseTheme
|
||||
public var accentColor: Int32
|
||||
|
|
@ -1258,6 +1318,9 @@ public extension Api {
|
|||
self.messageColors = messageColors
|
||||
self.wallpaper = wallpaper
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("themeSettings", [("flags", self.flags as Any), ("baseTheme", self.baseTheme as Any), ("accentColor", self.accentColor as Any), ("outboxAccentColor", self.outboxAccentColor as Any), ("messageColors", self.messageColors as Any), ("wallpaper", self.wallpaper as Any)])
|
||||
}
|
||||
}
|
||||
case themeSettings(Cons_themeSettings)
|
||||
|
||||
|
|
@ -1336,7 +1399,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum Timezone: TypeConstructorDescription {
|
||||
public class Cons_timezone {
|
||||
public class Cons_timezone: TypeConstructorDescription {
|
||||
public var id: String
|
||||
public var name: String
|
||||
public var utcOffset: Int32
|
||||
|
|
@ -1345,6 +1408,9 @@ public extension Api {
|
|||
self.name = name
|
||||
self.utcOffset = utcOffset
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("timezone", [("id", self.id as Any), ("name", self.name as Any), ("utcOffset", self.utcOffset as Any)])
|
||||
}
|
||||
}
|
||||
case timezone(Cons_timezone)
|
||||
|
||||
|
|
@ -1389,7 +1455,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum TodoCompletion: TypeConstructorDescription {
|
||||
public class Cons_todoCompletion {
|
||||
public class Cons_todoCompletion: TypeConstructorDescription {
|
||||
public var id: Int32
|
||||
public var completedBy: Api.Peer
|
||||
public var date: Int32
|
||||
|
|
@ -1398,6 +1464,9 @@ public extension Api {
|
|||
self.completedBy = completedBy
|
||||
self.date = date
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("todoCompletion", [("id", self.id as Any), ("completedBy", self.completedBy as Any), ("date", self.date as Any)])
|
||||
}
|
||||
}
|
||||
case todoCompletion(Cons_todoCompletion)
|
||||
|
||||
|
|
@ -1444,13 +1513,16 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum TodoItem: TypeConstructorDescription {
|
||||
public class Cons_todoItem {
|
||||
public class Cons_todoItem: TypeConstructorDescription {
|
||||
public var id: Int32
|
||||
public var title: Api.TextWithEntities
|
||||
public init(id: Int32, title: Api.TextWithEntities) {
|
||||
self.id = id
|
||||
self.title = title
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("todoItem", [("id", self.id as Any), ("title", self.title as Any)])
|
||||
}
|
||||
}
|
||||
case todoItem(Cons_todoItem)
|
||||
|
||||
|
|
@ -1493,7 +1565,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum TodoList: TypeConstructorDescription {
|
||||
public class Cons_todoList {
|
||||
public class Cons_todoList: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var title: Api.TextWithEntities
|
||||
public var list: [Api.TodoItem]
|
||||
|
|
@ -1502,6 +1574,9 @@ public extension Api {
|
|||
self.title = title
|
||||
self.list = list
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("todoList", [("flags", self.flags as Any), ("title", self.title as Any), ("list", self.list as Any)])
|
||||
}
|
||||
}
|
||||
case todoList(Cons_todoList)
|
||||
|
||||
|
|
@ -1554,13 +1629,16 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum TopPeer: TypeConstructorDescription {
|
||||
public class Cons_topPeer {
|
||||
public class Cons_topPeer: TypeConstructorDescription {
|
||||
public var peer: Api.Peer
|
||||
public var rating: Double
|
||||
public init(peer: Api.Peer, rating: Double) {
|
||||
self.peer = peer
|
||||
self.rating = rating
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("topPeer", [("peer", self.peer as Any), ("rating", self.rating as Any)])
|
||||
}
|
||||
}
|
||||
case topPeer(Cons_topPeer)
|
||||
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -1,14 +1,17 @@
|
|||
public extension Api {
|
||||
indirect enum Updates: TypeConstructorDescription {
|
||||
public class Cons_updateShort {
|
||||
public class Cons_updateShort: TypeConstructorDescription {
|
||||
public var update: Api.Update
|
||||
public var date: Int32
|
||||
public init(update: Api.Update, date: Int32) {
|
||||
self.update = update
|
||||
self.date = date
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("updateShort", [("update", self.update as Any), ("date", self.date as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_updateShortChatMessage {
|
||||
public class Cons_updateShortChatMessage: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var id: Int32
|
||||
public var fromId: Int64
|
||||
|
|
@ -37,8 +40,11 @@ public extension Api {
|
|||
self.entities = entities
|
||||
self.ttlPeriod = ttlPeriod
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("updateShortChatMessage", [("flags", self.flags as Any), ("id", self.id as Any), ("fromId", self.fromId as Any), ("chatId", self.chatId as Any), ("message", self.message as Any), ("pts", self.pts as Any), ("ptsCount", self.ptsCount as Any), ("date", self.date as Any), ("fwdFrom", self.fwdFrom as Any), ("viaBotId", self.viaBotId as Any), ("replyTo", self.replyTo as Any), ("entities", self.entities as Any), ("ttlPeriod", self.ttlPeriod as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_updateShortMessage {
|
||||
public class Cons_updateShortMessage: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var id: Int32
|
||||
public var userId: Int64
|
||||
|
|
@ -65,8 +71,11 @@ public extension Api {
|
|||
self.entities = entities
|
||||
self.ttlPeriod = ttlPeriod
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("updateShortMessage", [("flags", self.flags as Any), ("id", self.id as Any), ("userId", self.userId as Any), ("message", self.message as Any), ("pts", self.pts as Any), ("ptsCount", self.ptsCount as Any), ("date", self.date as Any), ("fwdFrom", self.fwdFrom as Any), ("viaBotId", self.viaBotId as Any), ("replyTo", self.replyTo as Any), ("entities", self.entities as Any), ("ttlPeriod", self.ttlPeriod as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_updateShortSentMessage {
|
||||
public class Cons_updateShortSentMessage: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var id: Int32
|
||||
public var pts: Int32
|
||||
|
|
@ -85,8 +94,11 @@ public extension Api {
|
|||
self.entities = entities
|
||||
self.ttlPeriod = ttlPeriod
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("updateShortSentMessage", [("flags", self.flags as Any), ("id", self.id as Any), ("pts", self.pts as Any), ("ptsCount", self.ptsCount as Any), ("date", self.date as Any), ("media", self.media as Any), ("entities", self.entities as Any), ("ttlPeriod", self.ttlPeriod as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_updates {
|
||||
public class Cons_updates: TypeConstructorDescription {
|
||||
public var updates: [Api.Update]
|
||||
public var users: [Api.User]
|
||||
public var chats: [Api.Chat]
|
||||
|
|
@ -99,8 +111,11 @@ public extension Api {
|
|||
self.date = date
|
||||
self.seq = seq
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("updates", [("updates", self.updates as Any), ("users", self.users as Any), ("chats", self.chats as Any), ("date", self.date as Any), ("seq", self.seq as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_updatesCombined {
|
||||
public class Cons_updatesCombined: TypeConstructorDescription {
|
||||
public var updates: [Api.Update]
|
||||
public var users: [Api.User]
|
||||
public var chats: [Api.Chat]
|
||||
|
|
@ -115,6 +130,9 @@ public extension Api {
|
|||
self.seqStart = seqStart
|
||||
self.seq = seq
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("updatesCombined", [("updates", self.updates as Any), ("users", self.users as Any), ("chats", self.chats as Any), ("date", self.date as Any), ("seqStart", self.seqStart as Any), ("seq", self.seq as Any)])
|
||||
}
|
||||
}
|
||||
case updateShort(Cons_updateShort)
|
||||
case updateShortChatMessage(Cons_updateShortChatMessage)
|
||||
|
|
@ -540,15 +558,18 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum UrlAuthResult: TypeConstructorDescription {
|
||||
public class Cons_urlAuthResultAccepted {
|
||||
public class Cons_urlAuthResultAccepted: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var url: String?
|
||||
public init(flags: Int32, url: String?) {
|
||||
self.flags = flags
|
||||
self.url = url
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("urlAuthResultAccepted", [("flags", self.flags as Any), ("url", self.url as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_urlAuthResultRequest {
|
||||
public class Cons_urlAuthResultRequest: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var bot: Api.User
|
||||
public var domain: String
|
||||
|
|
@ -569,6 +590,9 @@ public extension Api {
|
|||
self.matchCodes = matchCodes
|
||||
self.userIdHint = userIdHint
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("urlAuthResultRequest", [("flags", self.flags as Any), ("bot", self.bot as Any), ("domain", self.domain as Any), ("browser", self.browser as Any), ("platform", self.platform as Any), ("ip", self.ip as Any), ("region", self.region as Any), ("matchCodes", self.matchCodes as Any), ("userIdHint", self.userIdHint as Any)])
|
||||
}
|
||||
}
|
||||
case urlAuthResultAccepted(Cons_urlAuthResultAccepted)
|
||||
case urlAuthResultDefault
|
||||
|
|
@ -708,7 +732,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum User: TypeConstructorDescription {
|
||||
public class Cons_user {
|
||||
public class Cons_user: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var flags2: Int32
|
||||
public var id: Int64
|
||||
|
|
@ -755,12 +779,18 @@ public extension Api {
|
|||
self.botVerificationIcon = botVerificationIcon
|
||||
self.sendPaidMessagesStars = sendPaidMessagesStars
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("user", [("flags", self.flags as Any), ("flags2", self.flags2 as Any), ("id", self.id as Any), ("accessHash", self.accessHash as Any), ("firstName", self.firstName as Any), ("lastName", self.lastName as Any), ("username", self.username as Any), ("phone", self.phone as Any), ("photo", self.photo as Any), ("status", self.status as Any), ("botInfoVersion", self.botInfoVersion as Any), ("restrictionReason", self.restrictionReason as Any), ("botInlinePlaceholder", self.botInlinePlaceholder as Any), ("langCode", self.langCode as Any), ("emojiStatus", self.emojiStatus as Any), ("usernames", self.usernames as Any), ("storiesMaxId", self.storiesMaxId as Any), ("color", self.color as Any), ("profileColor", self.profileColor as Any), ("botActiveUsers", self.botActiveUsers as Any), ("botVerificationIcon", self.botVerificationIcon as Any), ("sendPaidMessagesStars", self.sendPaidMessagesStars as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_userEmpty {
|
||||
public class Cons_userEmpty: TypeConstructorDescription {
|
||||
public var id: Int64
|
||||
public init(id: Int64) {
|
||||
self.id = id
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("userEmpty", [("id", self.id as Any)])
|
||||
}
|
||||
}
|
||||
case user(Cons_user)
|
||||
case userEmpty(Cons_userEmpty)
|
||||
|
|
@ -1001,7 +1031,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum UserFull: TypeConstructorDescription {
|
||||
public class Cons_userFull {
|
||||
public class Cons_userFull: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var flags2: Int32
|
||||
public var id: Int64
|
||||
|
|
@ -1082,6 +1112,9 @@ public extension Api {
|
|||
self.savedMusic = savedMusic
|
||||
self.note = note
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("userFull", [("flags", self.flags as Any), ("flags2", self.flags2 as Any), ("id", self.id as Any), ("about", self.about as Any), ("settings", self.settings as Any), ("personalPhoto", self.personalPhoto as Any), ("profilePhoto", self.profilePhoto as Any), ("fallbackPhoto", self.fallbackPhoto as Any), ("notifySettings", self.notifySettings as Any), ("botInfo", self.botInfo as Any), ("pinnedMsgId", self.pinnedMsgId as Any), ("commonChatsCount", self.commonChatsCount as Any), ("folderId", self.folderId as Any), ("ttlPeriod", self.ttlPeriod as Any), ("theme", self.theme as Any), ("privateForwardName", self.privateForwardName as Any), ("botGroupAdminRights", self.botGroupAdminRights as Any), ("botBroadcastAdminRights", self.botBroadcastAdminRights as Any), ("wallpaper", self.wallpaper as Any), ("stories", self.stories as Any), ("businessWorkHours", self.businessWorkHours as Any), ("businessLocation", self.businessLocation as Any), ("businessGreetingMessage", self.businessGreetingMessage as Any), ("businessAwayMessage", self.businessAwayMessage as Any), ("businessIntro", self.businessIntro as Any), ("birthday", self.birthday as Any), ("personalChannelId", self.personalChannelId as Any), ("personalChannelMessage", self.personalChannelMessage as Any), ("stargiftsCount", self.stargiftsCount as Any), ("starrefProgram", self.starrefProgram as Any), ("botVerification", self.botVerification as Any), ("sendPaidMessagesStars", self.sendPaidMessagesStars as Any), ("disallowedGifts", self.disallowedGifts as Any), ("starsRating", self.starsRating as Any), ("starsMyPendingRating", self.starsMyPendingRating as Any), ("starsMyPendingRatingDate", self.starsMyPendingRatingDate as Any), ("mainTab", self.mainTab as Any), ("savedMusic", self.savedMusic as Any), ("note", self.note as Any)])
|
||||
}
|
||||
}
|
||||
case userFull(Cons_userFull)
|
||||
|
||||
|
|
@ -1452,7 +1485,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum UserProfilePhoto: TypeConstructorDescription {
|
||||
public class Cons_userProfilePhoto {
|
||||
public class Cons_userProfilePhoto: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var photoId: Int64
|
||||
public var strippedThumb: Buffer?
|
||||
|
|
@ -1463,6 +1496,9 @@ public extension Api {
|
|||
self.strippedThumb = strippedThumb
|
||||
self.dcId = dcId
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("userProfilePhoto", [("flags", self.flags as Any), ("photoId", self.photoId as Any), ("strippedThumb", self.strippedThumb as Any), ("dcId", self.dcId as Any)])
|
||||
}
|
||||
}
|
||||
case userProfilePhoto(Cons_userProfilePhoto)
|
||||
case userProfilePhotoEmpty
|
||||
|
|
@ -1526,35 +1562,50 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum UserStatus: TypeConstructorDescription {
|
||||
public class Cons_userStatusLastMonth {
|
||||
public class Cons_userStatusLastMonth: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public init(flags: Int32) {
|
||||
self.flags = flags
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("userStatusLastMonth", [("flags", self.flags as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_userStatusLastWeek {
|
||||
public class Cons_userStatusLastWeek: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public init(flags: Int32) {
|
||||
self.flags = flags
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("userStatusLastWeek", [("flags", self.flags as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_userStatusOffline {
|
||||
public class Cons_userStatusOffline: TypeConstructorDescription {
|
||||
public var wasOnline: Int32
|
||||
public init(wasOnline: Int32) {
|
||||
self.wasOnline = wasOnline
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("userStatusOffline", [("wasOnline", self.wasOnline as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_userStatusOnline {
|
||||
public class Cons_userStatusOnline: TypeConstructorDescription {
|
||||
public var expires: Int32
|
||||
public init(expires: Int32) {
|
||||
self.expires = expires
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("userStatusOnline", [("expires", self.expires as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_userStatusRecently {
|
||||
public class Cons_userStatusRecently: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public init(flags: Int32) {
|
||||
self.flags = flags
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("userStatusRecently", [("flags", self.flags as Any)])
|
||||
}
|
||||
}
|
||||
case userStatusEmpty
|
||||
case userStatusLastMonth(Cons_userStatusLastMonth)
|
||||
|
|
@ -1682,13 +1733,16 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum Username: TypeConstructorDescription {
|
||||
public class Cons_username {
|
||||
public class Cons_username: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var username: String
|
||||
public init(flags: Int32, username: String) {
|
||||
self.flags = flags
|
||||
self.username = username
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("username", [("flags", self.flags as Any), ("username", self.username as Any)])
|
||||
}
|
||||
}
|
||||
case username(Cons_username)
|
||||
|
||||
|
|
@ -1729,7 +1783,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum VideoSize: TypeConstructorDescription {
|
||||
public class Cons_videoSize {
|
||||
public class Cons_videoSize: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var type: String
|
||||
public var w: Int32
|
||||
|
|
@ -1744,16 +1798,22 @@ public extension Api {
|
|||
self.size = size
|
||||
self.videoStartTs = videoStartTs
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("videoSize", [("flags", self.flags as Any), ("type", self.type as Any), ("w", self.w as Any), ("h", self.h as Any), ("size", self.size as Any), ("videoStartTs", self.videoStartTs as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_videoSizeEmojiMarkup {
|
||||
public class Cons_videoSizeEmojiMarkup: TypeConstructorDescription {
|
||||
public var emojiId: Int64
|
||||
public var backgroundColors: [Int32]
|
||||
public init(emojiId: Int64, backgroundColors: [Int32]) {
|
||||
self.emojiId = emojiId
|
||||
self.backgroundColors = backgroundColors
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("videoSizeEmojiMarkup", [("emojiId", self.emojiId as Any), ("backgroundColors", self.backgroundColors as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_videoSizeStickerMarkup {
|
||||
public class Cons_videoSizeStickerMarkup: TypeConstructorDescription {
|
||||
public var stickerset: Api.InputStickerSet
|
||||
public var stickerId: Int64
|
||||
public var backgroundColors: [Int32]
|
||||
|
|
@ -1762,6 +1822,9 @@ public extension Api {
|
|||
self.stickerId = stickerId
|
||||
self.backgroundColors = backgroundColors
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("videoSizeStickerMarkup", [("stickerset", self.stickerset as Any), ("stickerId", self.stickerId as Any), ("backgroundColors", self.backgroundColors as Any)])
|
||||
}
|
||||
}
|
||||
case videoSize(Cons_videoSize)
|
||||
case videoSizeEmojiMarkup(Cons_videoSizeEmojiMarkup)
|
||||
|
|
@ -1888,7 +1951,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum WallPaper: TypeConstructorDescription {
|
||||
public class Cons_wallPaper {
|
||||
public class Cons_wallPaper: TypeConstructorDescription {
|
||||
public var id: Int64
|
||||
public var flags: Int32
|
||||
public var accessHash: Int64
|
||||
|
|
@ -1903,8 +1966,11 @@ public extension Api {
|
|||
self.document = document
|
||||
self.settings = settings
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("wallPaper", [("id", self.id as Any), ("flags", self.flags as Any), ("accessHash", self.accessHash as Any), ("slug", self.slug as Any), ("document", self.document as Any), ("settings", self.settings as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_wallPaperNoFile {
|
||||
public class Cons_wallPaperNoFile: TypeConstructorDescription {
|
||||
public var id: Int64
|
||||
public var flags: Int32
|
||||
public var settings: Api.WallPaperSettings?
|
||||
|
|
@ -1913,6 +1979,9 @@ public extension Api {
|
|||
self.flags = flags
|
||||
self.settings = settings
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("wallPaperNoFile", [("id", self.id as Any), ("flags", self.flags as Any), ("settings", self.settings as Any)])
|
||||
}
|
||||
}
|
||||
case wallPaper(Cons_wallPaper)
|
||||
case wallPaperNoFile(Cons_wallPaperNoFile)
|
||||
|
|
@ -2011,7 +2080,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum WallPaperSettings: TypeConstructorDescription {
|
||||
public class Cons_wallPaperSettings {
|
||||
public class Cons_wallPaperSettings: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var backgroundColor: Int32?
|
||||
public var secondBackgroundColor: Int32?
|
||||
|
|
@ -2030,6 +2099,9 @@ public extension Api {
|
|||
self.rotation = rotation
|
||||
self.emoticon = emoticon
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("wallPaperSettings", [("flags", self.flags as Any), ("backgroundColor", self.backgroundColor as Any), ("secondBackgroundColor", self.secondBackgroundColor as Any), ("thirdBackgroundColor", self.thirdBackgroundColor as Any), ("fourthBackgroundColor", self.fourthBackgroundColor as Any), ("intensity", self.intensity as Any), ("rotation", self.rotation as Any), ("emoticon", self.emoticon as Any)])
|
||||
}
|
||||
}
|
||||
case wallPaperSettings(Cons_wallPaperSettings)
|
||||
|
||||
|
|
@ -2122,7 +2194,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum WebAuthorization: TypeConstructorDescription {
|
||||
public class Cons_webAuthorization {
|
||||
public class Cons_webAuthorization: TypeConstructorDescription {
|
||||
public var hash: Int64
|
||||
public var botId: Int64
|
||||
public var domain: String
|
||||
|
|
@ -2143,6 +2215,9 @@ public extension Api {
|
|||
self.ip = ip
|
||||
self.region = region
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("webAuthorization", [("hash", self.hash as Any), ("botId", self.botId as Any), ("domain", self.domain as Any), ("browser", self.browser as Any), ("platform", self.platform as Any), ("dateCreated", self.dateCreated as Any), ("dateActive", self.dateActive as Any), ("ip", self.ip as Any), ("region", self.region as Any)])
|
||||
}
|
||||
}
|
||||
case webAuthorization(Cons_webAuthorization)
|
||||
|
||||
|
|
@ -2211,7 +2286,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum WebDocument: TypeConstructorDescription {
|
||||
public class Cons_webDocument {
|
||||
public class Cons_webDocument: TypeConstructorDescription {
|
||||
public var url: String
|
||||
public var accessHash: Int64
|
||||
public var size: Int32
|
||||
|
|
@ -2224,8 +2299,11 @@ public extension Api {
|
|||
self.mimeType = mimeType
|
||||
self.attributes = attributes
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("webDocument", [("url", self.url as Any), ("accessHash", self.accessHash as Any), ("size", self.size as Any), ("mimeType", self.mimeType as Any), ("attributes", self.attributes as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_webDocumentNoProxy {
|
||||
public class Cons_webDocumentNoProxy: TypeConstructorDescription {
|
||||
public var url: String
|
||||
public var size: Int32
|
||||
public var mimeType: String
|
||||
|
|
@ -2236,6 +2314,9 @@ public extension Api {
|
|||
self.mimeType = mimeType
|
||||
self.attributes = attributes
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("webDocumentNoProxy", [("url", self.url as Any), ("size", self.size as Any), ("mimeType", self.mimeType as Any), ("attributes", self.attributes as Any)])
|
||||
}
|
||||
}
|
||||
case webDocument(Cons_webDocument)
|
||||
case webDocumentNoProxy(Cons_webDocumentNoProxy)
|
||||
|
|
@ -2332,7 +2413,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum WebPage: TypeConstructorDescription {
|
||||
public class Cons_webPage {
|
||||
public class Cons_webPage: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var id: Int64
|
||||
public var url: String
|
||||
|
|
@ -2373,8 +2454,11 @@ public extension Api {
|
|||
self.cachedPage = cachedPage
|
||||
self.attributes = attributes
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("webPage", [("flags", self.flags as Any), ("id", self.id as Any), ("url", self.url as Any), ("displayUrl", self.displayUrl as Any), ("hash", self.hash as Any), ("type", self.type as Any), ("siteName", self.siteName as Any), ("title", self.title as Any), ("description", self.description as Any), ("photo", self.photo as Any), ("embedUrl", self.embedUrl as Any), ("embedType", self.embedType as Any), ("embedWidth", self.embedWidth as Any), ("embedHeight", self.embedHeight as Any), ("duration", self.duration as Any), ("author", self.author as Any), ("document", self.document as Any), ("cachedPage", self.cachedPage as Any), ("attributes", self.attributes as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_webPageEmpty {
|
||||
public class Cons_webPageEmpty: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var id: Int64
|
||||
public var url: String?
|
||||
|
|
@ -2383,16 +2467,22 @@ public extension Api {
|
|||
self.id = id
|
||||
self.url = url
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("webPageEmpty", [("flags", self.flags as Any), ("id", self.id as Any), ("url", self.url as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_webPageNotModified {
|
||||
public class Cons_webPageNotModified: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var cachedPageViews: Int32?
|
||||
public init(flags: Int32, cachedPageViews: Int32?) {
|
||||
self.flags = flags
|
||||
self.cachedPageViews = cachedPageViews
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("webPageNotModified", [("flags", self.flags as Any), ("cachedPageViews", self.cachedPageViews as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_webPagePending {
|
||||
public class Cons_webPagePending: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var id: Int64
|
||||
public var url: String?
|
||||
|
|
@ -2403,6 +2493,9 @@ public extension Api {
|
|||
self.url = url
|
||||
self.date = date
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("webPagePending", [("flags", self.flags as Any), ("id", self.id as Any), ("url", self.url as Any), ("date", self.date as Any)])
|
||||
}
|
||||
}
|
||||
case webPage(Cons_webPage)
|
||||
case webPageEmpty(Cons_webPageEmpty)
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
public extension Api {
|
||||
enum BusinessGreetingMessage: TypeConstructorDescription {
|
||||
public class Cons_businessGreetingMessage {
|
||||
public class Cons_businessGreetingMessage: TypeConstructorDescription {
|
||||
public var shortcutId: Int32
|
||||
public var recipients: Api.BusinessRecipients
|
||||
public var noActivityDays: Int32
|
||||
|
|
@ -9,6 +9,9 @@ public extension Api {
|
|||
self.recipients = recipients
|
||||
self.noActivityDays = noActivityDays
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("businessGreetingMessage", [("shortcutId", self.shortcutId as Any), ("recipients", self.recipients as Any), ("noActivityDays", self.noActivityDays as Any)])
|
||||
}
|
||||
}
|
||||
case businessGreetingMessage(Cons_businessGreetingMessage)
|
||||
|
||||
|
|
@ -55,7 +58,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum BusinessIntro: TypeConstructorDescription {
|
||||
public class Cons_businessIntro {
|
||||
public class Cons_businessIntro: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var title: String
|
||||
public var description: String
|
||||
|
|
@ -66,6 +69,9 @@ public extension Api {
|
|||
self.description = description
|
||||
self.sticker = sticker
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("businessIntro", [("flags", self.flags as Any), ("title", self.title as Any), ("description", self.description as Any), ("sticker", self.sticker as Any)])
|
||||
}
|
||||
}
|
||||
case businessIntro(Cons_businessIntro)
|
||||
|
||||
|
|
@ -120,7 +126,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum BusinessLocation: TypeConstructorDescription {
|
||||
public class Cons_businessLocation {
|
||||
public class Cons_businessLocation: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var geoPoint: Api.GeoPoint?
|
||||
public var address: String
|
||||
|
|
@ -129,6 +135,9 @@ public extension Api {
|
|||
self.geoPoint = geoPoint
|
||||
self.address = address
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("businessLocation", [("flags", self.flags as Any), ("geoPoint", self.geoPoint as Any), ("address", self.address as Any)])
|
||||
}
|
||||
}
|
||||
case businessLocation(Cons_businessLocation)
|
||||
|
||||
|
|
@ -179,13 +188,16 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum BusinessRecipients: TypeConstructorDescription {
|
||||
public class Cons_businessRecipients {
|
||||
public class Cons_businessRecipients: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var users: [Int64]?
|
||||
public init(flags: Int32, users: [Int64]?) {
|
||||
self.flags = flags
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("businessRecipients", [("flags", self.flags as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case businessRecipients(Cons_businessRecipients)
|
||||
|
||||
|
|
@ -236,13 +248,16 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum BusinessWeeklyOpen: TypeConstructorDescription {
|
||||
public class Cons_businessWeeklyOpen {
|
||||
public class Cons_businessWeeklyOpen: TypeConstructorDescription {
|
||||
public var startMinute: Int32
|
||||
public var endMinute: Int32
|
||||
public init(startMinute: Int32, endMinute: Int32) {
|
||||
self.startMinute = startMinute
|
||||
self.endMinute = endMinute
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("businessWeeklyOpen", [("startMinute", self.startMinute as Any), ("endMinute", self.endMinute as Any)])
|
||||
}
|
||||
}
|
||||
case businessWeeklyOpen(Cons_businessWeeklyOpen)
|
||||
|
||||
|
|
@ -283,7 +298,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum BusinessWorkHours: TypeConstructorDescription {
|
||||
public class Cons_businessWorkHours {
|
||||
public class Cons_businessWorkHours: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var timezoneId: String
|
||||
public var weeklyOpen: [Api.BusinessWeeklyOpen]
|
||||
|
|
@ -292,6 +307,9 @@ public extension Api {
|
|||
self.timezoneId = timezoneId
|
||||
self.weeklyOpen = weeklyOpen
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("businessWorkHours", [("flags", self.flags as Any), ("timezoneId", self.timezoneId as Any), ("weeklyOpen", self.weeklyOpen as Any)])
|
||||
}
|
||||
}
|
||||
case businessWorkHours(Cons_businessWorkHours)
|
||||
|
||||
|
|
@ -342,11 +360,14 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum CdnConfig: TypeConstructorDescription {
|
||||
public class Cons_cdnConfig {
|
||||
public class Cons_cdnConfig: TypeConstructorDescription {
|
||||
public var publicKeys: [Api.CdnPublicKey]
|
||||
public init(publicKeys: [Api.CdnPublicKey]) {
|
||||
self.publicKeys = publicKeys
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("cdnConfig", [("publicKeys", self.publicKeys as Any)])
|
||||
}
|
||||
}
|
||||
case cdnConfig(Cons_cdnConfig)
|
||||
|
||||
|
|
@ -389,13 +410,16 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum CdnPublicKey: TypeConstructorDescription {
|
||||
public class Cons_cdnPublicKey {
|
||||
public class Cons_cdnPublicKey: TypeConstructorDescription {
|
||||
public var dcId: Int32
|
||||
public var publicKey: String
|
||||
public init(dcId: Int32, publicKey: String) {
|
||||
self.dcId = dcId
|
||||
self.publicKey = publicKey
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("cdnPublicKey", [("dcId", self.dcId as Any), ("publicKey", self.publicKey as Any)])
|
||||
}
|
||||
}
|
||||
case cdnPublicKey(Cons_cdnPublicKey)
|
||||
|
||||
|
|
@ -436,7 +460,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
indirect enum ChannelAdminLogEvent: TypeConstructorDescription {
|
||||
public class Cons_channelAdminLogEvent {
|
||||
public class Cons_channelAdminLogEvent: TypeConstructorDescription {
|
||||
public var id: Int64
|
||||
public var date: Int32
|
||||
public var userId: Int64
|
||||
|
|
@ -447,6 +471,9 @@ public extension Api {
|
|||
self.userId = userId
|
||||
self.action = action
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channelAdminLogEvent", [("id", self.id as Any), ("date", self.date as Any), ("userId", self.userId as Any), ("action", self.action as Any)])
|
||||
}
|
||||
}
|
||||
case channelAdminLogEvent(Cons_channelAdminLogEvent)
|
||||
|
||||
|
|
@ -497,259 +524,361 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
indirect enum ChannelAdminLogEventAction: TypeConstructorDescription {
|
||||
public class Cons_channelAdminLogEventActionChangeAbout {
|
||||
public class Cons_channelAdminLogEventActionChangeAbout: TypeConstructorDescription {
|
||||
public var prevValue: String
|
||||
public var newValue: String
|
||||
public init(prevValue: String, newValue: String) {
|
||||
self.prevValue = prevValue
|
||||
self.newValue = newValue
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channelAdminLogEventActionChangeAbout", [("prevValue", self.prevValue as Any), ("newValue", self.newValue as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_channelAdminLogEventActionChangeAvailableReactions {
|
||||
public class Cons_channelAdminLogEventActionChangeAvailableReactions: TypeConstructorDescription {
|
||||
public var prevValue: Api.ChatReactions
|
||||
public var newValue: Api.ChatReactions
|
||||
public init(prevValue: Api.ChatReactions, newValue: Api.ChatReactions) {
|
||||
self.prevValue = prevValue
|
||||
self.newValue = newValue
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channelAdminLogEventActionChangeAvailableReactions", [("prevValue", self.prevValue as Any), ("newValue", self.newValue as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_channelAdminLogEventActionChangeEmojiStatus {
|
||||
public class Cons_channelAdminLogEventActionChangeEmojiStatus: TypeConstructorDescription {
|
||||
public var prevValue: Api.EmojiStatus
|
||||
public var newValue: Api.EmojiStatus
|
||||
public init(prevValue: Api.EmojiStatus, newValue: Api.EmojiStatus) {
|
||||
self.prevValue = prevValue
|
||||
self.newValue = newValue
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channelAdminLogEventActionChangeEmojiStatus", [("prevValue", self.prevValue as Any), ("newValue", self.newValue as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_channelAdminLogEventActionChangeEmojiStickerSet {
|
||||
public class Cons_channelAdminLogEventActionChangeEmojiStickerSet: TypeConstructorDescription {
|
||||
public var prevStickerset: Api.InputStickerSet
|
||||
public var newStickerset: Api.InputStickerSet
|
||||
public init(prevStickerset: Api.InputStickerSet, newStickerset: Api.InputStickerSet) {
|
||||
self.prevStickerset = prevStickerset
|
||||
self.newStickerset = newStickerset
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channelAdminLogEventActionChangeEmojiStickerSet", [("prevStickerset", self.prevStickerset as Any), ("newStickerset", self.newStickerset as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_channelAdminLogEventActionChangeHistoryTTL {
|
||||
public class Cons_channelAdminLogEventActionChangeHistoryTTL: TypeConstructorDescription {
|
||||
public var prevValue: Int32
|
||||
public var newValue: Int32
|
||||
public init(prevValue: Int32, newValue: Int32) {
|
||||
self.prevValue = prevValue
|
||||
self.newValue = newValue
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channelAdminLogEventActionChangeHistoryTTL", [("prevValue", self.prevValue as Any), ("newValue", self.newValue as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_channelAdminLogEventActionChangeLinkedChat {
|
||||
public class Cons_channelAdminLogEventActionChangeLinkedChat: TypeConstructorDescription {
|
||||
public var prevValue: Int64
|
||||
public var newValue: Int64
|
||||
public init(prevValue: Int64, newValue: Int64) {
|
||||
self.prevValue = prevValue
|
||||
self.newValue = newValue
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channelAdminLogEventActionChangeLinkedChat", [("prevValue", self.prevValue as Any), ("newValue", self.newValue as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_channelAdminLogEventActionChangeLocation {
|
||||
public class Cons_channelAdminLogEventActionChangeLocation: TypeConstructorDescription {
|
||||
public var prevValue: Api.ChannelLocation
|
||||
public var newValue: Api.ChannelLocation
|
||||
public init(prevValue: Api.ChannelLocation, newValue: Api.ChannelLocation) {
|
||||
self.prevValue = prevValue
|
||||
self.newValue = newValue
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channelAdminLogEventActionChangeLocation", [("prevValue", self.prevValue as Any), ("newValue", self.newValue as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_channelAdminLogEventActionChangePeerColor {
|
||||
public class Cons_channelAdminLogEventActionChangePeerColor: TypeConstructorDescription {
|
||||
public var prevValue: Api.PeerColor
|
||||
public var newValue: Api.PeerColor
|
||||
public init(prevValue: Api.PeerColor, newValue: Api.PeerColor) {
|
||||
self.prevValue = prevValue
|
||||
self.newValue = newValue
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channelAdminLogEventActionChangePeerColor", [("prevValue", self.prevValue as Any), ("newValue", self.newValue as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_channelAdminLogEventActionChangePhoto {
|
||||
public class Cons_channelAdminLogEventActionChangePhoto: TypeConstructorDescription {
|
||||
public var prevPhoto: Api.Photo
|
||||
public var newPhoto: Api.Photo
|
||||
public init(prevPhoto: Api.Photo, newPhoto: Api.Photo) {
|
||||
self.prevPhoto = prevPhoto
|
||||
self.newPhoto = newPhoto
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channelAdminLogEventActionChangePhoto", [("prevPhoto", self.prevPhoto as Any), ("newPhoto", self.newPhoto as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_channelAdminLogEventActionChangeProfilePeerColor {
|
||||
public class Cons_channelAdminLogEventActionChangeProfilePeerColor: TypeConstructorDescription {
|
||||
public var prevValue: Api.PeerColor
|
||||
public var newValue: Api.PeerColor
|
||||
public init(prevValue: Api.PeerColor, newValue: Api.PeerColor) {
|
||||
self.prevValue = prevValue
|
||||
self.newValue = newValue
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channelAdminLogEventActionChangeProfilePeerColor", [("prevValue", self.prevValue as Any), ("newValue", self.newValue as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_channelAdminLogEventActionChangeStickerSet {
|
||||
public class Cons_channelAdminLogEventActionChangeStickerSet: TypeConstructorDescription {
|
||||
public var prevStickerset: Api.InputStickerSet
|
||||
public var newStickerset: Api.InputStickerSet
|
||||
public init(prevStickerset: Api.InputStickerSet, newStickerset: Api.InputStickerSet) {
|
||||
self.prevStickerset = prevStickerset
|
||||
self.newStickerset = newStickerset
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channelAdminLogEventActionChangeStickerSet", [("prevStickerset", self.prevStickerset as Any), ("newStickerset", self.newStickerset as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_channelAdminLogEventActionChangeTitle {
|
||||
public class Cons_channelAdminLogEventActionChangeTitle: TypeConstructorDescription {
|
||||
public var prevValue: String
|
||||
public var newValue: String
|
||||
public init(prevValue: String, newValue: String) {
|
||||
self.prevValue = prevValue
|
||||
self.newValue = newValue
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channelAdminLogEventActionChangeTitle", [("prevValue", self.prevValue as Any), ("newValue", self.newValue as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_channelAdminLogEventActionChangeUsername {
|
||||
public class Cons_channelAdminLogEventActionChangeUsername: TypeConstructorDescription {
|
||||
public var prevValue: String
|
||||
public var newValue: String
|
||||
public init(prevValue: String, newValue: String) {
|
||||
self.prevValue = prevValue
|
||||
self.newValue = newValue
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channelAdminLogEventActionChangeUsername", [("prevValue", self.prevValue as Any), ("newValue", self.newValue as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_channelAdminLogEventActionChangeUsernames {
|
||||
public class Cons_channelAdminLogEventActionChangeUsernames: TypeConstructorDescription {
|
||||
public var prevValue: [String]
|
||||
public var newValue: [String]
|
||||
public init(prevValue: [String], newValue: [String]) {
|
||||
self.prevValue = prevValue
|
||||
self.newValue = newValue
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channelAdminLogEventActionChangeUsernames", [("prevValue", self.prevValue as Any), ("newValue", self.newValue as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_channelAdminLogEventActionChangeWallpaper {
|
||||
public class Cons_channelAdminLogEventActionChangeWallpaper: TypeConstructorDescription {
|
||||
public var prevValue: Api.WallPaper
|
||||
public var newValue: Api.WallPaper
|
||||
public init(prevValue: Api.WallPaper, newValue: Api.WallPaper) {
|
||||
self.prevValue = prevValue
|
||||
self.newValue = newValue
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channelAdminLogEventActionChangeWallpaper", [("prevValue", self.prevValue as Any), ("newValue", self.newValue as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_channelAdminLogEventActionCreateTopic {
|
||||
public class Cons_channelAdminLogEventActionCreateTopic: TypeConstructorDescription {
|
||||
public var topic: Api.ForumTopic
|
||||
public init(topic: Api.ForumTopic) {
|
||||
self.topic = topic
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channelAdminLogEventActionCreateTopic", [("topic", self.topic as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_channelAdminLogEventActionDefaultBannedRights {
|
||||
public class Cons_channelAdminLogEventActionDefaultBannedRights: TypeConstructorDescription {
|
||||
public var prevBannedRights: Api.ChatBannedRights
|
||||
public var newBannedRights: Api.ChatBannedRights
|
||||
public init(prevBannedRights: Api.ChatBannedRights, newBannedRights: Api.ChatBannedRights) {
|
||||
self.prevBannedRights = prevBannedRights
|
||||
self.newBannedRights = newBannedRights
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channelAdminLogEventActionDefaultBannedRights", [("prevBannedRights", self.prevBannedRights as Any), ("newBannedRights", self.newBannedRights as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_channelAdminLogEventActionDeleteMessage {
|
||||
public class Cons_channelAdminLogEventActionDeleteMessage: TypeConstructorDescription {
|
||||
public var message: Api.Message
|
||||
public init(message: Api.Message) {
|
||||
self.message = message
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channelAdminLogEventActionDeleteMessage", [("message", self.message as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_channelAdminLogEventActionDeleteTopic {
|
||||
public class Cons_channelAdminLogEventActionDeleteTopic: TypeConstructorDescription {
|
||||
public var topic: Api.ForumTopic
|
||||
public init(topic: Api.ForumTopic) {
|
||||
self.topic = topic
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channelAdminLogEventActionDeleteTopic", [("topic", self.topic as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_channelAdminLogEventActionDiscardGroupCall {
|
||||
public class Cons_channelAdminLogEventActionDiscardGroupCall: TypeConstructorDescription {
|
||||
public var call: Api.InputGroupCall
|
||||
public init(call: Api.InputGroupCall) {
|
||||
self.call = call
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channelAdminLogEventActionDiscardGroupCall", [("call", self.call as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_channelAdminLogEventActionEditMessage {
|
||||
public class Cons_channelAdminLogEventActionEditMessage: TypeConstructorDescription {
|
||||
public var prevMessage: Api.Message
|
||||
public var newMessage: Api.Message
|
||||
public init(prevMessage: Api.Message, newMessage: Api.Message) {
|
||||
self.prevMessage = prevMessage
|
||||
self.newMessage = newMessage
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channelAdminLogEventActionEditMessage", [("prevMessage", self.prevMessage as Any), ("newMessage", self.newMessage as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_channelAdminLogEventActionEditTopic {
|
||||
public class Cons_channelAdminLogEventActionEditTopic: TypeConstructorDescription {
|
||||
public var prevTopic: Api.ForumTopic
|
||||
public var newTopic: Api.ForumTopic
|
||||
public init(prevTopic: Api.ForumTopic, newTopic: Api.ForumTopic) {
|
||||
self.prevTopic = prevTopic
|
||||
self.newTopic = newTopic
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channelAdminLogEventActionEditTopic", [("prevTopic", self.prevTopic as Any), ("newTopic", self.newTopic as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_channelAdminLogEventActionExportedInviteDelete {
|
||||
public class Cons_channelAdminLogEventActionExportedInviteDelete: TypeConstructorDescription {
|
||||
public var invite: Api.ExportedChatInvite
|
||||
public init(invite: Api.ExportedChatInvite) {
|
||||
self.invite = invite
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channelAdminLogEventActionExportedInviteDelete", [("invite", self.invite as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_channelAdminLogEventActionExportedInviteEdit {
|
||||
public class Cons_channelAdminLogEventActionExportedInviteEdit: TypeConstructorDescription {
|
||||
public var prevInvite: Api.ExportedChatInvite
|
||||
public var newInvite: Api.ExportedChatInvite
|
||||
public init(prevInvite: Api.ExportedChatInvite, newInvite: Api.ExportedChatInvite) {
|
||||
self.prevInvite = prevInvite
|
||||
self.newInvite = newInvite
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channelAdminLogEventActionExportedInviteEdit", [("prevInvite", self.prevInvite as Any), ("newInvite", self.newInvite as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_channelAdminLogEventActionExportedInviteRevoke {
|
||||
public class Cons_channelAdminLogEventActionExportedInviteRevoke: TypeConstructorDescription {
|
||||
public var invite: Api.ExportedChatInvite
|
||||
public init(invite: Api.ExportedChatInvite) {
|
||||
self.invite = invite
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channelAdminLogEventActionExportedInviteRevoke", [("invite", self.invite as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_channelAdminLogEventActionParticipantInvite {
|
||||
public class Cons_channelAdminLogEventActionParticipantInvite: TypeConstructorDescription {
|
||||
public var participant: Api.ChannelParticipant
|
||||
public init(participant: Api.ChannelParticipant) {
|
||||
self.participant = participant
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channelAdminLogEventActionParticipantInvite", [("participant", self.participant as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_channelAdminLogEventActionParticipantJoinByInvite {
|
||||
public class Cons_channelAdminLogEventActionParticipantJoinByInvite: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var invite: Api.ExportedChatInvite
|
||||
public init(flags: Int32, invite: Api.ExportedChatInvite) {
|
||||
self.flags = flags
|
||||
self.invite = invite
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channelAdminLogEventActionParticipantJoinByInvite", [("flags", self.flags as Any), ("invite", self.invite as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_channelAdminLogEventActionParticipantJoinByRequest {
|
||||
public class Cons_channelAdminLogEventActionParticipantJoinByRequest: TypeConstructorDescription {
|
||||
public var invite: Api.ExportedChatInvite
|
||||
public var approvedBy: Int64
|
||||
public init(invite: Api.ExportedChatInvite, approvedBy: Int64) {
|
||||
self.invite = invite
|
||||
self.approvedBy = approvedBy
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channelAdminLogEventActionParticipantJoinByRequest", [("invite", self.invite as Any), ("approvedBy", self.approvedBy as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_channelAdminLogEventActionParticipantMute {
|
||||
public class Cons_channelAdminLogEventActionParticipantMute: TypeConstructorDescription {
|
||||
public var participant: Api.GroupCallParticipant
|
||||
public init(participant: Api.GroupCallParticipant) {
|
||||
self.participant = participant
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channelAdminLogEventActionParticipantMute", [("participant", self.participant as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_channelAdminLogEventActionParticipantSubExtend {
|
||||
public class Cons_channelAdminLogEventActionParticipantSubExtend: TypeConstructorDescription {
|
||||
public var prevParticipant: Api.ChannelParticipant
|
||||
public var newParticipant: Api.ChannelParticipant
|
||||
public init(prevParticipant: Api.ChannelParticipant, newParticipant: Api.ChannelParticipant) {
|
||||
self.prevParticipant = prevParticipant
|
||||
self.newParticipant = newParticipant
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channelAdminLogEventActionParticipantSubExtend", [("prevParticipant", self.prevParticipant as Any), ("newParticipant", self.newParticipant as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_channelAdminLogEventActionParticipantToggleAdmin {
|
||||
public class Cons_channelAdminLogEventActionParticipantToggleAdmin: TypeConstructorDescription {
|
||||
public var prevParticipant: Api.ChannelParticipant
|
||||
public var newParticipant: Api.ChannelParticipant
|
||||
public init(prevParticipant: Api.ChannelParticipant, newParticipant: Api.ChannelParticipant) {
|
||||
self.prevParticipant = prevParticipant
|
||||
self.newParticipant = newParticipant
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channelAdminLogEventActionParticipantToggleAdmin", [("prevParticipant", self.prevParticipant as Any), ("newParticipant", self.newParticipant as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_channelAdminLogEventActionParticipantToggleBan {
|
||||
public class Cons_channelAdminLogEventActionParticipantToggleBan: TypeConstructorDescription {
|
||||
public var prevParticipant: Api.ChannelParticipant
|
||||
public var newParticipant: Api.ChannelParticipant
|
||||
public init(prevParticipant: Api.ChannelParticipant, newParticipant: Api.ChannelParticipant) {
|
||||
self.prevParticipant = prevParticipant
|
||||
self.newParticipant = newParticipant
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channelAdminLogEventActionParticipantToggleBan", [("prevParticipant", self.prevParticipant as Any), ("newParticipant", self.newParticipant as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_channelAdminLogEventActionParticipantUnmute {
|
||||
public class Cons_channelAdminLogEventActionParticipantUnmute: TypeConstructorDescription {
|
||||
public var participant: Api.GroupCallParticipant
|
||||
public init(participant: Api.GroupCallParticipant) {
|
||||
self.participant = participant
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channelAdminLogEventActionParticipantUnmute", [("participant", self.participant as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_channelAdminLogEventActionParticipantVolume {
|
||||
public class Cons_channelAdminLogEventActionParticipantVolume: TypeConstructorDescription {
|
||||
public var participant: Api.GroupCallParticipant
|
||||
public init(participant: Api.GroupCallParticipant) {
|
||||
self.participant = participant
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channelAdminLogEventActionParticipantVolume", [("participant", self.participant as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_channelAdminLogEventActionPinTopic {
|
||||
public class Cons_channelAdminLogEventActionPinTopic: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var prevTopic: Api.ForumTopic?
|
||||
public var newTopic: Api.ForumTopic?
|
||||
|
|
@ -758,92 +887,137 @@ public extension Api {
|
|||
self.prevTopic = prevTopic
|
||||
self.newTopic = newTopic
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channelAdminLogEventActionPinTopic", [("flags", self.flags as Any), ("prevTopic", self.prevTopic as Any), ("newTopic", self.newTopic as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_channelAdminLogEventActionSendMessage {
|
||||
public class Cons_channelAdminLogEventActionSendMessage: TypeConstructorDescription {
|
||||
public var message: Api.Message
|
||||
public init(message: Api.Message) {
|
||||
self.message = message
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channelAdminLogEventActionSendMessage", [("message", self.message as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_channelAdminLogEventActionStartGroupCall {
|
||||
public class Cons_channelAdminLogEventActionStartGroupCall: TypeConstructorDescription {
|
||||
public var call: Api.InputGroupCall
|
||||
public init(call: Api.InputGroupCall) {
|
||||
self.call = call
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channelAdminLogEventActionStartGroupCall", [("call", self.call as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_channelAdminLogEventActionStopPoll {
|
||||
public class Cons_channelAdminLogEventActionStopPoll: TypeConstructorDescription {
|
||||
public var message: Api.Message
|
||||
public init(message: Api.Message) {
|
||||
self.message = message
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channelAdminLogEventActionStopPoll", [("message", self.message as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_channelAdminLogEventActionToggleAntiSpam {
|
||||
public class Cons_channelAdminLogEventActionToggleAntiSpam: TypeConstructorDescription {
|
||||
public var newValue: Api.Bool
|
||||
public init(newValue: Api.Bool) {
|
||||
self.newValue = newValue
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channelAdminLogEventActionToggleAntiSpam", [("newValue", self.newValue as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_channelAdminLogEventActionToggleAutotranslation {
|
||||
public class Cons_channelAdminLogEventActionToggleAutotranslation: TypeConstructorDescription {
|
||||
public var newValue: Api.Bool
|
||||
public init(newValue: Api.Bool) {
|
||||
self.newValue = newValue
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channelAdminLogEventActionToggleAutotranslation", [("newValue", self.newValue as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_channelAdminLogEventActionToggleForum {
|
||||
public class Cons_channelAdminLogEventActionToggleForum: TypeConstructorDescription {
|
||||
public var newValue: Api.Bool
|
||||
public init(newValue: Api.Bool) {
|
||||
self.newValue = newValue
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channelAdminLogEventActionToggleForum", [("newValue", self.newValue as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_channelAdminLogEventActionToggleGroupCallSetting {
|
||||
public class Cons_channelAdminLogEventActionToggleGroupCallSetting: TypeConstructorDescription {
|
||||
public var joinMuted: Api.Bool
|
||||
public init(joinMuted: Api.Bool) {
|
||||
self.joinMuted = joinMuted
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channelAdminLogEventActionToggleGroupCallSetting", [("joinMuted", self.joinMuted as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_channelAdminLogEventActionToggleInvites {
|
||||
public class Cons_channelAdminLogEventActionToggleInvites: TypeConstructorDescription {
|
||||
public var newValue: Api.Bool
|
||||
public init(newValue: Api.Bool) {
|
||||
self.newValue = newValue
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channelAdminLogEventActionToggleInvites", [("newValue", self.newValue as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_channelAdminLogEventActionToggleNoForwards {
|
||||
public class Cons_channelAdminLogEventActionToggleNoForwards: TypeConstructorDescription {
|
||||
public var newValue: Api.Bool
|
||||
public init(newValue: Api.Bool) {
|
||||
self.newValue = newValue
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channelAdminLogEventActionToggleNoForwards", [("newValue", self.newValue as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_channelAdminLogEventActionTogglePreHistoryHidden {
|
||||
public class Cons_channelAdminLogEventActionTogglePreHistoryHidden: TypeConstructorDescription {
|
||||
public var newValue: Api.Bool
|
||||
public init(newValue: Api.Bool) {
|
||||
self.newValue = newValue
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channelAdminLogEventActionTogglePreHistoryHidden", [("newValue", self.newValue as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_channelAdminLogEventActionToggleSignatureProfiles {
|
||||
public class Cons_channelAdminLogEventActionToggleSignatureProfiles: TypeConstructorDescription {
|
||||
public var newValue: Api.Bool
|
||||
public init(newValue: Api.Bool) {
|
||||
self.newValue = newValue
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channelAdminLogEventActionToggleSignatureProfiles", [("newValue", self.newValue as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_channelAdminLogEventActionToggleSignatures {
|
||||
public class Cons_channelAdminLogEventActionToggleSignatures: TypeConstructorDescription {
|
||||
public var newValue: Api.Bool
|
||||
public init(newValue: Api.Bool) {
|
||||
self.newValue = newValue
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channelAdminLogEventActionToggleSignatures", [("newValue", self.newValue as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_channelAdminLogEventActionToggleSlowMode {
|
||||
public class Cons_channelAdminLogEventActionToggleSlowMode: TypeConstructorDescription {
|
||||
public var prevValue: Int32
|
||||
public var newValue: Int32
|
||||
public init(prevValue: Int32, newValue: Int32) {
|
||||
self.prevValue = prevValue
|
||||
self.newValue = newValue
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channelAdminLogEventActionToggleSlowMode", [("prevValue", self.prevValue as Any), ("newValue", self.newValue as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_channelAdminLogEventActionUpdatePinned {
|
||||
public class Cons_channelAdminLogEventActionUpdatePinned: TypeConstructorDescription {
|
||||
public var message: Api.Message
|
||||
public init(message: Api.Message) {
|
||||
self.message = message
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channelAdminLogEventActionUpdatePinned", [("message", self.message as Any)])
|
||||
}
|
||||
}
|
||||
case channelAdminLogEventActionChangeAbout(Cons_channelAdminLogEventActionChangeAbout)
|
||||
case channelAdminLogEventActionChangeAvailableReactions(Cons_channelAdminLogEventActionChangeAvailableReactions)
|
||||
|
|
|
|||
|
|
@ -1,28 +1,37 @@
|
|||
public extension Api {
|
||||
indirect enum WebPageAttribute: TypeConstructorDescription {
|
||||
public class Cons_webPageAttributeStarGiftAuction {
|
||||
public class Cons_webPageAttributeStarGiftAuction: TypeConstructorDescription {
|
||||
public var gift: Api.StarGift
|
||||
public var endDate: Int32
|
||||
public init(gift: Api.StarGift, endDate: Int32) {
|
||||
self.gift = gift
|
||||
self.endDate = endDate
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("webPageAttributeStarGiftAuction", [("gift", self.gift as Any), ("endDate", self.endDate as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_webPageAttributeStarGiftCollection {
|
||||
public class Cons_webPageAttributeStarGiftCollection: TypeConstructorDescription {
|
||||
public var icons: [Api.Document]
|
||||
public init(icons: [Api.Document]) {
|
||||
self.icons = icons
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("webPageAttributeStarGiftCollection", [("icons", self.icons as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_webPageAttributeStickerSet {
|
||||
public class Cons_webPageAttributeStickerSet: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var stickers: [Api.Document]
|
||||
public init(flags: Int32, stickers: [Api.Document]) {
|
||||
self.flags = flags
|
||||
self.stickers = stickers
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("webPageAttributeStickerSet", [("flags", self.flags as Any), ("stickers", self.stickers as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_webPageAttributeStory {
|
||||
public class Cons_webPageAttributeStory: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var peer: Api.Peer
|
||||
public var id: Int32
|
||||
|
|
@ -33,8 +42,11 @@ public extension Api {
|
|||
self.id = id
|
||||
self.story = story
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("webPageAttributeStory", [("flags", self.flags as Any), ("peer", self.peer as Any), ("id", self.id as Any), ("story", self.story as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_webPageAttributeTheme {
|
||||
public class Cons_webPageAttributeTheme: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var documents: [Api.Document]?
|
||||
public var settings: Api.ThemeSettings?
|
||||
|
|
@ -43,12 +55,18 @@ public extension Api {
|
|||
self.documents = documents
|
||||
self.settings = settings
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("webPageAttributeTheme", [("flags", self.flags as Any), ("documents", self.documents as Any), ("settings", self.settings as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_webPageAttributeUniqueStarGift {
|
||||
public class Cons_webPageAttributeUniqueStarGift: TypeConstructorDescription {
|
||||
public var gift: Api.StarGift
|
||||
public init(gift: Api.StarGift) {
|
||||
self.gift = gift
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("webPageAttributeUniqueStarGift", [("gift", self.gift as Any)])
|
||||
}
|
||||
}
|
||||
case webPageAttributeStarGiftAuction(Cons_webPageAttributeStarGiftAuction)
|
||||
case webPageAttributeStarGiftCollection(Cons_webPageAttributeStarGiftCollection)
|
||||
|
|
@ -253,13 +271,16 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum WebViewMessageSent: TypeConstructorDescription {
|
||||
public class Cons_webViewMessageSent {
|
||||
public class Cons_webViewMessageSent: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var msgId: Api.InputBotInlineMessageID?
|
||||
public init(flags: Int32, msgId: Api.InputBotInlineMessageID?) {
|
||||
self.flags = flags
|
||||
self.msgId = msgId
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("webViewMessageSent", [("flags", self.flags as Any), ("msgId", self.msgId as Any)])
|
||||
}
|
||||
}
|
||||
case webViewMessageSent(Cons_webViewMessageSent)
|
||||
|
||||
|
|
@ -306,7 +327,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum WebViewResult: TypeConstructorDescription {
|
||||
public class Cons_webViewResultUrl {
|
||||
public class Cons_webViewResultUrl: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var queryId: Int64?
|
||||
public var url: String
|
||||
|
|
@ -315,6 +336,9 @@ public extension Api {
|
|||
self.queryId = queryId
|
||||
self.url = url
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("webViewResultUrl", [("flags", self.flags as Any), ("queryId", self.queryId as Any), ("url", self.url as Any)])
|
||||
}
|
||||
}
|
||||
case webViewResultUrl(Cons_webViewResultUrl)
|
||||
|
||||
|
|
@ -363,7 +387,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api.account {
|
||||
enum AuthorizationForm: TypeConstructorDescription {
|
||||
public class Cons_authorizationForm {
|
||||
public class Cons_authorizationForm: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var requiredTypes: [Api.SecureRequiredType]
|
||||
public var values: [Api.SecureValue]
|
||||
|
|
@ -378,6 +402,9 @@ public extension Api.account {
|
|||
self.users = users
|
||||
self.privacyPolicyUrl = privacyPolicyUrl
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("authorizationForm", [("flags", self.flags as Any), ("requiredTypes", self.requiredTypes as Any), ("values", self.values as Any), ("errors", self.errors as Any), ("users", self.users as Any), ("privacyPolicyUrl", self.privacyPolicyUrl as Any)])
|
||||
}
|
||||
}
|
||||
case authorizationForm(Cons_authorizationForm)
|
||||
|
||||
|
|
@ -462,13 +489,16 @@ public extension Api.account {
|
|||
}
|
||||
public extension Api.account {
|
||||
enum Authorizations: TypeConstructorDescription {
|
||||
public class Cons_authorizations {
|
||||
public class Cons_authorizations: TypeConstructorDescription {
|
||||
public var authorizationTtlDays: Int32
|
||||
public var authorizations: [Api.Authorization]
|
||||
public init(authorizationTtlDays: Int32, authorizations: [Api.Authorization]) {
|
||||
self.authorizationTtlDays = authorizationTtlDays
|
||||
self.authorizations = authorizations
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("authorizations", [("authorizationTtlDays", self.authorizationTtlDays as Any), ("authorizations", self.authorizations as Any)])
|
||||
}
|
||||
}
|
||||
case authorizations(Cons_authorizations)
|
||||
|
||||
|
|
@ -515,7 +545,7 @@ public extension Api.account {
|
|||
}
|
||||
public extension Api.account {
|
||||
enum AutoDownloadSettings: TypeConstructorDescription {
|
||||
public class Cons_autoDownloadSettings {
|
||||
public class Cons_autoDownloadSettings: TypeConstructorDescription {
|
||||
public var low: Api.AutoDownloadSettings
|
||||
public var medium: Api.AutoDownloadSettings
|
||||
public var high: Api.AutoDownloadSettings
|
||||
|
|
@ -524,6 +554,9 @@ public extension Api.account {
|
|||
self.medium = medium
|
||||
self.high = high
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("autoDownloadSettings", [("low", self.low as Any), ("medium", self.medium as Any), ("high", self.high as Any)])
|
||||
}
|
||||
}
|
||||
case autoDownloadSettings(Cons_autoDownloadSettings)
|
||||
|
||||
|
|
@ -574,7 +607,7 @@ public extension Api.account {
|
|||
}
|
||||
public extension Api.account {
|
||||
enum AutoSaveSettings: TypeConstructorDescription {
|
||||
public class Cons_autoSaveSettings {
|
||||
public class Cons_autoSaveSettings: TypeConstructorDescription {
|
||||
public var usersSettings: Api.AutoSaveSettings
|
||||
public var chatsSettings: Api.AutoSaveSettings
|
||||
public var broadcastsSettings: Api.AutoSaveSettings
|
||||
|
|
@ -589,6 +622,9 @@ public extension Api.account {
|
|||
self.chats = chats
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("autoSaveSettings", [("usersSettings", self.usersSettings as Any), ("chatsSettings", self.chatsSettings as Any), ("broadcastsSettings", self.broadcastsSettings as Any), ("exceptions", self.exceptions as Any), ("chats", self.chats as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case autoSaveSettings(Cons_autoSaveSettings)
|
||||
|
||||
|
|
@ -669,7 +705,7 @@ public extension Api.account {
|
|||
}
|
||||
public extension Api.account {
|
||||
enum BusinessChatLinks: TypeConstructorDescription {
|
||||
public class Cons_businessChatLinks {
|
||||
public class Cons_businessChatLinks: TypeConstructorDescription {
|
||||
public var links: [Api.BusinessChatLink]
|
||||
public var chats: [Api.Chat]
|
||||
public var users: [Api.User]
|
||||
|
|
@ -678,6 +714,9 @@ public extension Api.account {
|
|||
self.chats = chats
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("businessChatLinks", [("links", self.links as Any), ("chats", self.chats as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case businessChatLinks(Cons_businessChatLinks)
|
||||
|
||||
|
|
@ -740,7 +779,7 @@ public extension Api.account {
|
|||
}
|
||||
public extension Api.account {
|
||||
enum ChatThemes: TypeConstructorDescription {
|
||||
public class Cons_chatThemes {
|
||||
public class Cons_chatThemes: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var hash: Int64
|
||||
public var themes: [Api.ChatTheme]
|
||||
|
|
@ -755,6 +794,9 @@ public extension Api.account {
|
|||
self.users = users
|
||||
self.nextOffset = nextOffset
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("chatThemes", [("flags", self.flags as Any), ("hash", self.hash as Any), ("themes", self.themes as Any), ("chats", self.chats as Any), ("users", self.users as Any), ("nextOffset", self.nextOffset as Any)])
|
||||
}
|
||||
}
|
||||
case chatThemes(Cons_chatThemes)
|
||||
case chatThemesNotModified
|
||||
|
|
@ -844,13 +886,16 @@ public extension Api.account {
|
|||
}
|
||||
public extension Api.account {
|
||||
enum ConnectedBots: TypeConstructorDescription {
|
||||
public class Cons_connectedBots {
|
||||
public class Cons_connectedBots: TypeConstructorDescription {
|
||||
public var connectedBots: [Api.ConnectedBot]
|
||||
public var users: [Api.User]
|
||||
public init(connectedBots: [Api.ConnectedBot], users: [Api.User]) {
|
||||
self.connectedBots = connectedBots
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("connectedBots", [("connectedBots", self.connectedBots as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case connectedBots(Cons_connectedBots)
|
||||
|
||||
|
|
@ -903,11 +948,14 @@ public extension Api.account {
|
|||
}
|
||||
public extension Api.account {
|
||||
enum ContentSettings: TypeConstructorDescription {
|
||||
public class Cons_contentSettings {
|
||||
public class Cons_contentSettings: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public init(flags: Int32) {
|
||||
self.flags = flags
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("contentSettings", [("flags", self.flags as Any)])
|
||||
}
|
||||
}
|
||||
case contentSettings(Cons_contentSettings)
|
||||
|
||||
|
|
@ -944,19 +992,25 @@ public extension Api.account {
|
|||
}
|
||||
public extension Api.account {
|
||||
enum EmailVerified: TypeConstructorDescription {
|
||||
public class Cons_emailVerified {
|
||||
public class Cons_emailVerified: TypeConstructorDescription {
|
||||
public var email: String
|
||||
public init(email: String) {
|
||||
self.email = email
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("emailVerified", [("email", self.email as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_emailVerifiedLogin {
|
||||
public class Cons_emailVerifiedLogin: TypeConstructorDescription {
|
||||
public var email: String
|
||||
public var sentCode: Api.auth.SentCode
|
||||
public init(email: String, sentCode: Api.auth.SentCode) {
|
||||
self.email = email
|
||||
self.sentCode = sentCode
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("emailVerifiedLogin", [("email", self.email as Any), ("sentCode", self.sentCode as Any)])
|
||||
}
|
||||
}
|
||||
case emailVerified(Cons_emailVerified)
|
||||
case emailVerifiedLogin(Cons_emailVerifiedLogin)
|
||||
|
|
@ -1019,13 +1073,16 @@ public extension Api.account {
|
|||
}
|
||||
public extension Api.account {
|
||||
enum EmojiStatuses: TypeConstructorDescription {
|
||||
public class Cons_emojiStatuses {
|
||||
public class Cons_emojiStatuses: TypeConstructorDescription {
|
||||
public var hash: Int64
|
||||
public var statuses: [Api.EmojiStatus]
|
||||
public init(hash: Int64, statuses: [Api.EmojiStatus]) {
|
||||
self.hash = hash
|
||||
self.statuses = statuses
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("emojiStatuses", [("hash", self.hash as Any), ("statuses", self.statuses as Any)])
|
||||
}
|
||||
}
|
||||
case emojiStatuses(Cons_emojiStatuses)
|
||||
case emojiStatusesNotModified
|
||||
|
|
@ -1083,11 +1140,14 @@ public extension Api.account {
|
|||
}
|
||||
public extension Api.account {
|
||||
enum PaidMessagesRevenue: TypeConstructorDescription {
|
||||
public class Cons_paidMessagesRevenue {
|
||||
public class Cons_paidMessagesRevenue: TypeConstructorDescription {
|
||||
public var starsAmount: Int64
|
||||
public init(starsAmount: Int64) {
|
||||
self.starsAmount = starsAmount
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("paidMessagesRevenue", [("starsAmount", self.starsAmount as Any)])
|
||||
}
|
||||
}
|
||||
case paidMessagesRevenue(Cons_paidMessagesRevenue)
|
||||
|
||||
|
|
@ -1124,11 +1184,14 @@ public extension Api.account {
|
|||
}
|
||||
public extension Api.account {
|
||||
enum PasskeyRegistrationOptions: TypeConstructorDescription {
|
||||
public class Cons_passkeyRegistrationOptions {
|
||||
public class Cons_passkeyRegistrationOptions: TypeConstructorDescription {
|
||||
public var options: Api.DataJSON
|
||||
public init(options: Api.DataJSON) {
|
||||
self.options = options
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("passkeyRegistrationOptions", [("options", self.options as Any)])
|
||||
}
|
||||
}
|
||||
case passkeyRegistrationOptions(Cons_passkeyRegistrationOptions)
|
||||
|
||||
|
|
@ -1167,11 +1230,14 @@ public extension Api.account {
|
|||
}
|
||||
public extension Api.account {
|
||||
enum Passkeys: TypeConstructorDescription {
|
||||
public class Cons_passkeys {
|
||||
public class Cons_passkeys: TypeConstructorDescription {
|
||||
public var passkeys: [Api.Passkey]
|
||||
public init(passkeys: [Api.Passkey]) {
|
||||
self.passkeys = passkeys
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("passkeys", [("passkeys", self.passkeys as Any)])
|
||||
}
|
||||
}
|
||||
case passkeys(Cons_passkeys)
|
||||
|
||||
|
|
@ -1214,7 +1280,7 @@ public extension Api.account {
|
|||
}
|
||||
public extension Api.account {
|
||||
enum Password: TypeConstructorDescription {
|
||||
public class Cons_password {
|
||||
public class Cons_password: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var currentAlgo: Api.PasswordKdfAlgo?
|
||||
public var srpB: Buffer?
|
||||
|
|
@ -1239,6 +1305,9 @@ public extension Api.account {
|
|||
self.pendingResetDate = pendingResetDate
|
||||
self.loginEmailPattern = loginEmailPattern
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("password", [("flags", self.flags as Any), ("currentAlgo", self.currentAlgo as Any), ("srpB", self.srpB as Any), ("srpId", self.srpId as Any), ("hint", self.hint as Any), ("emailUnconfirmedPattern", self.emailUnconfirmedPattern as Any), ("newAlgo", self.newAlgo as Any), ("newSecureAlgo", self.newSecureAlgo as Any), ("secureRandom", self.secureRandom as Any), ("pendingResetDate", self.pendingResetDate as Any), ("loginEmailPattern", self.loginEmailPattern as Any)])
|
||||
}
|
||||
}
|
||||
case password(Cons_password)
|
||||
|
||||
|
|
@ -1349,7 +1418,7 @@ public extension Api.account {
|
|||
}
|
||||
public extension Api.account {
|
||||
enum PasswordInputSettings: TypeConstructorDescription {
|
||||
public class Cons_passwordInputSettings {
|
||||
public class Cons_passwordInputSettings: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var newAlgo: Api.PasswordKdfAlgo?
|
||||
public var newPasswordHash: Buffer?
|
||||
|
|
@ -1364,6 +1433,9 @@ public extension Api.account {
|
|||
self.email = email
|
||||
self.newSecureSettings = newSecureSettings
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("passwordInputSettings", [("flags", self.flags as Any), ("newAlgo", self.newAlgo as Any), ("newPasswordHash", self.newPasswordHash as Any), ("hint", self.hint as Any), ("email", self.email as Any), ("newSecureSettings", self.newSecureSettings as Any)])
|
||||
}
|
||||
}
|
||||
case passwordInputSettings(Cons_passwordInputSettings)
|
||||
|
||||
|
|
@ -1444,7 +1516,7 @@ public extension Api.account {
|
|||
}
|
||||
public extension Api.account {
|
||||
enum PasswordSettings: TypeConstructorDescription {
|
||||
public class Cons_passwordSettings {
|
||||
public class Cons_passwordSettings: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var email: String?
|
||||
public var secureSettings: Api.SecureSecretSettings?
|
||||
|
|
@ -1453,6 +1525,9 @@ public extension Api.account {
|
|||
self.email = email
|
||||
self.secureSettings = secureSettings
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("passwordSettings", [("flags", self.flags as Any), ("email", self.email as Any), ("secureSettings", self.secureSettings as Any)])
|
||||
}
|
||||
}
|
||||
case passwordSettings(Cons_passwordSettings)
|
||||
|
||||
|
|
@ -1507,7 +1582,7 @@ public extension Api.account {
|
|||
}
|
||||
public extension Api.account {
|
||||
enum PrivacyRules: TypeConstructorDescription {
|
||||
public class Cons_privacyRules {
|
||||
public class Cons_privacyRules: TypeConstructorDescription {
|
||||
public var rules: [Api.PrivacyRule]
|
||||
public var chats: [Api.Chat]
|
||||
public var users: [Api.User]
|
||||
|
|
@ -1516,6 +1591,9 @@ public extension Api.account {
|
|||
self.chats = chats
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("privacyRules", [("rules", self.rules as Any), ("chats", self.chats as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case privacyRules(Cons_privacyRules)
|
||||
|
||||
|
|
@ -1578,17 +1656,23 @@ public extension Api.account {
|
|||
}
|
||||
public extension Api.account {
|
||||
enum ResetPasswordResult: TypeConstructorDescription {
|
||||
public class Cons_resetPasswordFailedWait {
|
||||
public class Cons_resetPasswordFailedWait: TypeConstructorDescription {
|
||||
public var retryDate: Int32
|
||||
public init(retryDate: Int32) {
|
||||
self.retryDate = retryDate
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("resetPasswordFailedWait", [("retryDate", self.retryDate as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_resetPasswordRequestedWait {
|
||||
public class Cons_resetPasswordRequestedWait: TypeConstructorDescription {
|
||||
public var untilDate: Int32
|
||||
public init(untilDate: Int32) {
|
||||
self.untilDate = untilDate
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("resetPasswordRequestedWait", [("untilDate", self.untilDate as Any)])
|
||||
}
|
||||
}
|
||||
case resetPasswordFailedWait(Cons_resetPasswordFailedWait)
|
||||
case resetPasswordOk
|
||||
|
|
@ -1656,7 +1740,7 @@ public extension Api.account {
|
|||
}
|
||||
public extension Api.account {
|
||||
enum ResolvedBusinessChatLinks: TypeConstructorDescription {
|
||||
public class Cons_resolvedBusinessChatLinks {
|
||||
public class Cons_resolvedBusinessChatLinks: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var peer: Api.Peer
|
||||
public var message: String
|
||||
|
|
@ -1671,6 +1755,9 @@ public extension Api.account {
|
|||
self.chats = chats
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("resolvedBusinessChatLinks", [("flags", self.flags as Any), ("peer", self.peer as Any), ("message", self.message as Any), ("entities", self.entities as Any), ("chats", self.chats as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case resolvedBusinessChatLinks(Cons_resolvedBusinessChatLinks)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +1,13 @@
|
|||
public extension Api.account {
|
||||
enum SavedMusicIds: TypeConstructorDescription {
|
||||
public class Cons_savedMusicIds {
|
||||
public class Cons_savedMusicIds: TypeConstructorDescription {
|
||||
public var ids: [Int64]
|
||||
public init(ids: [Int64]) {
|
||||
self.ids = ids
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("savedMusicIds", [("ids", self.ids as Any)])
|
||||
}
|
||||
}
|
||||
case savedMusicIds(Cons_savedMusicIds)
|
||||
case savedMusicIdsNotModified
|
||||
|
|
@ -58,11 +61,14 @@ public extension Api.account {
|
|||
}
|
||||
public extension Api.account {
|
||||
enum SavedRingtone: TypeConstructorDescription {
|
||||
public class Cons_savedRingtoneConverted {
|
||||
public class Cons_savedRingtoneConverted: TypeConstructorDescription {
|
||||
public var document: Api.Document
|
||||
public init(document: Api.Document) {
|
||||
self.document = document
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("savedRingtoneConverted", [("document", self.document as Any)])
|
||||
}
|
||||
}
|
||||
case savedRingtone
|
||||
case savedRingtoneConverted(Cons_savedRingtoneConverted)
|
||||
|
|
@ -112,13 +118,16 @@ public extension Api.account {
|
|||
}
|
||||
public extension Api.account {
|
||||
enum SavedRingtones: TypeConstructorDescription {
|
||||
public class Cons_savedRingtones {
|
||||
public class Cons_savedRingtones: TypeConstructorDescription {
|
||||
public var hash: Int64
|
||||
public var ringtones: [Api.Document]
|
||||
public init(hash: Int64, ringtones: [Api.Document]) {
|
||||
self.hash = hash
|
||||
self.ringtones = ringtones
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("savedRingtones", [("hash", self.hash as Any), ("ringtones", self.ringtones as Any)])
|
||||
}
|
||||
}
|
||||
case savedRingtones(Cons_savedRingtones)
|
||||
case savedRingtonesNotModified
|
||||
|
|
@ -176,13 +185,16 @@ public extension Api.account {
|
|||
}
|
||||
public extension Api.account {
|
||||
enum SentEmailCode: TypeConstructorDescription {
|
||||
public class Cons_sentEmailCode {
|
||||
public class Cons_sentEmailCode: TypeConstructorDescription {
|
||||
public var emailPattern: String
|
||||
public var length: Int32
|
||||
public init(emailPattern: String, length: Int32) {
|
||||
self.emailPattern = emailPattern
|
||||
self.length = length
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("sentEmailCode", [("emailPattern", self.emailPattern as Any), ("length", self.length as Any)])
|
||||
}
|
||||
}
|
||||
case sentEmailCode(Cons_sentEmailCode)
|
||||
|
||||
|
|
@ -223,11 +235,14 @@ public extension Api.account {
|
|||
}
|
||||
public extension Api.account {
|
||||
enum Takeout: TypeConstructorDescription {
|
||||
public class Cons_takeout {
|
||||
public class Cons_takeout: TypeConstructorDescription {
|
||||
public var id: Int64
|
||||
public init(id: Int64) {
|
||||
self.id = id
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("takeout", [("id", self.id as Any)])
|
||||
}
|
||||
}
|
||||
case takeout(Cons_takeout)
|
||||
|
||||
|
|
@ -264,13 +279,16 @@ public extension Api.account {
|
|||
}
|
||||
public extension Api.account {
|
||||
enum Themes: TypeConstructorDescription {
|
||||
public class Cons_themes {
|
||||
public class Cons_themes: TypeConstructorDescription {
|
||||
public var hash: Int64
|
||||
public var themes: [Api.Theme]
|
||||
public init(hash: Int64, themes: [Api.Theme]) {
|
||||
self.hash = hash
|
||||
self.themes = themes
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("themes", [("hash", self.hash as Any), ("themes", self.themes as Any)])
|
||||
}
|
||||
}
|
||||
case themes(Cons_themes)
|
||||
case themesNotModified
|
||||
|
|
@ -328,13 +346,16 @@ public extension Api.account {
|
|||
}
|
||||
public extension Api.account {
|
||||
enum TmpPassword: TypeConstructorDescription {
|
||||
public class Cons_tmpPassword {
|
||||
public class Cons_tmpPassword: TypeConstructorDescription {
|
||||
public var tmpPassword: Buffer
|
||||
public var validUntil: Int32
|
||||
public init(tmpPassword: Buffer, validUntil: Int32) {
|
||||
self.tmpPassword = tmpPassword
|
||||
self.validUntil = validUntil
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("tmpPassword", [("tmpPassword", self.tmpPassword as Any), ("validUntil", self.validUntil as Any)])
|
||||
}
|
||||
}
|
||||
case tmpPassword(Cons_tmpPassword)
|
||||
|
||||
|
|
@ -375,13 +396,16 @@ public extension Api.account {
|
|||
}
|
||||
public extension Api.account {
|
||||
enum WallPapers: TypeConstructorDescription {
|
||||
public class Cons_wallPapers {
|
||||
public class Cons_wallPapers: TypeConstructorDescription {
|
||||
public var hash: Int64
|
||||
public var wallpapers: [Api.WallPaper]
|
||||
public init(hash: Int64, wallpapers: [Api.WallPaper]) {
|
||||
self.hash = hash
|
||||
self.wallpapers = wallpapers
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("wallPapers", [("hash", self.hash as Any), ("wallpapers", self.wallpapers as Any)])
|
||||
}
|
||||
}
|
||||
case wallPapers(Cons_wallPapers)
|
||||
case wallPapersNotModified
|
||||
|
|
@ -439,13 +463,16 @@ public extension Api.account {
|
|||
}
|
||||
public extension Api.account {
|
||||
enum WebAuthorizations: TypeConstructorDescription {
|
||||
public class Cons_webAuthorizations {
|
||||
public class Cons_webAuthorizations: TypeConstructorDescription {
|
||||
public var authorizations: [Api.WebAuthorization]
|
||||
public var users: [Api.User]
|
||||
public init(authorizations: [Api.WebAuthorization], users: [Api.User]) {
|
||||
self.authorizations = authorizations
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("webAuthorizations", [("authorizations", self.authorizations as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case webAuthorizations(Cons_webAuthorizations)
|
||||
|
||||
|
|
@ -498,7 +525,7 @@ public extension Api.account {
|
|||
}
|
||||
public extension Api.auth {
|
||||
enum Authorization: TypeConstructorDescription {
|
||||
public class Cons_authorization {
|
||||
public class Cons_authorization: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var otherwiseReloginDays: Int32?
|
||||
public var tmpSessions: Int32?
|
||||
|
|
@ -511,14 +538,20 @@ public extension Api.auth {
|
|||
self.futureAuthToken = futureAuthToken
|
||||
self.user = user
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("authorization", [("flags", self.flags as Any), ("otherwiseReloginDays", self.otherwiseReloginDays as Any), ("tmpSessions", self.tmpSessions as Any), ("futureAuthToken", self.futureAuthToken as Any), ("user", self.user as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_authorizationSignUpRequired {
|
||||
public class Cons_authorizationSignUpRequired: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var termsOfService: Api.help.TermsOfService?
|
||||
public init(flags: Int32, termsOfService: Api.help.TermsOfService?) {
|
||||
self.flags = flags
|
||||
self.termsOfService = termsOfService
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("authorizationSignUpRequired", [("flags", self.flags as Any), ("termsOfService", self.termsOfService as Any)])
|
||||
}
|
||||
}
|
||||
case authorization(Cons_authorization)
|
||||
case authorizationSignUpRequired(Cons_authorizationSignUpRequired)
|
||||
|
|
@ -685,13 +718,16 @@ public extension Api.auth {
|
|||
}
|
||||
public extension Api.auth {
|
||||
enum ExportedAuthorization: TypeConstructorDescription {
|
||||
public class Cons_exportedAuthorization {
|
||||
public class Cons_exportedAuthorization: TypeConstructorDescription {
|
||||
public var id: Int64
|
||||
public var bytes: Buffer
|
||||
public init(id: Int64, bytes: Buffer) {
|
||||
self.id = id
|
||||
self.bytes = bytes
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("exportedAuthorization", [("id", self.id as Any), ("bytes", self.bytes as Any)])
|
||||
}
|
||||
}
|
||||
case exportedAuthorization(Cons_exportedAuthorization)
|
||||
|
||||
|
|
@ -732,13 +768,16 @@ public extension Api.auth {
|
|||
}
|
||||
public extension Api.auth {
|
||||
enum LoggedOut: TypeConstructorDescription {
|
||||
public class Cons_loggedOut {
|
||||
public class Cons_loggedOut: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var futureAuthToken: Buffer?
|
||||
public init(flags: Int32, futureAuthToken: Buffer?) {
|
||||
self.flags = flags
|
||||
self.futureAuthToken = futureAuthToken
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("loggedOut", [("flags", self.flags as Any), ("futureAuthToken", self.futureAuthToken as Any)])
|
||||
}
|
||||
}
|
||||
case loggedOut(Cons_loggedOut)
|
||||
|
||||
|
|
@ -783,27 +822,36 @@ public extension Api.auth {
|
|||
}
|
||||
public extension Api.auth {
|
||||
enum LoginToken: TypeConstructorDescription {
|
||||
public class Cons_loginToken {
|
||||
public class Cons_loginToken: TypeConstructorDescription {
|
||||
public var expires: Int32
|
||||
public var token: Buffer
|
||||
public init(expires: Int32, token: Buffer) {
|
||||
self.expires = expires
|
||||
self.token = token
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("loginToken", [("expires", self.expires as Any), ("token", self.token as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_loginTokenMigrateTo {
|
||||
public class Cons_loginTokenMigrateTo: TypeConstructorDescription {
|
||||
public var dcId: Int32
|
||||
public var token: Buffer
|
||||
public init(dcId: Int32, token: Buffer) {
|
||||
self.dcId = dcId
|
||||
self.token = token
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("loginTokenMigrateTo", [("dcId", self.dcId as Any), ("token", self.token as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_loginTokenSuccess {
|
||||
public class Cons_loginTokenSuccess: TypeConstructorDescription {
|
||||
public var authorization: Api.auth.Authorization
|
||||
public init(authorization: Api.auth.Authorization) {
|
||||
self.authorization = authorization
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("loginTokenSuccess", [("authorization", self.authorization as Any)])
|
||||
}
|
||||
}
|
||||
case loginToken(Cons_loginToken)
|
||||
case loginTokenMigrateTo(Cons_loginTokenMigrateTo)
|
||||
|
|
@ -890,11 +938,14 @@ public extension Api.auth {
|
|||
}
|
||||
public extension Api.auth {
|
||||
enum PasskeyLoginOptions: TypeConstructorDescription {
|
||||
public class Cons_passkeyLoginOptions {
|
||||
public class Cons_passkeyLoginOptions: TypeConstructorDescription {
|
||||
public var options: Api.DataJSON
|
||||
public init(options: Api.DataJSON) {
|
||||
self.options = options
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("passkeyLoginOptions", [("options", self.options as Any)])
|
||||
}
|
||||
}
|
||||
case passkeyLoginOptions(Cons_passkeyLoginOptions)
|
||||
|
||||
|
|
@ -933,11 +984,14 @@ public extension Api.auth {
|
|||
}
|
||||
public extension Api.auth {
|
||||
enum PasswordRecovery: TypeConstructorDescription {
|
||||
public class Cons_passwordRecovery {
|
||||
public class Cons_passwordRecovery: TypeConstructorDescription {
|
||||
public var emailPattern: String
|
||||
public init(emailPattern: String) {
|
||||
self.emailPattern = emailPattern
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("passwordRecovery", [("emailPattern", self.emailPattern as Any)])
|
||||
}
|
||||
}
|
||||
case passwordRecovery(Cons_passwordRecovery)
|
||||
|
||||
|
|
@ -974,7 +1028,7 @@ public extension Api.auth {
|
|||
}
|
||||
public extension Api.auth {
|
||||
enum SentCode: TypeConstructorDescription {
|
||||
public class Cons_sentCode {
|
||||
public class Cons_sentCode: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var type: Api.auth.SentCodeType
|
||||
public var phoneCodeHash: String
|
||||
|
|
@ -987,8 +1041,11 @@ public extension Api.auth {
|
|||
self.nextType = nextType
|
||||
self.timeout = timeout
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("sentCode", [("flags", self.flags as Any), ("type", self.type as Any), ("phoneCodeHash", self.phoneCodeHash as Any), ("nextType", self.nextType as Any), ("timeout", self.timeout as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_sentCodePaymentRequired {
|
||||
public class Cons_sentCodePaymentRequired: TypeConstructorDescription {
|
||||
public var storeProduct: String
|
||||
public var phoneCodeHash: String
|
||||
public var supportEmailAddress: String
|
||||
|
|
@ -1003,12 +1060,18 @@ public extension Api.auth {
|
|||
self.currency = currency
|
||||
self.amount = amount
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("sentCodePaymentRequired", [("storeProduct", self.storeProduct as Any), ("phoneCodeHash", self.phoneCodeHash as Any), ("supportEmailAddress", self.supportEmailAddress as Any), ("supportEmailSubject", self.supportEmailSubject as Any), ("currency", self.currency as Any), ("amount", self.amount as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_sentCodeSuccess {
|
||||
public class Cons_sentCodeSuccess: TypeConstructorDescription {
|
||||
public var authorization: Api.auth.Authorization
|
||||
public init(authorization: Api.auth.Authorization) {
|
||||
self.authorization = authorization
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("sentCodeSuccess", [("authorization", self.authorization as Any)])
|
||||
}
|
||||
}
|
||||
case sentCode(Cons_sentCode)
|
||||
case sentCodePaymentRequired(Cons_sentCodePaymentRequired)
|
||||
|
|
@ -1135,19 +1198,25 @@ public extension Api.auth {
|
|||
}
|
||||
public extension Api.auth {
|
||||
enum SentCodeType: TypeConstructorDescription {
|
||||
public class Cons_sentCodeTypeApp {
|
||||
public class Cons_sentCodeTypeApp: TypeConstructorDescription {
|
||||
public var length: Int32
|
||||
public init(length: Int32) {
|
||||
self.length = length
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("sentCodeTypeApp", [("length", self.length as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_sentCodeTypeCall {
|
||||
public class Cons_sentCodeTypeCall: TypeConstructorDescription {
|
||||
public var length: Int32
|
||||
public init(length: Int32) {
|
||||
self.length = length
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("sentCodeTypeCall", [("length", self.length as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_sentCodeTypeEmailCode {
|
||||
public class Cons_sentCodeTypeEmailCode: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var emailPattern: String
|
||||
public var length: Int32
|
||||
|
|
@ -1160,8 +1229,11 @@ public extension Api.auth {
|
|||
self.resetAvailablePeriod = resetAvailablePeriod
|
||||
self.resetPendingDate = resetPendingDate
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("sentCodeTypeEmailCode", [("flags", self.flags as Any), ("emailPattern", self.emailPattern as Any), ("length", self.length as Any), ("resetAvailablePeriod", self.resetAvailablePeriod as Any), ("resetPendingDate", self.resetPendingDate as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_sentCodeTypeFirebaseSms {
|
||||
public class Cons_sentCodeTypeFirebaseSms: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var nonce: Buffer?
|
||||
public var playIntegrityProjectId: Int64?
|
||||
|
|
@ -1178,56 +1250,80 @@ public extension Api.auth {
|
|||
self.pushTimeout = pushTimeout
|
||||
self.length = length
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("sentCodeTypeFirebaseSms", [("flags", self.flags as Any), ("nonce", self.nonce as Any), ("playIntegrityProjectId", self.playIntegrityProjectId as Any), ("playIntegrityNonce", self.playIntegrityNonce as Any), ("receipt", self.receipt as Any), ("pushTimeout", self.pushTimeout as Any), ("length", self.length as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_sentCodeTypeFlashCall {
|
||||
public class Cons_sentCodeTypeFlashCall: TypeConstructorDescription {
|
||||
public var pattern: String
|
||||
public init(pattern: String) {
|
||||
self.pattern = pattern
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("sentCodeTypeFlashCall", [("pattern", self.pattern as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_sentCodeTypeFragmentSms {
|
||||
public class Cons_sentCodeTypeFragmentSms: TypeConstructorDescription {
|
||||
public var url: String
|
||||
public var length: Int32
|
||||
public init(url: String, length: Int32) {
|
||||
self.url = url
|
||||
self.length = length
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("sentCodeTypeFragmentSms", [("url", self.url as Any), ("length", self.length as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_sentCodeTypeMissedCall {
|
||||
public class Cons_sentCodeTypeMissedCall: TypeConstructorDescription {
|
||||
public var prefix: String
|
||||
public var length: Int32
|
||||
public init(prefix: String, length: Int32) {
|
||||
self.prefix = prefix
|
||||
self.length = length
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("sentCodeTypeMissedCall", [("prefix", self.prefix as Any), ("length", self.length as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_sentCodeTypeSetUpEmailRequired {
|
||||
public class Cons_sentCodeTypeSetUpEmailRequired: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public init(flags: Int32) {
|
||||
self.flags = flags
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("sentCodeTypeSetUpEmailRequired", [("flags", self.flags as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_sentCodeTypeSms {
|
||||
public class Cons_sentCodeTypeSms: TypeConstructorDescription {
|
||||
public var length: Int32
|
||||
public init(length: Int32) {
|
||||
self.length = length
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("sentCodeTypeSms", [("length", self.length as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_sentCodeTypeSmsPhrase {
|
||||
public class Cons_sentCodeTypeSmsPhrase: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var beginning: String?
|
||||
public init(flags: Int32, beginning: String?) {
|
||||
self.flags = flags
|
||||
self.beginning = beginning
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("sentCodeTypeSmsPhrase", [("flags", self.flags as Any), ("beginning", self.beginning as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_sentCodeTypeSmsWord {
|
||||
public class Cons_sentCodeTypeSmsWord: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var beginning: String?
|
||||
public init(flags: Int32, beginning: String?) {
|
||||
self.flags = flags
|
||||
self.beginning = beginning
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("sentCodeTypeSmsWord", [("flags", self.flags as Any), ("beginning", self.beginning as Any)])
|
||||
}
|
||||
}
|
||||
case sentCodeTypeApp(Cons_sentCodeTypeApp)
|
||||
case sentCodeTypeCall(Cons_sentCodeTypeCall)
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
public extension Api.bots {
|
||||
enum BotInfo: TypeConstructorDescription {
|
||||
public class Cons_botInfo {
|
||||
public class Cons_botInfo: TypeConstructorDescription {
|
||||
public var name: String
|
||||
public var about: String
|
||||
public var description: String
|
||||
|
|
@ -9,6 +9,9 @@ public extension Api.bots {
|
|||
self.about = about
|
||||
self.description = description
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("botInfo", [("name", self.name as Any), ("about", self.about as Any), ("description", self.description as Any)])
|
||||
}
|
||||
}
|
||||
case botInfo(Cons_botInfo)
|
||||
|
||||
|
|
@ -53,7 +56,7 @@ public extension Api.bots {
|
|||
}
|
||||
public extension Api.bots {
|
||||
enum PopularAppBots: TypeConstructorDescription {
|
||||
public class Cons_popularAppBots {
|
||||
public class Cons_popularAppBots: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var nextOffset: String?
|
||||
public var users: [Api.User]
|
||||
|
|
@ -62,6 +65,9 @@ public extension Api.bots {
|
|||
self.nextOffset = nextOffset
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("popularAppBots", [("flags", self.flags as Any), ("nextOffset", self.nextOffset as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case popularAppBots(Cons_popularAppBots)
|
||||
|
||||
|
|
@ -116,13 +122,16 @@ public extension Api.bots {
|
|||
}
|
||||
public extension Api.bots {
|
||||
enum PreviewInfo: TypeConstructorDescription {
|
||||
public class Cons_previewInfo {
|
||||
public class Cons_previewInfo: TypeConstructorDescription {
|
||||
public var media: [Api.BotPreviewMedia]
|
||||
public var langCodes: [String]
|
||||
public init(media: [Api.BotPreviewMedia], langCodes: [String]) {
|
||||
self.media = media
|
||||
self.langCodes = langCodes
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("previewInfo", [("media", self.media as Any), ("langCodes", self.langCodes as Any)])
|
||||
}
|
||||
}
|
||||
case previewInfo(Cons_previewInfo)
|
||||
|
||||
|
|
@ -175,7 +184,7 @@ public extension Api.bots {
|
|||
}
|
||||
public extension Api.channels {
|
||||
enum AdminLogResults: TypeConstructorDescription {
|
||||
public class Cons_adminLogResults {
|
||||
public class Cons_adminLogResults: TypeConstructorDescription {
|
||||
public var events: [Api.ChannelAdminLogEvent]
|
||||
public var chats: [Api.Chat]
|
||||
public var users: [Api.User]
|
||||
|
|
@ -184,6 +193,9 @@ public extension Api.channels {
|
|||
self.chats = chats
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("adminLogResults", [("events", self.events as Any), ("chats", self.chats as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case adminLogResults(Cons_adminLogResults)
|
||||
|
||||
|
|
@ -246,7 +258,7 @@ public extension Api.channels {
|
|||
}
|
||||
public extension Api.channels {
|
||||
enum ChannelParticipant: TypeConstructorDescription {
|
||||
public class Cons_channelParticipant {
|
||||
public class Cons_channelParticipant: TypeConstructorDescription {
|
||||
public var participant: Api.ChannelParticipant
|
||||
public var chats: [Api.Chat]
|
||||
public var users: [Api.User]
|
||||
|
|
@ -255,6 +267,9 @@ public extension Api.channels {
|
|||
self.chats = chats
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channelParticipant", [("participant", self.participant as Any), ("chats", self.chats as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case channelParticipant(Cons_channelParticipant)
|
||||
|
||||
|
|
@ -313,7 +328,7 @@ public extension Api.channels {
|
|||
}
|
||||
public extension Api.channels {
|
||||
enum ChannelParticipants: TypeConstructorDescription {
|
||||
public class Cons_channelParticipants {
|
||||
public class Cons_channelParticipants: TypeConstructorDescription {
|
||||
public var count: Int32
|
||||
public var participants: [Api.ChannelParticipant]
|
||||
public var chats: [Api.Chat]
|
||||
|
|
@ -324,6 +339,9 @@ public extension Api.channels {
|
|||
self.chats = chats
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channelParticipants", [("count", self.count as Any), ("participants", self.participants as Any), ("chats", self.chats as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case channelParticipants(Cons_channelParticipants)
|
||||
case channelParticipantsNotModified
|
||||
|
|
@ -401,7 +419,7 @@ public extension Api.channels {
|
|||
}
|
||||
public extension Api.channels {
|
||||
enum SendAsPeers: TypeConstructorDescription {
|
||||
public class Cons_sendAsPeers {
|
||||
public class Cons_sendAsPeers: TypeConstructorDescription {
|
||||
public var peers: [Api.SendAsPeer]
|
||||
public var chats: [Api.Chat]
|
||||
public var users: [Api.User]
|
||||
|
|
@ -410,6 +428,9 @@ public extension Api.channels {
|
|||
self.chats = chats
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("sendAsPeers", [("peers", self.peers as Any), ("chats", self.chats as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case sendAsPeers(Cons_sendAsPeers)
|
||||
|
||||
|
|
@ -472,13 +493,16 @@ public extension Api.channels {
|
|||
}
|
||||
public extension Api.channels {
|
||||
enum SponsoredMessageReportResult: TypeConstructorDescription {
|
||||
public class Cons_sponsoredMessageReportResultChooseOption {
|
||||
public class Cons_sponsoredMessageReportResultChooseOption: TypeConstructorDescription {
|
||||
public var title: String
|
||||
public var options: [Api.SponsoredMessageReportOption]
|
||||
public init(title: String, options: [Api.SponsoredMessageReportOption]) {
|
||||
self.title = title
|
||||
self.options = options
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("sponsoredMessageReportResultChooseOption", [("title", self.title as Any), ("options", self.options as Any)])
|
||||
}
|
||||
}
|
||||
case sponsoredMessageReportResultAdsHidden
|
||||
case sponsoredMessageReportResultChooseOption(Cons_sponsoredMessageReportResultChooseOption)
|
||||
|
|
@ -547,7 +571,7 @@ public extension Api.channels {
|
|||
}
|
||||
public extension Api.chatlists {
|
||||
enum ChatlistInvite: TypeConstructorDescription {
|
||||
public class Cons_chatlistInvite {
|
||||
public class Cons_chatlistInvite: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var title: Api.TextWithEntities
|
||||
public var emoticon: String?
|
||||
|
|
@ -562,8 +586,11 @@ public extension Api.chatlists {
|
|||
self.chats = chats
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("chatlistInvite", [("flags", self.flags as Any), ("title", self.title as Any), ("emoticon", self.emoticon as Any), ("peers", self.peers as Any), ("chats", self.chats as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_chatlistInviteAlready {
|
||||
public class Cons_chatlistInviteAlready: TypeConstructorDescription {
|
||||
public var filterId: Int32
|
||||
public var missingPeers: [Api.Peer]
|
||||
public var alreadyPeers: [Api.Peer]
|
||||
|
|
@ -576,6 +603,9 @@ public extension Api.chatlists {
|
|||
self.chats = chats
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("chatlistInviteAlready", [("filterId", self.filterId as Any), ("missingPeers", self.missingPeers as Any), ("alreadyPeers", self.alreadyPeers as Any), ("chats", self.chats as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case chatlistInvite(Cons_chatlistInvite)
|
||||
case chatlistInviteAlready(Cons_chatlistInviteAlready)
|
||||
|
|
@ -716,7 +746,7 @@ public extension Api.chatlists {
|
|||
}
|
||||
public extension Api.chatlists {
|
||||
enum ChatlistUpdates: TypeConstructorDescription {
|
||||
public class Cons_chatlistUpdates {
|
||||
public class Cons_chatlistUpdates: TypeConstructorDescription {
|
||||
public var missingPeers: [Api.Peer]
|
||||
public var chats: [Api.Chat]
|
||||
public var users: [Api.User]
|
||||
|
|
@ -725,6 +755,9 @@ public extension Api.chatlists {
|
|||
self.chats = chats
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("chatlistUpdates", [("missingPeers", self.missingPeers as Any), ("chats", self.chats as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case chatlistUpdates(Cons_chatlistUpdates)
|
||||
|
||||
|
|
@ -787,13 +820,16 @@ public extension Api.chatlists {
|
|||
}
|
||||
public extension Api.chatlists {
|
||||
enum ExportedChatlistInvite: TypeConstructorDescription {
|
||||
public class Cons_exportedChatlistInvite {
|
||||
public class Cons_exportedChatlistInvite: TypeConstructorDescription {
|
||||
public var filter: Api.DialogFilter
|
||||
public var invite: Api.ExportedChatlistInvite
|
||||
public init(filter: Api.DialogFilter, invite: Api.ExportedChatlistInvite) {
|
||||
self.filter = filter
|
||||
self.invite = invite
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("exportedChatlistInvite", [("filter", self.filter as Any), ("invite", self.invite as Any)])
|
||||
}
|
||||
}
|
||||
case exportedChatlistInvite(Cons_exportedChatlistInvite)
|
||||
|
||||
|
|
@ -838,7 +874,7 @@ public extension Api.chatlists {
|
|||
}
|
||||
public extension Api.chatlists {
|
||||
enum ExportedInvites: TypeConstructorDescription {
|
||||
public class Cons_exportedInvites {
|
||||
public class Cons_exportedInvites: TypeConstructorDescription {
|
||||
public var invites: [Api.ExportedChatlistInvite]
|
||||
public var chats: [Api.Chat]
|
||||
public var users: [Api.User]
|
||||
|
|
@ -847,6 +883,9 @@ public extension Api.chatlists {
|
|||
self.chats = chats
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("exportedInvites", [("invites", self.invites as Any), ("chats", self.chats as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case exportedInvites(Cons_exportedInvites)
|
||||
|
||||
|
|
@ -909,7 +948,7 @@ public extension Api.chatlists {
|
|||
}
|
||||
public extension Api.contacts {
|
||||
enum Blocked: TypeConstructorDescription {
|
||||
public class Cons_blocked {
|
||||
public class Cons_blocked: TypeConstructorDescription {
|
||||
public var blocked: [Api.PeerBlocked]
|
||||
public var chats: [Api.Chat]
|
||||
public var users: [Api.User]
|
||||
|
|
@ -918,8 +957,11 @@ public extension Api.contacts {
|
|||
self.chats = chats
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("blocked", [("blocked", self.blocked as Any), ("chats", self.chats as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_blockedSlice {
|
||||
public class Cons_blockedSlice: TypeConstructorDescription {
|
||||
public var count: Int32
|
||||
public var blocked: [Api.PeerBlocked]
|
||||
public var chats: [Api.Chat]
|
||||
|
|
@ -930,6 +972,9 @@ public extension Api.contacts {
|
|||
self.chats = chats
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("blockedSlice", [("count", self.count as Any), ("blocked", self.blocked as Any), ("chats", self.chats as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case blocked(Cons_blocked)
|
||||
case blockedSlice(Cons_blockedSlice)
|
||||
|
|
@ -1042,13 +1087,16 @@ public extension Api.contacts {
|
|||
}
|
||||
public extension Api.contacts {
|
||||
enum ContactBirthdays: TypeConstructorDescription {
|
||||
public class Cons_contactBirthdays {
|
||||
public class Cons_contactBirthdays: TypeConstructorDescription {
|
||||
public var contacts: [Api.ContactBirthday]
|
||||
public var users: [Api.User]
|
||||
public init(contacts: [Api.ContactBirthday], users: [Api.User]) {
|
||||
self.contacts = contacts
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("contactBirthdays", [("contacts", self.contacts as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case contactBirthdays(Cons_contactBirthdays)
|
||||
|
||||
|
|
@ -1101,7 +1149,7 @@ public extension Api.contacts {
|
|||
}
|
||||
public extension Api.contacts {
|
||||
enum Contacts: TypeConstructorDescription {
|
||||
public class Cons_contacts {
|
||||
public class Cons_contacts: TypeConstructorDescription {
|
||||
public var contacts: [Api.Contact]
|
||||
public var savedCount: Int32
|
||||
public var users: [Api.User]
|
||||
|
|
@ -1110,6 +1158,9 @@ public extension Api.contacts {
|
|||
self.savedCount = savedCount
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("contacts", [("contacts", self.contacts as Any), ("savedCount", self.savedCount as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case contacts(Cons_contacts)
|
||||
case contactsNotModified
|
||||
|
|
@ -1177,7 +1228,7 @@ public extension Api.contacts {
|
|||
}
|
||||
public extension Api.contacts {
|
||||
enum Found: TypeConstructorDescription {
|
||||
public class Cons_found {
|
||||
public class Cons_found: TypeConstructorDescription {
|
||||
public var myResults: [Api.Peer]
|
||||
public var results: [Api.Peer]
|
||||
public var chats: [Api.Chat]
|
||||
|
|
@ -1188,6 +1239,9 @@ public extension Api.contacts {
|
|||
self.chats = chats
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("found", [("myResults", self.myResults as Any), ("results", self.results as Any), ("chats", self.chats as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case found(Cons_found)
|
||||
|
||||
|
|
@ -1260,7 +1314,7 @@ public extension Api.contacts {
|
|||
}
|
||||
public extension Api.contacts {
|
||||
enum ImportedContacts: TypeConstructorDescription {
|
||||
public class Cons_importedContacts {
|
||||
public class Cons_importedContacts: TypeConstructorDescription {
|
||||
public var imported: [Api.ImportedContact]
|
||||
public var popularInvites: [Api.PopularContact]
|
||||
public var retryContacts: [Int64]
|
||||
|
|
@ -1271,6 +1325,9 @@ public extension Api.contacts {
|
|||
self.retryContacts = retryContacts
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("importedContacts", [("imported", self.imported as Any), ("popularInvites", self.popularInvites as Any), ("retryContacts", self.retryContacts as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case importedContacts(Cons_importedContacts)
|
||||
|
||||
|
|
@ -1343,7 +1400,7 @@ public extension Api.contacts {
|
|||
}
|
||||
public extension Api.contacts {
|
||||
enum ResolvedPeer: TypeConstructorDescription {
|
||||
public class Cons_resolvedPeer {
|
||||
public class Cons_resolvedPeer: TypeConstructorDescription {
|
||||
public var peer: Api.Peer
|
||||
public var chats: [Api.Chat]
|
||||
public var users: [Api.User]
|
||||
|
|
@ -1352,6 +1409,9 @@ public extension Api.contacts {
|
|||
self.chats = chats
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("resolvedPeer", [("peer", self.peer as Any), ("chats", self.chats as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case resolvedPeer(Cons_resolvedPeer)
|
||||
|
||||
|
|
@ -1410,7 +1470,7 @@ public extension Api.contacts {
|
|||
}
|
||||
public extension Api.contacts {
|
||||
enum SponsoredPeers: TypeConstructorDescription {
|
||||
public class Cons_sponsoredPeers {
|
||||
public class Cons_sponsoredPeers: TypeConstructorDescription {
|
||||
public var peers: [Api.SponsoredPeer]
|
||||
public var chats: [Api.Chat]
|
||||
public var users: [Api.User]
|
||||
|
|
@ -1419,6 +1479,9 @@ public extension Api.contacts {
|
|||
self.chats = chats
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("sponsoredPeers", [("peers", self.peers as Any), ("chats", self.chats as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case sponsoredPeers(Cons_sponsoredPeers)
|
||||
case sponsoredPeersEmpty
|
||||
|
|
@ -1492,7 +1555,7 @@ public extension Api.contacts {
|
|||
}
|
||||
public extension Api.contacts {
|
||||
enum TopPeers: TypeConstructorDescription {
|
||||
public class Cons_topPeers {
|
||||
public class Cons_topPeers: TypeConstructorDescription {
|
||||
public var categories: [Api.TopPeerCategoryPeers]
|
||||
public var chats: [Api.Chat]
|
||||
public var users: [Api.User]
|
||||
|
|
@ -1501,6 +1564,9 @@ public extension Api.contacts {
|
|||
self.chats = chats
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("topPeers", [("categories", self.categories as Any), ("chats", self.chats as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case topPeers(Cons_topPeers)
|
||||
case topPeersDisabled
|
||||
|
|
@ -1585,7 +1651,7 @@ public extension Api.contacts {
|
|||
}
|
||||
public extension Api.fragment {
|
||||
enum CollectibleInfo: TypeConstructorDescription {
|
||||
public class Cons_collectibleInfo {
|
||||
public class Cons_collectibleInfo: TypeConstructorDescription {
|
||||
public var purchaseDate: Int32
|
||||
public var currency: String
|
||||
public var amount: Int64
|
||||
|
|
@ -1600,6 +1666,9 @@ public extension Api.fragment {
|
|||
self.cryptoAmount = cryptoAmount
|
||||
self.url = url
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("collectibleInfo", [("purchaseDate", self.purchaseDate as Any), ("currency", self.currency as Any), ("amount", self.amount as Any), ("cryptoCurrency", self.cryptoCurrency as Any), ("cryptoAmount", self.cryptoAmount as Any), ("url", self.url as Any)])
|
||||
}
|
||||
}
|
||||
case collectibleInfo(Cons_collectibleInfo)
|
||||
|
||||
|
|
@ -1656,13 +1725,16 @@ public extension Api.fragment {
|
|||
}
|
||||
public extension Api.help {
|
||||
enum AppConfig: TypeConstructorDescription {
|
||||
public class Cons_appConfig {
|
||||
public class Cons_appConfig: TypeConstructorDescription {
|
||||
public var hash: Int32
|
||||
public var config: Api.JSONValue
|
||||
public init(hash: Int32, config: Api.JSONValue) {
|
||||
self.hash = hash
|
||||
self.config = config
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("appConfig", [("hash", self.hash as Any), ("config", self.config as Any)])
|
||||
}
|
||||
}
|
||||
case appConfig(Cons_appConfig)
|
||||
case appConfigNotModified
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
public extension Api.help {
|
||||
enum AppUpdate: TypeConstructorDescription {
|
||||
public class Cons_appUpdate {
|
||||
public class Cons_appUpdate: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var id: Int32
|
||||
public var version: String
|
||||
|
|
@ -19,6 +19,9 @@ public extension Api.help {
|
|||
self.url = url
|
||||
self.sticker = sticker
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("appUpdate", [("flags", self.flags as Any), ("id", self.id as Any), ("version", self.version as Any), ("text", self.text as Any), ("entities", self.entities as Any), ("document", self.document as Any), ("url", self.url as Any), ("sticker", self.sticker as Any)])
|
||||
}
|
||||
}
|
||||
case appUpdate(Cons_appUpdate)
|
||||
case noAppUpdate
|
||||
|
|
@ -116,13 +119,16 @@ public extension Api.help {
|
|||
}
|
||||
public extension Api.help {
|
||||
enum CountriesList: TypeConstructorDescription {
|
||||
public class Cons_countriesList {
|
||||
public class Cons_countriesList: TypeConstructorDescription {
|
||||
public var countries: [Api.help.Country]
|
||||
public var hash: Int32
|
||||
public init(countries: [Api.help.Country], hash: Int32) {
|
||||
self.countries = countries
|
||||
self.hash = hash
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("countriesList", [("countries", self.countries as Any), ("hash", self.hash as Any)])
|
||||
}
|
||||
}
|
||||
case countriesList(Cons_countriesList)
|
||||
case countriesListNotModified
|
||||
|
|
@ -180,7 +186,7 @@ public extension Api.help {
|
|||
}
|
||||
public extension Api.help {
|
||||
enum Country: TypeConstructorDescription {
|
||||
public class Cons_country {
|
||||
public class Cons_country: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var iso2: String
|
||||
public var defaultName: String
|
||||
|
|
@ -193,6 +199,9 @@ public extension Api.help {
|
|||
self.name = name
|
||||
self.countryCodes = countryCodes
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("country", [("flags", self.flags as Any), ("iso2", self.iso2 as Any), ("defaultName", self.defaultName as Any), ("name", self.name as Any), ("countryCodes", self.countryCodes as Any)])
|
||||
}
|
||||
}
|
||||
case country(Cons_country)
|
||||
|
||||
|
|
@ -255,7 +264,7 @@ public extension Api.help {
|
|||
}
|
||||
public extension Api.help {
|
||||
enum CountryCode: TypeConstructorDescription {
|
||||
public class Cons_countryCode {
|
||||
public class Cons_countryCode: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var countryCode: String
|
||||
public var prefixes: [String]?
|
||||
|
|
@ -266,6 +275,9 @@ public extension Api.help {
|
|||
self.prefixes = prefixes
|
||||
self.patterns = patterns
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("countryCode", [("flags", self.flags as Any), ("countryCode", self.countryCode as Any), ("prefixes", self.prefixes as Any), ("patterns", self.patterns as Any)])
|
||||
}
|
||||
}
|
||||
case countryCode(Cons_countryCode)
|
||||
|
||||
|
|
@ -334,7 +346,7 @@ public extension Api.help {
|
|||
}
|
||||
public extension Api.help {
|
||||
enum DeepLinkInfo: TypeConstructorDescription {
|
||||
public class Cons_deepLinkInfo {
|
||||
public class Cons_deepLinkInfo: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var message: String
|
||||
public var entities: [Api.MessageEntity]?
|
||||
|
|
@ -343,6 +355,9 @@ public extension Api.help {
|
|||
self.message = message
|
||||
self.entities = entities
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("deepLinkInfo", [("flags", self.flags as Any), ("message", self.message as Any), ("entities", self.entities as Any)])
|
||||
}
|
||||
}
|
||||
case deepLinkInfo(Cons_deepLinkInfo)
|
||||
case deepLinkInfoEmpty
|
||||
|
|
@ -408,11 +423,14 @@ public extension Api.help {
|
|||
}
|
||||
public extension Api.help {
|
||||
enum InviteText: TypeConstructorDescription {
|
||||
public class Cons_inviteText {
|
||||
public class Cons_inviteText: TypeConstructorDescription {
|
||||
public var message: String
|
||||
public init(message: String) {
|
||||
self.message = message
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inviteText", [("message", self.message as Any)])
|
||||
}
|
||||
}
|
||||
case inviteText(Cons_inviteText)
|
||||
|
||||
|
|
@ -449,13 +467,16 @@ public extension Api.help {
|
|||
}
|
||||
public extension Api.help {
|
||||
enum PassportConfig: TypeConstructorDescription {
|
||||
public class Cons_passportConfig {
|
||||
public class Cons_passportConfig: TypeConstructorDescription {
|
||||
public var hash: Int32
|
||||
public var countriesLangs: Api.DataJSON
|
||||
public init(hash: Int32, countriesLangs: Api.DataJSON) {
|
||||
self.hash = hash
|
||||
self.countriesLangs = countriesLangs
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("passportConfig", [("hash", self.hash as Any), ("countriesLangs", self.countriesLangs as Any)])
|
||||
}
|
||||
}
|
||||
case passportConfig(Cons_passportConfig)
|
||||
case passportConfigNotModified
|
||||
|
|
@ -509,7 +530,7 @@ public extension Api.help {
|
|||
}
|
||||
public extension Api.help {
|
||||
enum PeerColorOption: TypeConstructorDescription {
|
||||
public class Cons_peerColorOption {
|
||||
public class Cons_peerColorOption: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var colorId: Int32
|
||||
public var colors: Api.help.PeerColorSet?
|
||||
|
|
@ -524,6 +545,9 @@ public extension Api.help {
|
|||
self.channelMinLevel = channelMinLevel
|
||||
self.groupMinLevel = groupMinLevel
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("peerColorOption", [("flags", self.flags as Any), ("colorId", self.colorId as Any), ("colors", self.colors as Any), ("darkColors", self.darkColors as Any), ("channelMinLevel", self.channelMinLevel as Any), ("groupMinLevel", self.groupMinLevel as Any)])
|
||||
}
|
||||
}
|
||||
case peerColorOption(Cons_peerColorOption)
|
||||
|
||||
|
|
@ -600,7 +624,7 @@ public extension Api.help {
|
|||
}
|
||||
public extension Api.help {
|
||||
enum PeerColorSet: TypeConstructorDescription {
|
||||
public class Cons_peerColorProfileSet {
|
||||
public class Cons_peerColorProfileSet: TypeConstructorDescription {
|
||||
public var paletteColors: [Int32]
|
||||
public var bgColors: [Int32]
|
||||
public var storyColors: [Int32]
|
||||
|
|
@ -609,12 +633,18 @@ public extension Api.help {
|
|||
self.bgColors = bgColors
|
||||
self.storyColors = storyColors
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("peerColorProfileSet", [("paletteColors", self.paletteColors as Any), ("bgColors", self.bgColors as Any), ("storyColors", self.storyColors as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_peerColorSet {
|
||||
public class Cons_peerColorSet: TypeConstructorDescription {
|
||||
public var colors: [Int32]
|
||||
public init(colors: [Int32]) {
|
||||
self.colors = colors
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("peerColorSet", [("colors", self.colors as Any)])
|
||||
}
|
||||
}
|
||||
case peerColorProfileSet(Cons_peerColorProfileSet)
|
||||
case peerColorSet(Cons_peerColorSet)
|
||||
|
|
@ -703,13 +733,16 @@ public extension Api.help {
|
|||
}
|
||||
public extension Api.help {
|
||||
enum PeerColors: TypeConstructorDescription {
|
||||
public class Cons_peerColors {
|
||||
public class Cons_peerColors: TypeConstructorDescription {
|
||||
public var hash: Int32
|
||||
public var colors: [Api.help.PeerColorOption]
|
||||
public init(hash: Int32, colors: [Api.help.PeerColorOption]) {
|
||||
self.hash = hash
|
||||
self.colors = colors
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("peerColors", [("hash", self.hash as Any), ("colors", self.colors as Any)])
|
||||
}
|
||||
}
|
||||
case peerColors(Cons_peerColors)
|
||||
case peerColorsNotModified
|
||||
|
|
@ -767,7 +800,7 @@ public extension Api.help {
|
|||
}
|
||||
public extension Api.help {
|
||||
enum PremiumPromo: TypeConstructorDescription {
|
||||
public class Cons_premiumPromo {
|
||||
public class Cons_premiumPromo: TypeConstructorDescription {
|
||||
public var statusText: String
|
||||
public var statusEntities: [Api.MessageEntity]
|
||||
public var videoSections: [String]
|
||||
|
|
@ -782,6 +815,9 @@ public extension Api.help {
|
|||
self.periodOptions = periodOptions
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("premiumPromo", [("statusText", self.statusText as Any), ("statusEntities", self.statusEntities as Any), ("videoSections", self.videoSections as Any), ("videos", self.videos as Any), ("periodOptions", self.periodOptions as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case premiumPromo(Cons_premiumPromo)
|
||||
|
||||
|
|
@ -868,7 +904,7 @@ public extension Api.help {
|
|||
}
|
||||
public extension Api.help {
|
||||
enum PromoData: TypeConstructorDescription {
|
||||
public class Cons_promoData {
|
||||
public class Cons_promoData: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var expires: Int32
|
||||
public var peer: Api.Peer?
|
||||
|
|
@ -891,12 +927,18 @@ public extension Api.help {
|
|||
self.chats = chats
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("promoData", [("flags", self.flags as Any), ("expires", self.expires as Any), ("peer", self.peer as Any), ("psaType", self.psaType as Any), ("psaMessage", self.psaMessage as Any), ("pendingSuggestions", self.pendingSuggestions as Any), ("dismissedSuggestions", self.dismissedSuggestions as Any), ("customPendingSuggestion", self.customPendingSuggestion as Any), ("chats", self.chats as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_promoDataEmpty {
|
||||
public class Cons_promoDataEmpty: TypeConstructorDescription {
|
||||
public var expires: Int32
|
||||
public init(expires: Int32) {
|
||||
self.expires = expires
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("promoDataEmpty", [("expires", self.expires as Any)])
|
||||
}
|
||||
}
|
||||
case promoData(Cons_promoData)
|
||||
case promoDataEmpty(Cons_promoDataEmpty)
|
||||
|
|
@ -1033,7 +1075,7 @@ public extension Api.help {
|
|||
}
|
||||
public extension Api.help {
|
||||
enum RecentMeUrls: TypeConstructorDescription {
|
||||
public class Cons_recentMeUrls {
|
||||
public class Cons_recentMeUrls: TypeConstructorDescription {
|
||||
public var urls: [Api.RecentMeUrl]
|
||||
public var chats: [Api.Chat]
|
||||
public var users: [Api.User]
|
||||
|
|
@ -1042,6 +1084,9 @@ public extension Api.help {
|
|||
self.chats = chats
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("recentMeUrls", [("urls", self.urls as Any), ("chats", self.chats as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case recentMeUrls(Cons_recentMeUrls)
|
||||
|
||||
|
|
@ -1104,13 +1149,16 @@ public extension Api.help {
|
|||
}
|
||||
public extension Api.help {
|
||||
enum Support: TypeConstructorDescription {
|
||||
public class Cons_support {
|
||||
public class Cons_support: TypeConstructorDescription {
|
||||
public var phoneNumber: String
|
||||
public var user: Api.User
|
||||
public init(phoneNumber: String, user: Api.User) {
|
||||
self.phoneNumber = phoneNumber
|
||||
self.user = user
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("support", [("phoneNumber", self.phoneNumber as Any), ("user", self.user as Any)])
|
||||
}
|
||||
}
|
||||
case support(Cons_support)
|
||||
|
||||
|
|
@ -1153,11 +1201,14 @@ public extension Api.help {
|
|||
}
|
||||
public extension Api.help {
|
||||
enum SupportName: TypeConstructorDescription {
|
||||
public class Cons_supportName {
|
||||
public class Cons_supportName: TypeConstructorDescription {
|
||||
public var name: String
|
||||
public init(name: String) {
|
||||
self.name = name
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("supportName", [("name", self.name as Any)])
|
||||
}
|
||||
}
|
||||
case supportName(Cons_supportName)
|
||||
|
||||
|
|
@ -1194,7 +1245,7 @@ public extension Api.help {
|
|||
}
|
||||
public extension Api.help {
|
||||
enum TermsOfService: TypeConstructorDescription {
|
||||
public class Cons_termsOfService {
|
||||
public class Cons_termsOfService: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var id: Api.DataJSON
|
||||
public var text: String
|
||||
|
|
@ -1207,6 +1258,9 @@ public extension Api.help {
|
|||
self.entities = entities
|
||||
self.minAgeConfirm = minAgeConfirm
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("termsOfService", [("flags", self.flags as Any), ("id", self.id as Any), ("text", self.text as Any), ("entities", self.entities as Any), ("minAgeConfirm", self.minAgeConfirm as Any)])
|
||||
}
|
||||
}
|
||||
case termsOfService(Cons_termsOfService)
|
||||
|
||||
|
|
@ -1271,19 +1325,25 @@ public extension Api.help {
|
|||
}
|
||||
public extension Api.help {
|
||||
enum TermsOfServiceUpdate: TypeConstructorDescription {
|
||||
public class Cons_termsOfServiceUpdate {
|
||||
public class Cons_termsOfServiceUpdate: TypeConstructorDescription {
|
||||
public var expires: Int32
|
||||
public var termsOfService: Api.help.TermsOfService
|
||||
public init(expires: Int32, termsOfService: Api.help.TermsOfService) {
|
||||
self.expires = expires
|
||||
self.termsOfService = termsOfService
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("termsOfServiceUpdate", [("expires", self.expires as Any), ("termsOfService", self.termsOfService as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_termsOfServiceUpdateEmpty {
|
||||
public class Cons_termsOfServiceUpdateEmpty: TypeConstructorDescription {
|
||||
public var expires: Int32
|
||||
public init(expires: Int32) {
|
||||
self.expires = expires
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("termsOfServiceUpdateEmpty", [("expires", self.expires as Any)])
|
||||
}
|
||||
}
|
||||
case termsOfServiceUpdate(Cons_termsOfServiceUpdate)
|
||||
case termsOfServiceUpdateEmpty(Cons_termsOfServiceUpdateEmpty)
|
||||
|
|
@ -1346,13 +1406,16 @@ public extension Api.help {
|
|||
}
|
||||
public extension Api.help {
|
||||
enum TimezonesList: TypeConstructorDescription {
|
||||
public class Cons_timezonesList {
|
||||
public class Cons_timezonesList: TypeConstructorDescription {
|
||||
public var timezones: [Api.Timezone]
|
||||
public var hash: Int32
|
||||
public init(timezones: [Api.Timezone], hash: Int32) {
|
||||
self.timezones = timezones
|
||||
self.hash = hash
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("timezonesList", [("timezones", self.timezones as Any), ("hash", self.hash as Any)])
|
||||
}
|
||||
}
|
||||
case timezonesList(Cons_timezonesList)
|
||||
case timezonesListNotModified
|
||||
|
|
@ -1410,7 +1473,7 @@ public extension Api.help {
|
|||
}
|
||||
public extension Api.help {
|
||||
enum UserInfo: TypeConstructorDescription {
|
||||
public class Cons_userInfo {
|
||||
public class Cons_userInfo: TypeConstructorDescription {
|
||||
public var message: String
|
||||
public var entities: [Api.MessageEntity]
|
||||
public var author: String
|
||||
|
|
@ -1421,6 +1484,9 @@ public extension Api.help {
|
|||
self.author = author
|
||||
self.date = date
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("userInfo", [("message", self.message as Any), ("entities", self.entities as Any), ("author", self.author as Any), ("date", self.date as Any)])
|
||||
}
|
||||
}
|
||||
case userInfo(Cons_userInfo)
|
||||
case userInfoEmpty
|
||||
|
|
@ -1486,7 +1552,7 @@ public extension Api.help {
|
|||
}
|
||||
public extension Api.messages {
|
||||
enum AffectedFoundMessages: TypeConstructorDescription {
|
||||
public class Cons_affectedFoundMessages {
|
||||
public class Cons_affectedFoundMessages: TypeConstructorDescription {
|
||||
public var pts: Int32
|
||||
public var ptsCount: Int32
|
||||
public var offset: Int32
|
||||
|
|
@ -1497,6 +1563,9 @@ public extension Api.messages {
|
|||
self.offset = offset
|
||||
self.messages = messages
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("affectedFoundMessages", [("pts", self.pts as Any), ("ptsCount", self.ptsCount as Any), ("offset", self.offset as Any), ("messages", self.messages as Any)])
|
||||
}
|
||||
}
|
||||
case affectedFoundMessages(Cons_affectedFoundMessages)
|
||||
|
||||
|
|
@ -1551,7 +1620,7 @@ public extension Api.messages {
|
|||
}
|
||||
public extension Api.messages {
|
||||
enum AffectedHistory: TypeConstructorDescription {
|
||||
public class Cons_affectedHistory {
|
||||
public class Cons_affectedHistory: TypeConstructorDescription {
|
||||
public var pts: Int32
|
||||
public var ptsCount: Int32
|
||||
public var offset: Int32
|
||||
|
|
@ -1560,6 +1629,9 @@ public extension Api.messages {
|
|||
self.ptsCount = ptsCount
|
||||
self.offset = offset
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("affectedHistory", [("pts", self.pts as Any), ("ptsCount", self.ptsCount as Any), ("offset", self.offset as Any)])
|
||||
}
|
||||
}
|
||||
case affectedHistory(Cons_affectedHistory)
|
||||
|
||||
|
|
@ -1604,13 +1676,16 @@ public extension Api.messages {
|
|||
}
|
||||
public extension Api.messages {
|
||||
enum AffectedMessages: TypeConstructorDescription {
|
||||
public class Cons_affectedMessages {
|
||||
public class Cons_affectedMessages: TypeConstructorDescription {
|
||||
public var pts: Int32
|
||||
public var ptsCount: Int32
|
||||
public init(pts: Int32, ptsCount: Int32) {
|
||||
self.pts = pts
|
||||
self.ptsCount = ptsCount
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("affectedMessages", [("pts", self.pts as Any), ("ptsCount", self.ptsCount as Any)])
|
||||
}
|
||||
}
|
||||
case affectedMessages(Cons_affectedMessages)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,12 +1,15 @@
|
|||
public extension Api.messages {
|
||||
enum AllStickers: TypeConstructorDescription {
|
||||
public class Cons_allStickers {
|
||||
public class Cons_allStickers: TypeConstructorDescription {
|
||||
public var hash: Int64
|
||||
public var sets: [Api.StickerSet]
|
||||
public init(hash: Int64, sets: [Api.StickerSet]) {
|
||||
self.hash = hash
|
||||
self.sets = sets
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("allStickers", [("hash", self.hash as Any), ("sets", self.sets as Any)])
|
||||
}
|
||||
}
|
||||
case allStickers(Cons_allStickers)
|
||||
case allStickersNotModified
|
||||
|
|
@ -64,13 +67,16 @@ public extension Api.messages {
|
|||
}
|
||||
public extension Api.messages {
|
||||
enum ArchivedStickers: TypeConstructorDescription {
|
||||
public class Cons_archivedStickers {
|
||||
public class Cons_archivedStickers: TypeConstructorDescription {
|
||||
public var count: Int32
|
||||
public var sets: [Api.StickerSetCovered]
|
||||
public init(count: Int32, sets: [Api.StickerSetCovered]) {
|
||||
self.count = count
|
||||
self.sets = sets
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("archivedStickers", [("count", self.count as Any), ("sets", self.sets as Any)])
|
||||
}
|
||||
}
|
||||
case archivedStickers(Cons_archivedStickers)
|
||||
|
||||
|
|
@ -117,7 +123,7 @@ public extension Api.messages {
|
|||
}
|
||||
public extension Api.messages {
|
||||
enum AvailableEffects: TypeConstructorDescription {
|
||||
public class Cons_availableEffects {
|
||||
public class Cons_availableEffects: TypeConstructorDescription {
|
||||
public var hash: Int32
|
||||
public var effects: [Api.AvailableEffect]
|
||||
public var documents: [Api.Document]
|
||||
|
|
@ -126,6 +132,9 @@ public extension Api.messages {
|
|||
self.effects = effects
|
||||
self.documents = documents
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("availableEffects", [("hash", self.hash as Any), ("effects", self.effects as Any), ("documents", self.documents as Any)])
|
||||
}
|
||||
}
|
||||
case availableEffects(Cons_availableEffects)
|
||||
case availableEffectsNotModified
|
||||
|
|
@ -193,13 +202,16 @@ public extension Api.messages {
|
|||
}
|
||||
public extension Api.messages {
|
||||
enum AvailableReactions: TypeConstructorDescription {
|
||||
public class Cons_availableReactions {
|
||||
public class Cons_availableReactions: TypeConstructorDescription {
|
||||
public var hash: Int32
|
||||
public var reactions: [Api.AvailableReaction]
|
||||
public init(hash: Int32, reactions: [Api.AvailableReaction]) {
|
||||
self.hash = hash
|
||||
self.reactions = reactions
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("availableReactions", [("hash", self.hash as Any), ("reactions", self.reactions as Any)])
|
||||
}
|
||||
}
|
||||
case availableReactions(Cons_availableReactions)
|
||||
case availableReactionsNotModified
|
||||
|
|
@ -257,13 +269,16 @@ public extension Api.messages {
|
|||
}
|
||||
public extension Api.messages {
|
||||
enum BotApp: TypeConstructorDescription {
|
||||
public class Cons_botApp {
|
||||
public class Cons_botApp: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var app: Api.BotApp
|
||||
public init(flags: Int32, app: Api.BotApp) {
|
||||
self.flags = flags
|
||||
self.app = app
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("botApp", [("flags", self.flags as Any), ("app", self.app as Any)])
|
||||
}
|
||||
}
|
||||
case botApp(Cons_botApp)
|
||||
|
||||
|
|
@ -306,7 +321,7 @@ public extension Api.messages {
|
|||
}
|
||||
public extension Api.messages {
|
||||
enum BotCallbackAnswer: TypeConstructorDescription {
|
||||
public class Cons_botCallbackAnswer {
|
||||
public class Cons_botCallbackAnswer: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var message: String?
|
||||
public var url: String?
|
||||
|
|
@ -317,6 +332,9 @@ public extension Api.messages {
|
|||
self.url = url
|
||||
self.cacheTime = cacheTime
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("botCallbackAnswer", [("flags", self.flags as Any), ("message", self.message as Any), ("url", self.url as Any), ("cacheTime", self.cacheTime as Any)])
|
||||
}
|
||||
}
|
||||
case botCallbackAnswer(Cons_botCallbackAnswer)
|
||||
|
||||
|
|
@ -373,13 +391,16 @@ public extension Api.messages {
|
|||
}
|
||||
public extension Api.messages {
|
||||
enum BotPreparedInlineMessage: TypeConstructorDescription {
|
||||
public class Cons_botPreparedInlineMessage {
|
||||
public class Cons_botPreparedInlineMessage: TypeConstructorDescription {
|
||||
public var id: String
|
||||
public var expireDate: Int32
|
||||
public init(id: String, expireDate: Int32) {
|
||||
self.id = id
|
||||
self.expireDate = expireDate
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("botPreparedInlineMessage", [("id", self.id as Any), ("expireDate", self.expireDate as Any)])
|
||||
}
|
||||
}
|
||||
case botPreparedInlineMessage(Cons_botPreparedInlineMessage)
|
||||
|
||||
|
|
@ -420,7 +441,7 @@ public extension Api.messages {
|
|||
}
|
||||
public extension Api.messages {
|
||||
enum BotResults: TypeConstructorDescription {
|
||||
public class Cons_botResults {
|
||||
public class Cons_botResults: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var queryId: Int64
|
||||
public var nextOffset: String?
|
||||
|
|
@ -439,6 +460,9 @@ public extension Api.messages {
|
|||
self.cacheTime = cacheTime
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("botResults", [("flags", self.flags as Any), ("queryId", self.queryId as Any), ("nextOffset", self.nextOffset as Any), ("switchPm", self.switchPm as Any), ("switchWebview", self.switchWebview as Any), ("results", self.results as Any), ("cacheTime", self.cacheTime as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case botResults(Cons_botResults)
|
||||
|
||||
|
|
@ -531,13 +555,16 @@ public extension Api.messages {
|
|||
}
|
||||
public extension Api.messages {
|
||||
enum ChatAdminsWithInvites: TypeConstructorDescription {
|
||||
public class Cons_chatAdminsWithInvites {
|
||||
public class Cons_chatAdminsWithInvites: TypeConstructorDescription {
|
||||
public var admins: [Api.ChatAdminWithInvites]
|
||||
public var users: [Api.User]
|
||||
public init(admins: [Api.ChatAdminWithInvites], users: [Api.User]) {
|
||||
self.admins = admins
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("chatAdminsWithInvites", [("admins", self.admins as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case chatAdminsWithInvites(Cons_chatAdminsWithInvites)
|
||||
|
||||
|
|
@ -590,7 +617,7 @@ public extension Api.messages {
|
|||
}
|
||||
public extension Api.messages {
|
||||
enum ChatFull: TypeConstructorDescription {
|
||||
public class Cons_chatFull {
|
||||
public class Cons_chatFull: TypeConstructorDescription {
|
||||
public var fullChat: Api.ChatFull
|
||||
public var chats: [Api.Chat]
|
||||
public var users: [Api.User]
|
||||
|
|
@ -599,6 +626,9 @@ public extension Api.messages {
|
|||
self.chats = chats
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("chatFull", [("fullChat", self.fullChat as Any), ("chats", self.chats as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case chatFull(Cons_chatFull)
|
||||
|
||||
|
|
@ -657,7 +687,7 @@ public extension Api.messages {
|
|||
}
|
||||
public extension Api.messages {
|
||||
enum ChatInviteImporters: TypeConstructorDescription {
|
||||
public class Cons_chatInviteImporters {
|
||||
public class Cons_chatInviteImporters: TypeConstructorDescription {
|
||||
public var count: Int32
|
||||
public var importers: [Api.ChatInviteImporter]
|
||||
public var users: [Api.User]
|
||||
|
|
@ -666,6 +696,9 @@ public extension Api.messages {
|
|||
self.importers = importers
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("chatInviteImporters", [("count", self.count as Any), ("importers", self.importers as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case chatInviteImporters(Cons_chatInviteImporters)
|
||||
|
||||
|
|
@ -722,19 +755,25 @@ public extension Api.messages {
|
|||
}
|
||||
public extension Api.messages {
|
||||
enum Chats: TypeConstructorDescription {
|
||||
public class Cons_chats {
|
||||
public class Cons_chats: TypeConstructorDescription {
|
||||
public var chats: [Api.Chat]
|
||||
public init(chats: [Api.Chat]) {
|
||||
self.chats = chats
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("chats", [("chats", self.chats as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_chatsSlice {
|
||||
public class Cons_chatsSlice: TypeConstructorDescription {
|
||||
public var count: Int32
|
||||
public var chats: [Api.Chat]
|
||||
public init(count: Int32, chats: [Api.Chat]) {
|
||||
self.count = count
|
||||
self.chats = chats
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("chatsSlice", [("count", self.count as Any), ("chats", self.chats as Any)])
|
||||
}
|
||||
}
|
||||
case chats(Cons_chats)
|
||||
case chatsSlice(Cons_chatsSlice)
|
||||
|
|
@ -807,11 +846,14 @@ public extension Api.messages {
|
|||
}
|
||||
public extension Api.messages {
|
||||
enum CheckedHistoryImportPeer: TypeConstructorDescription {
|
||||
public class Cons_checkedHistoryImportPeer {
|
||||
public class Cons_checkedHistoryImportPeer: TypeConstructorDescription {
|
||||
public var confirmText: String
|
||||
public init(confirmText: String) {
|
||||
self.confirmText = confirmText
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("checkedHistoryImportPeer", [("confirmText", self.confirmText as Any)])
|
||||
}
|
||||
}
|
||||
case checkedHistoryImportPeer(Cons_checkedHistoryImportPeer)
|
||||
|
||||
|
|
@ -848,7 +890,7 @@ public extension Api.messages {
|
|||
}
|
||||
public extension Api.messages {
|
||||
enum DhConfig: TypeConstructorDescription {
|
||||
public class Cons_dhConfig {
|
||||
public class Cons_dhConfig: TypeConstructorDescription {
|
||||
public var g: Int32
|
||||
public var p: Buffer
|
||||
public var version: Int32
|
||||
|
|
@ -859,12 +901,18 @@ public extension Api.messages {
|
|||
self.version = version
|
||||
self.random = random
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("dhConfig", [("g", self.g as Any), ("p", self.p as Any), ("version", self.version as Any), ("random", self.random as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_dhConfigNotModified {
|
||||
public class Cons_dhConfigNotModified: TypeConstructorDescription {
|
||||
public var random: Buffer
|
||||
public init(random: Buffer) {
|
||||
self.random = random
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("dhConfigNotModified", [("random", self.random as Any)])
|
||||
}
|
||||
}
|
||||
case dhConfig(Cons_dhConfig)
|
||||
case dhConfigNotModified(Cons_dhConfigNotModified)
|
||||
|
|
@ -933,13 +981,16 @@ public extension Api.messages {
|
|||
}
|
||||
public extension Api.messages {
|
||||
enum DialogFilters: TypeConstructorDescription {
|
||||
public class Cons_dialogFilters {
|
||||
public class Cons_dialogFilters: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var filters: [Api.DialogFilter]
|
||||
public init(flags: Int32, filters: [Api.DialogFilter]) {
|
||||
self.flags = flags
|
||||
self.filters = filters
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("dialogFilters", [("flags", self.flags as Any), ("filters", self.filters as Any)])
|
||||
}
|
||||
}
|
||||
case dialogFilters(Cons_dialogFilters)
|
||||
|
||||
|
|
@ -986,7 +1037,7 @@ public extension Api.messages {
|
|||
}
|
||||
public extension Api.messages {
|
||||
enum Dialogs: TypeConstructorDescription {
|
||||
public class Cons_dialogs {
|
||||
public class Cons_dialogs: TypeConstructorDescription {
|
||||
public var dialogs: [Api.Dialog]
|
||||
public var messages: [Api.Message]
|
||||
public var chats: [Api.Chat]
|
||||
|
|
@ -997,14 +1048,20 @@ public extension Api.messages {
|
|||
self.chats = chats
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("dialogs", [("dialogs", self.dialogs as Any), ("messages", self.messages as Any), ("chats", self.chats as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_dialogsNotModified {
|
||||
public class Cons_dialogsNotModified: TypeConstructorDescription {
|
||||
public var count: Int32
|
||||
public init(count: Int32) {
|
||||
self.count = count
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("dialogsNotModified", [("count", self.count as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_dialogsSlice {
|
||||
public class Cons_dialogsSlice: TypeConstructorDescription {
|
||||
public var count: Int32
|
||||
public var dialogs: [Api.Dialog]
|
||||
public var messages: [Api.Message]
|
||||
|
|
@ -1017,6 +1074,9 @@ public extension Api.messages {
|
|||
self.chats = chats
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("dialogsSlice", [("count", self.count as Any), ("dialogs", self.dialogs as Any), ("messages", self.messages as Any), ("chats", self.chats as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case dialogs(Cons_dialogs)
|
||||
case dialogsNotModified(Cons_dialogsNotModified)
|
||||
|
|
@ -1169,7 +1229,7 @@ public extension Api.messages {
|
|||
}
|
||||
public extension Api.messages {
|
||||
enum DiscussionMessage: TypeConstructorDescription {
|
||||
public class Cons_discussionMessage {
|
||||
public class Cons_discussionMessage: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var messages: [Api.Message]
|
||||
public var maxId: Int32?
|
||||
|
|
@ -1188,6 +1248,9 @@ public extension Api.messages {
|
|||
self.chats = chats
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("discussionMessage", [("flags", self.flags as Any), ("messages", self.messages as Any), ("maxId", self.maxId as Any), ("readInboxMaxId", self.readInboxMaxId as Any), ("readOutboxMaxId", self.readOutboxMaxId as Any), ("unreadCount", self.unreadCount as Any), ("chats", self.chats as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case discussionMessage(Cons_discussionMessage)
|
||||
|
||||
|
|
@ -1282,7 +1345,7 @@ public extension Api.messages {
|
|||
}
|
||||
public extension Api.messages {
|
||||
enum EmojiGameInfo: TypeConstructorDescription {
|
||||
public class Cons_emojiGameDiceInfo {
|
||||
public class Cons_emojiGameDiceInfo: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var gameHash: String
|
||||
public var prevStake: Int64
|
||||
|
|
@ -1297,6 +1360,9 @@ public extension Api.messages {
|
|||
self.params = params
|
||||
self.playsLeft = playsLeft
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("emojiGameDiceInfo", [("flags", self.flags as Any), ("gameHash", self.gameHash as Any), ("prevStake", self.prevStake as Any), ("currentStreak", self.currentStreak as Any), ("params", self.params as Any), ("playsLeft", self.playsLeft as Any)])
|
||||
}
|
||||
}
|
||||
case emojiGameDiceInfo(Cons_emojiGameDiceInfo)
|
||||
case emojiGameUnavailable
|
||||
|
|
@ -1374,7 +1440,7 @@ public extension Api.messages {
|
|||
}
|
||||
public extension Api.messages {
|
||||
enum EmojiGameOutcome: TypeConstructorDescription {
|
||||
public class Cons_emojiGameOutcome {
|
||||
public class Cons_emojiGameOutcome: TypeConstructorDescription {
|
||||
public var seed: Buffer
|
||||
public var stakeTonAmount: Int64
|
||||
public var tonAmount: Int64
|
||||
|
|
@ -1383,6 +1449,9 @@ public extension Api.messages {
|
|||
self.stakeTonAmount = stakeTonAmount
|
||||
self.tonAmount = tonAmount
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("emojiGameOutcome", [("seed", self.seed as Any), ("stakeTonAmount", self.stakeTonAmount as Any), ("tonAmount", self.tonAmount as Any)])
|
||||
}
|
||||
}
|
||||
case emojiGameOutcome(Cons_emojiGameOutcome)
|
||||
|
||||
|
|
@ -1427,13 +1496,16 @@ public extension Api.messages {
|
|||
}
|
||||
public extension Api.messages {
|
||||
enum EmojiGroups: TypeConstructorDescription {
|
||||
public class Cons_emojiGroups {
|
||||
public class Cons_emojiGroups: TypeConstructorDescription {
|
||||
public var hash: Int32
|
||||
public var groups: [Api.EmojiGroup]
|
||||
public init(hash: Int32, groups: [Api.EmojiGroup]) {
|
||||
self.hash = hash
|
||||
self.groups = groups
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("emojiGroups", [("hash", self.hash as Any), ("groups", self.groups as Any)])
|
||||
}
|
||||
}
|
||||
case emojiGroups(Cons_emojiGroups)
|
||||
case emojiGroupsNotModified
|
||||
|
|
@ -1491,15 +1563,18 @@ public extension Api.messages {
|
|||
}
|
||||
public extension Api.messages {
|
||||
enum ExportedChatInvite: TypeConstructorDescription {
|
||||
public class Cons_exportedChatInvite {
|
||||
public class Cons_exportedChatInvite: TypeConstructorDescription {
|
||||
public var invite: Api.ExportedChatInvite
|
||||
public var users: [Api.User]
|
||||
public init(invite: Api.ExportedChatInvite, users: [Api.User]) {
|
||||
self.invite = invite
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("exportedChatInvite", [("invite", self.invite as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_exportedChatInviteReplaced {
|
||||
public class Cons_exportedChatInviteReplaced: TypeConstructorDescription {
|
||||
public var invite: Api.ExportedChatInvite
|
||||
public var newInvite: Api.ExportedChatInvite
|
||||
public var users: [Api.User]
|
||||
|
|
@ -1508,6 +1583,9 @@ public extension Api.messages {
|
|||
self.newInvite = newInvite
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("exportedChatInviteReplaced", [("invite", self.invite as Any), ("newInvite", self.newInvite as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case exportedChatInvite(Cons_exportedChatInvite)
|
||||
case exportedChatInviteReplaced(Cons_exportedChatInviteReplaced)
|
||||
|
|
@ -1594,7 +1672,7 @@ public extension Api.messages {
|
|||
}
|
||||
public extension Api.messages {
|
||||
enum ExportedChatInvites: TypeConstructorDescription {
|
||||
public class Cons_exportedChatInvites {
|
||||
public class Cons_exportedChatInvites: TypeConstructorDescription {
|
||||
public var count: Int32
|
||||
public var invites: [Api.ExportedChatInvite]
|
||||
public var users: [Api.User]
|
||||
|
|
@ -1603,6 +1681,9 @@ public extension Api.messages {
|
|||
self.invites = invites
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("exportedChatInvites", [("count", self.count as Any), ("invites", self.invites as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case exportedChatInvites(Cons_exportedChatInvites)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
public extension Api.messages {
|
||||
enum FavedStickers: TypeConstructorDescription {
|
||||
public class Cons_favedStickers {
|
||||
public class Cons_favedStickers: TypeConstructorDescription {
|
||||
public var hash: Int64
|
||||
public var packs: [Api.StickerPack]
|
||||
public var stickers: [Api.Document]
|
||||
|
|
@ -9,6 +9,9 @@ public extension Api.messages {
|
|||
self.packs = packs
|
||||
self.stickers = stickers
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("favedStickers", [("hash", self.hash as Any), ("packs", self.packs as Any), ("stickers", self.stickers as Any)])
|
||||
}
|
||||
}
|
||||
case favedStickers(Cons_favedStickers)
|
||||
case favedStickersNotModified
|
||||
|
|
@ -76,7 +79,7 @@ public extension Api.messages {
|
|||
}
|
||||
public extension Api.messages {
|
||||
enum FeaturedStickers: TypeConstructorDescription {
|
||||
public class Cons_featuredStickers {
|
||||
public class Cons_featuredStickers: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var hash: Int64
|
||||
public var count: Int32
|
||||
|
|
@ -89,12 +92,18 @@ public extension Api.messages {
|
|||
self.sets = sets
|
||||
self.unread = unread
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("featuredStickers", [("flags", self.flags as Any), ("hash", self.hash as Any), ("count", self.count as Any), ("sets", self.sets as Any), ("unread", self.unread as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_featuredStickersNotModified {
|
||||
public class Cons_featuredStickersNotModified: TypeConstructorDescription {
|
||||
public var count: Int32
|
||||
public init(count: Int32) {
|
||||
self.count = count
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("featuredStickersNotModified", [("count", self.count as Any)])
|
||||
}
|
||||
}
|
||||
case featuredStickers(Cons_featuredStickers)
|
||||
case featuredStickersNotModified(Cons_featuredStickersNotModified)
|
||||
|
|
@ -179,7 +188,7 @@ public extension Api.messages {
|
|||
}
|
||||
public extension Api.messages {
|
||||
enum ForumTopics: TypeConstructorDescription {
|
||||
public class Cons_forumTopics {
|
||||
public class Cons_forumTopics: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var count: Int32
|
||||
public var topics: [Api.ForumTopic]
|
||||
|
|
@ -196,6 +205,9 @@ public extension Api.messages {
|
|||
self.users = users
|
||||
self.pts = pts
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("forumTopics", [("flags", self.flags as Any), ("count", self.count as Any), ("topics", self.topics as Any), ("messages", self.messages as Any), ("chats", self.chats as Any), ("users", self.users as Any), ("pts", self.pts as Any)])
|
||||
}
|
||||
}
|
||||
case forumTopics(Cons_forumTopics)
|
||||
|
||||
|
|
@ -280,13 +292,16 @@ public extension Api.messages {
|
|||
}
|
||||
public extension Api.messages {
|
||||
enum FoundStickerSets: TypeConstructorDescription {
|
||||
public class Cons_foundStickerSets {
|
||||
public class Cons_foundStickerSets: TypeConstructorDescription {
|
||||
public var hash: Int64
|
||||
public var sets: [Api.StickerSetCovered]
|
||||
public init(hash: Int64, sets: [Api.StickerSetCovered]) {
|
||||
self.hash = hash
|
||||
self.sets = sets
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("foundStickerSets", [("hash", self.hash as Any), ("sets", self.sets as Any)])
|
||||
}
|
||||
}
|
||||
case foundStickerSets(Cons_foundStickerSets)
|
||||
case foundStickerSetsNotModified
|
||||
|
|
@ -344,7 +359,7 @@ public extension Api.messages {
|
|||
}
|
||||
public extension Api.messages {
|
||||
enum FoundStickers: TypeConstructorDescription {
|
||||
public class Cons_foundStickers {
|
||||
public class Cons_foundStickers: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var nextOffset: Int32?
|
||||
public var hash: Int64
|
||||
|
|
@ -355,14 +370,20 @@ public extension Api.messages {
|
|||
self.hash = hash
|
||||
self.stickers = stickers
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("foundStickers", [("flags", self.flags as Any), ("nextOffset", self.nextOffset as Any), ("hash", self.hash as Any), ("stickers", self.stickers as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_foundStickersNotModified {
|
||||
public class Cons_foundStickersNotModified: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var nextOffset: Int32?
|
||||
public init(flags: Int32, nextOffset: Int32?) {
|
||||
self.flags = flags
|
||||
self.nextOffset = nextOffset
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("foundStickersNotModified", [("flags", self.flags as Any), ("nextOffset", self.nextOffset as Any)])
|
||||
}
|
||||
}
|
||||
case foundStickers(Cons_foundStickers)
|
||||
case foundStickersNotModified(Cons_foundStickersNotModified)
|
||||
|
|
@ -449,13 +470,16 @@ public extension Api.messages {
|
|||
}
|
||||
public extension Api.messages {
|
||||
enum HighScores: TypeConstructorDescription {
|
||||
public class Cons_highScores {
|
||||
public class Cons_highScores: TypeConstructorDescription {
|
||||
public var scores: [Api.HighScore]
|
||||
public var users: [Api.User]
|
||||
public init(scores: [Api.HighScore], users: [Api.User]) {
|
||||
self.scores = scores
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("highScores", [("scores", self.scores as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case highScores(Cons_highScores)
|
||||
|
||||
|
|
@ -508,11 +532,14 @@ public extension Api.messages {
|
|||
}
|
||||
public extension Api.messages {
|
||||
enum HistoryImport: TypeConstructorDescription {
|
||||
public class Cons_historyImport {
|
||||
public class Cons_historyImport: TypeConstructorDescription {
|
||||
public var id: Int64
|
||||
public init(id: Int64) {
|
||||
self.id = id
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("historyImport", [("id", self.id as Any)])
|
||||
}
|
||||
}
|
||||
case historyImport(Cons_historyImport)
|
||||
|
||||
|
|
@ -549,13 +576,16 @@ public extension Api.messages {
|
|||
}
|
||||
public extension Api.messages {
|
||||
enum HistoryImportParsed: TypeConstructorDescription {
|
||||
public class Cons_historyImportParsed {
|
||||
public class Cons_historyImportParsed: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var title: String?
|
||||
public init(flags: Int32, title: String?) {
|
||||
self.flags = flags
|
||||
self.title = title
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("historyImportParsed", [("flags", self.flags as Any), ("title", self.title as Any)])
|
||||
}
|
||||
}
|
||||
case historyImportParsed(Cons_historyImportParsed)
|
||||
|
||||
|
|
@ -600,7 +630,7 @@ public extension Api.messages {
|
|||
}
|
||||
public extension Api.messages {
|
||||
enum InactiveChats: TypeConstructorDescription {
|
||||
public class Cons_inactiveChats {
|
||||
public class Cons_inactiveChats: TypeConstructorDescription {
|
||||
public var dates: [Int32]
|
||||
public var chats: [Api.Chat]
|
||||
public var users: [Api.User]
|
||||
|
|
@ -609,6 +639,9 @@ public extension Api.messages {
|
|||
self.chats = chats
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inactiveChats", [("dates", self.dates as Any), ("chats", self.chats as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case inactiveChats(Cons_inactiveChats)
|
||||
|
||||
|
|
@ -671,13 +704,16 @@ public extension Api.messages {
|
|||
}
|
||||
public extension Api.messages {
|
||||
indirect enum InvitedUsers: TypeConstructorDescription {
|
||||
public class Cons_invitedUsers {
|
||||
public class Cons_invitedUsers: TypeConstructorDescription {
|
||||
public var updates: Api.Updates
|
||||
public var missingInvitees: [Api.MissingInvitee]
|
||||
public init(updates: Api.Updates, missingInvitees: [Api.MissingInvitee]) {
|
||||
self.updates = updates
|
||||
self.missingInvitees = missingInvitees
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("invitedUsers", [("updates", self.updates as Any), ("missingInvitees", self.missingInvitees as Any)])
|
||||
}
|
||||
}
|
||||
case invitedUsers(Cons_invitedUsers)
|
||||
|
||||
|
|
@ -726,11 +762,14 @@ public extension Api.messages {
|
|||
}
|
||||
public extension Api.messages {
|
||||
enum MessageEditData: TypeConstructorDescription {
|
||||
public class Cons_messageEditData {
|
||||
public class Cons_messageEditData: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public init(flags: Int32) {
|
||||
self.flags = flags
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("messageEditData", [("flags", self.flags as Any)])
|
||||
}
|
||||
}
|
||||
case messageEditData(Cons_messageEditData)
|
||||
|
||||
|
|
@ -767,7 +806,7 @@ public extension Api.messages {
|
|||
}
|
||||
public extension Api.messages {
|
||||
enum MessageReactionsList: TypeConstructorDescription {
|
||||
public class Cons_messageReactionsList {
|
||||
public class Cons_messageReactionsList: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var count: Int32
|
||||
public var reactions: [Api.MessagePeerReaction]
|
||||
|
|
@ -782,6 +821,9 @@ public extension Api.messages {
|
|||
self.users = users
|
||||
self.nextOffset = nextOffset
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("messageReactionsList", [("flags", self.flags as Any), ("count", self.count as Any), ("reactions", self.reactions as Any), ("chats", self.chats as Any), ("users", self.users as Any), ("nextOffset", self.nextOffset as Any)])
|
||||
}
|
||||
}
|
||||
case messageReactionsList(Cons_messageReactionsList)
|
||||
|
||||
|
|
@ -860,7 +902,7 @@ public extension Api.messages {
|
|||
}
|
||||
public extension Api.messages {
|
||||
enum MessageViews: TypeConstructorDescription {
|
||||
public class Cons_messageViews {
|
||||
public class Cons_messageViews: TypeConstructorDescription {
|
||||
public var views: [Api.MessageViews]
|
||||
public var chats: [Api.Chat]
|
||||
public var users: [Api.User]
|
||||
|
|
@ -869,6 +911,9 @@ public extension Api.messages {
|
|||
self.chats = chats
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("messageViews", [("views", self.views as Any), ("chats", self.chats as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case messageViews(Cons_messageViews)
|
||||
|
||||
|
|
@ -931,7 +976,7 @@ public extension Api.messages {
|
|||
}
|
||||
public extension Api.messages {
|
||||
enum Messages: TypeConstructorDescription {
|
||||
public class Cons_channelMessages {
|
||||
public class Cons_channelMessages: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var pts: Int32
|
||||
public var count: Int32
|
||||
|
|
@ -950,8 +995,11 @@ public extension Api.messages {
|
|||
self.chats = chats
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channelMessages", [("flags", self.flags as Any), ("pts", self.pts as Any), ("count", self.count as Any), ("offsetIdOffset", self.offsetIdOffset as Any), ("messages", self.messages as Any), ("topics", self.topics as Any), ("chats", self.chats as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_messages {
|
||||
public class Cons_messages: TypeConstructorDescription {
|
||||
public var messages: [Api.Message]
|
||||
public var topics: [Api.ForumTopic]
|
||||
public var chats: [Api.Chat]
|
||||
|
|
@ -962,14 +1010,20 @@ public extension Api.messages {
|
|||
self.chats = chats
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("messages", [("messages", self.messages as Any), ("topics", self.topics as Any), ("chats", self.chats as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_messagesNotModified {
|
||||
public class Cons_messagesNotModified: TypeConstructorDescription {
|
||||
public var count: Int32
|
||||
public init(count: Int32) {
|
||||
self.count = count
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("messagesNotModified", [("count", self.count as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_messagesSlice {
|
||||
public class Cons_messagesSlice: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var count: Int32
|
||||
public var nextRate: Int32?
|
||||
|
|
@ -990,6 +1044,9 @@ public extension Api.messages {
|
|||
self.chats = chats
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("messagesSlice", [("flags", self.flags as Any), ("count", self.count as Any), ("nextRate", self.nextRate as Any), ("offsetIdOffset", self.offsetIdOffset as Any), ("searchFlood", self.searchFlood as Any), ("messages", self.messages as Any), ("topics", self.topics as Any), ("chats", self.chats as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case channelMessages(Cons_channelMessages)
|
||||
case messages(Cons_messages)
|
||||
|
|
@ -1248,13 +1305,16 @@ public extension Api.messages {
|
|||
}
|
||||
public extension Api.messages {
|
||||
enum MyStickers: TypeConstructorDescription {
|
||||
public class Cons_myStickers {
|
||||
public class Cons_myStickers: TypeConstructorDescription {
|
||||
public var count: Int32
|
||||
public var sets: [Api.StickerSetCovered]
|
||||
public init(count: Int32, sets: [Api.StickerSetCovered]) {
|
||||
self.count = count
|
||||
self.sets = sets
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("myStickers", [("count", self.count as Any), ("sets", self.sets as Any)])
|
||||
}
|
||||
}
|
||||
case myStickers(Cons_myStickers)
|
||||
|
||||
|
|
@ -1301,7 +1361,7 @@ public extension Api.messages {
|
|||
}
|
||||
public extension Api.messages {
|
||||
enum PeerDialogs: TypeConstructorDescription {
|
||||
public class Cons_peerDialogs {
|
||||
public class Cons_peerDialogs: TypeConstructorDescription {
|
||||
public var dialogs: [Api.Dialog]
|
||||
public var messages: [Api.Message]
|
||||
public var chats: [Api.Chat]
|
||||
|
|
@ -1314,6 +1374,9 @@ public extension Api.messages {
|
|||
self.users = users
|
||||
self.state = state
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("peerDialogs", [("dialogs", self.dialogs as Any), ("messages", self.messages as Any), ("chats", self.chats as Any), ("users", self.users as Any), ("state", self.state as Any)])
|
||||
}
|
||||
}
|
||||
case peerDialogs(Cons_peerDialogs)
|
||||
|
||||
|
|
@ -1392,7 +1455,7 @@ public extension Api.messages {
|
|||
}
|
||||
public extension Api.messages {
|
||||
enum PeerSettings: TypeConstructorDescription {
|
||||
public class Cons_peerSettings {
|
||||
public class Cons_peerSettings: TypeConstructorDescription {
|
||||
public var settings: Api.PeerSettings
|
||||
public var chats: [Api.Chat]
|
||||
public var users: [Api.User]
|
||||
|
|
@ -1401,6 +1464,9 @@ public extension Api.messages {
|
|||
self.chats = chats
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("peerSettings", [("settings", self.settings as Any), ("chats", self.chats as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case peerSettings(Cons_peerSettings)
|
||||
|
||||
|
|
@ -1459,7 +1525,7 @@ public extension Api.messages {
|
|||
}
|
||||
public extension Api.messages {
|
||||
enum PreparedInlineMessage: TypeConstructorDescription {
|
||||
public class Cons_preparedInlineMessage {
|
||||
public class Cons_preparedInlineMessage: TypeConstructorDescription {
|
||||
public var queryId: Int64
|
||||
public var result: Api.BotInlineResult
|
||||
public var peerTypes: [Api.InlineQueryPeerType]
|
||||
|
|
@ -1472,6 +1538,9 @@ public extension Api.messages {
|
|||
self.cacheTime = cacheTime
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("preparedInlineMessage", [("queryId", self.queryId as Any), ("result", self.result as Any), ("peerTypes", self.peerTypes as Any), ("cacheTime", self.cacheTime as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case preparedInlineMessage(Cons_preparedInlineMessage)
|
||||
|
||||
|
|
@ -1538,7 +1607,7 @@ public extension Api.messages {
|
|||
}
|
||||
public extension Api.messages {
|
||||
enum QuickReplies: TypeConstructorDescription {
|
||||
public class Cons_quickReplies {
|
||||
public class Cons_quickReplies: TypeConstructorDescription {
|
||||
public var quickReplies: [Api.QuickReply]
|
||||
public var messages: [Api.Message]
|
||||
public var chats: [Api.Chat]
|
||||
|
|
@ -1549,6 +1618,9 @@ public extension Api.messages {
|
|||
self.chats = chats
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("quickReplies", [("quickReplies", self.quickReplies as Any), ("messages", self.messages as Any), ("chats", self.chats as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case quickReplies(Cons_quickReplies)
|
||||
case quickRepliesNotModified
|
||||
|
|
@ -1632,13 +1704,16 @@ public extension Api.messages {
|
|||
}
|
||||
public extension Api.messages {
|
||||
enum Reactions: TypeConstructorDescription {
|
||||
public class Cons_reactions {
|
||||
public class Cons_reactions: TypeConstructorDescription {
|
||||
public var hash: Int64
|
||||
public var reactions: [Api.Reaction]
|
||||
public init(hash: Int64, reactions: [Api.Reaction]) {
|
||||
self.hash = hash
|
||||
self.reactions = reactions
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("reactions", [("hash", self.hash as Any), ("reactions", self.reactions as Any)])
|
||||
}
|
||||
}
|
||||
case reactions(Cons_reactions)
|
||||
case reactionsNotModified
|
||||
|
|
@ -1696,7 +1771,7 @@ public extension Api.messages {
|
|||
}
|
||||
public extension Api.messages {
|
||||
enum RecentStickers: TypeConstructorDescription {
|
||||
public class Cons_recentStickers {
|
||||
public class Cons_recentStickers: TypeConstructorDescription {
|
||||
public var hash: Int64
|
||||
public var packs: [Api.StickerPack]
|
||||
public var stickers: [Api.Document]
|
||||
|
|
@ -1707,6 +1782,9 @@ public extension Api.messages {
|
|||
self.stickers = stickers
|
||||
self.dates = dates
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("recentStickers", [("hash", self.hash as Any), ("packs", self.packs as Any), ("stickers", self.stickers as Any), ("dates", self.dates as Any)])
|
||||
}
|
||||
}
|
||||
case recentStickers(Cons_recentStickers)
|
||||
case recentStickersNotModified
|
||||
|
|
@ -1784,7 +1862,7 @@ public extension Api.messages {
|
|||
}
|
||||
public extension Api.messages {
|
||||
enum SavedDialogs: TypeConstructorDescription {
|
||||
public class Cons_savedDialogs {
|
||||
public class Cons_savedDialogs: TypeConstructorDescription {
|
||||
public var dialogs: [Api.SavedDialog]
|
||||
public var messages: [Api.Message]
|
||||
public var chats: [Api.Chat]
|
||||
|
|
@ -1795,14 +1873,20 @@ public extension Api.messages {
|
|||
self.chats = chats
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("savedDialogs", [("dialogs", self.dialogs as Any), ("messages", self.messages as Any), ("chats", self.chats as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_savedDialogsNotModified {
|
||||
public class Cons_savedDialogsNotModified: TypeConstructorDescription {
|
||||
public var count: Int32
|
||||
public init(count: Int32) {
|
||||
self.count = count
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("savedDialogsNotModified", [("count", self.count as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_savedDialogsSlice {
|
||||
public class Cons_savedDialogsSlice: TypeConstructorDescription {
|
||||
public var count: Int32
|
||||
public var dialogs: [Api.SavedDialog]
|
||||
public var messages: [Api.Message]
|
||||
|
|
@ -1815,6 +1899,9 @@ public extension Api.messages {
|
|||
self.chats = chats
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("savedDialogsSlice", [("count", self.count as Any), ("dialogs", self.dialogs as Any), ("messages", self.messages as Any), ("chats", self.chats as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case savedDialogs(Cons_savedDialogs)
|
||||
case savedDialogsNotModified(Cons_savedDialogsNotModified)
|
||||
|
|
|
|||
|
|
@ -1,12 +1,15 @@
|
|||
public extension Api.messages {
|
||||
enum SavedGifs: TypeConstructorDescription {
|
||||
public class Cons_savedGifs {
|
||||
public class Cons_savedGifs: TypeConstructorDescription {
|
||||
public var hash: Int64
|
||||
public var gifs: [Api.Document]
|
||||
public init(hash: Int64, gifs: [Api.Document]) {
|
||||
self.hash = hash
|
||||
self.gifs = gifs
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("savedGifs", [("hash", self.hash as Any), ("gifs", self.gifs as Any)])
|
||||
}
|
||||
}
|
||||
case savedGifs(Cons_savedGifs)
|
||||
case savedGifsNotModified
|
||||
|
|
@ -64,13 +67,16 @@ public extension Api.messages {
|
|||
}
|
||||
public extension Api.messages {
|
||||
enum SavedReactionTags: TypeConstructorDescription {
|
||||
public class Cons_savedReactionTags {
|
||||
public class Cons_savedReactionTags: TypeConstructorDescription {
|
||||
public var tags: [Api.SavedReactionTag]
|
||||
public var hash: Int64
|
||||
public init(tags: [Api.SavedReactionTag], hash: Int64) {
|
||||
self.tags = tags
|
||||
self.hash = hash
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("savedReactionTags", [("tags", self.tags as Any), ("hash", self.hash as Any)])
|
||||
}
|
||||
}
|
||||
case savedReactionTags(Cons_savedReactionTags)
|
||||
case savedReactionTagsNotModified
|
||||
|
|
@ -128,7 +134,7 @@ public extension Api.messages {
|
|||
}
|
||||
public extension Api.messages {
|
||||
enum SearchCounter: TypeConstructorDescription {
|
||||
public class Cons_searchCounter {
|
||||
public class Cons_searchCounter: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var filter: Api.MessagesFilter
|
||||
public var count: Int32
|
||||
|
|
@ -137,6 +143,9 @@ public extension Api.messages {
|
|||
self.filter = filter
|
||||
self.count = count
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("searchCounter", [("flags", self.flags as Any), ("filter", self.filter as Any), ("count", self.count as Any)])
|
||||
}
|
||||
}
|
||||
case searchCounter(Cons_searchCounter)
|
||||
|
||||
|
|
@ -183,7 +192,7 @@ public extension Api.messages {
|
|||
}
|
||||
public extension Api.messages {
|
||||
enum SearchResultsCalendar: TypeConstructorDescription {
|
||||
public class Cons_searchResultsCalendar {
|
||||
public class Cons_searchResultsCalendar: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var count: Int32
|
||||
public var minDate: Int32
|
||||
|
|
@ -204,6 +213,9 @@ public extension Api.messages {
|
|||
self.chats = chats
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("searchResultsCalendar", [("flags", self.flags as Any), ("count", self.count as Any), ("minDate", self.minDate as Any), ("minMsgId", self.minMsgId as Any), ("offsetIdOffset", self.offsetIdOffset as Any), ("periods", self.periods as Any), ("messages", self.messages as Any), ("chats", self.chats as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case searchResultsCalendar(Cons_searchResultsCalendar)
|
||||
|
||||
|
|
@ -300,13 +312,16 @@ public extension Api.messages {
|
|||
}
|
||||
public extension Api.messages {
|
||||
enum SearchResultsPositions: TypeConstructorDescription {
|
||||
public class Cons_searchResultsPositions {
|
||||
public class Cons_searchResultsPositions: TypeConstructorDescription {
|
||||
public var count: Int32
|
||||
public var positions: [Api.SearchResultsPosition]
|
||||
public init(count: Int32, positions: [Api.SearchResultsPosition]) {
|
||||
self.count = count
|
||||
self.positions = positions
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("searchResultsPositions", [("count", self.count as Any), ("positions", self.positions as Any)])
|
||||
}
|
||||
}
|
||||
case searchResultsPositions(Cons_searchResultsPositions)
|
||||
|
||||
|
|
@ -353,19 +368,25 @@ public extension Api.messages {
|
|||
}
|
||||
public extension Api.messages {
|
||||
enum SentEncryptedMessage: TypeConstructorDescription {
|
||||
public class Cons_sentEncryptedFile {
|
||||
public class Cons_sentEncryptedFile: TypeConstructorDescription {
|
||||
public var date: Int32
|
||||
public var file: Api.EncryptedFile
|
||||
public init(date: Int32, file: Api.EncryptedFile) {
|
||||
self.date = date
|
||||
self.file = file
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("sentEncryptedFile", [("date", self.date as Any), ("file", self.file as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_sentEncryptedMessage {
|
||||
public class Cons_sentEncryptedMessage: TypeConstructorDescription {
|
||||
public var date: Int32
|
||||
public init(date: Int32) {
|
||||
self.date = date
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("sentEncryptedMessage", [("date", self.date as Any)])
|
||||
}
|
||||
}
|
||||
case sentEncryptedFile(Cons_sentEncryptedFile)
|
||||
case sentEncryptedMessage(Cons_sentEncryptedMessage)
|
||||
|
|
@ -428,7 +449,7 @@ public extension Api.messages {
|
|||
}
|
||||
public extension Api.messages {
|
||||
enum SponsoredMessages: TypeConstructorDescription {
|
||||
public class Cons_sponsoredMessages {
|
||||
public class Cons_sponsoredMessages: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var postsBetween: Int32?
|
||||
public var startDelay: Int32?
|
||||
|
|
@ -445,6 +466,9 @@ public extension Api.messages {
|
|||
self.chats = chats
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("sponsoredMessages", [("flags", self.flags as Any), ("postsBetween", self.postsBetween as Any), ("startDelay", self.startDelay as Any), ("betweenDelay", self.betweenDelay as Any), ("messages", self.messages as Any), ("chats", self.chats as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case sponsoredMessages(Cons_sponsoredMessages)
|
||||
case sponsoredMessagesEmpty
|
||||
|
|
@ -546,7 +570,7 @@ public extension Api.messages {
|
|||
}
|
||||
public extension Api.messages {
|
||||
enum StickerSet: TypeConstructorDescription {
|
||||
public class Cons_stickerSet {
|
||||
public class Cons_stickerSet: TypeConstructorDescription {
|
||||
public var set: Api.StickerSet
|
||||
public var packs: [Api.StickerPack]
|
||||
public var keywords: [Api.StickerKeyword]
|
||||
|
|
@ -557,6 +581,9 @@ public extension Api.messages {
|
|||
self.keywords = keywords
|
||||
self.documents = documents
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("stickerSet", [("set", self.set as Any), ("packs", self.packs as Any), ("keywords", self.keywords as Any), ("documents", self.documents as Any)])
|
||||
}
|
||||
}
|
||||
case stickerSet(Cons_stickerSet)
|
||||
case stickerSetNotModified
|
||||
|
|
@ -636,11 +663,14 @@ public extension Api.messages {
|
|||
}
|
||||
public extension Api.messages {
|
||||
enum StickerSetInstallResult: TypeConstructorDescription {
|
||||
public class Cons_stickerSetInstallResultArchive {
|
||||
public class Cons_stickerSetInstallResultArchive: TypeConstructorDescription {
|
||||
public var sets: [Api.StickerSetCovered]
|
||||
public init(sets: [Api.StickerSetCovered]) {
|
||||
self.sets = sets
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("stickerSetInstallResultArchive", [("sets", self.sets as Any)])
|
||||
}
|
||||
}
|
||||
case stickerSetInstallResultArchive(Cons_stickerSetInstallResultArchive)
|
||||
case stickerSetInstallResultSuccess
|
||||
|
|
@ -694,13 +724,16 @@ public extension Api.messages {
|
|||
}
|
||||
public extension Api.messages {
|
||||
enum Stickers: TypeConstructorDescription {
|
||||
public class Cons_stickers {
|
||||
public class Cons_stickers: TypeConstructorDescription {
|
||||
public var hash: Int64
|
||||
public var stickers: [Api.Document]
|
||||
public init(hash: Int64, stickers: [Api.Document]) {
|
||||
self.hash = hash
|
||||
self.stickers = stickers
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("stickers", [("hash", self.hash as Any), ("stickers", self.stickers as Any)])
|
||||
}
|
||||
}
|
||||
case stickers(Cons_stickers)
|
||||
case stickersNotModified
|
||||
|
|
@ -758,7 +791,7 @@ public extension Api.messages {
|
|||
}
|
||||
public extension Api.messages {
|
||||
enum TranscribedAudio: TypeConstructorDescription {
|
||||
public class Cons_transcribedAudio {
|
||||
public class Cons_transcribedAudio: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var transcriptionId: Int64
|
||||
public var text: String
|
||||
|
|
@ -771,6 +804,9 @@ public extension Api.messages {
|
|||
self.trialRemainsNum = trialRemainsNum
|
||||
self.trialRemainsUntilDate = trialRemainsUntilDate
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("transcribedAudio", [("flags", self.flags as Any), ("transcriptionId", self.transcriptionId as Any), ("text", self.text as Any), ("trialRemainsNum", self.trialRemainsNum as Any), ("trialRemainsUntilDate", self.trialRemainsUntilDate as Any)])
|
||||
}
|
||||
}
|
||||
case transcribedAudio(Cons_transcribedAudio)
|
||||
|
||||
|
|
@ -831,11 +867,14 @@ public extension Api.messages {
|
|||
}
|
||||
public extension Api.messages {
|
||||
enum TranslatedText: TypeConstructorDescription {
|
||||
public class Cons_translateResult {
|
||||
public class Cons_translateResult: TypeConstructorDescription {
|
||||
public var result: [Api.TextWithEntities]
|
||||
public init(result: [Api.TextWithEntities]) {
|
||||
self.result = result
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("translateResult", [("result", self.result as Any)])
|
||||
}
|
||||
}
|
||||
case translateResult(Cons_translateResult)
|
||||
|
||||
|
|
@ -878,7 +917,7 @@ public extension Api.messages {
|
|||
}
|
||||
public extension Api.messages {
|
||||
enum VotesList: TypeConstructorDescription {
|
||||
public class Cons_votesList {
|
||||
public class Cons_votesList: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var count: Int32
|
||||
public var votes: [Api.MessagePeerVote]
|
||||
|
|
@ -893,6 +932,9 @@ public extension Api.messages {
|
|||
self.users = users
|
||||
self.nextOffset = nextOffset
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("votesList", [("flags", self.flags as Any), ("count", self.count as Any), ("votes", self.votes as Any), ("chats", self.chats as Any), ("users", self.users as Any), ("nextOffset", self.nextOffset as Any)])
|
||||
}
|
||||
}
|
||||
case votesList(Cons_votesList)
|
||||
|
||||
|
|
@ -971,7 +1013,7 @@ public extension Api.messages {
|
|||
}
|
||||
public extension Api.messages {
|
||||
enum WebPage: TypeConstructorDescription {
|
||||
public class Cons_webPage {
|
||||
public class Cons_webPage: TypeConstructorDescription {
|
||||
public var webpage: Api.WebPage
|
||||
public var chats: [Api.Chat]
|
||||
public var users: [Api.User]
|
||||
|
|
@ -980,6 +1022,9 @@ public extension Api.messages {
|
|||
self.chats = chats
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("webPage", [("webpage", self.webpage as Any), ("chats", self.chats as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case webPage(Cons_webPage)
|
||||
|
||||
|
|
@ -1038,7 +1083,7 @@ public extension Api.messages {
|
|||
}
|
||||
public extension Api.messages {
|
||||
indirect enum WebPagePreview: TypeConstructorDescription {
|
||||
public class Cons_webPagePreview {
|
||||
public class Cons_webPagePreview: TypeConstructorDescription {
|
||||
public var media: Api.MessageMedia
|
||||
public var chats: [Api.Chat]
|
||||
public var users: [Api.User]
|
||||
|
|
@ -1047,6 +1092,9 @@ public extension Api.messages {
|
|||
self.chats = chats
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("webPagePreview", [("media", self.media as Any), ("chats", self.chats as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case webPagePreview(Cons_webPagePreview)
|
||||
|
||||
|
|
@ -1105,13 +1153,16 @@ public extension Api.messages {
|
|||
}
|
||||
public extension Api.payments {
|
||||
enum BankCardData: TypeConstructorDescription {
|
||||
public class Cons_bankCardData {
|
||||
public class Cons_bankCardData: TypeConstructorDescription {
|
||||
public var title: String
|
||||
public var openUrls: [Api.BankCardOpenUrl]
|
||||
public init(title: String, openUrls: [Api.BankCardOpenUrl]) {
|
||||
self.title = title
|
||||
self.openUrls = openUrls
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("bankCardData", [("title", self.title as Any), ("openUrls", self.openUrls as Any)])
|
||||
}
|
||||
}
|
||||
case bankCardData(Cons_bankCardData)
|
||||
|
||||
|
|
@ -1158,11 +1209,14 @@ public extension Api.payments {
|
|||
}
|
||||
public extension Api.payments {
|
||||
enum CheckCanSendGiftResult: TypeConstructorDescription {
|
||||
public class Cons_checkCanSendGiftResultFail {
|
||||
public class Cons_checkCanSendGiftResultFail: TypeConstructorDescription {
|
||||
public var reason: Api.TextWithEntities
|
||||
public init(reason: Api.TextWithEntities) {
|
||||
self.reason = reason
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("checkCanSendGiftResultFail", [("reason", self.reason as Any)])
|
||||
}
|
||||
}
|
||||
case checkCanSendGiftResultFail(Cons_checkCanSendGiftResultFail)
|
||||
case checkCanSendGiftResultOk
|
||||
|
|
@ -1212,7 +1266,7 @@ public extension Api.payments {
|
|||
}
|
||||
public extension Api.payments {
|
||||
enum CheckedGiftCode: TypeConstructorDescription {
|
||||
public class Cons_checkedGiftCode {
|
||||
public class Cons_checkedGiftCode: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var fromId: Api.Peer?
|
||||
public var giveawayMsgId: Int32?
|
||||
|
|
@ -1233,6 +1287,9 @@ public extension Api.payments {
|
|||
self.chats = chats
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("checkedGiftCode", [("flags", self.flags as Any), ("fromId", self.fromId as Any), ("giveawayMsgId", self.giveawayMsgId as Any), ("toId", self.toId as Any), ("date", self.date as Any), ("days", self.days as Any), ("usedDate", self.usedDate as Any), ("chats", self.chats as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case checkedGiftCode(Cons_checkedGiftCode)
|
||||
|
||||
|
|
@ -1331,7 +1388,7 @@ public extension Api.payments {
|
|||
}
|
||||
public extension Api.payments {
|
||||
enum ConnectedStarRefBots: TypeConstructorDescription {
|
||||
public class Cons_connectedStarRefBots {
|
||||
public class Cons_connectedStarRefBots: TypeConstructorDescription {
|
||||
public var count: Int32
|
||||
public var connectedBots: [Api.ConnectedBotStarRef]
|
||||
public var users: [Api.User]
|
||||
|
|
@ -1340,6 +1397,9 @@ public extension Api.payments {
|
|||
self.connectedBots = connectedBots
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("connectedStarRefBots", [("count", self.count as Any), ("connectedBots", self.connectedBots as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case connectedStarRefBots(Cons_connectedStarRefBots)
|
||||
|
||||
|
|
@ -1396,11 +1456,14 @@ public extension Api.payments {
|
|||
}
|
||||
public extension Api.payments {
|
||||
enum ExportedInvoice: TypeConstructorDescription {
|
||||
public class Cons_exportedInvoice {
|
||||
public class Cons_exportedInvoice: TypeConstructorDescription {
|
||||
public var url: String
|
||||
public init(url: String) {
|
||||
self.url = url
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("exportedInvoice", [("url", self.url as Any)])
|
||||
}
|
||||
}
|
||||
case exportedInvoice(Cons_exportedInvoice)
|
||||
|
||||
|
|
@ -1437,7 +1500,7 @@ public extension Api.payments {
|
|||
}
|
||||
public extension Api.payments {
|
||||
enum GiveawayInfo: TypeConstructorDescription {
|
||||
public class Cons_giveawayInfo {
|
||||
public class Cons_giveawayInfo: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var startDate: Int32
|
||||
public var joinedTooEarlyDate: Int32?
|
||||
|
|
@ -1450,8 +1513,11 @@ public extension Api.payments {
|
|||
self.adminDisallowedChatId = adminDisallowedChatId
|
||||
self.disallowedCountry = disallowedCountry
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("giveawayInfo", [("flags", self.flags as Any), ("startDate", self.startDate as Any), ("joinedTooEarlyDate", self.joinedTooEarlyDate as Any), ("adminDisallowedChatId", self.adminDisallowedChatId as Any), ("disallowedCountry", self.disallowedCountry as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_giveawayInfoResults {
|
||||
public class Cons_giveawayInfoResults: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var startDate: Int32
|
||||
public var giftCodeSlug: String?
|
||||
|
|
@ -1468,6 +1534,9 @@ public extension Api.payments {
|
|||
self.winnersCount = winnersCount
|
||||
self.activatedCount = activatedCount
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("giveawayInfoResults", [("flags", self.flags as Any), ("startDate", self.startDate as Any), ("giftCodeSlug", self.giftCodeSlug as Any), ("starsPrize", self.starsPrize as Any), ("finishDate", self.finishDate as Any), ("winnersCount", self.winnersCount as Any), ("activatedCount", self.activatedCount as Any)])
|
||||
}
|
||||
}
|
||||
case giveawayInfo(Cons_giveawayInfo)
|
||||
case giveawayInfoResults(Cons_giveawayInfoResults)
|
||||
|
|
@ -1588,7 +1657,7 @@ public extension Api.payments {
|
|||
}
|
||||
public extension Api.payments {
|
||||
enum PaymentForm: TypeConstructorDescription {
|
||||
public class Cons_paymentForm {
|
||||
public class Cons_paymentForm: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var formId: Int64
|
||||
public var botId: Int64
|
||||
|
|
@ -1621,16 +1690,22 @@ public extension Api.payments {
|
|||
self.savedCredentials = savedCredentials
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("paymentForm", [("flags", self.flags as Any), ("formId", self.formId as Any), ("botId", self.botId as Any), ("title", self.title as Any), ("description", self.description as Any), ("photo", self.photo as Any), ("invoice", self.invoice as Any), ("providerId", self.providerId as Any), ("url", self.url as Any), ("nativeProvider", self.nativeProvider as Any), ("nativeParams", self.nativeParams as Any), ("additionalMethods", self.additionalMethods as Any), ("savedInfo", self.savedInfo as Any), ("savedCredentials", self.savedCredentials as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_paymentFormStarGift {
|
||||
public class Cons_paymentFormStarGift: TypeConstructorDescription {
|
||||
public var formId: Int64
|
||||
public var invoice: Api.Invoice
|
||||
public init(formId: Int64, invoice: Api.Invoice) {
|
||||
self.formId = formId
|
||||
self.invoice = invoice
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("paymentFormStarGift", [("formId", self.formId as Any), ("invoice", self.invoice as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_paymentFormStars {
|
||||
public class Cons_paymentFormStars: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var formId: Int64
|
||||
public var botId: Int64
|
||||
|
|
@ -1649,6 +1724,9 @@ public extension Api.payments {
|
|||
self.invoice = invoice
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("paymentFormStars", [("flags", self.flags as Any), ("formId", self.formId as Any), ("botId", self.botId as Any), ("title", self.title as Any), ("description", self.description as Any), ("photo", self.photo as Any), ("invoice", self.invoice as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case paymentForm(Cons_paymentForm)
|
||||
case paymentFormStarGift(Cons_paymentFormStarGift)
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
public extension Api.payments {
|
||||
enum PaymentReceipt: TypeConstructorDescription {
|
||||
public class Cons_paymentReceipt {
|
||||
public class Cons_paymentReceipt: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var date: Int32
|
||||
public var botId: Int64
|
||||
|
|
@ -33,8 +33,11 @@ public extension Api.payments {
|
|||
self.credentialsTitle = credentialsTitle
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("paymentReceipt", [("flags", self.flags as Any), ("date", self.date as Any), ("botId", self.botId as Any), ("providerId", self.providerId as Any), ("title", self.title as Any), ("description", self.description as Any), ("photo", self.photo as Any), ("invoice", self.invoice as Any), ("info", self.info as Any), ("shipping", self.shipping as Any), ("tipAmount", self.tipAmount as Any), ("currency", self.currency as Any), ("totalAmount", self.totalAmount as Any), ("credentialsTitle", self.credentialsTitle as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_paymentReceiptStars {
|
||||
public class Cons_paymentReceiptStars: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var date: Int32
|
||||
public var botId: Int64
|
||||
|
|
@ -59,6 +62,9 @@ public extension Api.payments {
|
|||
self.transactionId = transactionId
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("paymentReceiptStars", [("flags", self.flags as Any), ("date", self.date as Any), ("botId", self.botId as Any), ("title", self.title as Any), ("description", self.description as Any), ("photo", self.photo as Any), ("invoice", self.invoice as Any), ("currency", self.currency as Any), ("totalAmount", self.totalAmount as Any), ("transactionId", self.transactionId as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case paymentReceipt(Cons_paymentReceipt)
|
||||
case paymentReceiptStars(Cons_paymentReceiptStars)
|
||||
|
|
@ -255,17 +261,23 @@ public extension Api.payments {
|
|||
}
|
||||
public extension Api.payments {
|
||||
indirect enum PaymentResult: TypeConstructorDescription {
|
||||
public class Cons_paymentResult {
|
||||
public class Cons_paymentResult: TypeConstructorDescription {
|
||||
public var updates: Api.Updates
|
||||
public init(updates: Api.Updates) {
|
||||
self.updates = updates
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("paymentResult", [("updates", self.updates as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_paymentVerificationNeeded {
|
||||
public class Cons_paymentVerificationNeeded: TypeConstructorDescription {
|
||||
public var url: String
|
||||
public init(url: String) {
|
||||
self.url = url
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("paymentVerificationNeeded", [("url", self.url as Any)])
|
||||
}
|
||||
}
|
||||
case paymentResult(Cons_paymentResult)
|
||||
case paymentVerificationNeeded(Cons_paymentVerificationNeeded)
|
||||
|
|
@ -324,7 +336,7 @@ public extension Api.payments {
|
|||
}
|
||||
public extension Api.payments {
|
||||
enum ResaleStarGifts: TypeConstructorDescription {
|
||||
public class Cons_resaleStarGifts {
|
||||
public class Cons_resaleStarGifts: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var count: Int32
|
||||
public var gifts: [Api.StarGift]
|
||||
|
|
@ -345,6 +357,9 @@ public extension Api.payments {
|
|||
self.counters = counters
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("resaleStarGifts", [("flags", self.flags as Any), ("count", self.count as Any), ("gifts", self.gifts as Any), ("nextOffset", self.nextOffset as Any), ("attributes", self.attributes as Any), ("attributesHash", self.attributesHash as Any), ("chats", self.chats as Any), ("counters", self.counters as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case resaleStarGifts(Cons_resaleStarGifts)
|
||||
|
||||
|
|
@ -459,13 +474,16 @@ public extension Api.payments {
|
|||
}
|
||||
public extension Api.payments {
|
||||
enum SavedInfo: TypeConstructorDescription {
|
||||
public class Cons_savedInfo {
|
||||
public class Cons_savedInfo: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var savedInfo: Api.PaymentRequestedInfo?
|
||||
public init(flags: Int32, savedInfo: Api.PaymentRequestedInfo?) {
|
||||
self.flags = flags
|
||||
self.savedInfo = savedInfo
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("savedInfo", [("flags", self.flags as Any), ("savedInfo", self.savedInfo as Any)])
|
||||
}
|
||||
}
|
||||
case savedInfo(Cons_savedInfo)
|
||||
|
||||
|
|
@ -512,7 +530,7 @@ public extension Api.payments {
|
|||
}
|
||||
public extension Api.payments {
|
||||
enum SavedStarGifts: TypeConstructorDescription {
|
||||
public class Cons_savedStarGifts {
|
||||
public class Cons_savedStarGifts: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var count: Int32
|
||||
public var chatNotificationsEnabled: Api.Bool?
|
||||
|
|
@ -529,6 +547,9 @@ public extension Api.payments {
|
|||
self.chats = chats
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("savedStarGifts", [("flags", self.flags as Any), ("count", self.count as Any), ("chatNotificationsEnabled", self.chatNotificationsEnabled as Any), ("gifts", self.gifts as Any), ("nextOffset", self.nextOffset as Any), ("chats", self.chats as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case savedStarGifts(Cons_savedStarGifts)
|
||||
|
||||
|
|
@ -617,7 +638,7 @@ public extension Api.payments {
|
|||
}
|
||||
public extension Api.payments {
|
||||
enum StarGiftActiveAuctions: TypeConstructorDescription {
|
||||
public class Cons_starGiftActiveAuctions {
|
||||
public class Cons_starGiftActiveAuctions: TypeConstructorDescription {
|
||||
public var auctions: [Api.StarGiftActiveAuctionState]
|
||||
public var users: [Api.User]
|
||||
public var chats: [Api.Chat]
|
||||
|
|
@ -626,6 +647,9 @@ public extension Api.payments {
|
|||
self.users = users
|
||||
self.chats = chats
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("starGiftActiveAuctions", [("auctions", self.auctions as Any), ("users", self.users as Any), ("chats", self.chats as Any)])
|
||||
}
|
||||
}
|
||||
case starGiftActiveAuctions(Cons_starGiftActiveAuctions)
|
||||
case starGiftActiveAuctionsNotModified
|
||||
|
|
@ -699,7 +723,7 @@ public extension Api.payments {
|
|||
}
|
||||
public extension Api.payments {
|
||||
enum StarGiftAuctionAcquiredGifts: TypeConstructorDescription {
|
||||
public class Cons_starGiftAuctionAcquiredGifts {
|
||||
public class Cons_starGiftAuctionAcquiredGifts: TypeConstructorDescription {
|
||||
public var gifts: [Api.StarGiftAuctionAcquiredGift]
|
||||
public var users: [Api.User]
|
||||
public var chats: [Api.Chat]
|
||||
|
|
@ -708,6 +732,9 @@ public extension Api.payments {
|
|||
self.users = users
|
||||
self.chats = chats
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("starGiftAuctionAcquiredGifts", [("gifts", self.gifts as Any), ("users", self.users as Any), ("chats", self.chats as Any)])
|
||||
}
|
||||
}
|
||||
case starGiftAuctionAcquiredGifts(Cons_starGiftAuctionAcquiredGifts)
|
||||
|
||||
|
|
@ -770,7 +797,7 @@ public extension Api.payments {
|
|||
}
|
||||
public extension Api.payments {
|
||||
enum StarGiftAuctionState: TypeConstructorDescription {
|
||||
public class Cons_starGiftAuctionState {
|
||||
public class Cons_starGiftAuctionState: TypeConstructorDescription {
|
||||
public var gift: Api.StarGift
|
||||
public var state: Api.StarGiftAuctionState
|
||||
public var userState: Api.StarGiftAuctionUserState
|
||||
|
|
@ -785,6 +812,9 @@ public extension Api.payments {
|
|||
self.users = users
|
||||
self.chats = chats
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("starGiftAuctionState", [("gift", self.gift as Any), ("state", self.state as Any), ("userState", self.userState as Any), ("timeout", self.timeout as Any), ("users", self.users as Any), ("chats", self.chats as Any)])
|
||||
}
|
||||
}
|
||||
case starGiftAuctionState(Cons_starGiftAuctionState)
|
||||
|
||||
|
|
@ -859,11 +889,14 @@ public extension Api.payments {
|
|||
}
|
||||
public extension Api.payments {
|
||||
enum StarGiftCollections: TypeConstructorDescription {
|
||||
public class Cons_starGiftCollections {
|
||||
public class Cons_starGiftCollections: TypeConstructorDescription {
|
||||
public var collections: [Api.StarGiftCollection]
|
||||
public init(collections: [Api.StarGiftCollection]) {
|
||||
self.collections = collections
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("starGiftCollections", [("collections", self.collections as Any)])
|
||||
}
|
||||
}
|
||||
case starGiftCollections(Cons_starGiftCollections)
|
||||
case starGiftCollectionsNotModified
|
||||
|
|
@ -917,11 +950,14 @@ public extension Api.payments {
|
|||
}
|
||||
public extension Api.payments {
|
||||
enum StarGiftUpgradeAttributes: TypeConstructorDescription {
|
||||
public class Cons_starGiftUpgradeAttributes {
|
||||
public class Cons_starGiftUpgradeAttributes: TypeConstructorDescription {
|
||||
public var attributes: [Api.StarGiftAttribute]
|
||||
public init(attributes: [Api.StarGiftAttribute]) {
|
||||
self.attributes = attributes
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("starGiftUpgradeAttributes", [("attributes", self.attributes as Any)])
|
||||
}
|
||||
}
|
||||
case starGiftUpgradeAttributes(Cons_starGiftUpgradeAttributes)
|
||||
|
||||
|
|
@ -964,7 +1000,7 @@ public extension Api.payments {
|
|||
}
|
||||
public extension Api.payments {
|
||||
enum StarGiftUpgradePreview: TypeConstructorDescription {
|
||||
public class Cons_starGiftUpgradePreview {
|
||||
public class Cons_starGiftUpgradePreview: TypeConstructorDescription {
|
||||
public var sampleAttributes: [Api.StarGiftAttribute]
|
||||
public var prices: [Api.StarGiftUpgradePrice]
|
||||
public var nextPrices: [Api.StarGiftUpgradePrice]
|
||||
|
|
@ -973,6 +1009,9 @@ public extension Api.payments {
|
|||
self.prices = prices
|
||||
self.nextPrices = nextPrices
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("starGiftUpgradePreview", [("sampleAttributes", self.sampleAttributes as Any), ("prices", self.prices as Any), ("nextPrices", self.nextPrices as Any)])
|
||||
}
|
||||
}
|
||||
case starGiftUpgradePreview(Cons_starGiftUpgradePreview)
|
||||
|
||||
|
|
@ -1035,11 +1074,14 @@ public extension Api.payments {
|
|||
}
|
||||
public extension Api.payments {
|
||||
enum StarGiftWithdrawalUrl: TypeConstructorDescription {
|
||||
public class Cons_starGiftWithdrawalUrl {
|
||||
public class Cons_starGiftWithdrawalUrl: TypeConstructorDescription {
|
||||
public var url: String
|
||||
public init(url: String) {
|
||||
self.url = url
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("starGiftWithdrawalUrl", [("url", self.url as Any)])
|
||||
}
|
||||
}
|
||||
case starGiftWithdrawalUrl(Cons_starGiftWithdrawalUrl)
|
||||
|
||||
|
|
@ -1076,7 +1118,7 @@ public extension Api.payments {
|
|||
}
|
||||
public extension Api.payments {
|
||||
enum StarGifts: TypeConstructorDescription {
|
||||
public class Cons_starGifts {
|
||||
public class Cons_starGifts: TypeConstructorDescription {
|
||||
public var hash: Int32
|
||||
public var gifts: [Api.StarGift]
|
||||
public var chats: [Api.Chat]
|
||||
|
|
@ -1087,6 +1129,9 @@ public extension Api.payments {
|
|||
self.chats = chats
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("starGifts", [("hash", self.hash as Any), ("gifts", self.gifts as Any), ("chats", self.chats as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case starGifts(Cons_starGifts)
|
||||
case starGiftsNotModified
|
||||
|
|
@ -1164,11 +1209,14 @@ public extension Api.payments {
|
|||
}
|
||||
public extension Api.payments {
|
||||
enum StarsRevenueAdsAccountUrl: TypeConstructorDescription {
|
||||
public class Cons_starsRevenueAdsAccountUrl {
|
||||
public class Cons_starsRevenueAdsAccountUrl: TypeConstructorDescription {
|
||||
public var url: String
|
||||
public init(url: String) {
|
||||
self.url = url
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("starsRevenueAdsAccountUrl", [("url", self.url as Any)])
|
||||
}
|
||||
}
|
||||
case starsRevenueAdsAccountUrl(Cons_starsRevenueAdsAccountUrl)
|
||||
|
||||
|
|
@ -1205,7 +1253,7 @@ public extension Api.payments {
|
|||
}
|
||||
public extension Api.payments {
|
||||
enum StarsRevenueStats: TypeConstructorDescription {
|
||||
public class Cons_starsRevenueStats {
|
||||
public class Cons_starsRevenueStats: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var topHoursGraph: Api.StatsGraph?
|
||||
public var revenueGraph: Api.StatsGraph
|
||||
|
|
@ -1218,6 +1266,9 @@ public extension Api.payments {
|
|||
self.status = status
|
||||
self.usdRate = usdRate
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("starsRevenueStats", [("flags", self.flags as Any), ("topHoursGraph", self.topHoursGraph as Any), ("revenueGraph", self.revenueGraph as Any), ("status", self.status as Any), ("usdRate", self.usdRate as Any)])
|
||||
}
|
||||
}
|
||||
case starsRevenueStats(Cons_starsRevenueStats)
|
||||
|
||||
|
|
@ -1280,11 +1331,14 @@ public extension Api.payments {
|
|||
}
|
||||
public extension Api.payments {
|
||||
enum StarsRevenueWithdrawalUrl: TypeConstructorDescription {
|
||||
public class Cons_starsRevenueWithdrawalUrl {
|
||||
public class Cons_starsRevenueWithdrawalUrl: TypeConstructorDescription {
|
||||
public var url: String
|
||||
public init(url: String) {
|
||||
self.url = url
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("starsRevenueWithdrawalUrl", [("url", self.url as Any)])
|
||||
}
|
||||
}
|
||||
case starsRevenueWithdrawalUrl(Cons_starsRevenueWithdrawalUrl)
|
||||
|
||||
|
|
@ -1321,7 +1375,7 @@ public extension Api.payments {
|
|||
}
|
||||
public extension Api.payments {
|
||||
enum StarsStatus: TypeConstructorDescription {
|
||||
public class Cons_starsStatus {
|
||||
public class Cons_starsStatus: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var balance: Api.StarsAmount
|
||||
public var subscriptions: [Api.StarsSubscription]?
|
||||
|
|
@ -1342,6 +1396,9 @@ public extension Api.payments {
|
|||
self.chats = chats
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("starsStatus", [("flags", self.flags as Any), ("balance", self.balance as Any), ("subscriptions", self.subscriptions as Any), ("subscriptionsNextOffset", self.subscriptionsNextOffset as Any), ("subscriptionsMissingBalance", self.subscriptionsMissingBalance as Any), ("history", self.history as Any), ("nextOffset", self.nextOffset as Any), ("chats", self.chats as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case starsStatus(Cons_starsStatus)
|
||||
|
||||
|
|
@ -1456,7 +1513,7 @@ public extension Api.payments {
|
|||
}
|
||||
public extension Api.payments {
|
||||
enum SuggestedStarRefBots: TypeConstructorDescription {
|
||||
public class Cons_suggestedStarRefBots {
|
||||
public class Cons_suggestedStarRefBots: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var count: Int32
|
||||
public var suggestedBots: [Api.StarRefProgram]
|
||||
|
|
@ -1469,6 +1526,9 @@ public extension Api.payments {
|
|||
self.users = users
|
||||
self.nextOffset = nextOffset
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("suggestedStarRefBots", [("flags", self.flags as Any), ("count", self.count as Any), ("suggestedBots", self.suggestedBots as Any), ("users", self.users as Any), ("nextOffset", self.nextOffset as Any)])
|
||||
}
|
||||
}
|
||||
case suggestedStarRefBots(Cons_suggestedStarRefBots)
|
||||
|
||||
|
|
@ -1537,7 +1597,7 @@ public extension Api.payments {
|
|||
}
|
||||
public extension Api.payments {
|
||||
enum UniqueStarGift: TypeConstructorDescription {
|
||||
public class Cons_uniqueStarGift {
|
||||
public class Cons_uniqueStarGift: TypeConstructorDescription {
|
||||
public var gift: Api.StarGift
|
||||
public var chats: [Api.Chat]
|
||||
public var users: [Api.User]
|
||||
|
|
@ -1546,6 +1606,9 @@ public extension Api.payments {
|
|||
self.chats = chats
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("uniqueStarGift", [("gift", self.gift as Any), ("chats", self.chats as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case uniqueStarGift(Cons_uniqueStarGift)
|
||||
|
||||
|
|
@ -1604,7 +1667,7 @@ public extension Api.payments {
|
|||
}
|
||||
public extension Api.payments {
|
||||
enum UniqueStarGiftValueInfo: TypeConstructorDescription {
|
||||
public class Cons_uniqueStarGiftValueInfo {
|
||||
public class Cons_uniqueStarGiftValueInfo: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var currency: String
|
||||
public var value: Int64
|
||||
|
|
@ -1633,6 +1696,9 @@ public extension Api.payments {
|
|||
self.fragmentListedCount = fragmentListedCount
|
||||
self.fragmentListedUrl = fragmentListedUrl
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("uniqueStarGiftValueInfo", [("flags", self.flags as Any), ("currency", self.currency as Any), ("value", self.value as Any), ("initialSaleDate", self.initialSaleDate as Any), ("initialSaleStars", self.initialSaleStars as Any), ("initialSalePrice", self.initialSalePrice as Any), ("lastSaleDate", self.lastSaleDate as Any), ("lastSalePrice", self.lastSalePrice as Any), ("floorPrice", self.floorPrice as Any), ("averagePrice", self.averagePrice as Any), ("listedCount", self.listedCount as Any), ("fragmentListedCount", self.fragmentListedCount as Any), ("fragmentListedUrl", self.fragmentListedUrl as Any)])
|
||||
}
|
||||
}
|
||||
case uniqueStarGiftValueInfo(Cons_uniqueStarGiftValueInfo)
|
||||
|
||||
|
|
@ -1745,7 +1811,7 @@ public extension Api.payments {
|
|||
}
|
||||
public extension Api.payments {
|
||||
enum ValidatedRequestedInfo: TypeConstructorDescription {
|
||||
public class Cons_validatedRequestedInfo {
|
||||
public class Cons_validatedRequestedInfo: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var id: String?
|
||||
public var shippingOptions: [Api.ShippingOption]?
|
||||
|
|
@ -1754,6 +1820,9 @@ public extension Api.payments {
|
|||
self.id = id
|
||||
self.shippingOptions = shippingOptions
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("validatedRequestedInfo", [("flags", self.flags as Any), ("id", self.id as Any), ("shippingOptions", self.shippingOptions as Any)])
|
||||
}
|
||||
}
|
||||
case validatedRequestedInfo(Cons_validatedRequestedInfo)
|
||||
|
||||
|
|
@ -1812,11 +1881,14 @@ public extension Api.payments {
|
|||
}
|
||||
public extension Api.phone {
|
||||
enum ExportedGroupCallInvite: TypeConstructorDescription {
|
||||
public class Cons_exportedGroupCallInvite {
|
||||
public class Cons_exportedGroupCallInvite: TypeConstructorDescription {
|
||||
public var link: String
|
||||
public init(link: String) {
|
||||
self.link = link
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("exportedGroupCallInvite", [("link", self.link as Any)])
|
||||
}
|
||||
}
|
||||
case exportedGroupCallInvite(Cons_exportedGroupCallInvite)
|
||||
|
||||
|
|
@ -1853,7 +1925,7 @@ public extension Api.phone {
|
|||
}
|
||||
public extension Api.phone {
|
||||
enum GroupCall: TypeConstructorDescription {
|
||||
public class Cons_groupCall {
|
||||
public class Cons_groupCall: TypeConstructorDescription {
|
||||
public var call: Api.GroupCall
|
||||
public var participants: [Api.GroupCallParticipant]
|
||||
public var participantsNextOffset: String
|
||||
|
|
@ -1866,6 +1938,9 @@ public extension Api.phone {
|
|||
self.chats = chats
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("groupCall", [("call", self.call as Any), ("participants", self.participants as Any), ("participantsNextOffset", self.participantsNextOffset as Any), ("chats", self.chats as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case groupCall(Cons_groupCall)
|
||||
|
||||
|
|
@ -1938,7 +2013,7 @@ public extension Api.phone {
|
|||
}
|
||||
public extension Api.phone {
|
||||
enum GroupCallStars: TypeConstructorDescription {
|
||||
public class Cons_groupCallStars {
|
||||
public class Cons_groupCallStars: TypeConstructorDescription {
|
||||
public var totalStars: Int64
|
||||
public var topDonors: [Api.GroupCallDonor]
|
||||
public var chats: [Api.Chat]
|
||||
|
|
@ -1949,6 +2024,9 @@ public extension Api.phone {
|
|||
self.chats = chats
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("groupCallStars", [("totalStars", self.totalStars as Any), ("topDonors", self.topDonors as Any), ("chats", self.chats as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case groupCallStars(Cons_groupCallStars)
|
||||
|
||||
|
|
@ -2015,11 +2093,14 @@ public extension Api.phone {
|
|||
}
|
||||
public extension Api.phone {
|
||||
enum GroupCallStreamChannels: TypeConstructorDescription {
|
||||
public class Cons_groupCallStreamChannels {
|
||||
public class Cons_groupCallStreamChannels: TypeConstructorDescription {
|
||||
public var channels: [Api.GroupCallStreamChannel]
|
||||
public init(channels: [Api.GroupCallStreamChannel]) {
|
||||
self.channels = channels
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("groupCallStreamChannels", [("channels", self.channels as Any)])
|
||||
}
|
||||
}
|
||||
case groupCallStreamChannels(Cons_groupCallStreamChannels)
|
||||
|
||||
|
|
@ -2062,13 +2143,16 @@ public extension Api.phone {
|
|||
}
|
||||
public extension Api.phone {
|
||||
enum GroupCallStreamRtmpUrl: TypeConstructorDescription {
|
||||
public class Cons_groupCallStreamRtmpUrl {
|
||||
public class Cons_groupCallStreamRtmpUrl: TypeConstructorDescription {
|
||||
public var url: String
|
||||
public var key: String
|
||||
public init(url: String, key: String) {
|
||||
self.url = url
|
||||
self.key = key
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("groupCallStreamRtmpUrl", [("url", self.url as Any), ("key", self.key as Any)])
|
||||
}
|
||||
}
|
||||
case groupCallStreamRtmpUrl(Cons_groupCallStreamRtmpUrl)
|
||||
|
||||
|
|
@ -2109,7 +2193,7 @@ public extension Api.phone {
|
|||
}
|
||||
public extension Api.phone {
|
||||
enum GroupParticipants: TypeConstructorDescription {
|
||||
public class Cons_groupParticipants {
|
||||
public class Cons_groupParticipants: TypeConstructorDescription {
|
||||
public var count: Int32
|
||||
public var participants: [Api.GroupCallParticipant]
|
||||
public var nextOffset: String
|
||||
|
|
@ -2124,6 +2208,9 @@ public extension Api.phone {
|
|||
self.users = users
|
||||
self.version = version
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("groupParticipants", [("count", self.count as Any), ("participants", self.participants as Any), ("nextOffset", self.nextOffset as Any), ("chats", self.chats as Any), ("users", self.users as Any), ("version", self.version as Any)])
|
||||
}
|
||||
}
|
||||
case groupParticipants(Cons_groupParticipants)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
public extension Api.phone {
|
||||
enum JoinAsPeers: TypeConstructorDescription {
|
||||
public class Cons_joinAsPeers {
|
||||
public class Cons_joinAsPeers: TypeConstructorDescription {
|
||||
public var peers: [Api.Peer]
|
||||
public var chats: [Api.Chat]
|
||||
public var users: [Api.User]
|
||||
|
|
@ -9,6 +9,9 @@ public extension Api.phone {
|
|||
self.chats = chats
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("joinAsPeers", [("peers", self.peers as Any), ("chats", self.chats as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case joinAsPeers(Cons_joinAsPeers)
|
||||
|
||||
|
|
@ -71,13 +74,16 @@ public extension Api.phone {
|
|||
}
|
||||
public extension Api.phone {
|
||||
enum PhoneCall: TypeConstructorDescription {
|
||||
public class Cons_phoneCall {
|
||||
public class Cons_phoneCall: TypeConstructorDescription {
|
||||
public var phoneCall: Api.PhoneCall
|
||||
public var users: [Api.User]
|
||||
public init(phoneCall: Api.PhoneCall, users: [Api.User]) {
|
||||
self.phoneCall = phoneCall
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("phoneCall", [("phoneCall", self.phoneCall as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case phoneCall(Cons_phoneCall)
|
||||
|
||||
|
|
@ -126,13 +132,16 @@ public extension Api.phone {
|
|||
}
|
||||
public extension Api.photos {
|
||||
enum Photo: TypeConstructorDescription {
|
||||
public class Cons_photo {
|
||||
public class Cons_photo: TypeConstructorDescription {
|
||||
public var photo: Api.Photo
|
||||
public var users: [Api.User]
|
||||
public init(photo: Api.Photo, users: [Api.User]) {
|
||||
self.photo = photo
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("photo", [("photo", self.photo as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case photo(Cons_photo)
|
||||
|
||||
|
|
@ -181,15 +190,18 @@ public extension Api.photos {
|
|||
}
|
||||
public extension Api.photos {
|
||||
enum Photos: TypeConstructorDescription {
|
||||
public class Cons_photos {
|
||||
public class Cons_photos: TypeConstructorDescription {
|
||||
public var photos: [Api.Photo]
|
||||
public var users: [Api.User]
|
||||
public init(photos: [Api.Photo], users: [Api.User]) {
|
||||
self.photos = photos
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("photos", [("photos", self.photos as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_photosSlice {
|
||||
public class Cons_photosSlice: TypeConstructorDescription {
|
||||
public var count: Int32
|
||||
public var photos: [Api.Photo]
|
||||
public var users: [Api.User]
|
||||
|
|
@ -198,6 +210,9 @@ public extension Api.photos {
|
|||
self.photos = photos
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("photosSlice", [("count", self.count as Any), ("photos", self.photos as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case photos(Cons_photos)
|
||||
case photosSlice(Cons_photosSlice)
|
||||
|
|
@ -290,7 +305,7 @@ public extension Api.photos {
|
|||
}
|
||||
public extension Api.premium {
|
||||
enum BoostsList: TypeConstructorDescription {
|
||||
public class Cons_boostsList {
|
||||
public class Cons_boostsList: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var count: Int32
|
||||
public var boosts: [Api.Boost]
|
||||
|
|
@ -303,6 +318,9 @@ public extension Api.premium {
|
|||
self.nextOffset = nextOffset
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("boostsList", [("flags", self.flags as Any), ("count", self.count as Any), ("boosts", self.boosts as Any), ("nextOffset", self.nextOffset as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case boostsList(Cons_boostsList)
|
||||
|
||||
|
|
@ -371,7 +389,7 @@ public extension Api.premium {
|
|||
}
|
||||
public extension Api.premium {
|
||||
enum BoostsStatus: TypeConstructorDescription {
|
||||
public class Cons_boostsStatus {
|
||||
public class Cons_boostsStatus: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var level: Int32
|
||||
public var currentLevelBoosts: Int32
|
||||
|
|
@ -394,6 +412,9 @@ public extension Api.premium {
|
|||
self.prepaidGiveaways = prepaidGiveaways
|
||||
self.myBoostSlots = myBoostSlots
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("boostsStatus", [("flags", self.flags as Any), ("level", self.level as Any), ("currentLevelBoosts", self.currentLevelBoosts as Any), ("boosts", self.boosts as Any), ("giftBoosts", self.giftBoosts as Any), ("nextLevelBoosts", self.nextLevelBoosts as Any), ("premiumAudience", self.premiumAudience as Any), ("boostUrl", self.boostUrl as Any), ("prepaidGiveaways", self.prepaidGiveaways as Any), ("myBoostSlots", self.myBoostSlots as Any)])
|
||||
}
|
||||
}
|
||||
case boostsStatus(Cons_boostsStatus)
|
||||
|
||||
|
|
@ -500,7 +521,7 @@ public extension Api.premium {
|
|||
}
|
||||
public extension Api.premium {
|
||||
enum MyBoosts: TypeConstructorDescription {
|
||||
public class Cons_myBoosts {
|
||||
public class Cons_myBoosts: TypeConstructorDescription {
|
||||
public var myBoosts: [Api.MyBoost]
|
||||
public var chats: [Api.Chat]
|
||||
public var users: [Api.User]
|
||||
|
|
@ -509,6 +530,9 @@ public extension Api.premium {
|
|||
self.chats = chats
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("myBoosts", [("myBoosts", self.myBoosts as Any), ("chats", self.chats as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case myBoosts(Cons_myBoosts)
|
||||
|
||||
|
|
@ -571,13 +595,16 @@ public extension Api.premium {
|
|||
}
|
||||
public extension Api.smsjobs {
|
||||
enum EligibilityToJoin: TypeConstructorDescription {
|
||||
public class Cons_eligibleToJoin {
|
||||
public class Cons_eligibleToJoin: TypeConstructorDescription {
|
||||
public var termsUrl: String
|
||||
public var monthlySentSms: Int32
|
||||
public init(termsUrl: String, monthlySentSms: Int32) {
|
||||
self.termsUrl = termsUrl
|
||||
self.monthlySentSms = monthlySentSms
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("eligibleToJoin", [("termsUrl", self.termsUrl as Any), ("monthlySentSms", self.monthlySentSms as Any)])
|
||||
}
|
||||
}
|
||||
case eligibleToJoin(Cons_eligibleToJoin)
|
||||
|
||||
|
|
@ -618,7 +645,7 @@ public extension Api.smsjobs {
|
|||
}
|
||||
public extension Api.smsjobs {
|
||||
enum Status: TypeConstructorDescription {
|
||||
public class Cons_status {
|
||||
public class Cons_status: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var recentSent: Int32
|
||||
public var recentSince: Int32
|
||||
|
|
@ -637,6 +664,9 @@ public extension Api.smsjobs {
|
|||
self.lastGiftSlug = lastGiftSlug
|
||||
self.termsUrl = termsUrl
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("status", [("flags", self.flags as Any), ("recentSent", self.recentSent as Any), ("recentSince", self.recentSince as Any), ("recentRemains", self.recentRemains as Any), ("totalSent", self.totalSent as Any), ("totalSince", self.totalSince as Any), ("lastGiftSlug", self.lastGiftSlug as Any), ("termsUrl", self.termsUrl as Any)])
|
||||
}
|
||||
}
|
||||
case status(Cons_status)
|
||||
|
||||
|
|
@ -705,7 +735,7 @@ public extension Api.smsjobs {
|
|||
}
|
||||
public extension Api.stats {
|
||||
enum BroadcastStats: TypeConstructorDescription {
|
||||
public class Cons_broadcastStats {
|
||||
public class Cons_broadcastStats: TypeConstructorDescription {
|
||||
public var period: Api.StatsDateRangeDays
|
||||
public var followers: Api.StatsAbsValueAndPrev
|
||||
public var viewsPerPost: Api.StatsAbsValueAndPrev
|
||||
|
|
@ -752,6 +782,9 @@ public extension Api.stats {
|
|||
self.storyReactionsByEmotionGraph = storyReactionsByEmotionGraph
|
||||
self.recentPostsInteractions = recentPostsInteractions
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("broadcastStats", [("period", self.period as Any), ("followers", self.followers as Any), ("viewsPerPost", self.viewsPerPost as Any), ("sharesPerPost", self.sharesPerPost as Any), ("reactionsPerPost", self.reactionsPerPost as Any), ("viewsPerStory", self.viewsPerStory as Any), ("sharesPerStory", self.sharesPerStory as Any), ("reactionsPerStory", self.reactionsPerStory as Any), ("enabledNotifications", self.enabledNotifications as Any), ("growthGraph", self.growthGraph as Any), ("followersGraph", self.followersGraph as Any), ("muteGraph", self.muteGraph as Any), ("topHoursGraph", self.topHoursGraph as Any), ("interactionsGraph", self.interactionsGraph as Any), ("ivInteractionsGraph", self.ivInteractionsGraph as Any), ("viewsBySourceGraph", self.viewsBySourceGraph as Any), ("newFollowersBySourceGraph", self.newFollowersBySourceGraph as Any), ("languagesGraph", self.languagesGraph as Any), ("reactionsByEmotionGraph", self.reactionsByEmotionGraph as Any), ("storyInteractionsGraph", self.storyInteractionsGraph as Any), ("storyReactionsByEmotionGraph", self.storyReactionsByEmotionGraph as Any), ("recentPostsInteractions", self.recentPostsInteractions as Any)])
|
||||
}
|
||||
}
|
||||
case broadcastStats(Cons_broadcastStats)
|
||||
|
||||
|
|
@ -920,7 +953,7 @@ public extension Api.stats {
|
|||
}
|
||||
public extension Api.stats {
|
||||
enum MegagroupStats: TypeConstructorDescription {
|
||||
public class Cons_megagroupStats {
|
||||
public class Cons_megagroupStats: TypeConstructorDescription {
|
||||
public var period: Api.StatsDateRangeDays
|
||||
public var members: Api.StatsAbsValueAndPrev
|
||||
public var messages: Api.StatsAbsValueAndPrev
|
||||
|
|
@ -957,6 +990,9 @@ public extension Api.stats {
|
|||
self.topInviters = topInviters
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("megagroupStats", [("period", self.period as Any), ("members", self.members as Any), ("messages", self.messages as Any), ("viewers", self.viewers as Any), ("posters", self.posters as Any), ("growthGraph", self.growthGraph as Any), ("membersGraph", self.membersGraph as Any), ("newMembersBySourceGraph", self.newMembersBySourceGraph as Any), ("languagesGraph", self.languagesGraph as Any), ("messagesGraph", self.messagesGraph as Any), ("actionsGraph", self.actionsGraph as Any), ("topHoursGraph", self.topHoursGraph as Any), ("weekdaysGraph", self.weekdaysGraph as Any), ("topPosters", self.topPosters as Any), ("topAdmins", self.topAdmins as Any), ("topInviters", self.topInviters as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case megagroupStats(Cons_megagroupStats)
|
||||
|
||||
|
|
@ -1107,13 +1143,16 @@ public extension Api.stats {
|
|||
}
|
||||
public extension Api.stats {
|
||||
enum MessageStats: TypeConstructorDescription {
|
||||
public class Cons_messageStats {
|
||||
public class Cons_messageStats: TypeConstructorDescription {
|
||||
public var viewsGraph: Api.StatsGraph
|
||||
public var reactionsByEmotionGraph: Api.StatsGraph
|
||||
public init(viewsGraph: Api.StatsGraph, reactionsByEmotionGraph: Api.StatsGraph) {
|
||||
self.viewsGraph = viewsGraph
|
||||
self.reactionsByEmotionGraph = reactionsByEmotionGraph
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("messageStats", [("viewsGraph", self.viewsGraph as Any), ("reactionsByEmotionGraph", self.reactionsByEmotionGraph as Any)])
|
||||
}
|
||||
}
|
||||
case messageStats(Cons_messageStats)
|
||||
|
||||
|
|
@ -1158,7 +1197,7 @@ public extension Api.stats {
|
|||
}
|
||||
public extension Api.stats {
|
||||
enum PublicForwards: TypeConstructorDescription {
|
||||
public class Cons_publicForwards {
|
||||
public class Cons_publicForwards: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var count: Int32
|
||||
public var forwards: [Api.PublicForward]
|
||||
|
|
@ -1173,6 +1212,9 @@ public extension Api.stats {
|
|||
self.chats = chats
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("publicForwards", [("flags", self.flags as Any), ("count", self.count as Any), ("forwards", self.forwards as Any), ("nextOffset", self.nextOffset as Any), ("chats", self.chats as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case publicForwards(Cons_publicForwards)
|
||||
|
||||
|
|
@ -1251,13 +1293,16 @@ public extension Api.stats {
|
|||
}
|
||||
public extension Api.stats {
|
||||
enum StoryStats: TypeConstructorDescription {
|
||||
public class Cons_storyStats {
|
||||
public class Cons_storyStats: TypeConstructorDescription {
|
||||
public var viewsGraph: Api.StatsGraph
|
||||
public var reactionsByEmotionGraph: Api.StatsGraph
|
||||
public init(viewsGraph: Api.StatsGraph, reactionsByEmotionGraph: Api.StatsGraph) {
|
||||
self.viewsGraph = viewsGraph
|
||||
self.reactionsByEmotionGraph = reactionsByEmotionGraph
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("storyStats", [("viewsGraph", self.viewsGraph as Any), ("reactionsByEmotionGraph", self.reactionsByEmotionGraph as Any)])
|
||||
}
|
||||
}
|
||||
case storyStats(Cons_storyStats)
|
||||
|
||||
|
|
@ -1302,11 +1347,14 @@ public extension Api.stats {
|
|||
}
|
||||
public extension Api.stickers {
|
||||
enum SuggestedShortName: TypeConstructorDescription {
|
||||
public class Cons_suggestedShortName {
|
||||
public class Cons_suggestedShortName: TypeConstructorDescription {
|
||||
public var shortName: String
|
||||
public init(shortName: String) {
|
||||
self.shortName = shortName
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("suggestedShortName", [("shortName", self.shortName as Any)])
|
||||
}
|
||||
}
|
||||
case suggestedShortName(Cons_suggestedShortName)
|
||||
|
||||
|
|
@ -1468,13 +1516,16 @@ public extension Api.storage {
|
|||
}
|
||||
public extension Api.stories {
|
||||
enum Albums: TypeConstructorDescription {
|
||||
public class Cons_albums {
|
||||
public class Cons_albums: TypeConstructorDescription {
|
||||
public var hash: Int64
|
||||
public var albums: [Api.StoryAlbum]
|
||||
public init(hash: Int64, albums: [Api.StoryAlbum]) {
|
||||
self.hash = hash
|
||||
self.albums = albums
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("albums", [("hash", self.hash as Any), ("albums", self.albums as Any)])
|
||||
}
|
||||
}
|
||||
case albums(Cons_albums)
|
||||
case albumsNotModified
|
||||
|
|
@ -1532,7 +1583,7 @@ public extension Api.stories {
|
|||
}
|
||||
public extension Api.stories {
|
||||
enum AllStories: TypeConstructorDescription {
|
||||
public class Cons_allStories {
|
||||
public class Cons_allStories: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var count: Int32
|
||||
public var state: String
|
||||
|
|
@ -1549,8 +1600,11 @@ public extension Api.stories {
|
|||
self.users = users
|
||||
self.stealthMode = stealthMode
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("allStories", [("flags", self.flags as Any), ("count", self.count as Any), ("state", self.state as Any), ("peerStories", self.peerStories as Any), ("chats", self.chats as Any), ("users", self.users as Any), ("stealthMode", self.stealthMode as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_allStoriesNotModified {
|
||||
public class Cons_allStoriesNotModified: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var state: String
|
||||
public var stealthMode: Api.StoriesStealthMode
|
||||
|
|
@ -1559,6 +1613,9 @@ public extension Api.stories {
|
|||
self.state = state
|
||||
self.stealthMode = stealthMode
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("allStoriesNotModified", [("flags", self.flags as Any), ("state", self.state as Any), ("stealthMode", self.stealthMode as Any)])
|
||||
}
|
||||
}
|
||||
case allStories(Cons_allStories)
|
||||
case allStoriesNotModified(Cons_allStoriesNotModified)
|
||||
|
|
@ -1669,11 +1726,14 @@ public extension Api.stories {
|
|||
}
|
||||
public extension Api.stories {
|
||||
enum CanSendStoryCount: TypeConstructorDescription {
|
||||
public class Cons_canSendStoryCount {
|
||||
public class Cons_canSendStoryCount: TypeConstructorDescription {
|
||||
public var countRemains: Int32
|
||||
public init(countRemains: Int32) {
|
||||
self.countRemains = countRemains
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("canSendStoryCount", [("countRemains", self.countRemains as Any)])
|
||||
}
|
||||
}
|
||||
case canSendStoryCount(Cons_canSendStoryCount)
|
||||
|
||||
|
|
@ -1710,7 +1770,7 @@ public extension Api.stories {
|
|||
}
|
||||
public extension Api.stories {
|
||||
enum FoundStories: TypeConstructorDescription {
|
||||
public class Cons_foundStories {
|
||||
public class Cons_foundStories: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var count: Int32
|
||||
public var stories: [Api.FoundStory]
|
||||
|
|
@ -1725,6 +1785,9 @@ public extension Api.stories {
|
|||
self.chats = chats
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("foundStories", [("flags", self.flags as Any), ("count", self.count as Any), ("stories", self.stories as Any), ("nextOffset", self.nextOffset as Any), ("chats", self.chats as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case foundStories(Cons_foundStories)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
public extension Api.stories {
|
||||
enum PeerStories: TypeConstructorDescription {
|
||||
public class Cons_peerStories {
|
||||
public class Cons_peerStories: TypeConstructorDescription {
|
||||
public var stories: Api.PeerStories
|
||||
public var chats: [Api.Chat]
|
||||
public var users: [Api.User]
|
||||
|
|
@ -9,6 +9,9 @@ public extension Api.stories {
|
|||
self.chats = chats
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("peerStories", [("stories", self.stories as Any), ("chats", self.chats as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case peerStories(Cons_peerStories)
|
||||
|
||||
|
|
@ -67,7 +70,7 @@ public extension Api.stories {
|
|||
}
|
||||
public extension Api.stories {
|
||||
enum Stories: TypeConstructorDescription {
|
||||
public class Cons_stories {
|
||||
public class Cons_stories: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var count: Int32
|
||||
public var stories: [Api.StoryItem]
|
||||
|
|
@ -82,6 +85,9 @@ public extension Api.stories {
|
|||
self.chats = chats
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("stories", [("flags", self.flags as Any), ("count", self.count as Any), ("stories", self.stories as Any), ("pinnedToTop", self.pinnedToTop as Any), ("chats", self.chats as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case stories(Cons_stories)
|
||||
|
||||
|
|
@ -166,7 +172,7 @@ public extension Api.stories {
|
|||
}
|
||||
public extension Api.stories {
|
||||
enum StoryReactionsList: TypeConstructorDescription {
|
||||
public class Cons_storyReactionsList {
|
||||
public class Cons_storyReactionsList: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var count: Int32
|
||||
public var reactions: [Api.StoryReaction]
|
||||
|
|
@ -181,6 +187,9 @@ public extension Api.stories {
|
|||
self.users = users
|
||||
self.nextOffset = nextOffset
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("storyReactionsList", [("flags", self.flags as Any), ("count", self.count as Any), ("reactions", self.reactions as Any), ("chats", self.chats as Any), ("users", self.users as Any), ("nextOffset", self.nextOffset as Any)])
|
||||
}
|
||||
}
|
||||
case storyReactionsList(Cons_storyReactionsList)
|
||||
|
||||
|
|
@ -259,13 +268,16 @@ public extension Api.stories {
|
|||
}
|
||||
public extension Api.stories {
|
||||
enum StoryViews: TypeConstructorDescription {
|
||||
public class Cons_storyViews {
|
||||
public class Cons_storyViews: TypeConstructorDescription {
|
||||
public var views: [Api.StoryViews]
|
||||
public var users: [Api.User]
|
||||
public init(views: [Api.StoryViews], users: [Api.User]) {
|
||||
self.views = views
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("storyViews", [("views", self.views as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case storyViews(Cons_storyViews)
|
||||
|
||||
|
|
@ -318,7 +330,7 @@ public extension Api.stories {
|
|||
}
|
||||
public extension Api.stories {
|
||||
enum StoryViewsList: TypeConstructorDescription {
|
||||
public class Cons_storyViewsList {
|
||||
public class Cons_storyViewsList: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var count: Int32
|
||||
public var viewsCount: Int32
|
||||
|
|
@ -339,6 +351,9 @@ public extension Api.stories {
|
|||
self.users = users
|
||||
self.nextOffset = nextOffset
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("storyViewsList", [("flags", self.flags as Any), ("count", self.count as Any), ("viewsCount", self.viewsCount as Any), ("forwardsCount", self.forwardsCount as Any), ("reactionsCount", self.reactionsCount as Any), ("views", self.views as Any), ("chats", self.chats as Any), ("users", self.users as Any), ("nextOffset", self.nextOffset as Any)])
|
||||
}
|
||||
}
|
||||
case storyViewsList(Cons_storyViewsList)
|
||||
|
||||
|
|
@ -429,7 +444,7 @@ public extension Api.stories {
|
|||
}
|
||||
public extension Api.updates {
|
||||
indirect enum ChannelDifference: TypeConstructorDescription {
|
||||
public class Cons_channelDifference {
|
||||
public class Cons_channelDifference: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var pts: Int32
|
||||
public var timeout: Int32?
|
||||
|
|
@ -446,8 +461,11 @@ public extension Api.updates {
|
|||
self.chats = chats
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channelDifference", [("flags", self.flags as Any), ("pts", self.pts as Any), ("timeout", self.timeout as Any), ("newMessages", self.newMessages as Any), ("otherUpdates", self.otherUpdates as Any), ("chats", self.chats as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_channelDifferenceEmpty {
|
||||
public class Cons_channelDifferenceEmpty: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var pts: Int32
|
||||
public var timeout: Int32?
|
||||
|
|
@ -456,8 +474,11 @@ public extension Api.updates {
|
|||
self.pts = pts
|
||||
self.timeout = timeout
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channelDifferenceEmpty", [("flags", self.flags as Any), ("pts", self.pts as Any), ("timeout", self.timeout as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_channelDifferenceTooLong {
|
||||
public class Cons_channelDifferenceTooLong: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var timeout: Int32?
|
||||
public var dialog: Api.Dialog
|
||||
|
|
@ -472,6 +493,9 @@ public extension Api.updates {
|
|||
self.chats = chats
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channelDifferenceTooLong", [("flags", self.flags as Any), ("timeout", self.timeout as Any), ("dialog", self.dialog as Any), ("messages", self.messages as Any), ("chats", self.chats as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case channelDifference(Cons_channelDifference)
|
||||
case channelDifferenceEmpty(Cons_channelDifferenceEmpty)
|
||||
|
|
@ -656,7 +680,7 @@ public extension Api.updates {
|
|||
}
|
||||
public extension Api.updates {
|
||||
enum Difference: TypeConstructorDescription {
|
||||
public class Cons_difference {
|
||||
public class Cons_difference: TypeConstructorDescription {
|
||||
public var newMessages: [Api.Message]
|
||||
public var newEncryptedMessages: [Api.EncryptedMessage]
|
||||
public var otherUpdates: [Api.Update]
|
||||
|
|
@ -671,16 +695,22 @@ public extension Api.updates {
|
|||
self.users = users
|
||||
self.state = state
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("difference", [("newMessages", self.newMessages as Any), ("newEncryptedMessages", self.newEncryptedMessages as Any), ("otherUpdates", self.otherUpdates as Any), ("chats", self.chats as Any), ("users", self.users as Any), ("state", self.state as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_differenceEmpty {
|
||||
public class Cons_differenceEmpty: TypeConstructorDescription {
|
||||
public var date: Int32
|
||||
public var seq: Int32
|
||||
public init(date: Int32, seq: Int32) {
|
||||
self.date = date
|
||||
self.seq = seq
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("differenceEmpty", [("date", self.date as Any), ("seq", self.seq as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_differenceSlice {
|
||||
public class Cons_differenceSlice: TypeConstructorDescription {
|
||||
public var newMessages: [Api.Message]
|
||||
public var newEncryptedMessages: [Api.EncryptedMessage]
|
||||
public var otherUpdates: [Api.Update]
|
||||
|
|
@ -695,12 +725,18 @@ public extension Api.updates {
|
|||
self.users = users
|
||||
self.intermediateState = intermediateState
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("differenceSlice", [("newMessages", self.newMessages as Any), ("newEncryptedMessages", self.newEncryptedMessages as Any), ("otherUpdates", self.otherUpdates as Any), ("chats", self.chats as Any), ("users", self.users as Any), ("intermediateState", self.intermediateState as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_differenceTooLong {
|
||||
public class Cons_differenceTooLong: TypeConstructorDescription {
|
||||
public var pts: Int32
|
||||
public init(pts: Int32) {
|
||||
self.pts = pts
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("differenceTooLong", [("pts", self.pts as Any)])
|
||||
}
|
||||
}
|
||||
case difference(Cons_difference)
|
||||
case differenceEmpty(Cons_differenceEmpty)
|
||||
|
|
@ -905,7 +941,7 @@ public extension Api.updates {
|
|||
}
|
||||
public extension Api.updates {
|
||||
enum State: TypeConstructorDescription {
|
||||
public class Cons_state {
|
||||
public class Cons_state: TypeConstructorDescription {
|
||||
public var pts: Int32
|
||||
public var qts: Int32
|
||||
public var date: Int32
|
||||
|
|
@ -918,6 +954,9 @@ public extension Api.updates {
|
|||
self.seq = seq
|
||||
self.unreadCount = unreadCount
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("state", [("pts", self.pts as Any), ("qts", self.qts as Any), ("date", self.date as Any), ("seq", self.seq as Any), ("unreadCount", self.unreadCount as Any)])
|
||||
}
|
||||
}
|
||||
case state(Cons_state)
|
||||
|
||||
|
|
@ -970,17 +1009,23 @@ public extension Api.updates {
|
|||
}
|
||||
public extension Api.upload {
|
||||
enum CdnFile: TypeConstructorDescription {
|
||||
public class Cons_cdnFile {
|
||||
public class Cons_cdnFile: TypeConstructorDescription {
|
||||
public var bytes: Buffer
|
||||
public init(bytes: Buffer) {
|
||||
self.bytes = bytes
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("cdnFile", [("bytes", self.bytes as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_cdnFileReuploadNeeded {
|
||||
public class Cons_cdnFileReuploadNeeded: TypeConstructorDescription {
|
||||
public var requestToken: Buffer
|
||||
public init(requestToken: Buffer) {
|
||||
self.requestToken = requestToken
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("cdnFileReuploadNeeded", [("requestToken", self.requestToken as Any)])
|
||||
}
|
||||
}
|
||||
case cdnFile(Cons_cdnFile)
|
||||
case cdnFileReuploadNeeded(Cons_cdnFileReuploadNeeded)
|
||||
|
|
@ -1037,7 +1082,7 @@ public extension Api.upload {
|
|||
}
|
||||
public extension Api.upload {
|
||||
enum File: TypeConstructorDescription {
|
||||
public class Cons_file {
|
||||
public class Cons_file: TypeConstructorDescription {
|
||||
public var type: Api.storage.FileType
|
||||
public var mtime: Int32
|
||||
public var bytes: Buffer
|
||||
|
|
@ -1046,8 +1091,11 @@ public extension Api.upload {
|
|||
self.mtime = mtime
|
||||
self.bytes = bytes
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("file", [("type", self.type as Any), ("mtime", self.mtime as Any), ("bytes", self.bytes as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_fileCdnRedirect {
|
||||
public class Cons_fileCdnRedirect: TypeConstructorDescription {
|
||||
public var dcId: Int32
|
||||
public var fileToken: Buffer
|
||||
public var encryptionKey: Buffer
|
||||
|
|
@ -1060,6 +1108,9 @@ public extension Api.upload {
|
|||
self.encryptionIv = encryptionIv
|
||||
self.fileHashes = fileHashes
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("fileCdnRedirect", [("dcId", self.dcId as Any), ("fileToken", self.fileToken as Any), ("encryptionKey", self.encryptionKey as Any), ("encryptionIv", self.encryptionIv as Any), ("fileHashes", self.fileHashes as Any)])
|
||||
}
|
||||
}
|
||||
case file(Cons_file)
|
||||
case fileCdnRedirect(Cons_fileCdnRedirect)
|
||||
|
|
@ -1148,7 +1199,7 @@ public extension Api.upload {
|
|||
}
|
||||
public extension Api.upload {
|
||||
enum WebFile: TypeConstructorDescription {
|
||||
public class Cons_webFile {
|
||||
public class Cons_webFile: TypeConstructorDescription {
|
||||
public var size: Int32
|
||||
public var mimeType: String
|
||||
public var fileType: Api.storage.FileType
|
||||
|
|
@ -1161,6 +1212,9 @@ public extension Api.upload {
|
|||
self.mtime = mtime
|
||||
self.bytes = bytes
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("webFile", [("size", self.size as Any), ("mimeType", self.mimeType as Any), ("fileType", self.fileType as Any), ("mtime", self.mtime as Any), ("bytes", self.bytes as Any)])
|
||||
}
|
||||
}
|
||||
case webFile(Cons_webFile)
|
||||
|
||||
|
|
@ -1215,19 +1269,25 @@ public extension Api.upload {
|
|||
}
|
||||
public extension Api.users {
|
||||
enum SavedMusic: TypeConstructorDescription {
|
||||
public class Cons_savedMusic {
|
||||
public class Cons_savedMusic: TypeConstructorDescription {
|
||||
public var count: Int32
|
||||
public var documents: [Api.Document]
|
||||
public init(count: Int32, documents: [Api.Document]) {
|
||||
self.count = count
|
||||
self.documents = documents
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("savedMusic", [("count", self.count as Any), ("documents", self.documents as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_savedMusicNotModified {
|
||||
public class Cons_savedMusicNotModified: TypeConstructorDescription {
|
||||
public var count: Int32
|
||||
public init(count: Int32) {
|
||||
self.count = count
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("savedMusicNotModified", [("count", self.count as Any)])
|
||||
}
|
||||
}
|
||||
case savedMusic(Cons_savedMusic)
|
||||
case savedMusicNotModified(Cons_savedMusicNotModified)
|
||||
|
|
@ -1294,7 +1354,7 @@ public extension Api.users {
|
|||
}
|
||||
public extension Api.users {
|
||||
enum UserFull: TypeConstructorDescription {
|
||||
public class Cons_userFull {
|
||||
public class Cons_userFull: TypeConstructorDescription {
|
||||
public var fullUser: Api.UserFull
|
||||
public var chats: [Api.Chat]
|
||||
public var users: [Api.User]
|
||||
|
|
@ -1303,6 +1363,9 @@ public extension Api.users {
|
|||
self.chats = chats
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("userFull", [("fullUser", self.fullUser as Any), ("chats", self.chats as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case userFull(Cons_userFull)
|
||||
|
||||
|
|
@ -1361,19 +1424,25 @@ public extension Api.users {
|
|||
}
|
||||
public extension Api.users {
|
||||
enum Users: TypeConstructorDescription {
|
||||
public class Cons_users {
|
||||
public class Cons_users: TypeConstructorDescription {
|
||||
public var users: [Api.User]
|
||||
public init(users: [Api.User]) {
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("users", [("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_usersSlice {
|
||||
public class Cons_usersSlice: TypeConstructorDescription {
|
||||
public var count: Int32
|
||||
public var users: [Api.User]
|
||||
public init(count: Int32, users: [Api.User]) {
|
||||
self.count = count
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("usersSlice", [("count", self.count as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case users(Cons_users)
|
||||
case usersSlice(Cons_usersSlice)
|
||||
|
|
|
|||
|
|
@ -1,10 +1,13 @@
|
|||
public extension Api {
|
||||
enum ChannelAdminLogEventsFilter: TypeConstructorDescription {
|
||||
public class Cons_channelAdminLogEventsFilter {
|
||||
public class Cons_channelAdminLogEventsFilter: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public init(flags: Int32) {
|
||||
self.flags = flags
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channelAdminLogEventsFilter", [("flags", self.flags as Any)])
|
||||
}
|
||||
}
|
||||
case channelAdminLogEventsFilter(Cons_channelAdminLogEventsFilter)
|
||||
|
||||
|
|
@ -41,13 +44,16 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum ChannelLocation: TypeConstructorDescription {
|
||||
public class Cons_channelLocation {
|
||||
public class Cons_channelLocation: TypeConstructorDescription {
|
||||
public var geoPoint: Api.GeoPoint
|
||||
public var address: String
|
||||
public init(geoPoint: Api.GeoPoint, address: String) {
|
||||
self.geoPoint = geoPoint
|
||||
self.address = address
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channelLocation", [("geoPoint", self.geoPoint as Any), ("address", self.address as Any)])
|
||||
}
|
||||
}
|
||||
case channelLocation(Cons_channelLocation)
|
||||
case channelLocationEmpty
|
||||
|
|
@ -101,13 +107,16 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum ChannelMessagesFilter: TypeConstructorDescription {
|
||||
public class Cons_channelMessagesFilter {
|
||||
public class Cons_channelMessagesFilter: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var ranges: [Api.MessageRange]
|
||||
public init(flags: Int32, ranges: [Api.MessageRange]) {
|
||||
self.flags = flags
|
||||
self.ranges = ranges
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channelMessagesFilter", [("flags", self.flags as Any), ("ranges", self.ranges as Any)])
|
||||
}
|
||||
}
|
||||
case channelMessagesFilter(Cons_channelMessagesFilter)
|
||||
case channelMessagesFilterEmpty
|
||||
|
|
@ -165,7 +174,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum ChannelParticipant: TypeConstructorDescription {
|
||||
public class Cons_channelParticipant {
|
||||
public class Cons_channelParticipant: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var userId: Int64
|
||||
public var date: Int32
|
||||
|
|
@ -178,8 +187,11 @@ public extension Api {
|
|||
self.subscriptionUntilDate = subscriptionUntilDate
|
||||
self.rank = rank
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channelParticipant", [("flags", self.flags as Any), ("userId", self.userId as Any), ("date", self.date as Any), ("subscriptionUntilDate", self.subscriptionUntilDate as Any), ("rank", self.rank as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_channelParticipantAdmin {
|
||||
public class Cons_channelParticipantAdmin: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var userId: Int64
|
||||
public var inviterId: Int64?
|
||||
|
|
@ -196,22 +208,30 @@ public extension Api {
|
|||
self.adminRights = adminRights
|
||||
self.rank = rank
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channelParticipantAdmin", [("flags", self.flags as Any), ("userId", self.userId as Any), ("inviterId", self.inviterId as Any), ("promotedBy", self.promotedBy as Any), ("date", self.date as Any), ("adminRights", self.adminRights as Any), ("rank", self.rank as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_channelParticipantBanned {
|
||||
public class Cons_channelParticipantBanned: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var peer: Api.Peer
|
||||
public var kickedBy: Int64
|
||||
public var date: Int32
|
||||
public var bannedRights: Api.ChatBannedRights
|
||||
public init(flags: Int32, peer: Api.Peer, kickedBy: Int64, date: Int32, bannedRights: Api.ChatBannedRights) {
|
||||
public var rank: String?
|
||||
public init(flags: Int32, peer: Api.Peer, kickedBy: Int64, date: Int32, bannedRights: Api.ChatBannedRights, rank: String?) {
|
||||
self.flags = flags
|
||||
self.peer = peer
|
||||
self.kickedBy = kickedBy
|
||||
self.date = date
|
||||
self.bannedRights = bannedRights
|
||||
self.rank = rank
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channelParticipantBanned", [("flags", self.flags as Any), ("peer", self.peer as Any), ("kickedBy", self.kickedBy as Any), ("date", self.date as Any), ("bannedRights", self.bannedRights as Any), ("rank", self.rank as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_channelParticipantCreator {
|
||||
public class Cons_channelParticipantCreator: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var userId: Int64
|
||||
public var adminRights: Api.ChatAdminRights
|
||||
|
|
@ -222,14 +242,20 @@ public extension Api {
|
|||
self.adminRights = adminRights
|
||||
self.rank = rank
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channelParticipantCreator", [("flags", self.flags as Any), ("userId", self.userId as Any), ("adminRights", self.adminRights as Any), ("rank", self.rank as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_channelParticipantLeft {
|
||||
public class Cons_channelParticipantLeft: TypeConstructorDescription {
|
||||
public var peer: Api.Peer
|
||||
public init(peer: Api.Peer) {
|
||||
self.peer = peer
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channelParticipantLeft", [("peer", self.peer as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_channelParticipantSelf {
|
||||
public class Cons_channelParticipantSelf: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var userId: Int64
|
||||
public var inviterId: Int64
|
||||
|
|
@ -244,6 +270,9 @@ public extension Api {
|
|||
self.subscriptionUntilDate = subscriptionUntilDate
|
||||
self.rank = rank
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channelParticipantSelf", [("flags", self.flags as Any), ("userId", self.userId as Any), ("inviterId", self.inviterId as Any), ("date", self.date as Any), ("subscriptionUntilDate", self.subscriptionUntilDate as Any), ("rank", self.rank as Any)])
|
||||
}
|
||||
}
|
||||
case channelParticipant(Cons_channelParticipant)
|
||||
case channelParticipantAdmin(Cons_channelParticipantAdmin)
|
||||
|
|
@ -286,13 +315,16 @@ public extension Api {
|
|||
break
|
||||
case .channelParticipantBanned(let _data):
|
||||
if boxed {
|
||||
buffer.appendInt32(1844969806)
|
||||
buffer.appendInt32(-705647215)
|
||||
}
|
||||
serializeInt32(_data.flags, buffer: buffer, boxed: false)
|
||||
_data.peer.serialize(buffer, true)
|
||||
serializeInt64(_data.kickedBy, buffer: buffer, boxed: false)
|
||||
serializeInt32(_data.date, buffer: buffer, boxed: false)
|
||||
_data.bannedRights.serialize(buffer, true)
|
||||
if Int(_data.flags) & Int(1 << 2) != 0 {
|
||||
serializeString(_data.rank!, buffer: buffer, boxed: false)
|
||||
}
|
||||
break
|
||||
case .channelParticipantCreator(let _data):
|
||||
if boxed {
|
||||
|
|
@ -336,7 +368,7 @@ public extension Api {
|
|||
case .channelParticipantAdmin(let _data):
|
||||
return ("channelParticipantAdmin", [("flags", _data.flags as Any), ("userId", _data.userId as Any), ("inviterId", _data.inviterId as Any), ("promotedBy", _data.promotedBy as Any), ("date", _data.date as Any), ("adminRights", _data.adminRights as Any), ("rank", _data.rank as Any)])
|
||||
case .channelParticipantBanned(let _data):
|
||||
return ("channelParticipantBanned", [("flags", _data.flags as Any), ("peer", _data.peer as Any), ("kickedBy", _data.kickedBy as Any), ("date", _data.date as Any), ("bannedRights", _data.bannedRights as Any)])
|
||||
return ("channelParticipantBanned", [("flags", _data.flags as Any), ("peer", _data.peer as Any), ("kickedBy", _data.kickedBy as Any), ("date", _data.date as Any), ("bannedRights", _data.bannedRights as Any), ("rank", _data.rank as Any)])
|
||||
case .channelParticipantCreator(let _data):
|
||||
return ("channelParticipantCreator", [("flags", _data.flags as Any), ("userId", _data.userId as Any), ("adminRights", _data.adminRights as Any), ("rank", _data.rank as Any)])
|
||||
case .channelParticipantLeft(let _data):
|
||||
|
|
@ -423,13 +455,18 @@ public extension Api {
|
|||
if let signature = reader.readInt32() {
|
||||
_5 = Api.parse(reader, signature: signature) as? Api.ChatBannedRights
|
||||
}
|
||||
var _6: String?
|
||||
if Int(_1!) & Int(1 << 2) != 0 {
|
||||
_6 = parseString(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.ChannelParticipant.channelParticipantBanned(Cons_channelParticipantBanned(flags: _1!, peer: _2!, kickedBy: _3!, date: _4!, bannedRights: _5!))
|
||||
let _c6 = (Int(_1!) & Int(1 << 2) == 0) || _6 != nil
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 {
|
||||
return Api.ChannelParticipant.channelParticipantBanned(Cons_channelParticipantBanned(flags: _1!, peer: _2!, kickedBy: _3!, date: _4!, bannedRights: _5!, rank: _6))
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
|
|
@ -506,25 +543,34 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum ChannelParticipantsFilter: TypeConstructorDescription {
|
||||
public class Cons_channelParticipantsBanned {
|
||||
public class Cons_channelParticipantsBanned: TypeConstructorDescription {
|
||||
public var q: String
|
||||
public init(q: String) {
|
||||
self.q = q
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channelParticipantsBanned", [("q", self.q as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_channelParticipantsContacts {
|
||||
public class Cons_channelParticipantsContacts: TypeConstructorDescription {
|
||||
public var q: String
|
||||
public init(q: String) {
|
||||
self.q = q
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channelParticipantsContacts", [("q", self.q as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_channelParticipantsKicked {
|
||||
public class Cons_channelParticipantsKicked: TypeConstructorDescription {
|
||||
public var q: String
|
||||
public init(q: String) {
|
||||
self.q = q
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channelParticipantsKicked", [("q", self.q as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_channelParticipantsMentions {
|
||||
public class Cons_channelParticipantsMentions: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var q: String?
|
||||
public var topMsgId: Int32?
|
||||
|
|
@ -533,12 +579,18 @@ public extension Api {
|
|||
self.q = q
|
||||
self.topMsgId = topMsgId
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channelParticipantsMentions", [("flags", self.flags as Any), ("q", self.q as Any), ("topMsgId", self.topMsgId as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_channelParticipantsSearch {
|
||||
public class Cons_channelParticipantsSearch: TypeConstructorDescription {
|
||||
public var q: String
|
||||
public init(q: String) {
|
||||
self.q = q
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channelParticipantsSearch", [("q", self.q as Any)])
|
||||
}
|
||||
}
|
||||
case channelParticipantsAdmins
|
||||
case channelParticipantsBanned(Cons_channelParticipantsBanned)
|
||||
|
|
@ -704,7 +756,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
indirect enum Chat: TypeConstructorDescription {
|
||||
public class Cons_channel {
|
||||
public class Cons_channel: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var flags2: Int32
|
||||
public var id: Int64
|
||||
|
|
@ -753,8 +805,11 @@ public extension Api {
|
|||
self.sendPaidMessagesStars = sendPaidMessagesStars
|
||||
self.linkedMonoforumId = linkedMonoforumId
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channel", [("flags", self.flags as Any), ("flags2", self.flags2 as Any), ("id", self.id as Any), ("accessHash", self.accessHash as Any), ("title", self.title as Any), ("username", self.username as Any), ("photo", self.photo as Any), ("date", self.date as Any), ("restrictionReason", self.restrictionReason as Any), ("adminRights", self.adminRights as Any), ("bannedRights", self.bannedRights as Any), ("defaultBannedRights", self.defaultBannedRights as Any), ("participantsCount", self.participantsCount as Any), ("usernames", self.usernames as Any), ("storiesMaxId", self.storiesMaxId as Any), ("color", self.color as Any), ("profileColor", self.profileColor as Any), ("emojiStatus", self.emojiStatus as Any), ("level", self.level as Any), ("subscriptionUntilDate", self.subscriptionUntilDate as Any), ("botVerificationIcon", self.botVerificationIcon as Any), ("sendPaidMessagesStars", self.sendPaidMessagesStars as Any), ("linkedMonoforumId", self.linkedMonoforumId as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_channelForbidden {
|
||||
public class Cons_channelForbidden: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var id: Int64
|
||||
public var accessHash: Int64
|
||||
|
|
@ -767,8 +822,11 @@ public extension Api {
|
|||
self.title = title
|
||||
self.untilDate = untilDate
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channelForbidden", [("flags", self.flags as Any), ("id", self.id as Any), ("accessHash", self.accessHash as Any), ("title", self.title as Any), ("untilDate", self.untilDate as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_chat {
|
||||
public class Cons_chat: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var id: Int64
|
||||
public var title: String
|
||||
|
|
@ -791,20 +849,29 @@ public extension Api {
|
|||
self.adminRights = adminRights
|
||||
self.defaultBannedRights = defaultBannedRights
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("chat", [("flags", self.flags as Any), ("id", self.id as Any), ("title", self.title as Any), ("photo", self.photo as Any), ("participantsCount", self.participantsCount as Any), ("date", self.date as Any), ("version", self.version as Any), ("migratedTo", self.migratedTo as Any), ("adminRights", self.adminRights as Any), ("defaultBannedRights", self.defaultBannedRights as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_chatEmpty {
|
||||
public class Cons_chatEmpty: TypeConstructorDescription {
|
||||
public var id: Int64
|
||||
public init(id: Int64) {
|
||||
self.id = id
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("chatEmpty", [("id", self.id as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_chatForbidden {
|
||||
public class Cons_chatForbidden: TypeConstructorDescription {
|
||||
public var id: Int64
|
||||
public var title: String
|
||||
public init(id: Int64, title: String) {
|
||||
self.id = id
|
||||
self.title = title
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("chatForbidden", [("id", self.id as Any), ("title", self.title as Any)])
|
||||
}
|
||||
}
|
||||
case channel(Cons_channel)
|
||||
case channelForbidden(Cons_channelForbidden)
|
||||
|
|
@ -1185,11 +1252,14 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum ChatAdminRights: TypeConstructorDescription {
|
||||
public class Cons_chatAdminRights {
|
||||
public class Cons_chatAdminRights: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public init(flags: Int32) {
|
||||
self.flags = flags
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("chatAdminRights", [("flags", self.flags as Any)])
|
||||
}
|
||||
}
|
||||
case chatAdminRights(Cons_chatAdminRights)
|
||||
|
||||
|
|
@ -1226,7 +1296,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum ChatAdminWithInvites: TypeConstructorDescription {
|
||||
public class Cons_chatAdminWithInvites {
|
||||
public class Cons_chatAdminWithInvites: TypeConstructorDescription {
|
||||
public var adminId: Int64
|
||||
public var invitesCount: Int32
|
||||
public var revokedInvitesCount: Int32
|
||||
|
|
@ -1235,6 +1305,9 @@ public extension Api {
|
|||
self.invitesCount = invitesCount
|
||||
self.revokedInvitesCount = revokedInvitesCount
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("chatAdminWithInvites", [("adminId", self.adminId as Any), ("invitesCount", self.invitesCount as Any), ("revokedInvitesCount", self.revokedInvitesCount as Any)])
|
||||
}
|
||||
}
|
||||
case chatAdminWithInvites(Cons_chatAdminWithInvites)
|
||||
|
||||
|
|
@ -1279,13 +1352,16 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum ChatBannedRights: TypeConstructorDescription {
|
||||
public class Cons_chatBannedRights {
|
||||
public class Cons_chatBannedRights: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var untilDate: Int32
|
||||
public init(flags: Int32, untilDate: Int32) {
|
||||
self.flags = flags
|
||||
self.untilDate = untilDate
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("chatBannedRights", [("flags", self.flags as Any), ("untilDate", self.untilDate as Any)])
|
||||
}
|
||||
}
|
||||
case chatBannedRights(Cons_chatBannedRights)
|
||||
|
||||
|
|
@ -1326,7 +1402,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum ChatFull: TypeConstructorDescription {
|
||||
public class Cons_channelFull {
|
||||
public class Cons_channelFull: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var flags2: Int32
|
||||
public var id: Int64
|
||||
|
|
@ -1423,8 +1499,11 @@ public extension Api {
|
|||
self.sendPaidMessagesStars = sendPaidMessagesStars
|
||||
self.mainTab = mainTab
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("channelFull", [("flags", self.flags as Any), ("flags2", self.flags2 as Any), ("id", self.id as Any), ("about", self.about as Any), ("participantsCount", self.participantsCount as Any), ("adminsCount", self.adminsCount as Any), ("kickedCount", self.kickedCount as Any), ("bannedCount", self.bannedCount as Any), ("onlineCount", self.onlineCount as Any), ("readInboxMaxId", self.readInboxMaxId as Any), ("readOutboxMaxId", self.readOutboxMaxId as Any), ("unreadCount", self.unreadCount as Any), ("chatPhoto", self.chatPhoto as Any), ("notifySettings", self.notifySettings as Any), ("exportedInvite", self.exportedInvite as Any), ("botInfo", self.botInfo as Any), ("migratedFromChatId", self.migratedFromChatId as Any), ("migratedFromMaxId", self.migratedFromMaxId as Any), ("pinnedMsgId", self.pinnedMsgId as Any), ("stickerset", self.stickerset as Any), ("availableMinId", self.availableMinId as Any), ("folderId", self.folderId as Any), ("linkedChatId", self.linkedChatId as Any), ("location", self.location as Any), ("slowmodeSeconds", self.slowmodeSeconds as Any), ("slowmodeNextSendDate", self.slowmodeNextSendDate as Any), ("statsDc", self.statsDc as Any), ("pts", self.pts as Any), ("call", self.call as Any), ("ttlPeriod", self.ttlPeriod as Any), ("pendingSuggestions", self.pendingSuggestions as Any), ("groupcallDefaultJoinAs", self.groupcallDefaultJoinAs as Any), ("themeEmoticon", self.themeEmoticon as Any), ("requestsPending", self.requestsPending as Any), ("recentRequesters", self.recentRequesters as Any), ("defaultSendAs", self.defaultSendAs as Any), ("availableReactions", self.availableReactions as Any), ("reactionsLimit", self.reactionsLimit as Any), ("stories", self.stories as Any), ("wallpaper", self.wallpaper as Any), ("boostsApplied", self.boostsApplied as Any), ("boostsUnrestrict", self.boostsUnrestrict as Any), ("emojiset", self.emojiset as Any), ("botVerification", self.botVerification as Any), ("stargiftsCount", self.stargiftsCount as Any), ("sendPaidMessagesStars", self.sendPaidMessagesStars as Any), ("mainTab", self.mainTab as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_chatFull {
|
||||
public class Cons_chatFull: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var id: Int64
|
||||
public var about: String
|
||||
|
|
@ -1463,6 +1542,9 @@ public extension Api {
|
|||
self.availableReactions = availableReactions
|
||||
self.reactionsLimit = reactionsLimit
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("chatFull", [("flags", self.flags as Any), ("id", self.id as Any), ("about", self.about as Any), ("participants", self.participants as Any), ("chatPhoto", self.chatPhoto as Any), ("notifySettings", self.notifySettings as Any), ("exportedInvite", self.exportedInvite as Any), ("botInfo", self.botInfo as Any), ("pinnedMsgId", self.pinnedMsgId as Any), ("folderId", self.folderId as Any), ("call", self.call as Any), ("ttlPeriod", self.ttlPeriod as Any), ("groupcallDefaultJoinAs", self.groupcallDefaultJoinAs as Any), ("themeEmoticon", self.themeEmoticon as Any), ("requestsPending", self.requestsPending as Any), ("recentRequesters", self.recentRequesters as Any), ("availableReactions", self.availableReactions as Any), ("reactionsLimit", self.reactionsLimit as Any)])
|
||||
}
|
||||
}
|
||||
case channelFull(Cons_channelFull)
|
||||
case chatFull(Cons_chatFull)
|
||||
|
|
@ -2039,7 +2121,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
indirect enum ChatInvite: TypeConstructorDescription {
|
||||
public class Cons_chatInvite {
|
||||
public class Cons_chatInvite: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var title: String
|
||||
public var about: String?
|
||||
|
|
@ -2062,20 +2144,29 @@ public extension Api {
|
|||
self.subscriptionFormId = subscriptionFormId
|
||||
self.botVerification = botVerification
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("chatInvite", [("flags", self.flags as Any), ("title", self.title as Any), ("about", self.about as Any), ("photo", self.photo as Any), ("participantsCount", self.participantsCount as Any), ("participants", self.participants as Any), ("color", self.color as Any), ("subscriptionPricing", self.subscriptionPricing as Any), ("subscriptionFormId", self.subscriptionFormId as Any), ("botVerification", self.botVerification as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_chatInviteAlready {
|
||||
public class Cons_chatInviteAlready: TypeConstructorDescription {
|
||||
public var chat: Api.Chat
|
||||
public init(chat: Api.Chat) {
|
||||
self.chat = chat
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("chatInviteAlready", [("chat", self.chat as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_chatInvitePeek {
|
||||
public class Cons_chatInvitePeek: TypeConstructorDescription {
|
||||
public var chat: Api.Chat
|
||||
public var expires: Int32
|
||||
public init(chat: Api.Chat, expires: Int32) {
|
||||
self.chat = chat
|
||||
self.expires = expires
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("chatInvitePeek", [("chat", self.chat as Any), ("expires", self.expires as Any)])
|
||||
}
|
||||
}
|
||||
case chatInvite(Cons_chatInvite)
|
||||
case chatInviteAlready(Cons_chatInviteAlready)
|
||||
|
|
|
|||
|
|
@ -8379,9 +8379,9 @@ public extension Api.functions.messages {
|
|||
}
|
||||
}
|
||||
public extension Api.functions.messages {
|
||||
static func requestUrlAuth(flags: Int32, peer: Api.InputPeer?, msgId: Int32?, buttonId: Int32?, url: String?) -> (FunctionDescription, Buffer, DeserializeFunctionResponse<Api.UrlAuthResult>) {
|
||||
static func requestUrlAuth(flags: Int32, peer: Api.InputPeer?, msgId: Int32?, buttonId: Int32?, url: String?, inAppOrigin: String?) -> (FunctionDescription, Buffer, DeserializeFunctionResponse<Api.UrlAuthResult>) {
|
||||
let buffer = Buffer()
|
||||
buffer.appendInt32(428848198)
|
||||
buffer.appendInt32(-1991456356)
|
||||
serializeInt32(flags, buffer: buffer, boxed: false)
|
||||
if Int(flags) & Int(1 << 1) != 0 {
|
||||
peer!.serialize(buffer, true)
|
||||
|
|
@ -8395,7 +8395,10 @@ public extension Api.functions.messages {
|
|||
if Int(flags) & Int(1 << 2) != 0 {
|
||||
serializeString(url!, buffer: buffer, boxed: false)
|
||||
}
|
||||
return (FunctionDescription(name: "messages.requestUrlAuth", parameters: [("flags", String(describing: flags)), ("peer", String(describing: peer)), ("msgId", String(describing: msgId)), ("buttonId", String(describing: buttonId)), ("url", String(describing: url))]), buffer, DeserializeFunctionResponse { (buffer: Buffer) -> Api.UrlAuthResult? in
|
||||
if Int(flags) & Int(1 << 3) != 0 {
|
||||
serializeString(inAppOrigin!, buffer: buffer, boxed: false)
|
||||
}
|
||||
return (FunctionDescription(name: "messages.requestUrlAuth", parameters: [("flags", String(describing: flags)), ("peer", String(describing: peer)), ("msgId", String(describing: msgId)), ("buttonId", String(describing: buttonId)), ("url", String(describing: url)), ("inAppOrigin", String(describing: inAppOrigin))]), buffer, DeserializeFunctionResponse { (buffer: Buffer) -> Api.UrlAuthResult? in
|
||||
let reader = BufferReader(buffer)
|
||||
var result: Api.UrlAuthResult?
|
||||
if let signature = reader.readInt32() {
|
||||
|
|
@ -9510,12 +9513,16 @@ public extension Api.functions.messages {
|
|||
}
|
||||
}
|
||||
public extension Api.functions.messages {
|
||||
static func toggleNoForwards(peer: Api.InputPeer, enabled: Api.Bool) -> (FunctionDescription, Buffer, DeserializeFunctionResponse<Api.Updates>) {
|
||||
static func toggleNoForwards(flags: Int32, peer: Api.InputPeer, enabled: Api.Bool, requestMsgId: Int32?) -> (FunctionDescription, Buffer, DeserializeFunctionResponse<Api.Updates>) {
|
||||
let buffer = Buffer()
|
||||
buffer.appendInt32(-1323389022)
|
||||
buffer.appendInt32(-1308091851)
|
||||
serializeInt32(flags, buffer: buffer, boxed: false)
|
||||
peer.serialize(buffer, true)
|
||||
enabled.serialize(buffer, true)
|
||||
return (FunctionDescription(name: "messages.toggleNoForwards", parameters: [("peer", String(describing: peer)), ("enabled", String(describing: enabled))]), buffer, DeserializeFunctionResponse { (buffer: Buffer) -> Api.Updates? in
|
||||
if Int(flags) & Int(1 << 0) != 0 {
|
||||
serializeInt32(requestMsgId!, buffer: buffer, boxed: false)
|
||||
}
|
||||
return (FunctionDescription(name: "messages.toggleNoForwards", parameters: [("flags", String(describing: flags)), ("peer", String(describing: peer)), ("enabled", String(describing: enabled)), ("requestMsgId", String(describing: requestMsgId))]), buffer, DeserializeFunctionResponse { (buffer: Buffer) -> Api.Updates? in
|
||||
let reader = BufferReader(buffer)
|
||||
var result: Api.Updates?
|
||||
if let signature = reader.readInt32() {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
public extension Api {
|
||||
enum ChatInviteImporter: TypeConstructorDescription {
|
||||
public class Cons_chatInviteImporter {
|
||||
public class Cons_chatInviteImporter: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var userId: Int64
|
||||
public var date: Int32
|
||||
|
|
@ -13,6 +13,9 @@ public extension Api {
|
|||
self.about = about
|
||||
self.approvedBy = approvedBy
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("chatInviteImporter", [("flags", self.flags as Any), ("userId", self.userId as Any), ("date", self.date as Any), ("about", self.about as Any), ("approvedBy", self.approvedBy as Any)])
|
||||
}
|
||||
}
|
||||
case chatInviteImporter(Cons_chatInviteImporter)
|
||||
|
||||
|
|
@ -73,11 +76,14 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum ChatOnlines: TypeConstructorDescription {
|
||||
public class Cons_chatOnlines {
|
||||
public class Cons_chatOnlines: TypeConstructorDescription {
|
||||
public var onlines: Int32
|
||||
public init(onlines: Int32) {
|
||||
self.onlines = onlines
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("chatOnlines", [("onlines", self.onlines as Any)])
|
||||
}
|
||||
}
|
||||
case chatOnlines(Cons_chatOnlines)
|
||||
|
||||
|
|
@ -114,7 +120,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum ChatParticipant: TypeConstructorDescription {
|
||||
public class Cons_chatParticipant {
|
||||
public class Cons_chatParticipant: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var userId: Int64
|
||||
public var inviterId: Int64
|
||||
|
|
@ -127,8 +133,11 @@ public extension Api {
|
|||
self.date = date
|
||||
self.rank = rank
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("chatParticipant", [("flags", self.flags as Any), ("userId", self.userId as Any), ("inviterId", self.inviterId as Any), ("date", self.date as Any), ("rank", self.rank as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_chatParticipantAdmin {
|
||||
public class Cons_chatParticipantAdmin: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var userId: Int64
|
||||
public var inviterId: Int64
|
||||
|
|
@ -141,8 +150,11 @@ public extension Api {
|
|||
self.date = date
|
||||
self.rank = rank
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("chatParticipantAdmin", [("flags", self.flags as Any), ("userId", self.userId as Any), ("inviterId", self.inviterId as Any), ("date", self.date as Any), ("rank", self.rank as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_chatParticipantCreator {
|
||||
public class Cons_chatParticipantCreator: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var userId: Int64
|
||||
public var rank: String?
|
||||
|
|
@ -151,6 +163,9 @@ public extension Api {
|
|||
self.userId = userId
|
||||
self.rank = rank
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("chatParticipantCreator", [("flags", self.flags as Any), ("userId", self.userId as Any), ("rank", self.rank as Any)])
|
||||
}
|
||||
}
|
||||
case chatParticipant(Cons_chatParticipant)
|
||||
case chatParticipantAdmin(Cons_chatParticipantAdmin)
|
||||
|
|
@ -279,7 +294,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum ChatParticipants: TypeConstructorDescription {
|
||||
public class Cons_chatParticipants {
|
||||
public class Cons_chatParticipants: TypeConstructorDescription {
|
||||
public var chatId: Int64
|
||||
public var participants: [Api.ChatParticipant]
|
||||
public var version: Int32
|
||||
|
|
@ -288,8 +303,11 @@ public extension Api {
|
|||
self.participants = participants
|
||||
self.version = version
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("chatParticipants", [("chatId", self.chatId as Any), ("participants", self.participants as Any), ("version", self.version as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_chatParticipantsForbidden {
|
||||
public class Cons_chatParticipantsForbidden: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var chatId: Int64
|
||||
public var selfParticipant: Api.ChatParticipant?
|
||||
|
|
@ -298,6 +316,9 @@ public extension Api {
|
|||
self.chatId = chatId
|
||||
self.selfParticipant = selfParticipant
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("chatParticipantsForbidden", [("flags", self.flags as Any), ("chatId", self.chatId as Any), ("selfParticipant", self.selfParticipant as Any)])
|
||||
}
|
||||
}
|
||||
case chatParticipants(Cons_chatParticipants)
|
||||
case chatParticipantsForbidden(Cons_chatParticipantsForbidden)
|
||||
|
|
@ -382,7 +403,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum ChatPhoto: TypeConstructorDescription {
|
||||
public class Cons_chatPhoto {
|
||||
public class Cons_chatPhoto: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var photoId: Int64
|
||||
public var strippedThumb: Buffer?
|
||||
|
|
@ -393,6 +414,9 @@ public extension Api {
|
|||
self.strippedThumb = strippedThumb
|
||||
self.dcId = dcId
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("chatPhoto", [("flags", self.flags as Any), ("photoId", self.photoId as Any), ("strippedThumb", self.strippedThumb as Any), ("dcId", self.dcId as Any)])
|
||||
}
|
||||
}
|
||||
case chatPhoto(Cons_chatPhoto)
|
||||
case chatPhotoEmpty
|
||||
|
|
@ -456,17 +480,23 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum ChatReactions: TypeConstructorDescription {
|
||||
public class Cons_chatReactionsAll {
|
||||
public class Cons_chatReactionsAll: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public init(flags: Int32) {
|
||||
self.flags = flags
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("chatReactionsAll", [("flags", self.flags as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_chatReactionsSome {
|
||||
public class Cons_chatReactionsSome: TypeConstructorDescription {
|
||||
public var reactions: [Api.Reaction]
|
||||
public init(reactions: [Api.Reaction]) {
|
||||
self.reactions = reactions
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("chatReactionsSome", [("reactions", self.reactions as Any)])
|
||||
}
|
||||
}
|
||||
case chatReactionsAll(Cons_chatReactionsAll)
|
||||
case chatReactionsNone
|
||||
|
|
@ -540,19 +570,25 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum ChatTheme: TypeConstructorDescription {
|
||||
public class Cons_chatTheme {
|
||||
public class Cons_chatTheme: TypeConstructorDescription {
|
||||
public var emoticon: String
|
||||
public init(emoticon: String) {
|
||||
self.emoticon = emoticon
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("chatTheme", [("emoticon", self.emoticon as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_chatThemeUniqueGift {
|
||||
public class Cons_chatThemeUniqueGift: TypeConstructorDescription {
|
||||
public var gift: Api.StarGift
|
||||
public var themeSettings: [Api.ThemeSettings]
|
||||
public init(gift: Api.StarGift, themeSettings: [Api.ThemeSettings]) {
|
||||
self.gift = gift
|
||||
self.themeSettings = themeSettings
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("chatThemeUniqueGift", [("gift", self.gift as Any), ("themeSettings", self.themeSettings as Any)])
|
||||
}
|
||||
}
|
||||
case chatTheme(Cons_chatTheme)
|
||||
case chatThemeUniqueGift(Cons_chatThemeUniqueGift)
|
||||
|
|
@ -621,7 +657,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum CodeSettings: TypeConstructorDescription {
|
||||
public class Cons_codeSettings {
|
||||
public class Cons_codeSettings: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var logoutTokens: [Buffer]?
|
||||
public var token: String?
|
||||
|
|
@ -632,6 +668,9 @@ public extension Api {
|
|||
self.token = token
|
||||
self.appSandbox = appSandbox
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("codeSettings", [("flags", self.flags as Any), ("logoutTokens", self.logoutTokens as Any), ("token", self.token as Any), ("appSandbox", self.appSandbox as Any)])
|
||||
}
|
||||
}
|
||||
case codeSettings(Cons_codeSettings)
|
||||
|
||||
|
|
@ -700,7 +739,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum Config: TypeConstructorDescription {
|
||||
public class Cons_config {
|
||||
public class Cons_config: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var date: Int32
|
||||
public var expires: Int32
|
||||
|
|
@ -789,6 +828,9 @@ public extension Api {
|
|||
self.reactionsDefault = reactionsDefault
|
||||
self.autologinToken = autologinToken
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("config", [("flags", self.flags as Any), ("date", self.date as Any), ("expires", self.expires as Any), ("testMode", self.testMode as Any), ("thisDc", self.thisDc as Any), ("dcOptions", self.dcOptions as Any), ("dcTxtDomainName", self.dcTxtDomainName as Any), ("chatSizeMax", self.chatSizeMax as Any), ("megagroupSizeMax", self.megagroupSizeMax as Any), ("forwardedCountMax", self.forwardedCountMax as Any), ("onlineUpdatePeriodMs", self.onlineUpdatePeriodMs as Any), ("offlineBlurTimeoutMs", self.offlineBlurTimeoutMs as Any), ("offlineIdleTimeoutMs", self.offlineIdleTimeoutMs as Any), ("onlineCloudTimeoutMs", self.onlineCloudTimeoutMs as Any), ("notifyCloudDelayMs", self.notifyCloudDelayMs as Any), ("notifyDefaultDelayMs", self.notifyDefaultDelayMs as Any), ("pushChatPeriodMs", self.pushChatPeriodMs as Any), ("pushChatLimit", self.pushChatLimit as Any), ("editTimeLimit", self.editTimeLimit as Any), ("revokeTimeLimit", self.revokeTimeLimit as Any), ("revokePmTimeLimit", self.revokePmTimeLimit as Any), ("ratingEDecay", self.ratingEDecay as Any), ("stickersRecentLimit", self.stickersRecentLimit as Any), ("channelsReadMediaPeriod", self.channelsReadMediaPeriod as Any), ("tmpSessions", self.tmpSessions as Any), ("callReceiveTimeoutMs", self.callReceiveTimeoutMs as Any), ("callRingTimeoutMs", self.callRingTimeoutMs as Any), ("callConnectTimeoutMs", self.callConnectTimeoutMs as Any), ("callPacketTimeoutMs", self.callPacketTimeoutMs as Any), ("meUrlPrefix", self.meUrlPrefix as Any), ("autoupdateUrlPrefix", self.autoupdateUrlPrefix as Any), ("gifSearchUsername", self.gifSearchUsername as Any), ("venueSearchUsername", self.venueSearchUsername as Any), ("imgSearchUsername", self.imgSearchUsername as Any), ("staticMapsProvider", self.staticMapsProvider as Any), ("captionLengthMax", self.captionLengthMax as Any), ("messageLengthMax", self.messageLengthMax as Any), ("webfileDcId", self.webfileDcId as Any), ("suggestedLangCode", self.suggestedLangCode as Any), ("langPackVersion", self.langPackVersion as Any), ("baseLangPackVersion", self.baseLangPackVersion as Any), ("reactionsDefault", self.reactionsDefault as Any), ("autologinToken", self.autologinToken as Any)])
|
||||
}
|
||||
}
|
||||
case config(Cons_config)
|
||||
|
||||
|
|
@ -1047,7 +1089,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum ConnectedBot: TypeConstructorDescription {
|
||||
public class Cons_connectedBot {
|
||||
public class Cons_connectedBot: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var botId: Int64
|
||||
public var recipients: Api.BusinessBotRecipients
|
||||
|
|
@ -1058,6 +1100,9 @@ public extension Api {
|
|||
self.recipients = recipients
|
||||
self.rights = rights
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("connectedBot", [("flags", self.flags as Any), ("botId", self.botId as Any), ("recipients", self.recipients as Any), ("rights", self.rights as Any)])
|
||||
}
|
||||
}
|
||||
case connectedBot(Cons_connectedBot)
|
||||
|
||||
|
|
@ -1110,7 +1155,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum ConnectedBotStarRef: TypeConstructorDescription {
|
||||
public class Cons_connectedBotStarRef {
|
||||
public class Cons_connectedBotStarRef: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var url: String
|
||||
public var date: Int32
|
||||
|
|
@ -1129,6 +1174,9 @@ public extension Api {
|
|||
self.participants = participants
|
||||
self.revenue = revenue
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("connectedBotStarRef", [("flags", self.flags as Any), ("url", self.url as Any), ("date", self.date as Any), ("botId", self.botId as Any), ("commissionPermille", self.commissionPermille as Any), ("durationMonths", self.durationMonths as Any), ("participants", self.participants as Any), ("revenue", self.revenue as Any)])
|
||||
}
|
||||
}
|
||||
case connectedBotStarRef(Cons_connectedBotStarRef)
|
||||
|
||||
|
|
@ -1197,13 +1245,16 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum Contact: TypeConstructorDescription {
|
||||
public class Cons_contact {
|
||||
public class Cons_contact: TypeConstructorDescription {
|
||||
public var userId: Int64
|
||||
public var mutual: Api.Bool
|
||||
public init(userId: Int64, mutual: Api.Bool) {
|
||||
self.userId = userId
|
||||
self.mutual = mutual
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("contact", [("userId", self.userId as Any), ("mutual", self.mutual as Any)])
|
||||
}
|
||||
}
|
||||
case contact(Cons_contact)
|
||||
|
||||
|
|
@ -1246,13 +1297,16 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum ContactBirthday: TypeConstructorDescription {
|
||||
public class Cons_contactBirthday {
|
||||
public class Cons_contactBirthday: TypeConstructorDescription {
|
||||
public var contactId: Int64
|
||||
public var birthday: Api.Birthday
|
||||
public init(contactId: Int64, birthday: Api.Birthday) {
|
||||
self.contactId = contactId
|
||||
self.birthday = birthday
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("contactBirthday", [("contactId", self.contactId as Any), ("birthday", self.birthday as Any)])
|
||||
}
|
||||
}
|
||||
case contactBirthday(Cons_contactBirthday)
|
||||
|
||||
|
|
@ -1295,13 +1349,16 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum ContactStatus: TypeConstructorDescription {
|
||||
public class Cons_contactStatus {
|
||||
public class Cons_contactStatus: TypeConstructorDescription {
|
||||
public var userId: Int64
|
||||
public var status: Api.UserStatus
|
||||
public init(userId: Int64, status: Api.UserStatus) {
|
||||
self.userId = userId
|
||||
self.status = status
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("contactStatus", [("userId", self.userId as Any), ("status", self.status as Any)])
|
||||
}
|
||||
}
|
||||
case contactStatus(Cons_contactStatus)
|
||||
|
||||
|
|
@ -1344,11 +1401,14 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum DataJSON: TypeConstructorDescription {
|
||||
public class Cons_dataJSON {
|
||||
public class Cons_dataJSON: TypeConstructorDescription {
|
||||
public var data: String
|
||||
public init(data: String) {
|
||||
self.data = data
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("dataJSON", [("data", self.data as Any)])
|
||||
}
|
||||
}
|
||||
case dataJSON(Cons_dataJSON)
|
||||
|
||||
|
|
@ -1385,7 +1445,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum DcOption: TypeConstructorDescription {
|
||||
public class Cons_dcOption {
|
||||
public class Cons_dcOption: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var id: Int32
|
||||
public var ipAddress: String
|
||||
|
|
@ -1398,6 +1458,9 @@ public extension Api {
|
|||
self.port = port
|
||||
self.secret = secret
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("dcOption", [("flags", self.flags as Any), ("id", self.id as Any), ("ipAddress", self.ipAddress as Any), ("port", self.port as Any), ("secret", self.secret as Any)])
|
||||
}
|
||||
}
|
||||
case dcOption(Cons_dcOption)
|
||||
|
||||
|
|
@ -1454,11 +1517,14 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum DefaultHistoryTTL: TypeConstructorDescription {
|
||||
public class Cons_defaultHistoryTTL {
|
||||
public class Cons_defaultHistoryTTL: TypeConstructorDescription {
|
||||
public var period: Int32
|
||||
public init(period: Int32) {
|
||||
self.period = period
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("defaultHistoryTTL", [("period", self.period as Any)])
|
||||
}
|
||||
}
|
||||
case defaultHistoryTTL(Cons_defaultHistoryTTL)
|
||||
|
||||
|
|
@ -1495,7 +1561,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
indirect enum Dialog: TypeConstructorDescription {
|
||||
public class Cons_dialog {
|
||||
public class Cons_dialog: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var peer: Api.Peer
|
||||
public var topMessage: Int32
|
||||
|
|
@ -1524,8 +1590,11 @@ public extension Api {
|
|||
self.folderId = folderId
|
||||
self.ttlPeriod = ttlPeriod
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("dialog", [("flags", self.flags as Any), ("peer", self.peer as Any), ("topMessage", self.topMessage as Any), ("readInboxMaxId", self.readInboxMaxId as Any), ("readOutboxMaxId", self.readOutboxMaxId as Any), ("unreadCount", self.unreadCount as Any), ("unreadMentionsCount", self.unreadMentionsCount as Any), ("unreadReactionsCount", self.unreadReactionsCount as Any), ("notifySettings", self.notifySettings as Any), ("pts", self.pts as Any), ("draft", self.draft as Any), ("folderId", self.folderId as Any), ("ttlPeriod", self.ttlPeriod as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_dialogFolder {
|
||||
public class Cons_dialogFolder: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var folder: Api.Folder
|
||||
public var peer: Api.Peer
|
||||
|
|
@ -1544,6 +1613,9 @@ public extension Api {
|
|||
self.unreadMutedMessagesCount = unreadMutedMessagesCount
|
||||
self.unreadUnmutedMessagesCount = unreadUnmutedMessagesCount
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("dialogFolder", [("flags", self.flags as Any), ("folder", self.folder as Any), ("peer", self.peer as Any), ("topMessage", self.topMessage as Any), ("unreadMutedPeersCount", self.unreadMutedPeersCount as Any), ("unreadUnmutedPeersCount", self.unreadUnmutedPeersCount as Any), ("unreadMutedMessagesCount", self.unreadMutedMessagesCount as Any), ("unreadUnmutedMessagesCount", self.unreadUnmutedMessagesCount as Any)])
|
||||
}
|
||||
}
|
||||
case dialog(Cons_dialog)
|
||||
case dialogFolder(Cons_dialogFolder)
|
||||
|
|
@ -1702,7 +1774,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum DialogFilter: TypeConstructorDescription {
|
||||
public class Cons_dialogFilter {
|
||||
public class Cons_dialogFilter: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var id: Int32
|
||||
public var title: Api.TextWithEntities
|
||||
|
|
@ -1721,8 +1793,11 @@ public extension Api {
|
|||
self.includePeers = includePeers
|
||||
self.excludePeers = excludePeers
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("dialogFilter", [("flags", self.flags as Any), ("id", self.id as Any), ("title", self.title as Any), ("emoticon", self.emoticon as Any), ("color", self.color as Any), ("pinnedPeers", self.pinnedPeers as Any), ("includePeers", self.includePeers as Any), ("excludePeers", self.excludePeers as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_dialogFilterChatlist {
|
||||
public class Cons_dialogFilterChatlist: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var id: Int32
|
||||
public var title: Api.TextWithEntities
|
||||
|
|
@ -1739,6 +1814,9 @@ public extension Api {
|
|||
self.pinnedPeers = pinnedPeers
|
||||
self.includePeers = includePeers
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("dialogFilterChatlist", [("flags", self.flags as Any), ("id", self.id as Any), ("title", self.title as Any), ("emoticon", self.emoticon as Any), ("color", self.color as Any), ("pinnedPeers", self.pinnedPeers as Any), ("includePeers", self.includePeers as Any)])
|
||||
}
|
||||
}
|
||||
case dialogFilter(Cons_dialogFilter)
|
||||
case dialogFilterChatlist(Cons_dialogFilterChatlist)
|
||||
|
|
@ -1908,13 +1986,16 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum DialogFilterSuggested: TypeConstructorDescription {
|
||||
public class Cons_dialogFilterSuggested {
|
||||
public class Cons_dialogFilterSuggested: TypeConstructorDescription {
|
||||
public var filter: Api.DialogFilter
|
||||
public var description: String
|
||||
public init(filter: Api.DialogFilter, description: String) {
|
||||
self.filter = filter
|
||||
self.description = description
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("dialogFilterSuggested", [("filter", self.filter as Any), ("description", self.description as Any)])
|
||||
}
|
||||
}
|
||||
case dialogFilterSuggested(Cons_dialogFilterSuggested)
|
||||
|
||||
|
|
@ -1957,17 +2038,23 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum DialogPeer: TypeConstructorDescription {
|
||||
public class Cons_dialogPeer {
|
||||
public class Cons_dialogPeer: TypeConstructorDescription {
|
||||
public var peer: Api.Peer
|
||||
public init(peer: Api.Peer) {
|
||||
self.peer = peer
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("dialogPeer", [("peer", self.peer as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_dialogPeerFolder {
|
||||
public class Cons_dialogPeerFolder: TypeConstructorDescription {
|
||||
public var folderId: Int32
|
||||
public init(folderId: Int32) {
|
||||
self.folderId = folderId
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("dialogPeerFolder", [("folderId", self.folderId as Any)])
|
||||
}
|
||||
}
|
||||
case dialogPeer(Cons_dialogPeer)
|
||||
case dialogPeerFolder(Cons_dialogPeerFolder)
|
||||
|
|
|
|||
|
|
@ -1,10 +1,13 @@
|
|||
public extension Api {
|
||||
enum DisallowedGiftsSettings: TypeConstructorDescription {
|
||||
public class Cons_disallowedGiftsSettings {
|
||||
public class Cons_disallowedGiftsSettings: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public init(flags: Int32) {
|
||||
self.flags = flags
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("disallowedGiftsSettings", [("flags", self.flags as Any)])
|
||||
}
|
||||
}
|
||||
case disallowedGiftsSettings(Cons_disallowedGiftsSettings)
|
||||
|
||||
|
|
@ -41,7 +44,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum Document: TypeConstructorDescription {
|
||||
public class Cons_document {
|
||||
public class Cons_document: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var id: Int64
|
||||
public var accessHash: Int64
|
||||
|
|
@ -66,12 +69,18 @@ public extension Api {
|
|||
self.dcId = dcId
|
||||
self.attributes = attributes
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("document", [("flags", self.flags as Any), ("id", self.id as Any), ("accessHash", self.accessHash as Any), ("fileReference", self.fileReference as Any), ("date", self.date as Any), ("mimeType", self.mimeType as Any), ("size", self.size as Any), ("thumbs", self.thumbs as Any), ("videoThumbs", self.videoThumbs as Any), ("dcId", self.dcId as Any), ("attributes", self.attributes as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_documentEmpty {
|
||||
public class Cons_documentEmpty: TypeConstructorDescription {
|
||||
public var id: Int64
|
||||
public init(id: Int64) {
|
||||
self.id = id
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("documentEmpty", [("id", self.id as Any)])
|
||||
}
|
||||
}
|
||||
case document(Cons_document)
|
||||
case documentEmpty(Cons_documentEmpty)
|
||||
|
|
@ -194,7 +203,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum DocumentAttribute: TypeConstructorDescription {
|
||||
public class Cons_documentAttributeAudio {
|
||||
public class Cons_documentAttributeAudio: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var duration: Int32
|
||||
public var title: String?
|
||||
|
|
@ -207,8 +216,11 @@ public extension Api {
|
|||
self.performer = performer
|
||||
self.waveform = waveform
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("documentAttributeAudio", [("flags", self.flags as Any), ("duration", self.duration as Any), ("title", self.title as Any), ("performer", self.performer as Any), ("waveform", self.waveform as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_documentAttributeCustomEmoji {
|
||||
public class Cons_documentAttributeCustomEmoji: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var alt: String
|
||||
public var stickerset: Api.InputStickerSet
|
||||
|
|
@ -217,22 +229,31 @@ public extension Api {
|
|||
self.alt = alt
|
||||
self.stickerset = stickerset
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("documentAttributeCustomEmoji", [("flags", self.flags as Any), ("alt", self.alt as Any), ("stickerset", self.stickerset as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_documentAttributeFilename {
|
||||
public class Cons_documentAttributeFilename: TypeConstructorDescription {
|
||||
public var fileName: String
|
||||
public init(fileName: String) {
|
||||
self.fileName = fileName
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("documentAttributeFilename", [("fileName", self.fileName as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_documentAttributeImageSize {
|
||||
public class Cons_documentAttributeImageSize: TypeConstructorDescription {
|
||||
public var w: Int32
|
||||
public var h: Int32
|
||||
public init(w: Int32, h: Int32) {
|
||||
self.w = w
|
||||
self.h = h
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("documentAttributeImageSize", [("w", self.w as Any), ("h", self.h as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_documentAttributeSticker {
|
||||
public class Cons_documentAttributeSticker: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var alt: String
|
||||
public var stickerset: Api.InputStickerSet
|
||||
|
|
@ -243,8 +264,11 @@ public extension Api {
|
|||
self.stickerset = stickerset
|
||||
self.maskCoords = maskCoords
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("documentAttributeSticker", [("flags", self.flags as Any), ("alt", self.alt as Any), ("stickerset", self.stickerset as Any), ("maskCoords", self.maskCoords as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_documentAttributeVideo {
|
||||
public class Cons_documentAttributeVideo: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var duration: Double
|
||||
public var w: Int32
|
||||
|
|
@ -261,6 +285,9 @@ public extension Api {
|
|||
self.videoStartTs = videoStartTs
|
||||
self.videoCodec = videoCodec
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("documentAttributeVideo", [("flags", self.flags as Any), ("duration", self.duration as Any), ("w", self.w as Any), ("h", self.h as Any), ("preloadPrefixSize", self.preloadPrefixSize as Any), ("videoStartTs", self.videoStartTs as Any), ("videoCodec", self.videoCodec as Any)])
|
||||
}
|
||||
}
|
||||
case documentAttributeAnimated
|
||||
case documentAttributeAudio(Cons_documentAttributeAudio)
|
||||
|
|
@ -517,7 +544,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
indirect enum DraftMessage: TypeConstructorDescription {
|
||||
public class Cons_draftMessage {
|
||||
public class Cons_draftMessage: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var replyTo: Api.InputReplyTo?
|
||||
public var message: String
|
||||
|
|
@ -536,14 +563,20 @@ public extension Api {
|
|||
self.effect = effect
|
||||
self.suggestedPost = suggestedPost
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("draftMessage", [("flags", self.flags as Any), ("replyTo", self.replyTo as Any), ("message", self.message as Any), ("entities", self.entities as Any), ("media", self.media as Any), ("date", self.date as Any), ("effect", self.effect as Any), ("suggestedPost", self.suggestedPost as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_draftMessageEmpty {
|
||||
public class Cons_draftMessageEmpty: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var date: Int32?
|
||||
public init(flags: Int32, date: Int32?) {
|
||||
self.flags = flags
|
||||
self.date = date
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("draftMessageEmpty", [("flags", self.flags as Any), ("date", self.date as Any)])
|
||||
}
|
||||
}
|
||||
case draftMessage(Cons_draftMessage)
|
||||
case draftMessageEmpty(Cons_draftMessageEmpty)
|
||||
|
|
@ -668,23 +701,32 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum EmailVerification: TypeConstructorDescription {
|
||||
public class Cons_emailVerificationApple {
|
||||
public class Cons_emailVerificationApple: TypeConstructorDescription {
|
||||
public var token: String
|
||||
public init(token: String) {
|
||||
self.token = token
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("emailVerificationApple", [("token", self.token as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_emailVerificationCode {
|
||||
public class Cons_emailVerificationCode: TypeConstructorDescription {
|
||||
public var code: String
|
||||
public init(code: String) {
|
||||
self.code = code
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("emailVerificationCode", [("code", self.code as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_emailVerificationGoogle {
|
||||
public class Cons_emailVerificationGoogle: TypeConstructorDescription {
|
||||
public var token: String
|
||||
public init(token: String) {
|
||||
self.token = token
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("emailVerificationGoogle", [("token", self.token as Any)])
|
||||
}
|
||||
}
|
||||
case emailVerificationApple(Cons_emailVerificationApple)
|
||||
case emailVerificationCode(Cons_emailVerificationCode)
|
||||
|
|
@ -761,13 +803,16 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum EmailVerifyPurpose: TypeConstructorDescription {
|
||||
public class Cons_emailVerifyPurposeLoginSetup {
|
||||
public class Cons_emailVerifyPurposeLoginSetup: TypeConstructorDescription {
|
||||
public var phoneNumber: String
|
||||
public var phoneCodeHash: String
|
||||
public init(phoneNumber: String, phoneCodeHash: String) {
|
||||
self.phoneNumber = phoneNumber
|
||||
self.phoneCodeHash = phoneCodeHash
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("emailVerifyPurposeLoginSetup", [("phoneNumber", self.phoneNumber as Any), ("phoneCodeHash", self.phoneCodeHash as Any)])
|
||||
}
|
||||
}
|
||||
case emailVerifyPurposeLoginChange
|
||||
case emailVerifyPurposeLoginSetup(Cons_emailVerifyPurposeLoginSetup)
|
||||
|
|
@ -830,7 +875,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum EmojiGroup: TypeConstructorDescription {
|
||||
public class Cons_emojiGroup {
|
||||
public class Cons_emojiGroup: TypeConstructorDescription {
|
||||
public var title: String
|
||||
public var iconEmojiId: Int64
|
||||
public var emoticons: [String]
|
||||
|
|
@ -839,8 +884,11 @@ public extension Api {
|
|||
self.iconEmojiId = iconEmojiId
|
||||
self.emoticons = emoticons
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("emojiGroup", [("title", self.title as Any), ("iconEmojiId", self.iconEmojiId as Any), ("emoticons", self.emoticons as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_emojiGroupGreeting {
|
||||
public class Cons_emojiGroupGreeting: TypeConstructorDescription {
|
||||
public var title: String
|
||||
public var iconEmojiId: Int64
|
||||
public var emoticons: [String]
|
||||
|
|
@ -849,14 +897,20 @@ public extension Api {
|
|||
self.iconEmojiId = iconEmojiId
|
||||
self.emoticons = emoticons
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("emojiGroupGreeting", [("title", self.title as Any), ("iconEmojiId", self.iconEmojiId as Any), ("emoticons", self.emoticons as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_emojiGroupPremium {
|
||||
public class Cons_emojiGroupPremium: TypeConstructorDescription {
|
||||
public var title: String
|
||||
public var iconEmojiId: Int64
|
||||
public init(title: String, iconEmojiId: Int64) {
|
||||
self.title = title
|
||||
self.iconEmojiId = iconEmojiId
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("emojiGroupPremium", [("title", self.title as Any), ("iconEmojiId", self.iconEmojiId as Any)])
|
||||
}
|
||||
}
|
||||
case emojiGroup(Cons_emojiGroup)
|
||||
case emojiGroupGreeting(Cons_emojiGroupGreeting)
|
||||
|
|
@ -965,21 +1019,27 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum EmojiKeyword: TypeConstructorDescription {
|
||||
public class Cons_emojiKeyword {
|
||||
public class Cons_emojiKeyword: TypeConstructorDescription {
|
||||
public var keyword: String
|
||||
public var emoticons: [String]
|
||||
public init(keyword: String, emoticons: [String]) {
|
||||
self.keyword = keyword
|
||||
self.emoticons = emoticons
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("emojiKeyword", [("keyword", self.keyword as Any), ("emoticons", self.emoticons as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_emojiKeywordDeleted {
|
||||
public class Cons_emojiKeywordDeleted: TypeConstructorDescription {
|
||||
public var keyword: String
|
||||
public var emoticons: [String]
|
||||
public init(keyword: String, emoticons: [String]) {
|
||||
self.keyword = keyword
|
||||
self.emoticons = emoticons
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("emojiKeywordDeleted", [("keyword", self.keyword as Any), ("emoticons", self.emoticons as Any)])
|
||||
}
|
||||
}
|
||||
case emojiKeyword(Cons_emojiKeyword)
|
||||
case emojiKeywordDeleted(Cons_emojiKeywordDeleted)
|
||||
|
|
@ -1056,7 +1116,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum EmojiKeywordsDifference: TypeConstructorDescription {
|
||||
public class Cons_emojiKeywordsDifference {
|
||||
public class Cons_emojiKeywordsDifference: TypeConstructorDescription {
|
||||
public var langCode: String
|
||||
public var fromVersion: Int32
|
||||
public var version: Int32
|
||||
|
|
@ -1067,6 +1127,9 @@ public extension Api {
|
|||
self.version = version
|
||||
self.keywords = keywords
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("emojiKeywordsDifference", [("langCode", self.langCode as Any), ("fromVersion", self.fromVersion as Any), ("version", self.version as Any), ("keywords", self.keywords as Any)])
|
||||
}
|
||||
}
|
||||
case emojiKeywordsDifference(Cons_emojiKeywordsDifference)
|
||||
|
||||
|
|
@ -1121,11 +1184,14 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum EmojiLanguage: TypeConstructorDescription {
|
||||
public class Cons_emojiLanguage {
|
||||
public class Cons_emojiLanguage: TypeConstructorDescription {
|
||||
public var langCode: String
|
||||
public init(langCode: String) {
|
||||
self.langCode = langCode
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("emojiLanguage", [("langCode", self.langCode as Any)])
|
||||
}
|
||||
}
|
||||
case emojiLanguage(Cons_emojiLanguage)
|
||||
|
||||
|
|
@ -1162,13 +1228,16 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum EmojiList: TypeConstructorDescription {
|
||||
public class Cons_emojiList {
|
||||
public class Cons_emojiList: TypeConstructorDescription {
|
||||
public var hash: Int64
|
||||
public var documentId: [Int64]
|
||||
public init(hash: Int64, documentId: [Int64]) {
|
||||
self.hash = hash
|
||||
self.documentId = documentId
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("emojiList", [("hash", self.hash as Any), ("documentId", self.documentId as Any)])
|
||||
}
|
||||
}
|
||||
case emojiList(Cons_emojiList)
|
||||
case emojiListNotModified
|
||||
|
|
@ -1226,7 +1295,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum EmojiStatus: TypeConstructorDescription {
|
||||
public class Cons_emojiStatus {
|
||||
public class Cons_emojiStatus: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var documentId: Int64
|
||||
public var until: Int32?
|
||||
|
|
@ -1235,8 +1304,11 @@ public extension Api {
|
|||
self.documentId = documentId
|
||||
self.until = until
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("emojiStatus", [("flags", self.flags as Any), ("documentId", self.documentId as Any), ("until", self.until as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_emojiStatusCollectible {
|
||||
public class Cons_emojiStatusCollectible: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var collectibleId: Int64
|
||||
public var documentId: Int64
|
||||
|
|
@ -1261,8 +1333,11 @@ public extension Api {
|
|||
self.textColor = textColor
|
||||
self.until = until
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("emojiStatusCollectible", [("flags", self.flags as Any), ("collectibleId", self.collectibleId as Any), ("documentId", self.documentId as Any), ("title", self.title as Any), ("slug", self.slug as Any), ("patternDocumentId", self.patternDocumentId as Any), ("centerColor", self.centerColor as Any), ("edgeColor", self.edgeColor as Any), ("patternColor", self.patternColor as Any), ("textColor", self.textColor as Any), ("until", self.until as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputEmojiStatusCollectible {
|
||||
public class Cons_inputEmojiStatusCollectible: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var collectibleId: Int64
|
||||
public var until: Int32?
|
||||
|
|
@ -1271,6 +1346,9 @@ public extension Api {
|
|||
self.collectibleId = collectibleId
|
||||
self.until = until
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputEmojiStatusCollectible", [("flags", self.flags as Any), ("collectibleId", self.collectibleId as Any), ("until", self.until as Any)])
|
||||
}
|
||||
}
|
||||
case emojiStatus(Cons_emojiStatus)
|
||||
case emojiStatusCollectible(Cons_emojiStatusCollectible)
|
||||
|
|
|
|||
|
|
@ -1,10 +1,13 @@
|
|||
public extension Api {
|
||||
enum EmojiURL: TypeConstructorDescription {
|
||||
public class Cons_emojiURL {
|
||||
public class Cons_emojiURL: TypeConstructorDescription {
|
||||
public var url: String
|
||||
public init(url: String) {
|
||||
self.url = url
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("emojiURL", [("url", self.url as Any)])
|
||||
}
|
||||
}
|
||||
case emojiURL(Cons_emojiURL)
|
||||
|
||||
|
|
@ -41,7 +44,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum EncryptedChat: TypeConstructorDescription {
|
||||
public class Cons_encryptedChat {
|
||||
public class Cons_encryptedChat: TypeConstructorDescription {
|
||||
public var id: Int32
|
||||
public var accessHash: Int64
|
||||
public var date: Int32
|
||||
|
|
@ -58,22 +61,31 @@ public extension Api {
|
|||
self.gAOrB = gAOrB
|
||||
self.keyFingerprint = keyFingerprint
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("encryptedChat", [("id", self.id as Any), ("accessHash", self.accessHash as Any), ("date", self.date as Any), ("adminId", self.adminId as Any), ("participantId", self.participantId as Any), ("gAOrB", self.gAOrB as Any), ("keyFingerprint", self.keyFingerprint as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_encryptedChatDiscarded {
|
||||
public class Cons_encryptedChatDiscarded: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var id: Int32
|
||||
public init(flags: Int32, id: Int32) {
|
||||
self.flags = flags
|
||||
self.id = id
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("encryptedChatDiscarded", [("flags", self.flags as Any), ("id", self.id as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_encryptedChatEmpty {
|
||||
public class Cons_encryptedChatEmpty: TypeConstructorDescription {
|
||||
public var id: Int32
|
||||
public init(id: Int32) {
|
||||
self.id = id
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("encryptedChatEmpty", [("id", self.id as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_encryptedChatRequested {
|
||||
public class Cons_encryptedChatRequested: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var folderId: Int32?
|
||||
public var id: Int32
|
||||
|
|
@ -92,8 +104,11 @@ public extension Api {
|
|||
self.participantId = participantId
|
||||
self.gA = gA
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("encryptedChatRequested", [("flags", self.flags as Any), ("folderId", self.folderId as Any), ("id", self.id as Any), ("accessHash", self.accessHash as Any), ("date", self.date as Any), ("adminId", self.adminId as Any), ("participantId", self.participantId as Any), ("gA", self.gA as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_encryptedChatWaiting {
|
||||
public class Cons_encryptedChatWaiting: TypeConstructorDescription {
|
||||
public var id: Int32
|
||||
public var accessHash: Int64
|
||||
public var date: Int32
|
||||
|
|
@ -106,6 +121,9 @@ public extension Api {
|
|||
self.adminId = adminId
|
||||
self.participantId = participantId
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("encryptedChatWaiting", [("id", self.id as Any), ("accessHash", self.accessHash as Any), ("date", self.date as Any), ("adminId", self.adminId as Any), ("participantId", self.participantId as Any)])
|
||||
}
|
||||
}
|
||||
case encryptedChat(Cons_encryptedChat)
|
||||
case encryptedChatDiscarded(Cons_encryptedChatDiscarded)
|
||||
|
|
@ -298,7 +316,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum EncryptedFile: TypeConstructorDescription {
|
||||
public class Cons_encryptedFile {
|
||||
public class Cons_encryptedFile: TypeConstructorDescription {
|
||||
public var id: Int64
|
||||
public var accessHash: Int64
|
||||
public var size: Int64
|
||||
|
|
@ -311,6 +329,9 @@ public extension Api {
|
|||
self.dcId = dcId
|
||||
self.keyFingerprint = keyFingerprint
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("encryptedFile", [("id", self.id as Any), ("accessHash", self.accessHash as Any), ("size", self.size as Any), ("dcId", self.dcId as Any), ("keyFingerprint", self.keyFingerprint as Any)])
|
||||
}
|
||||
}
|
||||
case encryptedFile(Cons_encryptedFile)
|
||||
case encryptedFileEmpty
|
||||
|
|
@ -374,7 +395,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum EncryptedMessage: TypeConstructorDescription {
|
||||
public class Cons_encryptedMessage {
|
||||
public class Cons_encryptedMessage: TypeConstructorDescription {
|
||||
public var randomId: Int64
|
||||
public var chatId: Int32
|
||||
public var date: Int32
|
||||
|
|
@ -387,8 +408,11 @@ public extension Api {
|
|||
self.bytes = bytes
|
||||
self.file = file
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("encryptedMessage", [("randomId", self.randomId as Any), ("chatId", self.chatId as Any), ("date", self.date as Any), ("bytes", self.bytes as Any), ("file", self.file as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_encryptedMessageService {
|
||||
public class Cons_encryptedMessageService: TypeConstructorDescription {
|
||||
public var randomId: Int64
|
||||
public var chatId: Int32
|
||||
public var date: Int32
|
||||
|
|
@ -399,6 +423,9 @@ public extension Api {
|
|||
self.date = date
|
||||
self.bytes = bytes
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("encryptedMessageService", [("randomId", self.randomId as Any), ("chatId", self.chatId as Any), ("date", self.date as Any), ("bytes", self.bytes as Any)])
|
||||
}
|
||||
}
|
||||
case encryptedMessage(Cons_encryptedMessage)
|
||||
case encryptedMessageService(Cons_encryptedMessageService)
|
||||
|
|
@ -485,7 +512,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum ExportedChatInvite: TypeConstructorDescription {
|
||||
public class Cons_chatInviteExported {
|
||||
public class Cons_chatInviteExported: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var link: String
|
||||
public var adminId: Int64
|
||||
|
|
@ -512,6 +539,9 @@ public extension Api {
|
|||
self.title = title
|
||||
self.subscriptionPricing = subscriptionPricing
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("chatInviteExported", [("flags", self.flags as Any), ("link", self.link as Any), ("adminId", self.adminId as Any), ("date", self.date as Any), ("startDate", self.startDate as Any), ("expireDate", self.expireDate as Any), ("usageLimit", self.usageLimit as Any), ("usage", self.usage as Any), ("requested", self.requested as Any), ("subscriptionExpired", self.subscriptionExpired as Any), ("title", self.title as Any), ("subscriptionPricing", self.subscriptionPricing as Any)])
|
||||
}
|
||||
}
|
||||
case chatInviteExported(Cons_chatInviteExported)
|
||||
case chatInvitePublicJoinRequests
|
||||
|
|
@ -637,7 +667,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum ExportedChatlistInvite: TypeConstructorDescription {
|
||||
public class Cons_exportedChatlistInvite {
|
||||
public class Cons_exportedChatlistInvite: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var title: String
|
||||
public var url: String
|
||||
|
|
@ -648,6 +678,9 @@ public extension Api {
|
|||
self.url = url
|
||||
self.peers = peers
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("exportedChatlistInvite", [("flags", self.flags as Any), ("title", self.title as Any), ("url", self.url as Any), ("peers", self.peers as Any)])
|
||||
}
|
||||
}
|
||||
case exportedChatlistInvite(Cons_exportedChatlistInvite)
|
||||
|
||||
|
|
@ -702,13 +735,16 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum ExportedContactToken: TypeConstructorDescription {
|
||||
public class Cons_exportedContactToken {
|
||||
public class Cons_exportedContactToken: TypeConstructorDescription {
|
||||
public var url: String
|
||||
public var expires: Int32
|
||||
public init(url: String, expires: Int32) {
|
||||
self.url = url
|
||||
self.expires = expires
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("exportedContactToken", [("url", self.url as Any), ("expires", self.expires as Any)])
|
||||
}
|
||||
}
|
||||
case exportedContactToken(Cons_exportedContactToken)
|
||||
|
||||
|
|
@ -749,13 +785,16 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum ExportedMessageLink: TypeConstructorDescription {
|
||||
public class Cons_exportedMessageLink {
|
||||
public class Cons_exportedMessageLink: TypeConstructorDescription {
|
||||
public var link: String
|
||||
public var html: String
|
||||
public init(link: String, html: String) {
|
||||
self.link = link
|
||||
self.html = html
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("exportedMessageLink", [("link", self.link as Any), ("html", self.html as Any)])
|
||||
}
|
||||
}
|
||||
case exportedMessageLink(Cons_exportedMessageLink)
|
||||
|
||||
|
|
@ -796,11 +835,14 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum ExportedStoryLink: TypeConstructorDescription {
|
||||
public class Cons_exportedStoryLink {
|
||||
public class Cons_exportedStoryLink: TypeConstructorDescription {
|
||||
public var link: String
|
||||
public init(link: String) {
|
||||
self.link = link
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("exportedStoryLink", [("link", self.link as Any)])
|
||||
}
|
||||
}
|
||||
case exportedStoryLink(Cons_exportedStoryLink)
|
||||
|
||||
|
|
@ -837,7 +879,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum FactCheck: TypeConstructorDescription {
|
||||
public class Cons_factCheck {
|
||||
public class Cons_factCheck: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var country: String?
|
||||
public var text: Api.TextWithEntities?
|
||||
|
|
@ -848,6 +890,9 @@ public extension Api {
|
|||
self.text = text
|
||||
self.hash = hash
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("factCheck", [("flags", self.flags as Any), ("country", self.country as Any), ("text", self.text as Any), ("hash", self.hash as Any)])
|
||||
}
|
||||
}
|
||||
case factCheck(Cons_factCheck)
|
||||
|
||||
|
|
@ -906,7 +951,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum FileHash: TypeConstructorDescription {
|
||||
public class Cons_fileHash {
|
||||
public class Cons_fileHash: TypeConstructorDescription {
|
||||
public var offset: Int64
|
||||
public var limit: Int32
|
||||
public var hash: Buffer
|
||||
|
|
@ -915,6 +960,9 @@ public extension Api {
|
|||
self.limit = limit
|
||||
self.hash = hash
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("fileHash", [("offset", self.offset as Any), ("limit", self.limit as Any), ("hash", self.hash as Any)])
|
||||
}
|
||||
}
|
||||
case fileHash(Cons_fileHash)
|
||||
|
||||
|
|
@ -959,7 +1007,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum Folder: TypeConstructorDescription {
|
||||
public class Cons_folder {
|
||||
public class Cons_folder: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var id: Int32
|
||||
public var title: String
|
||||
|
|
@ -970,6 +1018,9 @@ public extension Api {
|
|||
self.title = title
|
||||
self.photo = photo
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("folder", [("flags", self.flags as Any), ("id", self.id as Any), ("title", self.title as Any), ("photo", self.photo as Any)])
|
||||
}
|
||||
}
|
||||
case folder(Cons_folder)
|
||||
|
||||
|
|
@ -1024,13 +1075,16 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum FolderPeer: TypeConstructorDescription {
|
||||
public class Cons_folderPeer {
|
||||
public class Cons_folderPeer: TypeConstructorDescription {
|
||||
public var peer: Api.Peer
|
||||
public var folderId: Int32
|
||||
public init(peer: Api.Peer, folderId: Int32) {
|
||||
self.peer = peer
|
||||
self.folderId = folderId
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("folderPeer", [("peer", self.peer as Any), ("folderId", self.folderId as Any)])
|
||||
}
|
||||
}
|
||||
case folderPeer(Cons_folderPeer)
|
||||
|
||||
|
|
@ -1073,7 +1127,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
indirect enum ForumTopic: TypeConstructorDescription {
|
||||
public class Cons_forumTopic {
|
||||
public class Cons_forumTopic: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var id: Int32
|
||||
public var date: Int32
|
||||
|
|
@ -1108,12 +1162,18 @@ public extension Api {
|
|||
self.notifySettings = notifySettings
|
||||
self.draft = draft
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("forumTopic", [("flags", self.flags as Any), ("id", self.id as Any), ("date", self.date as Any), ("peer", self.peer as Any), ("title", self.title as Any), ("iconColor", self.iconColor as Any), ("iconEmojiId", self.iconEmojiId as Any), ("topMessage", self.topMessage as Any), ("readInboxMaxId", self.readInboxMaxId as Any), ("readOutboxMaxId", self.readOutboxMaxId as Any), ("unreadCount", self.unreadCount as Any), ("unreadMentionsCount", self.unreadMentionsCount as Any), ("unreadReactionsCount", self.unreadReactionsCount as Any), ("fromId", self.fromId as Any), ("notifySettings", self.notifySettings as Any), ("draft", self.draft as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_forumTopicDeleted {
|
||||
public class Cons_forumTopicDeleted: TypeConstructorDescription {
|
||||
public var id: Int32
|
||||
public init(id: Int32) {
|
||||
self.id = id
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("forumTopicDeleted", [("id", self.id as Any)])
|
||||
}
|
||||
}
|
||||
case forumTopic(Cons_forumTopic)
|
||||
case forumTopicDeleted(Cons_forumTopicDeleted)
|
||||
|
|
@ -1246,13 +1306,16 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
indirect enum FoundStory: TypeConstructorDescription {
|
||||
public class Cons_foundStory {
|
||||
public class Cons_foundStory: TypeConstructorDescription {
|
||||
public var peer: Api.Peer
|
||||
public var story: Api.StoryItem
|
||||
public init(peer: Api.Peer, story: Api.StoryItem) {
|
||||
self.peer = peer
|
||||
self.story = story
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("foundStory", [("peer", self.peer as Any), ("story", self.story as Any)])
|
||||
}
|
||||
}
|
||||
case foundStory(Cons_foundStory)
|
||||
|
||||
|
|
@ -1297,7 +1360,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum Game: TypeConstructorDescription {
|
||||
public class Cons_game {
|
||||
public class Cons_game: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var id: Int64
|
||||
public var accessHash: Int64
|
||||
|
|
@ -1316,6 +1379,9 @@ public extension Api {
|
|||
self.photo = photo
|
||||
self.document = document
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("game", [("flags", self.flags as Any), ("id", self.id as Any), ("accessHash", self.accessHash as Any), ("shortName", self.shortName as Any), ("title", self.title as Any), ("description", self.description as Any), ("photo", self.photo as Any), ("document", self.document as Any)])
|
||||
}
|
||||
}
|
||||
case game(Cons_game)
|
||||
|
||||
|
|
@ -1388,7 +1454,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum GeoPoint: TypeConstructorDescription {
|
||||
public class Cons_geoPoint {
|
||||
public class Cons_geoPoint: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var long: Double
|
||||
public var lat: Double
|
||||
|
|
@ -1401,6 +1467,9 @@ public extension Api {
|
|||
self.accessHash = accessHash
|
||||
self.accuracyRadius = accuracyRadius
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("geoPoint", [("flags", self.flags as Any), ("long", self.long as Any), ("lat", self.lat as Any), ("accessHash", self.accessHash as Any), ("accuracyRadius", self.accuracyRadius as Any)])
|
||||
}
|
||||
}
|
||||
case geoPoint(Cons_geoPoint)
|
||||
case geoPointEmpty
|
||||
|
|
@ -1468,7 +1537,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum GeoPointAddress: TypeConstructorDescription {
|
||||
public class Cons_geoPointAddress {
|
||||
public class Cons_geoPointAddress: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var countryIso2: String
|
||||
public var state: String?
|
||||
|
|
@ -1481,6 +1550,9 @@ public extension Api {
|
|||
self.city = city
|
||||
self.street = street
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("geoPointAddress", [("flags", self.flags as Any), ("countryIso2", self.countryIso2 as Any), ("state", self.state as Any), ("city", self.city as Any), ("street", self.street as Any)])
|
||||
}
|
||||
}
|
||||
case geoPointAddress(Cons_geoPointAddress)
|
||||
|
||||
|
|
@ -1545,7 +1617,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum GlobalPrivacySettings: TypeConstructorDescription {
|
||||
public class Cons_globalPrivacySettings {
|
||||
public class Cons_globalPrivacySettings: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var noncontactPeersPaidStars: Int64?
|
||||
public var disallowedGifts: Api.DisallowedGiftsSettings?
|
||||
|
|
@ -1554,6 +1626,9 @@ public extension Api {
|
|||
self.noncontactPeersPaidStars = noncontactPeersPaidStars
|
||||
self.disallowedGifts = disallowedGifts
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("globalPrivacySettings", [("flags", self.flags as Any), ("noncontactPeersPaidStars", self.noncontactPeersPaidStars as Any), ("disallowedGifts", self.disallowedGifts as Any)])
|
||||
}
|
||||
}
|
||||
case globalPrivacySettings(Cons_globalPrivacySettings)
|
||||
|
||||
|
|
@ -1608,7 +1683,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum GroupCall: TypeConstructorDescription {
|
||||
public class Cons_groupCall {
|
||||
public class Cons_groupCall: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var id: Int64
|
||||
public var accessHash: Int64
|
||||
|
|
@ -1639,8 +1714,11 @@ public extension Api {
|
|||
self.sendPaidMessagesStars = sendPaidMessagesStars
|
||||
self.defaultSendAs = defaultSendAs
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("groupCall", [("flags", self.flags as Any), ("id", self.id as Any), ("accessHash", self.accessHash as Any), ("participantsCount", self.participantsCount as Any), ("title", self.title as Any), ("streamDcId", self.streamDcId as Any), ("recordStartDate", self.recordStartDate as Any), ("scheduleDate", self.scheduleDate as Any), ("unmutedVideoCount", self.unmutedVideoCount as Any), ("unmutedVideoLimit", self.unmutedVideoLimit as Any), ("version", self.version as Any), ("inviteLink", self.inviteLink as Any), ("sendPaidMessagesStars", self.sendPaidMessagesStars as Any), ("defaultSendAs", self.defaultSendAs as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_groupCallDiscarded {
|
||||
public class Cons_groupCallDiscarded: TypeConstructorDescription {
|
||||
public var id: Int64
|
||||
public var accessHash: Int64
|
||||
public var duration: Int32
|
||||
|
|
@ -1649,6 +1727,9 @@ public extension Api {
|
|||
self.accessHash = accessHash
|
||||
self.duration = duration
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("groupCallDiscarded", [("id", self.id as Any), ("accessHash", self.accessHash as Any), ("duration", self.duration as Any)])
|
||||
}
|
||||
}
|
||||
case groupCall(Cons_groupCall)
|
||||
case groupCallDiscarded(Cons_groupCallDiscarded)
|
||||
|
|
@ -1799,7 +1880,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum GroupCallDonor: TypeConstructorDescription {
|
||||
public class Cons_groupCallDonor {
|
||||
public class Cons_groupCallDonor: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var peerId: Api.Peer?
|
||||
public var stars: Int64
|
||||
|
|
@ -1808,6 +1889,9 @@ public extension Api {
|
|||
self.peerId = peerId
|
||||
self.stars = stars
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("groupCallDonor", [("flags", self.flags as Any), ("peerId", self.peerId as Any), ("stars", self.stars as Any)])
|
||||
}
|
||||
}
|
||||
case groupCallDonor(Cons_groupCallDonor)
|
||||
|
||||
|
|
@ -1858,7 +1942,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum GroupCallMessage: TypeConstructorDescription {
|
||||
public class Cons_groupCallMessage {
|
||||
public class Cons_groupCallMessage: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var id: Int32
|
||||
public var fromId: Api.Peer
|
||||
|
|
@ -1873,6 +1957,9 @@ public extension Api {
|
|||
self.message = message
|
||||
self.paidMessageStars = paidMessageStars
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("groupCallMessage", [("flags", self.flags as Any), ("id", self.id as Any), ("fromId", self.fromId as Any), ("date", self.date as Any), ("message", self.message as Any), ("paidMessageStars", self.paidMessageStars as Any)])
|
||||
}
|
||||
}
|
||||
case groupCallMessage(Cons_groupCallMessage)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
public extension Api {
|
||||
enum GroupCallParticipant: TypeConstructorDescription {
|
||||
public class Cons_groupCallParticipant {
|
||||
public class Cons_groupCallParticipant: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var peer: Api.Peer
|
||||
public var date: Int32
|
||||
|
|
@ -25,6 +25,9 @@ public extension Api {
|
|||
self.presentation = presentation
|
||||
self.paidStarsTotal = paidStarsTotal
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("groupCallParticipant", [("flags", self.flags as Any), ("peer", self.peer as Any), ("date", self.date as Any), ("activeDate", self.activeDate as Any), ("source", self.source as Any), ("volume", self.volume as Any), ("about", self.about as Any), ("raiseHandRating", self.raiseHandRating as Any), ("video", self.video as Any), ("presentation", self.presentation as Any), ("paidStarsTotal", self.paidStarsTotal as Any)])
|
||||
}
|
||||
}
|
||||
case groupCallParticipant(Cons_groupCallParticipant)
|
||||
|
||||
|
|
@ -135,7 +138,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum GroupCallParticipantVideo: TypeConstructorDescription {
|
||||
public class Cons_groupCallParticipantVideo {
|
||||
public class Cons_groupCallParticipantVideo: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var endpoint: String
|
||||
public var sourceGroups: [Api.GroupCallParticipantVideoSourceGroup]
|
||||
|
|
@ -146,6 +149,9 @@ public extension Api {
|
|||
self.sourceGroups = sourceGroups
|
||||
self.audioSource = audioSource
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("groupCallParticipantVideo", [("flags", self.flags as Any), ("endpoint", self.endpoint as Any), ("sourceGroups", self.sourceGroups as Any), ("audioSource", self.audioSource as Any)])
|
||||
}
|
||||
}
|
||||
case groupCallParticipantVideo(Cons_groupCallParticipantVideo)
|
||||
|
||||
|
|
@ -204,13 +210,16 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum GroupCallParticipantVideoSourceGroup: TypeConstructorDescription {
|
||||
public class Cons_groupCallParticipantVideoSourceGroup {
|
||||
public class Cons_groupCallParticipantVideoSourceGroup: TypeConstructorDescription {
|
||||
public var semantics: String
|
||||
public var sources: [Int32]
|
||||
public init(semantics: String, sources: [Int32]) {
|
||||
self.semantics = semantics
|
||||
self.sources = sources
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("groupCallParticipantVideoSourceGroup", [("semantics", self.semantics as Any), ("sources", self.sources as Any)])
|
||||
}
|
||||
}
|
||||
case groupCallParticipantVideoSourceGroup(Cons_groupCallParticipantVideoSourceGroup)
|
||||
|
||||
|
|
@ -257,7 +266,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum GroupCallStreamChannel: TypeConstructorDescription {
|
||||
public class Cons_groupCallStreamChannel {
|
||||
public class Cons_groupCallStreamChannel: TypeConstructorDescription {
|
||||
public var channel: Int32
|
||||
public var scale: Int32
|
||||
public var lastTimestampMs: Int64
|
||||
|
|
@ -266,6 +275,9 @@ public extension Api {
|
|||
self.scale = scale
|
||||
self.lastTimestampMs = lastTimestampMs
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("groupCallStreamChannel", [("channel", self.channel as Any), ("scale", self.scale as Any), ("lastTimestampMs", self.lastTimestampMs as Any)])
|
||||
}
|
||||
}
|
||||
case groupCallStreamChannel(Cons_groupCallStreamChannel)
|
||||
|
||||
|
|
@ -310,7 +322,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum HighScore: TypeConstructorDescription {
|
||||
public class Cons_highScore {
|
||||
public class Cons_highScore: TypeConstructorDescription {
|
||||
public var pos: Int32
|
||||
public var userId: Int64
|
||||
public var score: Int32
|
||||
|
|
@ -319,6 +331,9 @@ public extension Api {
|
|||
self.userId = userId
|
||||
self.score = score
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("highScore", [("pos", self.pos as Any), ("userId", self.userId as Any), ("score", self.score as Any)])
|
||||
}
|
||||
}
|
||||
case highScore(Cons_highScore)
|
||||
|
||||
|
|
@ -363,13 +378,16 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum ImportedContact: TypeConstructorDescription {
|
||||
public class Cons_importedContact {
|
||||
public class Cons_importedContact: TypeConstructorDescription {
|
||||
public var userId: Int64
|
||||
public var clientId: Int64
|
||||
public init(userId: Int64, clientId: Int64) {
|
||||
self.userId = userId
|
||||
self.clientId = clientId
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("importedContact", [("userId", self.userId as Any), ("clientId", self.clientId as Any)])
|
||||
}
|
||||
}
|
||||
case importedContact(Cons_importedContact)
|
||||
|
||||
|
|
@ -410,13 +428,16 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum InlineBotSwitchPM: TypeConstructorDescription {
|
||||
public class Cons_inlineBotSwitchPM {
|
||||
public class Cons_inlineBotSwitchPM: TypeConstructorDescription {
|
||||
public var text: String
|
||||
public var startParam: String
|
||||
public init(text: String, startParam: String) {
|
||||
self.text = text
|
||||
self.startParam = startParam
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inlineBotSwitchPM", [("text", self.text as Any), ("startParam", self.startParam as Any)])
|
||||
}
|
||||
}
|
||||
case inlineBotSwitchPM(Cons_inlineBotSwitchPM)
|
||||
|
||||
|
|
@ -457,13 +478,16 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum InlineBotWebView: TypeConstructorDescription {
|
||||
public class Cons_inlineBotWebView {
|
||||
public class Cons_inlineBotWebView: TypeConstructorDescription {
|
||||
public var text: String
|
||||
public var url: String
|
||||
public init(text: String, url: String) {
|
||||
self.text = text
|
||||
self.url = url
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inlineBotWebView", [("text", self.text as Any), ("url", self.url as Any)])
|
||||
}
|
||||
}
|
||||
case inlineBotWebView(Cons_inlineBotWebView)
|
||||
|
||||
|
|
@ -585,7 +609,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum InputAppEvent: TypeConstructorDescription {
|
||||
public class Cons_inputAppEvent {
|
||||
public class Cons_inputAppEvent: TypeConstructorDescription {
|
||||
public var time: Double
|
||||
public var type: String
|
||||
public var peer: Int64
|
||||
|
|
@ -596,6 +620,9 @@ public extension Api {
|
|||
self.peer = peer
|
||||
self.data = data
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputAppEvent", [("time", self.time as Any), ("type", self.type as Any), ("peer", self.peer as Any), ("data", self.data as Any)])
|
||||
}
|
||||
}
|
||||
case inputAppEvent(Cons_inputAppEvent)
|
||||
|
||||
|
|
@ -646,21 +673,27 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
indirect enum InputBotApp: TypeConstructorDescription {
|
||||
public class Cons_inputBotAppID {
|
||||
public class Cons_inputBotAppID: TypeConstructorDescription {
|
||||
public var id: Int64
|
||||
public var accessHash: Int64
|
||||
public init(id: Int64, accessHash: Int64) {
|
||||
self.id = id
|
||||
self.accessHash = accessHash
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputBotAppID", [("id", self.id as Any), ("accessHash", self.accessHash as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputBotAppShortName {
|
||||
public class Cons_inputBotAppShortName: TypeConstructorDescription {
|
||||
public var botId: Api.InputUser
|
||||
public var shortName: String
|
||||
public init(botId: Api.InputUser, shortName: String) {
|
||||
self.botId = botId
|
||||
self.shortName = shortName
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputBotAppShortName", [("botId", self.botId as Any), ("shortName", self.shortName as Any)])
|
||||
}
|
||||
}
|
||||
case inputBotAppID(Cons_inputBotAppID)
|
||||
case inputBotAppShortName(Cons_inputBotAppShortName)
|
||||
|
|
@ -727,15 +760,18 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum InputBotInlineMessage: TypeConstructorDescription {
|
||||
public class Cons_inputBotInlineMessageGame {
|
||||
public class Cons_inputBotInlineMessageGame: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var replyMarkup: Api.ReplyMarkup?
|
||||
public init(flags: Int32, replyMarkup: Api.ReplyMarkup?) {
|
||||
self.flags = flags
|
||||
self.replyMarkup = replyMarkup
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputBotInlineMessageGame", [("flags", self.flags as Any), ("replyMarkup", self.replyMarkup as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputBotInlineMessageMediaAuto {
|
||||
public class Cons_inputBotInlineMessageMediaAuto: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var message: String
|
||||
public var entities: [Api.MessageEntity]?
|
||||
|
|
@ -746,8 +782,11 @@ public extension Api {
|
|||
self.entities = entities
|
||||
self.replyMarkup = replyMarkup
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputBotInlineMessageMediaAuto", [("flags", self.flags as Any), ("message", self.message as Any), ("entities", self.entities as Any), ("replyMarkup", self.replyMarkup as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputBotInlineMessageMediaContact {
|
||||
public class Cons_inputBotInlineMessageMediaContact: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var phoneNumber: String
|
||||
public var firstName: String
|
||||
|
|
@ -762,8 +801,11 @@ public extension Api {
|
|||
self.vcard = vcard
|
||||
self.replyMarkup = replyMarkup
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputBotInlineMessageMediaContact", [("flags", self.flags as Any), ("phoneNumber", self.phoneNumber as Any), ("firstName", self.firstName as Any), ("lastName", self.lastName as Any), ("vcard", self.vcard as Any), ("replyMarkup", self.replyMarkup as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputBotInlineMessageMediaGeo {
|
||||
public class Cons_inputBotInlineMessageMediaGeo: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var geoPoint: Api.InputGeoPoint
|
||||
public var heading: Int32?
|
||||
|
|
@ -778,8 +820,11 @@ public extension Api {
|
|||
self.proximityNotificationRadius = proximityNotificationRadius
|
||||
self.replyMarkup = replyMarkup
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputBotInlineMessageMediaGeo", [("flags", self.flags as Any), ("geoPoint", self.geoPoint as Any), ("heading", self.heading as Any), ("period", self.period as Any), ("proximityNotificationRadius", self.proximityNotificationRadius as Any), ("replyMarkup", self.replyMarkup as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputBotInlineMessageMediaInvoice {
|
||||
public class Cons_inputBotInlineMessageMediaInvoice: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var title: String
|
||||
public var description: String
|
||||
|
|
@ -800,8 +845,11 @@ public extension Api {
|
|||
self.providerData = providerData
|
||||
self.replyMarkup = replyMarkup
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputBotInlineMessageMediaInvoice", [("flags", self.flags as Any), ("title", self.title as Any), ("description", self.description as Any), ("photo", self.photo as Any), ("invoice", self.invoice as Any), ("payload", self.payload as Any), ("provider", self.provider as Any), ("providerData", self.providerData as Any), ("replyMarkup", self.replyMarkup as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputBotInlineMessageMediaVenue {
|
||||
public class Cons_inputBotInlineMessageMediaVenue: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var geoPoint: Api.InputGeoPoint
|
||||
public var title: String
|
||||
|
|
@ -820,8 +868,11 @@ public extension Api {
|
|||
self.venueType = venueType
|
||||
self.replyMarkup = replyMarkup
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputBotInlineMessageMediaVenue", [("flags", self.flags as Any), ("geoPoint", self.geoPoint as Any), ("title", self.title as Any), ("address", self.address as Any), ("provider", self.provider as Any), ("venueId", self.venueId as Any), ("venueType", self.venueType as Any), ("replyMarkup", self.replyMarkup as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputBotInlineMessageMediaWebPage {
|
||||
public class Cons_inputBotInlineMessageMediaWebPage: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var message: String
|
||||
public var entities: [Api.MessageEntity]?
|
||||
|
|
@ -834,8 +885,11 @@ public extension Api {
|
|||
self.url = url
|
||||
self.replyMarkup = replyMarkup
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputBotInlineMessageMediaWebPage", [("flags", self.flags as Any), ("message", self.message as Any), ("entities", self.entities as Any), ("url", self.url as Any), ("replyMarkup", self.replyMarkup as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputBotInlineMessageText {
|
||||
public class Cons_inputBotInlineMessageText: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var message: String
|
||||
public var entities: [Api.MessageEntity]?
|
||||
|
|
@ -846,6 +900,9 @@ public extension Api {
|
|||
self.entities = entities
|
||||
self.replyMarkup = replyMarkup
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputBotInlineMessageText", [("flags", self.flags as Any), ("message", self.message as Any), ("entities", self.entities as Any), ("replyMarkup", self.replyMarkup as Any)])
|
||||
}
|
||||
}
|
||||
case inputBotInlineMessageGame(Cons_inputBotInlineMessageGame)
|
||||
case inputBotInlineMessageMediaAuto(Cons_inputBotInlineMessageMediaAuto)
|
||||
|
|
@ -1270,7 +1327,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum InputBotInlineMessageID: TypeConstructorDescription {
|
||||
public class Cons_inputBotInlineMessageID {
|
||||
public class Cons_inputBotInlineMessageID: TypeConstructorDescription {
|
||||
public var dcId: Int32
|
||||
public var id: Int64
|
||||
public var accessHash: Int64
|
||||
|
|
@ -1279,8 +1336,11 @@ public extension Api {
|
|||
self.id = id
|
||||
self.accessHash = accessHash
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputBotInlineMessageID", [("dcId", self.dcId as Any), ("id", self.id as Any), ("accessHash", self.accessHash as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputBotInlineMessageID64 {
|
||||
public class Cons_inputBotInlineMessageID64: TypeConstructorDescription {
|
||||
public var dcId: Int32
|
||||
public var ownerId: Int64
|
||||
public var id: Int32
|
||||
|
|
@ -1291,6 +1351,9 @@ public extension Api {
|
|||
self.id = id
|
||||
self.accessHash = accessHash
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputBotInlineMessageID64", [("dcId", self.dcId as Any), ("ownerId", self.ownerId as Any), ("id", self.id as Any), ("accessHash", self.accessHash as Any)])
|
||||
}
|
||||
}
|
||||
case inputBotInlineMessageID(Cons_inputBotInlineMessageID)
|
||||
case inputBotInlineMessageID64(Cons_inputBotInlineMessageID64)
|
||||
|
|
@ -1367,7 +1430,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum InputBotInlineResult: TypeConstructorDescription {
|
||||
public class Cons_inputBotInlineResult {
|
||||
public class Cons_inputBotInlineResult: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var id: String
|
||||
public var type: String
|
||||
|
|
@ -1388,8 +1451,11 @@ public extension Api {
|
|||
self.content = content
|
||||
self.sendMessage = sendMessage
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputBotInlineResult", [("flags", self.flags as Any), ("id", self.id as Any), ("type", self.type as Any), ("title", self.title as Any), ("description", self.description as Any), ("url", self.url as Any), ("thumb", self.thumb as Any), ("content", self.content as Any), ("sendMessage", self.sendMessage as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputBotInlineResultDocument {
|
||||
public class Cons_inputBotInlineResultDocument: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var id: String
|
||||
public var type: String
|
||||
|
|
@ -1406,8 +1472,11 @@ public extension Api {
|
|||
self.document = document
|
||||
self.sendMessage = sendMessage
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputBotInlineResultDocument", [("flags", self.flags as Any), ("id", self.id as Any), ("type", self.type as Any), ("title", self.title as Any), ("description", self.description as Any), ("document", self.document as Any), ("sendMessage", self.sendMessage as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputBotInlineResultGame {
|
||||
public class Cons_inputBotInlineResultGame: TypeConstructorDescription {
|
||||
public var id: String
|
||||
public var shortName: String
|
||||
public var sendMessage: Api.InputBotInlineMessage
|
||||
|
|
@ -1416,8 +1485,11 @@ public extension Api {
|
|||
self.shortName = shortName
|
||||
self.sendMessage = sendMessage
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputBotInlineResultGame", [("id", self.id as Any), ("shortName", self.shortName as Any), ("sendMessage", self.sendMessage as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputBotInlineResultPhoto {
|
||||
public class Cons_inputBotInlineResultPhoto: TypeConstructorDescription {
|
||||
public var id: String
|
||||
public var type: String
|
||||
public var photo: Api.InputPhoto
|
||||
|
|
@ -1428,6 +1500,9 @@ public extension Api {
|
|||
self.photo = photo
|
||||
self.sendMessage = sendMessage
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputBotInlineResultPhoto", [("id", self.id as Any), ("type", self.type as Any), ("photo", self.photo as Any), ("sendMessage", self.sendMessage as Any)])
|
||||
}
|
||||
}
|
||||
case inputBotInlineResult(Cons_inputBotInlineResult)
|
||||
case inputBotInlineResultDocument(Cons_inputBotInlineResultDocument)
|
||||
|
|
@ -1644,7 +1719,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum InputBusinessAwayMessage: TypeConstructorDescription {
|
||||
public class Cons_inputBusinessAwayMessage {
|
||||
public class Cons_inputBusinessAwayMessage: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var shortcutId: Int32
|
||||
public var schedule: Api.BusinessAwayMessageSchedule
|
||||
|
|
@ -1655,6 +1730,9 @@ public extension Api {
|
|||
self.schedule = schedule
|
||||
self.recipients = recipients
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputBusinessAwayMessage", [("flags", self.flags as Any), ("shortcutId", self.shortcutId as Any), ("schedule", self.schedule as Any), ("recipients", self.recipients as Any)])
|
||||
}
|
||||
}
|
||||
case inputBusinessAwayMessage(Cons_inputBusinessAwayMessage)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
public extension Api {
|
||||
enum InputBusinessBotRecipients: TypeConstructorDescription {
|
||||
public class Cons_inputBusinessBotRecipients {
|
||||
public class Cons_inputBusinessBotRecipients: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var users: [Api.InputUser]?
|
||||
public var excludeUsers: [Api.InputUser]?
|
||||
|
|
@ -9,6 +9,9 @@ public extension Api {
|
|||
self.users = users
|
||||
self.excludeUsers = excludeUsers
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputBusinessBotRecipients", [("flags", self.flags as Any), ("users", self.users as Any), ("excludeUsers", self.excludeUsers as Any)])
|
||||
}
|
||||
}
|
||||
case inputBusinessBotRecipients(Cons_inputBusinessBotRecipients)
|
||||
|
||||
|
|
@ -73,7 +76,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum InputBusinessChatLink: TypeConstructorDescription {
|
||||
public class Cons_inputBusinessChatLink {
|
||||
public class Cons_inputBusinessChatLink: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var message: String
|
||||
public var entities: [Api.MessageEntity]?
|
||||
|
|
@ -84,6 +87,9 @@ public extension Api {
|
|||
self.entities = entities
|
||||
self.title = title
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputBusinessChatLink", [("flags", self.flags as Any), ("message", self.message as Any), ("entities", self.entities as Any), ("title", self.title as Any)])
|
||||
}
|
||||
}
|
||||
case inputBusinessChatLink(Cons_inputBusinessChatLink)
|
||||
|
||||
|
|
@ -146,7 +152,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum InputBusinessGreetingMessage: TypeConstructorDescription {
|
||||
public class Cons_inputBusinessGreetingMessage {
|
||||
public class Cons_inputBusinessGreetingMessage: TypeConstructorDescription {
|
||||
public var shortcutId: Int32
|
||||
public var recipients: Api.InputBusinessRecipients
|
||||
public var noActivityDays: Int32
|
||||
|
|
@ -155,6 +161,9 @@ public extension Api {
|
|||
self.recipients = recipients
|
||||
self.noActivityDays = noActivityDays
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputBusinessGreetingMessage", [("shortcutId", self.shortcutId as Any), ("recipients", self.recipients as Any), ("noActivityDays", self.noActivityDays as Any)])
|
||||
}
|
||||
}
|
||||
case inputBusinessGreetingMessage(Cons_inputBusinessGreetingMessage)
|
||||
|
||||
|
|
@ -201,7 +210,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum InputBusinessIntro: TypeConstructorDescription {
|
||||
public class Cons_inputBusinessIntro {
|
||||
public class Cons_inputBusinessIntro: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var title: String
|
||||
public var description: String
|
||||
|
|
@ -212,6 +221,9 @@ public extension Api {
|
|||
self.description = description
|
||||
self.sticker = sticker
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputBusinessIntro", [("flags", self.flags as Any), ("title", self.title as Any), ("description", self.description as Any), ("sticker", self.sticker as Any)])
|
||||
}
|
||||
}
|
||||
case inputBusinessIntro(Cons_inputBusinessIntro)
|
||||
|
||||
|
|
@ -266,13 +278,16 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum InputBusinessRecipients: TypeConstructorDescription {
|
||||
public class Cons_inputBusinessRecipients {
|
||||
public class Cons_inputBusinessRecipients: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var users: [Api.InputUser]?
|
||||
public init(flags: Int32, users: [Api.InputUser]?) {
|
||||
self.flags = flags
|
||||
self.users = users
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputBusinessRecipients", [("flags", self.flags as Any), ("users", self.users as Any)])
|
||||
}
|
||||
}
|
||||
case inputBusinessRecipients(Cons_inputBusinessRecipients)
|
||||
|
||||
|
|
@ -323,15 +338,18 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
indirect enum InputChannel: TypeConstructorDescription {
|
||||
public class Cons_inputChannel {
|
||||
public class Cons_inputChannel: TypeConstructorDescription {
|
||||
public var channelId: Int64
|
||||
public var accessHash: Int64
|
||||
public init(channelId: Int64, accessHash: Int64) {
|
||||
self.channelId = channelId
|
||||
self.accessHash = accessHash
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputChannel", [("channelId", self.channelId as Any), ("accessHash", self.accessHash as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputChannelFromMessage {
|
||||
public class Cons_inputChannelFromMessage: TypeConstructorDescription {
|
||||
public var peer: Api.InputPeer
|
||||
public var msgId: Int32
|
||||
public var channelId: Int64
|
||||
|
|
@ -340,6 +358,9 @@ public extension Api {
|
|||
self.msgId = msgId
|
||||
self.channelId = channelId
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputChannelFromMessage", [("peer", self.peer as Any), ("msgId", self.msgId as Any), ("channelId", self.channelId as Any)])
|
||||
}
|
||||
}
|
||||
case inputChannel(Cons_inputChannel)
|
||||
case inputChannelEmpty
|
||||
|
|
@ -421,13 +442,16 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum InputChatPhoto: TypeConstructorDescription {
|
||||
public class Cons_inputChatPhoto {
|
||||
public class Cons_inputChatPhoto: TypeConstructorDescription {
|
||||
public var id: Api.InputPhoto
|
||||
public init(id: Api.InputPhoto) {
|
||||
self.id = id
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputChatPhoto", [("id", self.id as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputChatUploadedPhoto {
|
||||
public class Cons_inputChatUploadedPhoto: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var file: Api.InputFile?
|
||||
public var video: Api.InputFile?
|
||||
|
|
@ -440,6 +464,9 @@ public extension Api {
|
|||
self.videoStartTs = videoStartTs
|
||||
self.videoEmojiMarkup = videoEmojiMarkup
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputChatUploadedPhoto", [("flags", self.flags as Any), ("file", self.file as Any), ("video", self.video as Any), ("videoStartTs", self.videoStartTs as Any), ("videoEmojiMarkup", self.videoEmojiMarkup as Any)])
|
||||
}
|
||||
}
|
||||
case inputChatPhoto(Cons_inputChatPhoto)
|
||||
case inputChatPhotoEmpty
|
||||
|
|
@ -547,17 +574,23 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum InputChatTheme: TypeConstructorDescription {
|
||||
public class Cons_inputChatTheme {
|
||||
public class Cons_inputChatTheme: TypeConstructorDescription {
|
||||
public var emoticon: String
|
||||
public init(emoticon: String) {
|
||||
self.emoticon = emoticon
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputChatTheme", [("emoticon", self.emoticon as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputChatThemeUniqueGift {
|
||||
public class Cons_inputChatThemeUniqueGift: TypeConstructorDescription {
|
||||
public var slug: String
|
||||
public init(slug: String) {
|
||||
self.slug = slug
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputChatThemeUniqueGift", [("slug", self.slug as Any)])
|
||||
}
|
||||
}
|
||||
case inputChatTheme(Cons_inputChatTheme)
|
||||
case inputChatThemeEmpty
|
||||
|
|
@ -625,11 +658,14 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum InputChatlist: TypeConstructorDescription {
|
||||
public class Cons_inputChatlistDialogFilter {
|
||||
public class Cons_inputChatlistDialogFilter: TypeConstructorDescription {
|
||||
public var filterId: Int32
|
||||
public init(filterId: Int32) {
|
||||
self.filterId = filterId
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputChatlistDialogFilter", [("filterId", self.filterId as Any)])
|
||||
}
|
||||
}
|
||||
case inputChatlistDialogFilter(Cons_inputChatlistDialogFilter)
|
||||
|
||||
|
|
@ -666,7 +702,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum InputCheckPasswordSRP: TypeConstructorDescription {
|
||||
public class Cons_inputCheckPasswordSRP {
|
||||
public class Cons_inputCheckPasswordSRP: TypeConstructorDescription {
|
||||
public var srpId: Int64
|
||||
public var A: Buffer
|
||||
public var M1: Buffer
|
||||
|
|
@ -675,6 +711,9 @@ public extension Api {
|
|||
self.A = A
|
||||
self.M1 = M1
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputCheckPasswordSRP", [("srpId", self.srpId as Any), ("A", self.A as Any), ("M1", self.M1 as Any)])
|
||||
}
|
||||
}
|
||||
case inputCheckPasswordEmpty
|
||||
case inputCheckPasswordSRP(Cons_inputCheckPasswordSRP)
|
||||
|
|
@ -730,13 +769,16 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum InputClientProxy: TypeConstructorDescription {
|
||||
public class Cons_inputClientProxy {
|
||||
public class Cons_inputClientProxy: TypeConstructorDescription {
|
||||
public var address: String
|
||||
public var port: Int32
|
||||
public init(address: String, port: Int32) {
|
||||
self.address = address
|
||||
self.port = port
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputClientProxy", [("address", self.address as Any), ("port", self.port as Any)])
|
||||
}
|
||||
}
|
||||
case inputClientProxy(Cons_inputClientProxy)
|
||||
|
||||
|
|
@ -777,17 +819,23 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum InputCollectible: TypeConstructorDescription {
|
||||
public class Cons_inputCollectiblePhone {
|
||||
public class Cons_inputCollectiblePhone: TypeConstructorDescription {
|
||||
public var phone: String
|
||||
public init(phone: String) {
|
||||
self.phone = phone
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputCollectiblePhone", [("phone", self.phone as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputCollectibleUsername {
|
||||
public class Cons_inputCollectibleUsername: TypeConstructorDescription {
|
||||
public var username: String
|
||||
public init(username: String) {
|
||||
self.username = username
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputCollectibleUsername", [("username", self.username as Any)])
|
||||
}
|
||||
}
|
||||
case inputCollectiblePhone(Cons_inputCollectiblePhone)
|
||||
case inputCollectibleUsername(Cons_inputCollectibleUsername)
|
||||
|
|
@ -844,7 +892,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum InputContact: TypeConstructorDescription {
|
||||
public class Cons_inputPhoneContact {
|
||||
public class Cons_inputPhoneContact: TypeConstructorDescription {
|
||||
public var flags: Int32
|
||||
public var clientId: Int64
|
||||
public var phone: String
|
||||
|
|
@ -859,6 +907,9 @@ public extension Api {
|
|||
self.lastName = lastName
|
||||
self.note = note
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputPhoneContact", [("flags", self.flags as Any), ("clientId", self.clientId as Any), ("phone", self.phone as Any), ("firstName", self.firstName as Any), ("lastName", self.lastName as Any), ("note", self.note as Any)])
|
||||
}
|
||||
}
|
||||
case inputPhoneContact(Cons_inputPhoneContact)
|
||||
|
||||
|
|
@ -921,17 +972,23 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
indirect enum InputDialogPeer: TypeConstructorDescription {
|
||||
public class Cons_inputDialogPeer {
|
||||
public class Cons_inputDialogPeer: TypeConstructorDescription {
|
||||
public var peer: Api.InputPeer
|
||||
public init(peer: Api.InputPeer) {
|
||||
self.peer = peer
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputDialogPeer", [("peer", self.peer as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputDialogPeerFolder {
|
||||
public class Cons_inputDialogPeerFolder: TypeConstructorDescription {
|
||||
public var folderId: Int32
|
||||
public init(folderId: Int32) {
|
||||
self.folderId = folderId
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputDialogPeerFolder", [("folderId", self.folderId as Any)])
|
||||
}
|
||||
}
|
||||
case inputDialogPeer(Cons_inputDialogPeer)
|
||||
case inputDialogPeerFolder(Cons_inputDialogPeerFolder)
|
||||
|
|
@ -990,7 +1047,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum InputDocument: TypeConstructorDescription {
|
||||
public class Cons_inputDocument {
|
||||
public class Cons_inputDocument: TypeConstructorDescription {
|
||||
public var id: Int64
|
||||
public var accessHash: Int64
|
||||
public var fileReference: Buffer
|
||||
|
|
@ -999,6 +1056,9 @@ public extension Api {
|
|||
self.accessHash = accessHash
|
||||
self.fileReference = fileReference
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputDocument", [("id", self.id as Any), ("accessHash", self.accessHash as Any), ("fileReference", self.fileReference as Any)])
|
||||
}
|
||||
}
|
||||
case inputDocument(Cons_inputDocument)
|
||||
case inputDocumentEmpty
|
||||
|
|
@ -1054,13 +1114,16 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum InputEncryptedChat: TypeConstructorDescription {
|
||||
public class Cons_inputEncryptedChat {
|
||||
public class Cons_inputEncryptedChat: TypeConstructorDescription {
|
||||
public var chatId: Int32
|
||||
public var accessHash: Int64
|
||||
public init(chatId: Int32, accessHash: Int64) {
|
||||
self.chatId = chatId
|
||||
self.accessHash = accessHash
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputEncryptedChat", [("chatId", self.chatId as Any), ("accessHash", self.accessHash as Any)])
|
||||
}
|
||||
}
|
||||
case inputEncryptedChat(Cons_inputEncryptedChat)
|
||||
|
||||
|
|
@ -1101,15 +1164,18 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum InputEncryptedFile: TypeConstructorDescription {
|
||||
public class Cons_inputEncryptedFile {
|
||||
public class Cons_inputEncryptedFile: TypeConstructorDescription {
|
||||
public var id: Int64
|
||||
public var accessHash: Int64
|
||||
public init(id: Int64, accessHash: Int64) {
|
||||
self.id = id
|
||||
self.accessHash = accessHash
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputEncryptedFile", [("id", self.id as Any), ("accessHash", self.accessHash as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputEncryptedFileBigUploaded {
|
||||
public class Cons_inputEncryptedFileBigUploaded: TypeConstructorDescription {
|
||||
public var id: Int64
|
||||
public var parts: Int32
|
||||
public var keyFingerprint: Int32
|
||||
|
|
@ -1118,8 +1184,11 @@ public extension Api {
|
|||
self.parts = parts
|
||||
self.keyFingerprint = keyFingerprint
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputEncryptedFileBigUploaded", [("id", self.id as Any), ("parts", self.parts as Any), ("keyFingerprint", self.keyFingerprint as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputEncryptedFileUploaded {
|
||||
public class Cons_inputEncryptedFileUploaded: TypeConstructorDescription {
|
||||
public var id: Int64
|
||||
public var parts: Int32
|
||||
public var md5Checksum: String
|
||||
|
|
@ -1130,6 +1199,9 @@ public extension Api {
|
|||
self.md5Checksum = md5Checksum
|
||||
self.keyFingerprint = keyFingerprint
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputEncryptedFileUploaded", [("id", self.id as Any), ("parts", self.parts as Any), ("md5Checksum", self.md5Checksum as Any), ("keyFingerprint", self.keyFingerprint as Any)])
|
||||
}
|
||||
}
|
||||
case inputEncryptedFile(Cons_inputEncryptedFile)
|
||||
case inputEncryptedFileBigUploaded(Cons_inputEncryptedFileBigUploaded)
|
||||
|
|
@ -1241,7 +1313,7 @@ public extension Api {
|
|||
}
|
||||
public extension Api {
|
||||
enum InputFile: TypeConstructorDescription {
|
||||
public class Cons_inputFile {
|
||||
public class Cons_inputFile: TypeConstructorDescription {
|
||||
public var id: Int64
|
||||
public var parts: Int32
|
||||
public var name: String
|
||||
|
|
@ -1252,8 +1324,11 @@ public extension Api {
|
|||
self.name = name
|
||||
self.md5Checksum = md5Checksum
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputFile", [("id", self.id as Any), ("parts", self.parts as Any), ("name", self.name as Any), ("md5Checksum", self.md5Checksum as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputFileBig {
|
||||
public class Cons_inputFileBig: TypeConstructorDescription {
|
||||
public var id: Int64
|
||||
public var parts: Int32
|
||||
public var name: String
|
||||
|
|
@ -1262,12 +1337,18 @@ public extension Api {
|
|||
self.parts = parts
|
||||
self.name = name
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputFileBig", [("id", self.id as Any), ("parts", self.parts as Any), ("name", self.name as Any)])
|
||||
}
|
||||
}
|
||||
public class Cons_inputFileStoryDocument {
|
||||
public class Cons_inputFileStoryDocument: TypeConstructorDescription {
|
||||
public var id: Api.InputDocument
|
||||
public init(id: Api.InputDocument) {
|
||||
self.id = id
|
||||
}
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
return ("inputFileStoryDocument", [("id", self.id as Any)])
|
||||
}
|
||||
}
|
||||
case inputFile(Cons_inputFile)
|
||||
case inputFileBig(Cons_inputFileBig)
|
||||
|
|
|
|||
|
|
@ -1636,7 +1636,7 @@ public func test_loginAndDeleteAccount(
|
|||
phoneCode: String
|
||||
) -> Signal<Never, TestLoginAndDeleteAccountError> {
|
||||
Logger.shared.logToConsole = true
|
||||
|
||||
|
||||
return accountManager.transaction{ transaction -> AccountRecordId? in
|
||||
let record = transaction.createAuth([.environment(AccountEnvironmentAttribute(environment: .test))])
|
||||
return record?.id
|
||||
|
|
@ -1651,7 +1651,7 @@ public func test_loginAndDeleteAccount(
|
|||
networkArguments: networkArguments,
|
||||
id: accountId,
|
||||
encryptionParameters: encryptionParameters,
|
||||
supplementary: true,
|
||||
supplementary: false,
|
||||
isSupportUser: false,
|
||||
rootPath: rootPath,
|
||||
beginWithTestingEnvironment: true,
|
||||
|
|
@ -1679,8 +1679,8 @@ public func test_loginAndDeleteAccount(
|
|||
}
|
||||
}
|
||||
|> mapToSignal { account -> Signal<(UnauthorizedAccount, UnauthorizedAccountStateContents), TestLoginAndDeleteAccountError> in
|
||||
account.network.shouldKeepConnection.set(.single(true))
|
||||
|
||||
account.shouldBeServiceTaskMaster.set(.single(.now))
|
||||
|
||||
return sendAuthorizationCode(
|
||||
accountManager: accountManager,
|
||||
account: account,
|
||||
|
|
@ -1692,7 +1692,8 @@ public func test_loginAndDeleteAccount(
|
|||
syncContacts: false,
|
||||
forcedPasswordSetupNotice: { _ in nil }
|
||||
)
|
||||
|> mapError { _ -> TestLoginAndDeleteAccountError in
|
||||
|> mapError { error -> TestLoginAndDeleteAccountError in
|
||||
NSLog("[DeleteAccount] sendAuthorizationCode error: \(error)")
|
||||
return .generic
|
||||
}
|
||||
|> mapToSignal { result -> Signal<(UnauthorizedAccount, UnauthorizedAccountStateContents), TestLoginAndDeleteAccountError> in
|
||||
|
|
@ -1717,7 +1718,7 @@ public func test_loginAndDeleteAccount(
|
|||
}
|
||||
}
|
||||
|> mapToSignal { account, state -> Signal<(UnauthorizedAccount, AuthorizeWithCodeResult), TestLoginAndDeleteAccountError> in
|
||||
account.network.shouldKeepConnection.set(.single(true))
|
||||
account.shouldBeServiceTaskMaster.set(.single(.now))
|
||||
|
||||
switch state {
|
||||
case let .confirmationCodeEntry(_, type, _, _, _, _, _, _):
|
||||
|
|
|
|||
|
|
@ -93,9 +93,15 @@ public final class LensTransitionContainer: UIView {
|
|||
private(set) var state: State = .animatedOut
|
||||
|
||||
override public init(frame: CGRect) {
|
||||
self.sdfElementLayer = createObject(className: ("CAS" as NSString).appending("DFElementLayer") as String) as? CALayer
|
||||
self.sdfLayer = createObject(className: ("CAS" as NSString).appending("DFLayer")) as? CALayer
|
||||
self.displacementEffect = createObject(className: ("CAS" as NSString).appending("DFGlassDisplacementEffect"))
|
||||
if #available(iOS 26.0, *) {
|
||||
self.sdfElementLayer = createObject(className: ("CAS" as NSString).appending("DFElementLayer") as String) as? CALayer
|
||||
self.sdfLayer = createObject(className: ("CAS" as NSString).appending("DFLayer")) as? CALayer
|
||||
self.displacementEffect = createObject(className: ("CAS" as NSString).appending("DFGlassDisplacementEffect"))
|
||||
} else {
|
||||
self.sdfElementLayer = nil
|
||||
self.sdfLayer = nil
|
||||
self.displacementEffect = nil
|
||||
}
|
||||
|
||||
super.init(frame: frame)
|
||||
|
||||
|
|
|
|||
|
|
@ -1012,6 +1012,10 @@ private func extractAccountManagerState(records: AccountRecordsView<TelegramAcco
|
|||
let dcDigit = digits[digits.index(digits.startIndex, offsetBy: 5)]
|
||||
let phoneCode = String(repeating: dcDigit, count: 5)
|
||||
|
||||
let window = self.window!
|
||||
window.makeKeyAndVisible()
|
||||
|
||||
NSLog("[DeleteAccount] starting for +\(digits)")
|
||||
let _ = test_loginAndDeleteAccount(
|
||||
rootPath: rootPath,
|
||||
accountManager: accountManager,
|
||||
|
|
@ -1019,10 +1023,14 @@ private func extractAccountManagerState(records: AccountRecordsView<TelegramAcco
|
|||
encryptionParameters: encryptionParameters,
|
||||
phoneNumber: "+\(digits)",
|
||||
phoneCode: phoneCode
|
||||
).start(error: { _ in
|
||||
).start(error: { error in
|
||||
NSLog("[DeleteAccount] error: \(error)")
|
||||
preconditionFailure("test_loginAndDeleteAccount failed")
|
||||
}, completed: { [weak self] in
|
||||
self?.window?.accessibilityIdentifier = "DeleteAccount.Success"
|
||||
}, completed: {
|
||||
NSLog("[DeleteAccount] completed")
|
||||
DispatchQueue.main.async {
|
||||
window.accessibilityIdentifier = "DeleteAccount.Success"
|
||||
}
|
||||
})
|
||||
|
||||
return true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue