mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios
This commit is contained in:
commit
dfbab14a67
48 changed files with 7779 additions and 5574 deletions
|
|
@ -439,7 +439,11 @@ private final class MediaPlayerContext {
|
|||
self.audioRenderer = nil
|
||||
|
||||
var timebase: CMTimebase?
|
||||
#if os(macOS)
|
||||
CMTimebaseCreateWithMasterClock(allocator: nil, masterClock: CMClockGetHostTimeClock(), timebaseOut: &timebase)
|
||||
#else
|
||||
CMTimebaseCreateWithSourceClock(allocator: nil, sourceClock: CMClockGetHostTimeClock(), timebaseOut: &timebase)
|
||||
#endif
|
||||
controlTimebase = MediaPlayerControlTimebase(timebase: timebase!, isAudio: false)
|
||||
CMTimebaseSetTime(timebase!, time: seekResult.timestamp)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -884,7 +884,11 @@ public final class MediaPlayerAudioRenderer {
|
|||
self.audioClock = audioClock!
|
||||
|
||||
var audioTimebase: CMTimebase?
|
||||
#if os(macOS)
|
||||
CMTimebaseCreateWithMasterClock(allocator: nil, masterClock: audioClock!, timebaseOut: &audioTimebase)
|
||||
#else
|
||||
CMTimebaseCreateWithSourceClock(allocator: nil, sourceClock: audioClock!, timebaseOut: &audioTimebase)
|
||||
#endif
|
||||
self.audioTimebase = audioTimebase!
|
||||
|
||||
audioPlayerRendererQueue.async {
|
||||
|
|
|
|||
|
|
@ -623,9 +623,10 @@ fileprivate let parsers: [Int32 : (BufferReader) -> Any?] = {
|
|||
dict[1348510708] = { return Api.MessageAction.parse_messageActionSetChatWallPaper($0) }
|
||||
dict[1007897979] = { return Api.MessageAction.parse_messageActionSetMessagesTTL($0) }
|
||||
dict[-366202413] = { return Api.MessageAction.parse_messageActionStarGift($0) }
|
||||
dict[1148220972] = { return Api.MessageAction.parse_messageActionStarGiftCraftFail($0) }
|
||||
dict[2000845012] = { return Api.MessageAction.parse_messageActionStarGiftPurchaseOffer($0) }
|
||||
dict[1940760427] = { return Api.MessageAction.parse_messageActionStarGiftPurchaseOfferDeclined($0) }
|
||||
dict[-1787656893] = { return Api.MessageAction.parse_messageActionStarGiftUnique($0) }
|
||||
dict[1736693086] = { return Api.MessageAction.parse_messageActionStarGiftUnique($0) }
|
||||
dict[747579941] = { return Api.MessageAction.parse_messageActionSuggestBirthday($0) }
|
||||
dict[1474192222] = { return Api.MessageAction.parse_messageActionSuggestProfilePhoto($0) }
|
||||
dict[-293988970] = { return Api.MessageAction.parse_messageActionSuggestedPostApproval($0) }
|
||||
|
|
@ -917,7 +918,7 @@ fileprivate let parsers: [Int32 : (BufferReader) -> Any?] = {
|
|||
dict[1681948327] = { return Api.SavedDialog.parse_monoForumDialog($0) }
|
||||
dict[-1115174036] = { return Api.SavedDialog.parse_savedDialog($0) }
|
||||
dict[-881854424] = { return Api.SavedReactionTag.parse_savedReactionTag($0) }
|
||||
dict[-355041186] = { return Api.SavedStarGift.parse_savedStarGift($0) }
|
||||
dict[949728281] = { return Api.SavedStarGift.parse_savedStarGift($0) }
|
||||
dict[1040931690] = { return Api.SearchPostsFlood.parse_searchPostsFlood($0) }
|
||||
dict[-911191137] = { return Api.SearchResultsCalendarPeriod.parse_searchResultsCalendarPeriod($0) }
|
||||
dict[2137295719] = { return Api.SearchResultsPosition.parse_searchResultPosition($0) }
|
||||
|
|
|
|||
|
|
@ -24,8 +24,12 @@ public extension Api {
|
|||
var _1: Int32?
|
||||
_1 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.AccountDaysTTL.accountDaysTTL(days: _1!)
|
||||
if _c1 {
|
||||
return Api.AccountDaysTTL.accountDaysTTL(days: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -84,12 +88,12 @@ public extension Api {
|
|||
let _c3 = _3 != nil
|
||||
let _c4 = (Int(_1!) & Int(1 << 3) == 0) || _4 != nil
|
||||
let _c5 = _5 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
return Api.AttachMenuBot.attachMenuBot(flags: _1!, botId: _2!, shortName: _3!, peerTypes: _4, icons: _5!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 {
|
||||
return Api.AttachMenuBot.attachMenuBot(flags: _1!, botId: _2!, shortName: _3!, peerTypes: _4, icons: _5!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -140,11 +144,12 @@ public extension Api {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = (Int(_1!) & Int(1 << 0) == 0) || _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.AttachMenuBotIcon.attachMenuBotIcon(flags: _1!, name: _2!, icon: _3!, colors: _4)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.AttachMenuBotIcon.attachMenuBotIcon(flags: _1!, name: _2!, icon: _3!, colors: _4)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -179,9 +184,12 @@ public extension Api {
|
|||
_2 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.AttachMenuBotIconColor.attachMenuBotIconColor(name: _1!, color: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.AttachMenuBotIconColor.attachMenuBotIconColor(name: _1!, color: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -241,10 +249,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.AttachMenuBots.attachMenuBots(hash: _1!, bots: _2!, users: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.AttachMenuBots.attachMenuBots(hash: _1!, bots: _2!, users: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_attachMenuBotsNotModified(_ reader: BufferReader) -> AttachMenuBots? {
|
||||
return Api.AttachMenuBots.attachMenuBotsNotModified
|
||||
|
|
@ -290,9 +300,12 @@ public extension Api {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.AttachMenuBotsBot.attachMenuBotsBot(bot: _1!, users: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.AttachMenuBotsBot.attachMenuBotsBot(bot: _1!, users: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -407,10 +420,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.AuctionBidLevel.auctionBidLevel(pos: _1!, amount: _2!, date: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.AuctionBidLevel.auctionBidLevel(pos: _1!, amount: _2!, date: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -489,20 +504,12 @@ public extension Api {
|
|||
let _c11 = _11 != nil
|
||||
let _c12 = _12 != nil
|
||||
let _c13 = _13 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
if !_c9 { return nil }
|
||||
if !_c10 { return nil }
|
||||
if !_c11 { return nil }
|
||||
if !_c12 { return nil }
|
||||
if !_c13 { return nil }
|
||||
return Api.Authorization.authorization(flags: _1!, hash: _2!, deviceModel: _3!, platform: _4!, systemVersion: _5!, apiId: _6!, appName: _7!, appVersion: _8!, dateCreated: _9!, dateActive: _10!, ip: _11!, country: _12!, region: _13!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 && _c10 && _c11 && _c12 && _c13 {
|
||||
return Api.Authorization.authorization(flags: _1!, hash: _2!, deviceModel: _3!, platform: _4!, systemVersion: _5!, apiId: _6!, appName: _7!, appVersion: _8!, dateCreated: _9!, dateActive: _10!, ip: _11!, country: _12!, region: _13!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -557,14 +564,12 @@ public extension Api {
|
|||
let _c5 = _5 != nil
|
||||
let _c6 = _6 != nil
|
||||
let _c7 = _7 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
return Api.AutoDownloadSettings.autoDownloadSettings(flags: _1!, photoSizeMax: _2!, videoSizeMax: _3!, fileSizeMax: _4!, videoUploadMaxbitrate: _5!, smallQueueActiveOperationsMax: _6!, largeQueueActiveOperationsMax: _7!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 {
|
||||
return Api.AutoDownloadSettings.autoDownloadSettings(flags: _1!, photoSizeMax: _2!, videoSizeMax: _3!, fileSizeMax: _4!, videoUploadMaxbitrate: _5!, smallQueueActiveOperationsMax: _6!, largeQueueActiveOperationsMax: _7!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -603,9 +608,12 @@ public extension Api {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.AutoSaveException.autoSaveException(peer: _1!, settings: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.AutoSaveException.autoSaveException(peer: _1!, settings: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -640,9 +648,12 @@ public extension Api {
|
|||
if Int(_1!) & Int(1 << 2) != 0 {_2 = reader.readInt64() }
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = (Int(_1!) & Int(1 << 2) == 0) || _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.AutoSaveSettings.autoSaveSettings(flags: _1!, videoMaxSize: _2)
|
||||
if _c1 && _c2 {
|
||||
return Api.AutoSaveSettings.autoSaveSettings(flags: _1!, videoMaxSize: _2)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -693,13 +704,12 @@ public extension Api {
|
|||
let _c4 = (Int(_1!) & Int(1 << 0) == 0) || _4 != nil
|
||||
let _c5 = _5 != nil
|
||||
let _c6 = (Int(_1!) & Int(1 << 1) == 0) || _6 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
return Api.AvailableEffect.availableEffect(flags: _1!, id: _2!, emoticon: _3!, staticIconId: _4, effectStickerId: _5!, effectAnimationId: _6)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 {
|
||||
return Api.AvailableEffect.availableEffect(flags: _1!, id: _2!, emoticon: _3!, staticIconId: _4, effectStickerId: _5!, effectAnimationId: _6)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -780,17 +790,12 @@ public extension Api {
|
|||
let _c8 = _8 != nil
|
||||
let _c9 = (Int(_1!) & Int(1 << 1) == 0) || _9 != nil
|
||||
let _c10 = (Int(_1!) & Int(1 << 1) == 0) || _10 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
if !_c9 { return nil }
|
||||
if !_c10 { return nil }
|
||||
return Api.AvailableReaction.availableReaction(flags: _1!, reaction: _2!, title: _3!, staticIcon: _4!, appearAnimation: _5!, selectAnimation: _6!, activateAnimation: _7!, effectAnimation: _8!, aroundAnimation: _9, centerIcon: _10)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 && _c10 {
|
||||
return Api.AvailableReaction.availableReaction(flags: _1!, reaction: _2!, title: _3!, staticIcon: _4!, appearAnimation: _5!, selectAnimation: _6!, activateAnimation: _7!, effectAnimation: _8!, aroundAnimation: _9, centerIcon: _10)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -825,9 +830,12 @@ public extension Api {
|
|||
_2 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.BankCardOpenUrl.bankCardOpenUrl(url: _1!, name: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.BankCardOpenUrl.bankCardOpenUrl(url: _1!, name: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -946,11 +954,12 @@ public extension Api {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = (Int(_1!) & Int(1 << 0) == 0) || _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.Birthday.birthday(flags: _1!, day: _2!, month: _3!, year: _4)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.Birthday.birthday(flags: _1!, day: _2!, month: _3!, year: _4)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1053,16 +1062,12 @@ public extension Api {
|
|||
let _c7 = (Int(_1!) & Int(1 << 4) == 0) || _7 != nil
|
||||
let _c8 = (Int(_1!) & Int(1 << 5) == 0) || _8 != nil
|
||||
let _c9 = (Int(_1!) & Int(1 << 6) == 0) || _9 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
if !_c9 { return nil }
|
||||
return Api.Boost.boost(flags: _1!, id: _2!, userId: _3, giveawayMsgId: _4, date: _5!, expires: _6!, usedGiftSlug: _7, multiplier: _8, stars: _9)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 {
|
||||
return Api.Boost.boost(flags: _1!, id: _2!, userId: _3, giveawayMsgId: _4, date: _5!, expires: _6!, usedGiftSlug: _7, multiplier: _8, stars: _9)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1138,16 +1143,12 @@ public extension Api {
|
|||
let _c7 = _7 != nil
|
||||
let _c8 = (Int(_1!) & Int(1 << 0) == 0) || _8 != nil
|
||||
let _c9 = _9 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
if !_c9 { return nil }
|
||||
return Api.BotApp.botApp(flags: _1!, id: _2!, accessHash: _3!, shortName: _4!, title: _5!, description: _6!, photo: _7!, document: _8, hash: _9!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 {
|
||||
return Api.BotApp.botApp(flags: _1!, id: _2!, accessHash: _3!, shortName: _4!, title: _5!, description: _6!, photo: _7!, document: _8, hash: _9!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_botAppNotModified(_ reader: BufferReader) -> BotApp? {
|
||||
return Api.BotApp.botAppNotModified
|
||||
|
|
@ -1201,13 +1202,12 @@ public extension Api {
|
|||
let _c4 = (Int(_1!) & Int(1 << 2) == 0) || _4 != nil
|
||||
let _c5 = (Int(_1!) & Int(1 << 3) == 0) || _5 != nil
|
||||
let _c6 = (Int(_1!) & Int(1 << 4) == 0) || _6 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
return Api.BotAppSettings.botAppSettings(flags: _1!, placeholderPath: _2, backgroundColor: _3, backgroundDarkColor: _4, headerColor: _5, headerDarkColor: _6)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 {
|
||||
return Api.BotAppSettings.botAppSettings(flags: _1!, placeholderPath: _2, backgroundColor: _3, backgroundDarkColor: _4, headerColor: _5, headerDarkColor: _6)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -138,11 +138,12 @@ public extension Api {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.InputFileLocation.inputDocumentFileLocation(id: _1!, accessHash: _2!, fileReference: _3!, thumbSize: _4!)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.InputFileLocation.inputDocumentFileLocation(id: _1!, accessHash: _2!, fileReference: _3!, thumbSize: _4!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputEncryptedFileLocation(_ reader: BufferReader) -> InputFileLocation? {
|
||||
var _1: Int64?
|
||||
|
|
@ -151,9 +152,12 @@ public extension Api {
|
|||
_2 = reader.readInt64()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.InputFileLocation.inputEncryptedFileLocation(id: _1!, accessHash: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.InputFileLocation.inputEncryptedFileLocation(id: _1!, accessHash: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputFileLocation(_ reader: BufferReader) -> InputFileLocation? {
|
||||
var _1: Int64?
|
||||
|
|
@ -168,11 +172,12 @@ public extension Api {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.InputFileLocation.inputFileLocation(volumeId: _1!, localId: _2!, secret: _3!, fileReference: _4!)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.InputFileLocation.inputFileLocation(volumeId: _1!, localId: _2!, secret: _3!, fileReference: _4!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputGroupCallStream(_ reader: BufferReader) -> InputFileLocation? {
|
||||
var _1: Int32?
|
||||
|
|
@ -195,13 +200,12 @@ public extension Api {
|
|||
let _c4 = _4 != nil
|
||||
let _c5 = (Int(_1!) & Int(1 << 0) == 0) || _5 != nil
|
||||
let _c6 = (Int(_1!) & Int(1 << 0) == 0) || _6 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
return Api.InputFileLocation.inputGroupCallStream(flags: _1!, call: _2!, timeMs: _3!, scale: _4!, videoChannel: _5, videoQuality: _6)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 {
|
||||
return Api.InputFileLocation.inputGroupCallStream(flags: _1!, call: _2!, timeMs: _3!, scale: _4!, videoChannel: _5, videoQuality: _6)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputPeerPhotoFileLocation(_ reader: BufferReader) -> InputFileLocation? {
|
||||
var _1: Int32?
|
||||
|
|
@ -215,10 +219,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.InputFileLocation.inputPeerPhotoFileLocation(flags: _1!, peer: _2!, photoId: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.InputFileLocation.inputPeerPhotoFileLocation(flags: _1!, peer: _2!, photoId: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputPhotoFileLocation(_ reader: BufferReader) -> InputFileLocation? {
|
||||
var _1: Int64?
|
||||
|
|
@ -233,11 +239,12 @@ public extension Api {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.InputFileLocation.inputPhotoFileLocation(id: _1!, accessHash: _2!, fileReference: _3!, thumbSize: _4!)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.InputFileLocation.inputPhotoFileLocation(id: _1!, accessHash: _2!, fileReference: _3!, thumbSize: _4!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputPhotoLegacyFileLocation(_ reader: BufferReader) -> InputFileLocation? {
|
||||
var _1: Int64?
|
||||
|
|
@ -258,13 +265,12 @@ public extension Api {
|
|||
let _c4 = _4 != nil
|
||||
let _c5 = _5 != nil
|
||||
let _c6 = _6 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
return Api.InputFileLocation.inputPhotoLegacyFileLocation(id: _1!, accessHash: _2!, fileReference: _3!, volumeId: _4!, localId: _5!, secret: _6!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 {
|
||||
return Api.InputFileLocation.inputPhotoLegacyFileLocation(id: _1!, accessHash: _2!, fileReference: _3!, volumeId: _4!, localId: _5!, secret: _6!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputSecureFileLocation(_ reader: BufferReader) -> InputFileLocation? {
|
||||
var _1: Int64?
|
||||
|
|
@ -273,9 +279,12 @@ public extension Api {
|
|||
_2 = reader.readInt64()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.InputFileLocation.inputSecureFileLocation(id: _1!, accessHash: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.InputFileLocation.inputSecureFileLocation(id: _1!, accessHash: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputStickerSetThumb(_ reader: BufferReader) -> InputFileLocation? {
|
||||
var _1: Api.InputStickerSet?
|
||||
|
|
@ -286,9 +295,12 @@ public extension Api {
|
|||
_2 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.InputFileLocation.inputStickerSetThumb(stickerset: _1!, thumbVersion: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.InputFileLocation.inputStickerSetThumb(stickerset: _1!, thumbVersion: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputTakeoutFileLocation(_ reader: BufferReader) -> InputFileLocation? {
|
||||
return Api.InputFileLocation.inputTakeoutFileLocation
|
||||
|
|
@ -328,9 +340,12 @@ public extension Api {
|
|||
_2 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.InputFolderPeer.inputFolderPeer(peer: _1!, folderId: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.InputFolderPeer.inputFolderPeer(peer: _1!, folderId: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -375,9 +390,12 @@ public extension Api {
|
|||
_2 = reader.readInt64()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.InputGame.inputGameID(id: _1!, accessHash: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.InputGame.inputGameID(id: _1!, accessHash: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputGameShortName(_ reader: BufferReader) -> InputGame? {
|
||||
var _1: Api.InputUser?
|
||||
|
|
@ -388,9 +406,12 @@ public extension Api {
|
|||
_2 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.InputGame.inputGameShortName(botId: _1!, shortName: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.InputGame.inputGameShortName(botId: _1!, shortName: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -442,11 +463,12 @@ public extension Api {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = (Int(_1!) & Int(1 << 0) == 0) || _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.InputGeoPoint.inputGeoPoint(flags: _1!, lat: _2!, long: _3!, accuracyRadius: _4)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.InputGeoPoint.inputGeoPoint(flags: _1!, lat: _2!, long: _3!, accuracyRadius: _4)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputGeoPointEmpty(_ reader: BufferReader) -> InputGeoPoint? {
|
||||
return Api.InputGeoPoint.inputGeoPointEmpty
|
||||
|
|
@ -502,23 +524,34 @@ public extension Api {
|
|||
_2 = reader.readInt64()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.InputGroupCall.inputGroupCall(id: _1!, accessHash: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.InputGroupCall.inputGroupCall(id: _1!, accessHash: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputGroupCallInviteMessage(_ reader: BufferReader) -> InputGroupCall? {
|
||||
var _1: Int32?
|
||||
_1 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.InputGroupCall.inputGroupCallInviteMessage(msgId: _1!)
|
||||
if _c1 {
|
||||
return Api.InputGroupCall.inputGroupCallInviteMessage(msgId: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputGroupCallSlug(_ reader: BufferReader) -> InputGroupCall? {
|
||||
var _1: String?
|
||||
_1 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.InputGroupCall.inputGroupCallSlug(slug: _1!)
|
||||
if _c1 {
|
||||
return Api.InputGroupCall.inputGroupCallSlug(slug: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -698,16 +731,23 @@ public extension Api {
|
|||
_2 = reader.readInt64()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.InputInvoice.inputInvoiceBusinessBotTransferStars(bot: _1!, stars: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.InputInvoice.inputInvoiceBusinessBotTransferStars(bot: _1!, stars: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputInvoiceChatInviteSubscription(_ reader: BufferReader) -> InputInvoice? {
|
||||
var _1: String?
|
||||
_1 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.InputInvoice.inputInvoiceChatInviteSubscription(hash: _1!)
|
||||
if _c1 {
|
||||
return Api.InputInvoice.inputInvoiceChatInviteSubscription(hash: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputInvoiceMessage(_ reader: BufferReader) -> InputInvoice? {
|
||||
var _1: Api.InputPeer?
|
||||
|
|
@ -718,9 +758,12 @@ public extension Api {
|
|||
_2 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.InputInvoice.inputInvoiceMessage(peer: _1!, msgId: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.InputInvoice.inputInvoiceMessage(peer: _1!, msgId: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputInvoicePremiumAuthCode(_ reader: BufferReader) -> InputInvoice? {
|
||||
var _1: Api.InputStorePaymentPurpose?
|
||||
|
|
@ -728,8 +771,12 @@ public extension Api {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.InputStorePaymentPurpose
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.InputInvoice.inputInvoicePremiumAuthCode(purpose: _1!)
|
||||
if _c1 {
|
||||
return Api.InputInvoice.inputInvoicePremiumAuthCode(purpose: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputInvoicePremiumGiftCode(_ reader: BufferReader) -> InputInvoice? {
|
||||
var _1: Api.InputStorePaymentPurpose?
|
||||
|
|
@ -742,9 +789,12 @@ public extension Api {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.InputInvoice.inputInvoicePremiumGiftCode(purpose: _1!, option: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.InputInvoice.inputInvoicePremiumGiftCode(purpose: _1!, option: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputInvoicePremiumGiftStars(_ reader: BufferReader) -> InputInvoice? {
|
||||
var _1: Int32?
|
||||
|
|
@ -763,18 +813,23 @@ public extension Api {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = (Int(_1!) & Int(1 << 0) == 0) || _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.InputInvoice.inputInvoicePremiumGiftStars(flags: _1!, userId: _2!, months: _3!, message: _4)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.InputInvoice.inputInvoicePremiumGiftStars(flags: _1!, userId: _2!, months: _3!, message: _4)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputInvoiceSlug(_ reader: BufferReader) -> InputInvoice? {
|
||||
var _1: String?
|
||||
_1 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.InputInvoice.inputInvoiceSlug(slug: _1!)
|
||||
if _c1 {
|
||||
return Api.InputInvoice.inputInvoiceSlug(slug: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputInvoiceStarGift(_ reader: BufferReader) -> InputInvoice? {
|
||||
var _1: Int32?
|
||||
|
|
@ -793,11 +848,12 @@ public extension Api {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = (Int(_1!) & Int(1 << 1) == 0) || _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.InputInvoice.inputInvoiceStarGift(flags: _1!, peer: _2!, giftId: _3!, message: _4)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.InputInvoice.inputInvoiceStarGift(flags: _1!, peer: _2!, giftId: _3!, message: _4)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputInvoiceStarGiftAuctionBid(_ reader: BufferReader) -> InputInvoice? {
|
||||
var _1: Int32?
|
||||
|
|
@ -819,12 +875,12 @@ public extension Api {
|
|||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
let _c5 = (Int(_1!) & Int(1 << 1) == 0) || _5 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
return Api.InputInvoice.inputInvoiceStarGiftAuctionBid(flags: _1!, peer: _2, giftId: _3!, bidAmount: _4!, message: _5)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 {
|
||||
return Api.InputInvoice.inputInvoiceStarGiftAuctionBid(flags: _1!, peer: _2, giftId: _3!, bidAmount: _4!, message: _5)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputInvoiceStarGiftDropOriginalDetails(_ reader: BufferReader) -> InputInvoice? {
|
||||
var _1: Api.InputSavedStarGift?
|
||||
|
|
@ -832,8 +888,12 @@ public extension Api {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.InputSavedStarGift
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.InputInvoice.inputInvoiceStarGiftDropOriginalDetails(stargift: _1!)
|
||||
if _c1 {
|
||||
return Api.InputInvoice.inputInvoiceStarGiftDropOriginalDetails(stargift: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputInvoiceStarGiftPrepaidUpgrade(_ reader: BufferReader) -> InputInvoice? {
|
||||
var _1: Api.InputPeer?
|
||||
|
|
@ -844,9 +904,12 @@ public extension Api {
|
|||
_2 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.InputInvoice.inputInvoiceStarGiftPrepaidUpgrade(peer: _1!, hash: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.InputInvoice.inputInvoiceStarGiftPrepaidUpgrade(peer: _1!, hash: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputInvoiceStarGiftResale(_ reader: BufferReader) -> InputInvoice? {
|
||||
var _1: Int32?
|
||||
|
|
@ -860,10 +923,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.InputInvoice.inputInvoiceStarGiftResale(flags: _1!, slug: _2!, toId: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.InputInvoice.inputInvoiceStarGiftResale(flags: _1!, slug: _2!, toId: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputInvoiceStarGiftTransfer(_ reader: BufferReader) -> InputInvoice? {
|
||||
var _1: Api.InputSavedStarGift?
|
||||
|
|
@ -876,9 +941,12 @@ public extension Api {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.InputInvoice.inputInvoiceStarGiftTransfer(stargift: _1!, toId: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.InputInvoice.inputInvoiceStarGiftTransfer(stargift: _1!, toId: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputInvoiceStarGiftUpgrade(_ reader: BufferReader) -> InputInvoice? {
|
||||
var _1: Int32?
|
||||
|
|
@ -889,9 +957,12 @@ public extension Api {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.InputInvoice.inputInvoiceStarGiftUpgrade(flags: _1!, stargift: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.InputInvoice.inputInvoiceStarGiftUpgrade(flags: _1!, stargift: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputInvoiceStars(_ reader: BufferReader) -> InputInvoice? {
|
||||
var _1: Api.InputStorePaymentPurpose?
|
||||
|
|
@ -899,8 +970,12 @@ public extension Api {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.InputStorePaymentPurpose
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.InputInvoice.inputInvoiceStars(purpose: _1!)
|
||||
if _c1 {
|
||||
return Api.InputInvoice.inputInvoiceStars(purpose: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -284,18 +284,23 @@ public extension Api {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.InputMedia.inputMediaContact(phoneNumber: _1!, firstName: _2!, lastName: _3!, vcard: _4!)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.InputMedia.inputMediaContact(phoneNumber: _1!, firstName: _2!, lastName: _3!, vcard: _4!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputMediaDice(_ reader: BufferReader) -> InputMedia? {
|
||||
var _1: String?
|
||||
_1 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.InputMedia.inputMediaDice(emoticon: _1!)
|
||||
if _c1 {
|
||||
return Api.InputMedia.inputMediaDice(emoticon: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputMediaDocument(_ reader: BufferReader) -> InputMedia? {
|
||||
var _1: Int32?
|
||||
|
|
@ -320,13 +325,12 @@ public extension Api {
|
|||
let _c4 = (Int(_1!) & Int(1 << 4) == 0) || _4 != nil
|
||||
let _c5 = (Int(_1!) & Int(1 << 0) == 0) || _5 != nil
|
||||
let _c6 = (Int(_1!) & Int(1 << 1) == 0) || _6 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
return Api.InputMedia.inputMediaDocument(flags: _1!, id: _2!, videoCover: _3, videoTimestamp: _4, ttlSeconds: _5, query: _6)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 {
|
||||
return Api.InputMedia.inputMediaDocument(flags: _1!, id: _2!, videoCover: _3, videoTimestamp: _4, ttlSeconds: _5, query: _6)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputMediaDocumentExternal(_ reader: BufferReader) -> InputMedia? {
|
||||
var _1: Int32?
|
||||
|
|
@ -346,12 +350,12 @@ public extension Api {
|
|||
let _c3 = (Int(_1!) & Int(1 << 0) == 0) || _3 != nil
|
||||
let _c4 = (Int(_1!) & Int(1 << 2) == 0) || _4 != nil
|
||||
let _c5 = (Int(_1!) & Int(1 << 3) == 0) || _5 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
return Api.InputMedia.inputMediaDocumentExternal(flags: _1!, url: _2!, ttlSeconds: _3, videoCover: _4, videoTimestamp: _5)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 {
|
||||
return Api.InputMedia.inputMediaDocumentExternal(flags: _1!, url: _2!, ttlSeconds: _3, videoCover: _4, videoTimestamp: _5)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputMediaEmpty(_ reader: BufferReader) -> InputMedia? {
|
||||
return Api.InputMedia.inputMediaEmpty
|
||||
|
|
@ -362,8 +366,12 @@ public extension Api {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.InputGame
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.InputMedia.inputMediaGame(id: _1!)
|
||||
if _c1 {
|
||||
return Api.InputMedia.inputMediaGame(id: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputMediaGeoLive(_ reader: BufferReader) -> InputMedia? {
|
||||
var _1: Int32?
|
||||
|
|
@ -383,12 +391,12 @@ public extension Api {
|
|||
let _c3 = (Int(_1!) & Int(1 << 2) == 0) || _3 != nil
|
||||
let _c4 = (Int(_1!) & Int(1 << 1) == 0) || _4 != nil
|
||||
let _c5 = (Int(_1!) & Int(1 << 3) == 0) || _5 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
return Api.InputMedia.inputMediaGeoLive(flags: _1!, geoPoint: _2!, heading: _3, period: _4, proximityNotificationRadius: _5)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 {
|
||||
return Api.InputMedia.inputMediaGeoLive(flags: _1!, geoPoint: _2!, heading: _3, period: _4, proximityNotificationRadius: _5)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputMediaGeoPoint(_ reader: BufferReader) -> InputMedia? {
|
||||
var _1: Api.InputGeoPoint?
|
||||
|
|
@ -396,8 +404,12 @@ public extension Api {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.InputGeoPoint
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.InputMedia.inputMediaGeoPoint(geoPoint: _1!)
|
||||
if _c1 {
|
||||
return Api.InputMedia.inputMediaGeoPoint(geoPoint: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputMediaInvoice(_ reader: BufferReader) -> InputMedia? {
|
||||
var _1: Int32?
|
||||
|
|
@ -438,17 +450,12 @@ public extension Api {
|
|||
let _c8 = _8 != nil
|
||||
let _c9 = (Int(_1!) & Int(1 << 1) == 0) || _9 != nil
|
||||
let _c10 = (Int(_1!) & Int(1 << 2) == 0) || _10 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
if !_c9 { return nil }
|
||||
if !_c10 { return nil }
|
||||
return Api.InputMedia.inputMediaInvoice(flags: _1!, title: _2!, description: _3!, photo: _4, invoice: _5!, payload: _6!, provider: _7, providerData: _8!, startParam: _9, extendedMedia: _10)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 && _c10 {
|
||||
return Api.InputMedia.inputMediaInvoice(flags: _1!, title: _2!, description: _3!, photo: _4, invoice: _5!, payload: _6!, provider: _7, providerData: _8!, startParam: _9, extendedMedia: _10)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputMediaPaidMedia(_ reader: BufferReader) -> InputMedia? {
|
||||
var _1: Int32?
|
||||
|
|
@ -465,11 +472,12 @@ public extension Api {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = (Int(_1!) & Int(1 << 0) == 0) || _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.InputMedia.inputMediaPaidMedia(flags: _1!, starsAmount: _2!, extendedMedia: _3!, payload: _4)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.InputMedia.inputMediaPaidMedia(flags: _1!, starsAmount: _2!, extendedMedia: _3!, payload: _4)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputMediaPhoto(_ reader: BufferReader) -> InputMedia? {
|
||||
var _1: Int32?
|
||||
|
|
@ -483,10 +491,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = (Int(_1!) & Int(1 << 0) == 0) || _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.InputMedia.inputMediaPhoto(flags: _1!, id: _2!, ttlSeconds: _3)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.InputMedia.inputMediaPhoto(flags: _1!, id: _2!, ttlSeconds: _3)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputMediaPhotoExternal(_ reader: BufferReader) -> InputMedia? {
|
||||
var _1: Int32?
|
||||
|
|
@ -498,10 +508,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = (Int(_1!) & Int(1 << 0) == 0) || _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.InputMedia.inputMediaPhotoExternal(flags: _1!, url: _2!, ttlSeconds: _3)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.InputMedia.inputMediaPhotoExternal(flags: _1!, url: _2!, ttlSeconds: _3)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputMediaPoll(_ reader: BufferReader) -> InputMedia? {
|
||||
var _1: Int32?
|
||||
|
|
@ -525,12 +537,12 @@ public extension Api {
|
|||
let _c3 = (Int(_1!) & Int(1 << 0) == 0) || _3 != nil
|
||||
let _c4 = (Int(_1!) & Int(1 << 1) == 0) || _4 != nil
|
||||
let _c5 = (Int(_1!) & Int(1 << 1) == 0) || _5 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
return Api.InputMedia.inputMediaPoll(flags: _1!, poll: _2!, correctAnswers: _3, solution: _4, solutionEntities: _5)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 {
|
||||
return Api.InputMedia.inputMediaPoll(flags: _1!, poll: _2!, correctAnswers: _3, solution: _4, solutionEntities: _5)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputMediaStakeDice(_ reader: BufferReader) -> InputMedia? {
|
||||
var _1: String?
|
||||
|
|
@ -542,10 +554,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.InputMedia.inputMediaStakeDice(gameHash: _1!, tonAmount: _2!, clientSeed: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.InputMedia.inputMediaStakeDice(gameHash: _1!, tonAmount: _2!, clientSeed: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputMediaStory(_ reader: BufferReader) -> InputMedia? {
|
||||
var _1: Api.InputPeer?
|
||||
|
|
@ -556,9 +570,12 @@ public extension Api {
|
|||
_2 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.InputMedia.inputMediaStory(peer: _1!, id: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.InputMedia.inputMediaStory(peer: _1!, id: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputMediaTodo(_ reader: BufferReader) -> InputMedia? {
|
||||
var _1: Api.TodoList?
|
||||
|
|
@ -566,8 +583,12 @@ public extension Api {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.TodoList
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.InputMedia.inputMediaTodo(todo: _1!)
|
||||
if _c1 {
|
||||
return Api.InputMedia.inputMediaTodo(todo: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputMediaUploadedDocument(_ reader: BufferReader) -> InputMedia? {
|
||||
var _1: Int32?
|
||||
|
|
@ -607,16 +628,12 @@ public extension Api {
|
|||
let _c7 = (Int(_1!) & Int(1 << 6) == 0) || _7 != nil
|
||||
let _c8 = (Int(_1!) & Int(1 << 7) == 0) || _8 != nil
|
||||
let _c9 = (Int(_1!) & Int(1 << 1) == 0) || _9 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
if !_c9 { return nil }
|
||||
return Api.InputMedia.inputMediaUploadedDocument(flags: _1!, file: _2!, thumb: _3, mimeType: _4!, attributes: _5!, stickers: _6, videoCover: _7, videoTimestamp: _8, ttlSeconds: _9)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 {
|
||||
return Api.InputMedia.inputMediaUploadedDocument(flags: _1!, file: _2!, thumb: _3, mimeType: _4!, attributes: _5!, stickers: _6, videoCover: _7, videoTimestamp: _8, ttlSeconds: _9)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputMediaUploadedPhoto(_ reader: BufferReader) -> InputMedia? {
|
||||
var _1: Int32?
|
||||
|
|
@ -635,11 +652,12 @@ public extension Api {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = (Int(_1!) & Int(1 << 0) == 0) || _3 != nil
|
||||
let _c4 = (Int(_1!) & Int(1 << 1) == 0) || _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.InputMedia.inputMediaUploadedPhoto(flags: _1!, file: _2!, stickers: _3, ttlSeconds: _4)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.InputMedia.inputMediaUploadedPhoto(flags: _1!, file: _2!, stickers: _3, ttlSeconds: _4)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputMediaVenue(_ reader: BufferReader) -> InputMedia? {
|
||||
var _1: Api.InputGeoPoint?
|
||||
|
|
@ -662,13 +680,12 @@ public extension Api {
|
|||
let _c4 = _4 != nil
|
||||
let _c5 = _5 != nil
|
||||
let _c6 = _6 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
return Api.InputMedia.inputMediaVenue(geoPoint: _1!, title: _2!, address: _3!, provider: _4!, venueId: _5!, venueType: _6!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 {
|
||||
return Api.InputMedia.inputMediaVenue(geoPoint: _1!, title: _2!, address: _3!, provider: _4!, venueId: _5!, venueType: _6!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputMediaWebPage(_ reader: BufferReader) -> InputMedia? {
|
||||
var _1: Int32?
|
||||
|
|
@ -677,9 +694,12 @@ public extension Api {
|
|||
_2 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.InputMedia.inputMediaWebPage(flags: _1!, url: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.InputMedia.inputMediaWebPage(flags: _1!, url: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -741,16 +761,23 @@ public extension Api {
|
|||
_2 = reader.readInt64()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.InputMessage.inputMessageCallbackQuery(id: _1!, queryId: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.InputMessage.inputMessageCallbackQuery(id: _1!, queryId: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputMessageID(_ reader: BufferReader) -> InputMessage? {
|
||||
var _1: Int32?
|
||||
_1 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.InputMessage.inputMessageID(id: _1!)
|
||||
if _c1 {
|
||||
return Api.InputMessage.inputMessageID(id: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputMessagePinned(_ reader: BufferReader) -> InputMessage? {
|
||||
return Api.InputMessage.inputMessagePinned
|
||||
|
|
@ -759,8 +786,12 @@ public extension Api {
|
|||
var _1: Int32?
|
||||
_1 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.InputMessage.inputMessageReplyTo(id: _1!)
|
||||
if _c1 {
|
||||
return Api.InputMessage.inputMessageReplyTo(id: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -839,9 +870,12 @@ public extension Api {
|
|||
_2 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.InputNotifyPeer.inputNotifyForumTopic(peer: _1!, topMsgId: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.InputNotifyPeer.inputNotifyForumTopic(peer: _1!, topMsgId: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputNotifyPeer(_ reader: BufferReader) -> InputNotifyPeer? {
|
||||
var _1: Api.InputPeer?
|
||||
|
|
@ -849,8 +883,12 @@ public extension Api {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.InputPeer
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.InputNotifyPeer.inputNotifyPeer(peer: _1!)
|
||||
if _c1 {
|
||||
return Api.InputNotifyPeer.inputNotifyPeer(peer: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputNotifyUsers(_ reader: BufferReader) -> InputNotifyPeer? {
|
||||
return Api.InputNotifyPeer.inputNotifyUsers
|
||||
|
|
@ -895,8 +933,12 @@ public extension Api {
|
|||
var _1: String?
|
||||
_1 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.InputPasskeyCredential.inputPasskeyCredentialFirebasePNV(pnvToken: _1!)
|
||||
if _c1 {
|
||||
return Api.InputPasskeyCredential.inputPasskeyCredentialFirebasePNV(pnvToken: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputPasskeyCredentialPublicKey(_ reader: BufferReader) -> InputPasskeyCredential? {
|
||||
var _1: String?
|
||||
|
|
@ -910,10 +952,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.InputPasskeyCredential.inputPasskeyCredentialPublicKey(id: _1!, rawId: _2!, response: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.InputPasskeyCredential.inputPasskeyCredentialPublicKey(id: _1!, rawId: _2!, response: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -968,11 +1012,12 @@ public extension Api {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.InputPasskeyResponse.inputPasskeyResponseLogin(clientData: _1!, authenticatorData: _2!, signature: _3!, userHandle: _4!)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.InputPasskeyResponse.inputPasskeyResponseLogin(clientData: _1!, authenticatorData: _2!, signature: _3!, userHandle: _4!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputPasskeyResponseRegister(_ reader: BufferReader) -> InputPasskeyResponse? {
|
||||
var _1: Api.DataJSON?
|
||||
|
|
@ -983,9 +1028,12 @@ public extension Api {
|
|||
_2 = parseBytes(reader)
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.InputPasskeyResponse.inputPasskeyResponseRegister(clientData: _1!, attestationData: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.InputPasskeyResponse.inputPasskeyResponseRegister(clientData: _1!, attestationData: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -58,9 +58,12 @@ public extension Api {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.InputPaymentCredentials.inputPaymentCredentials(flags: _1!, data: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.InputPaymentCredentials.inputPaymentCredentials(flags: _1!, data: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputPaymentCredentialsApplePay(_ reader: BufferReader) -> InputPaymentCredentials? {
|
||||
var _1: Api.DataJSON?
|
||||
|
|
@ -68,8 +71,12 @@ public extension Api {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.DataJSON
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.InputPaymentCredentials.inputPaymentCredentialsApplePay(paymentData: _1!)
|
||||
if _c1 {
|
||||
return Api.InputPaymentCredentials.inputPaymentCredentialsApplePay(paymentData: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputPaymentCredentialsGooglePay(_ reader: BufferReader) -> InputPaymentCredentials? {
|
||||
var _1: Api.DataJSON?
|
||||
|
|
@ -77,8 +84,12 @@ public extension Api {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.DataJSON
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.InputPaymentCredentials.inputPaymentCredentialsGooglePay(paymentToken: _1!)
|
||||
if _c1 {
|
||||
return Api.InputPaymentCredentials.inputPaymentCredentialsGooglePay(paymentToken: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputPaymentCredentialsSaved(_ reader: BufferReader) -> InputPaymentCredentials? {
|
||||
var _1: String?
|
||||
|
|
@ -87,9 +98,12 @@ public extension Api {
|
|||
_2 = parseBytes(reader)
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.InputPaymentCredentials.inputPaymentCredentialsSaved(id: _1!, tmpPassword: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.InputPaymentCredentials.inputPaymentCredentialsSaved(id: _1!, tmpPassword: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -183,9 +197,12 @@ public extension Api {
|
|||
_2 = reader.readInt64()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.InputPeer.inputPeerChannel(channelId: _1!, accessHash: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.InputPeer.inputPeerChannel(channelId: _1!, accessHash: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputPeerChannelFromMessage(_ reader: BufferReader) -> InputPeer? {
|
||||
var _1: Api.InputPeer?
|
||||
|
|
@ -199,17 +216,23 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.InputPeer.inputPeerChannelFromMessage(peer: _1!, msgId: _2!, channelId: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.InputPeer.inputPeerChannelFromMessage(peer: _1!, msgId: _2!, channelId: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputPeerChat(_ reader: BufferReader) -> InputPeer? {
|
||||
var _1: Int64?
|
||||
_1 = reader.readInt64()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.InputPeer.inputPeerChat(chatId: _1!)
|
||||
if _c1 {
|
||||
return Api.InputPeer.inputPeerChat(chatId: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputPeerEmpty(_ reader: BufferReader) -> InputPeer? {
|
||||
return Api.InputPeer.inputPeerEmpty
|
||||
|
|
@ -224,9 +247,12 @@ public extension Api {
|
|||
_2 = reader.readInt64()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.InputPeer.inputPeerUser(userId: _1!, accessHash: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.InputPeer.inputPeerUser(userId: _1!, accessHash: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputPeerUserFromMessage(_ reader: BufferReader) -> InputPeer? {
|
||||
var _1: Api.InputPeer?
|
||||
|
|
@ -240,10 +266,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.InputPeer.inputPeerUserFromMessage(peer: _1!, msgId: _2!, userId: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.InputPeer.inputPeerUserFromMessage(peer: _1!, msgId: _2!, userId: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -314,15 +342,12 @@ public extension Api {
|
|||
let _c6 = (Int(_1!) & Int(1 << 6) == 0) || _6 != nil
|
||||
let _c7 = (Int(_1!) & Int(1 << 7) == 0) || _7 != nil
|
||||
let _c8 = (Int(_1!) & Int(1 << 8) == 0) || _8 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
return Api.InputPeerNotifySettings.inputPeerNotifySettings(flags: _1!, showPreviews: _2, silent: _3, muteUntil: _4, sound: _5, storiesMuted: _6, storiesHideSender: _7, storiesSound: _8)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 {
|
||||
return Api.InputPeerNotifySettings.inputPeerNotifySettings(flags: _1!, showPreviews: _2, silent: _3, muteUntil: _4, sound: _5, storiesMuted: _6, storiesHideSender: _7, storiesSound: _8)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -357,9 +382,12 @@ public extension Api {
|
|||
_2 = reader.readInt64()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.InputPhoneCall.inputPhoneCall(id: _1!, accessHash: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.InputPhoneCall.inputPhoneCall(id: _1!, accessHash: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -407,10 +435,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.InputPhoto.inputPhoto(id: _1!, accessHash: _2!, fileReference: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.InputPhoto.inputPhoto(id: _1!, accessHash: _2!, fileReference: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputPhotoEmpty(_ reader: BufferReader) -> InputPhoto? {
|
||||
return Api.InputPhoto.inputPhotoEmpty
|
||||
|
|
@ -751,8 +781,12 @@ public extension Api {
|
|||
_1 = Api.parseVector(reader, elementSignature: 570911930, elementType: Int64.self)
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.InputPrivacyRule.inputPrivacyValueAllowChatParticipants(chats: _1!)
|
||||
if _c1 {
|
||||
return Api.InputPrivacyRule.inputPrivacyValueAllowChatParticipants(chats: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputPrivacyValueAllowCloseFriends(_ reader: BufferReader) -> InputPrivacyRule? {
|
||||
return Api.InputPrivacyRule.inputPrivacyValueAllowCloseFriends
|
||||
|
|
@ -769,8 +803,12 @@ public extension Api {
|
|||
_1 = Api.parseVector(reader, elementSignature: 0, elementType: Api.InputUser.self)
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.InputPrivacyRule.inputPrivacyValueAllowUsers(users: _1!)
|
||||
if _c1 {
|
||||
return Api.InputPrivacyRule.inputPrivacyValueAllowUsers(users: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputPrivacyValueDisallowAll(_ reader: BufferReader) -> InputPrivacyRule? {
|
||||
return Api.InputPrivacyRule.inputPrivacyValueDisallowAll
|
||||
|
|
@ -784,8 +822,12 @@ public extension Api {
|
|||
_1 = Api.parseVector(reader, elementSignature: 570911930, elementType: Int64.self)
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.InputPrivacyRule.inputPrivacyValueDisallowChatParticipants(chats: _1!)
|
||||
if _c1 {
|
||||
return Api.InputPrivacyRule.inputPrivacyValueDisallowChatParticipants(chats: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputPrivacyValueDisallowContacts(_ reader: BufferReader) -> InputPrivacyRule? {
|
||||
return Api.InputPrivacyRule.inputPrivacyValueDisallowContacts
|
||||
|
|
@ -796,8 +838,12 @@ public extension Api {
|
|||
_1 = Api.parseVector(reader, elementSignature: 0, elementType: Api.InputUser.self)
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.InputPrivacyRule.inputPrivacyValueDisallowUsers(users: _1!)
|
||||
if _c1 {
|
||||
return Api.InputPrivacyRule.inputPrivacyValueDisallowUsers(users: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -33,15 +33,23 @@ public extension Api {
|
|||
var _1: String?
|
||||
_1 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.InputQuickReplyShortcut.inputQuickReplyShortcut(shortcut: _1!)
|
||||
if _c1 {
|
||||
return Api.InputQuickReplyShortcut.inputQuickReplyShortcut(shortcut: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputQuickReplyShortcutId(_ reader: BufferReader) -> InputQuickReplyShortcut? {
|
||||
var _1: Int32?
|
||||
_1 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.InputQuickReplyShortcut.inputQuickReplyShortcutId(shortcutId: _1!)
|
||||
if _c1 {
|
||||
return Api.InputQuickReplyShortcut.inputQuickReplyShortcutId(shortcutId: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -133,16 +141,12 @@ public extension Api {
|
|||
let _c7 = (Int(_1!) & Int(1 << 4) == 0) || _7 != nil
|
||||
let _c8 = (Int(_1!) & Int(1 << 5) == 0) || _8 != nil
|
||||
let _c9 = (Int(_1!) & Int(1 << 6) == 0) || _9 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
if !_c9 { return nil }
|
||||
return Api.InputReplyTo.inputReplyToMessage(flags: _1!, replyToMsgId: _2!, topMsgId: _3, replyToPeerId: _4, quoteText: _5, quoteEntities: _6, quoteOffset: _7, monoforumPeerId: _8, todoItemId: _9)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 {
|
||||
return Api.InputReplyTo.inputReplyToMessage(flags: _1!, replyToMsgId: _2!, topMsgId: _3, replyToPeerId: _4, quoteText: _5, quoteEntities: _6, quoteOffset: _7, monoforumPeerId: _8, todoItemId: _9)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputReplyToMonoForum(_ reader: BufferReader) -> InputReplyTo? {
|
||||
var _1: Api.InputPeer?
|
||||
|
|
@ -150,8 +154,12 @@ public extension Api {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.InputPeer
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.InputReplyTo.inputReplyToMonoForum(monoforumPeerId: _1!)
|
||||
if _c1 {
|
||||
return Api.InputReplyTo.inputReplyToMonoForum(monoforumPeerId: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputReplyToStory(_ reader: BufferReader) -> InputReplyTo? {
|
||||
var _1: Api.InputPeer?
|
||||
|
|
@ -162,9 +170,12 @@ public extension Api {
|
|||
_2 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.InputReplyTo.inputReplyToStory(peer: _1!, storyId: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.InputReplyTo.inputReplyToStory(peer: _1!, storyId: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -219,23 +230,34 @@ public extension Api {
|
|||
_2 = reader.readInt64()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.InputSavedStarGift.inputSavedStarGiftChat(peer: _1!, savedId: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.InputSavedStarGift.inputSavedStarGiftChat(peer: _1!, savedId: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputSavedStarGiftSlug(_ reader: BufferReader) -> InputSavedStarGift? {
|
||||
var _1: String?
|
||||
_1 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.InputSavedStarGift.inputSavedStarGiftSlug(slug: _1!)
|
||||
if _c1 {
|
||||
return Api.InputSavedStarGift.inputSavedStarGiftSlug(slug: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputSavedStarGiftUser(_ reader: BufferReader) -> InputSavedStarGift? {
|
||||
var _1: Int32?
|
||||
_1 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.InputSavedStarGift.inputSavedStarGiftUser(msgId: _1!)
|
||||
if _c1 {
|
||||
return Api.InputSavedStarGift.inputSavedStarGiftUser(msgId: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -283,9 +305,12 @@ public extension Api {
|
|||
_2 = reader.readInt64()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.InputSecureFile.inputSecureFile(id: _1!, accessHash: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.InputSecureFile.inputSecureFile(id: _1!, accessHash: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputSecureFileUploaded(_ reader: BufferReader) -> InputSecureFile? {
|
||||
var _1: Int64?
|
||||
|
|
@ -303,12 +328,12 @@ public extension Api {
|
|||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
let _c5 = _5 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
return Api.InputSecureFile.inputSecureFileUploaded(id: _1!, parts: _2!, md5Checksum: _3!, fileHash: _4!, secret: _5!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 {
|
||||
return Api.InputSecureFile.inputSecureFileUploaded(id: _1!, parts: _2!, md5Checksum: _3!, fileHash: _4!, secret: _5!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -395,16 +420,12 @@ public extension Api {
|
|||
let _c7 = (Int(_1!) & Int(1 << 6) == 0) || _7 != nil
|
||||
let _c8 = (Int(_1!) & Int(1 << 4) == 0) || _8 != nil
|
||||
let _c9 = (Int(_1!) & Int(1 << 5) == 0) || _9 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
if !_c9 { return nil }
|
||||
return Api.InputSecureValue.inputSecureValue(flags: _1!, type: _2!, data: _3, frontSide: _4, reverseSide: _5, selfie: _6, translation: _7, files: _8, plainData: _9)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 {
|
||||
return Api.InputSecureValue.inputSecureValue(flags: _1!, type: _2!, data: _3, frontSide: _4, reverseSide: _5, selfie: _6, translation: _7, files: _8, plainData: _9)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -459,12 +480,12 @@ public extension Api {
|
|||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
let _c5 = (Int(_1!) & Int(1 << 0) == 0) || _5 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
return Api.InputSingleMedia.inputSingleMedia(flags: _1!, media: _2!, randomId: _3!, message: _4!, entities: _5)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 {
|
||||
return Api.InputSingleMedia.inputSingleMedia(flags: _1!, media: _2!, randomId: _3!, message: _4!, entities: _5)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -504,15 +525,23 @@ public extension Api {
|
|||
var _1: Int64?
|
||||
_1 = reader.readInt64()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.InputStarGiftAuction.inputStarGiftAuction(giftId: _1!)
|
||||
if _c1 {
|
||||
return Api.InputStarGiftAuction.inputStarGiftAuction(giftId: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputStarGiftAuctionSlug(_ reader: BufferReader) -> InputStarGiftAuction? {
|
||||
var _1: String?
|
||||
_1 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.InputStarGiftAuction.inputStarGiftAuctionSlug(slug: _1!)
|
||||
if _c1 {
|
||||
return Api.InputStarGiftAuction.inputStarGiftAuctionSlug(slug: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -547,9 +576,12 @@ public extension Api {
|
|||
_2 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.InputStarsTransaction.inputStarsTransaction(flags: _1!, id: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.InputStarsTransaction.inputStarsTransaction(flags: _1!, id: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -686,8 +718,12 @@ public extension Api {
|
|||
var _1: String?
|
||||
_1 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.InputStickerSet.inputStickerSetDice(emoticon: _1!)
|
||||
if _c1 {
|
||||
return Api.InputStickerSet.inputStickerSetDice(emoticon: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputStickerSetEmojiChannelDefaultStatuses(_ reader: BufferReader) -> InputStickerSet? {
|
||||
return Api.InputStickerSet.inputStickerSetEmojiChannelDefaultStatuses
|
||||
|
|
@ -711,9 +747,12 @@ public extension Api {
|
|||
_2 = reader.readInt64()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.InputStickerSet.inputStickerSetID(id: _1!, accessHash: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.InputStickerSet.inputStickerSetID(id: _1!, accessHash: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputStickerSetPremiumGifts(_ reader: BufferReader) -> InputStickerSet? {
|
||||
return Api.InputStickerSet.inputStickerSetPremiumGifts
|
||||
|
|
@ -722,8 +761,12 @@ public extension Api {
|
|||
var _1: String?
|
||||
_1 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.InputStickerSet.inputStickerSetShortName(shortName: _1!)
|
||||
if _c1 {
|
||||
return Api.InputStickerSet.inputStickerSetShortName(shortName: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputStickerSetTonGifts(_ reader: BufferReader) -> InputStickerSet? {
|
||||
return Api.InputStickerSet.inputStickerSetTonGifts
|
||||
|
|
@ -777,12 +820,12 @@ public extension Api {
|
|||
let _c3 = _3 != nil
|
||||
let _c4 = (Int(_1!) & Int(1 << 0) == 0) || _4 != nil
|
||||
let _c5 = (Int(_1!) & Int(1 << 1) == 0) || _5 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
return Api.InputStickerSetItem.inputStickerSetItem(flags: _1!, document: _2!, emoji: _3!, maskCoords: _4, keywords: _5)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 {
|
||||
return Api.InputStickerSetItem.inputStickerSetItem(flags: _1!, document: _2!, emoji: _3!, maskCoords: _4, keywords: _5)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -824,8 +867,12 @@ public extension Api {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.InputDocument
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.InputStickeredMedia.inputStickeredMediaDocument(id: _1!)
|
||||
if _c1 {
|
||||
return Api.InputStickeredMedia.inputStickeredMediaDocument(id: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputStickeredMediaPhoto(_ reader: BufferReader) -> InputStickeredMedia? {
|
||||
var _1: Api.InputPhoto?
|
||||
|
|
@ -833,8 +880,12 @@ public extension Api {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.InputPhoto
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.InputStickeredMedia.inputStickeredMediaPhoto(id: _1!)
|
||||
if _c1 {
|
||||
return Api.InputStickeredMedia.inputStickeredMediaPhoto(id: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -996,12 +1047,12 @@ public extension Api {
|
|||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
let _c5 = _5 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
return Api.InputStorePaymentPurpose.inputStorePaymentAuthCode(flags: _1!, phoneNumber: _2!, phoneCodeHash: _3!, currency: _4!, amount: _5!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 {
|
||||
return Api.InputStorePaymentPurpose.inputStorePaymentAuthCode(flags: _1!, phoneNumber: _2!, phoneCodeHash: _3!, currency: _4!, amount: _5!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputStorePaymentGiftPremium(_ reader: BufferReader) -> InputStorePaymentPurpose? {
|
||||
var _1: Api.InputUser?
|
||||
|
|
@ -1015,10 +1066,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.InputStorePaymentPurpose.inputStorePaymentGiftPremium(userId: _1!, currency: _2!, amount: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.InputStorePaymentPurpose.inputStorePaymentGiftPremium(userId: _1!, currency: _2!, amount: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputStorePaymentPremiumGiftCode(_ reader: BufferReader) -> InputStorePaymentPurpose? {
|
||||
var _1: Int32?
|
||||
|
|
@ -1045,13 +1098,12 @@ public extension Api {
|
|||
let _c4 = _4 != nil
|
||||
let _c5 = _5 != nil
|
||||
let _c6 = (Int(_1!) & Int(1 << 1) == 0) || _6 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
return Api.InputStorePaymentPurpose.inputStorePaymentPremiumGiftCode(flags: _1!, users: _2!, boostPeer: _3, currency: _4!, amount: _5!, message: _6)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 {
|
||||
return Api.InputStorePaymentPurpose.inputStorePaymentPremiumGiftCode(flags: _1!, users: _2!, boostPeer: _3, currency: _4!, amount: _5!, message: _6)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputStorePaymentPremiumGiveaway(_ reader: BufferReader) -> InputStorePaymentPurpose? {
|
||||
var _1: Int32?
|
||||
|
|
@ -1087,23 +1139,23 @@ public extension Api {
|
|||
let _c7 = _7 != nil
|
||||
let _c8 = _8 != nil
|
||||
let _c9 = _9 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
if !_c9 { return nil }
|
||||
return Api.InputStorePaymentPurpose.inputStorePaymentPremiumGiveaway(flags: _1!, boostPeer: _2!, additionalPeers: _3, countriesIso2: _4, prizeDescription: _5, randomId: _6!, untilDate: _7!, currency: _8!, amount: _9!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 {
|
||||
return Api.InputStorePaymentPurpose.inputStorePaymentPremiumGiveaway(flags: _1!, boostPeer: _2!, additionalPeers: _3, countriesIso2: _4, prizeDescription: _5, randomId: _6!, untilDate: _7!, currency: _8!, amount: _9!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputStorePaymentPremiumSubscription(_ reader: BufferReader) -> InputStorePaymentPurpose? {
|
||||
var _1: Int32?
|
||||
_1 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.InputStorePaymentPurpose.inputStorePaymentPremiumSubscription(flags: _1!)
|
||||
if _c1 {
|
||||
return Api.InputStorePaymentPurpose.inputStorePaymentPremiumSubscription(flags: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputStorePaymentStarsGift(_ reader: BufferReader) -> InputStorePaymentPurpose? {
|
||||
var _1: Api.InputUser?
|
||||
|
|
@ -1120,11 +1172,12 @@ public extension Api {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.InputStorePaymentPurpose.inputStorePaymentStarsGift(userId: _1!, stars: _2!, currency: _3!, amount: _4!)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.InputStorePaymentPurpose.inputStorePaymentStarsGift(userId: _1!, stars: _2!, currency: _3!, amount: _4!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputStorePaymentStarsGiveaway(_ reader: BufferReader) -> InputStorePaymentPurpose? {
|
||||
var _1: Int32?
|
||||
|
|
@ -1166,18 +1219,12 @@ public extension Api {
|
|||
let _c9 = _9 != nil
|
||||
let _c10 = _10 != nil
|
||||
let _c11 = _11 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
if !_c9 { return nil }
|
||||
if !_c10 { return nil }
|
||||
if !_c11 { return nil }
|
||||
return Api.InputStorePaymentPurpose.inputStorePaymentStarsGiveaway(flags: _1!, stars: _2!, boostPeer: _3!, additionalPeers: _4, countriesIso2: _5, prizeDescription: _6, randomId: _7!, untilDate: _8!, currency: _9!, amount: _10!, users: _11!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 && _c10 && _c11 {
|
||||
return Api.InputStorePaymentPurpose.inputStorePaymentStarsGiveaway(flags: _1!, stars: _2!, boostPeer: _3!, additionalPeers: _4, countriesIso2: _5, prizeDescription: _6, randomId: _7!, untilDate: _8!, currency: _9!, amount: _10!, users: _11!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputStorePaymentStarsTopup(_ reader: BufferReader) -> InputStorePaymentPurpose? {
|
||||
var _1: Int32?
|
||||
|
|
@ -1197,12 +1244,12 @@ public extension Api {
|
|||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
let _c5 = (Int(_1!) & Int(1 << 0) == 0) || _5 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
return Api.InputStorePaymentPurpose.inputStorePaymentStarsTopup(flags: _1!, stars: _2!, currency: _3!, amount: _4!, spendPurposePeer: _5)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 {
|
||||
return Api.InputStorePaymentPurpose.inputStorePaymentStarsTopup(flags: _1!, stars: _2!, currency: _3!, amount: _4!, spendPurposePeer: _5)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -37,16 +37,23 @@ public extension Api {
|
|||
_2 = reader.readInt64()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.InputTheme.inputTheme(id: _1!, accessHash: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.InputTheme.inputTheme(id: _1!, accessHash: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputThemeSlug(_ reader: BufferReader) -> InputTheme? {
|
||||
var _1: String?
|
||||
_1 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.InputTheme.inputThemeSlug(slug: _1!)
|
||||
if _c1 {
|
||||
return Api.InputTheme.inputThemeSlug(slug: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -113,14 +120,12 @@ public extension Api {
|
|||
let _c5 = (Int(_1!) & Int(1 << 0) == 0) || _5 != nil
|
||||
let _c6 = (Int(_1!) & Int(1 << 1) == 0) || _6 != nil
|
||||
let _c7 = (Int(_1!) & Int(1 << 1) == 0) || _7 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
return Api.InputThemeSettings.inputThemeSettings(flags: _1!, baseTheme: _2!, accentColor: _3!, outboxAccentColor: _4, messageColors: _5, wallpaper: _6, wallpaperSettings: _7)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 {
|
||||
return Api.InputThemeSettings.inputThemeSettings(flags: _1!, baseTheme: _2!, accentColor: _3!, outboxAccentColor: _4, messageColors: _5, wallpaper: _6, wallpaperSettings: _7)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -184,9 +189,12 @@ public extension Api {
|
|||
_2 = reader.readInt64()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.InputUser.inputUser(userId: _1!, accessHash: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.InputUser.inputUser(userId: _1!, accessHash: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputUserEmpty(_ reader: BufferReader) -> InputUser? {
|
||||
return Api.InputUser.inputUserEmpty
|
||||
|
|
@ -203,10 +211,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.InputUser.inputUserFromMessage(peer: _1!, msgId: _2!, userId: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.InputUser.inputUserFromMessage(peer: _1!, msgId: _2!, userId: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputUserSelf(_ reader: BufferReader) -> InputUser? {
|
||||
return Api.InputUser.inputUserSelf
|
||||
|
|
@ -262,23 +272,34 @@ public extension Api {
|
|||
_2 = reader.readInt64()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.InputWallPaper.inputWallPaper(id: _1!, accessHash: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.InputWallPaper.inputWallPaper(id: _1!, accessHash: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputWallPaperNoFile(_ reader: BufferReader) -> InputWallPaper? {
|
||||
var _1: Int64?
|
||||
_1 = reader.readInt64()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.InputWallPaper.inputWallPaperNoFile(id: _1!)
|
||||
if _c1 {
|
||||
return Api.InputWallPaper.inputWallPaperNoFile(id: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputWallPaperSlug(_ reader: BufferReader) -> InputWallPaper? {
|
||||
var _1: String?
|
||||
_1 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.InputWallPaper.inputWallPaperSlug(slug: _1!)
|
||||
if _c1 {
|
||||
return Api.InputWallPaper.inputWallPaperSlug(slug: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -327,11 +348,12 @@ public extension Api {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.InputWebDocument.inputWebDocument(url: _1!, size: _2!, mimeType: _3!, attributes: _4!)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.InputWebDocument.inputWebDocument(url: _1!, size: _2!, mimeType: _3!, attributes: _4!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -400,11 +422,12 @@ public extension Api {
|
|||
let _c2 = (Int(_1!) & Int(1 << 0) == 0) || _2 != nil
|
||||
let _c3 = (Int(_1!) & Int(1 << 1) == 0) || _3 != nil
|
||||
let _c4 = (Int(_1!) & Int(1 << 1) == 0) || _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.InputWebFileLocation.inputWebFileAudioAlbumThumbLocation(flags: _1!, document: _2, title: _3, performer: _4)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.InputWebFileLocation.inputWebFileAudioAlbumThumbLocation(flags: _1!, document: _2, title: _3, performer: _4)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputWebFileGeoPointLocation(_ reader: BufferReader) -> InputWebFileLocation? {
|
||||
var _1: Api.InputGeoPoint?
|
||||
|
|
@ -427,13 +450,12 @@ public extension Api {
|
|||
let _c4 = _4 != nil
|
||||
let _c5 = _5 != nil
|
||||
let _c6 = _6 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
return Api.InputWebFileLocation.inputWebFileGeoPointLocation(geoPoint: _1!, accessHash: _2!, w: _3!, h: _4!, zoom: _5!, scale: _6!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 {
|
||||
return Api.InputWebFileLocation.inputWebFileGeoPointLocation(geoPoint: _1!, accessHash: _2!, w: _3!, h: _4!, zoom: _5!, scale: _6!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputWebFileLocation(_ reader: BufferReader) -> InputWebFileLocation? {
|
||||
var _1: String?
|
||||
|
|
@ -442,9 +464,12 @@ public extension Api {
|
|||
_2 = reader.readInt64()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.InputWebFileLocation.inputWebFileLocation(url: _1!, accessHash: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.InputWebFileLocation.inputWebFileLocation(url: _1!, accessHash: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -511,14 +536,12 @@ public extension Api {
|
|||
let _c5 = (Int(_1!) & Int(1 << 8) == 0) || _5 != nil
|
||||
let _c6 = (Int(_1!) & Int(1 << 10) == 0) || _6 != nil
|
||||
let _c7 = (Int(_1!) & Int(1 << 11) == 0) || _7 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
return Api.Invoice.invoice(flags: _1!, currency: _2!, prices: _3!, maxTipAmount: _4, suggestedTipAmounts: _5, termsUrl: _6, subscriptionPeriod: _7)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 {
|
||||
return Api.Invoice.invoice(flags: _1!, currency: _2!, prices: _3!, maxTipAmount: _4, suggestedTipAmounts: _5, termsUrl: _6, subscriptionPeriod: _7)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -555,9 +578,12 @@ public extension Api {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.JSONObjectValue.jsonObjectValue(key: _1!, value: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.JSONObjectValue.jsonObjectValue(key: _1!, value: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -643,8 +669,12 @@ public extension Api {
|
|||
_1 = Api.parseVector(reader, elementSignature: 0, elementType: Api.JSONValue.self)
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.JSONValue.jsonArray(value: _1!)
|
||||
if _c1 {
|
||||
return Api.JSONValue.jsonArray(value: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_jsonBool(_ reader: BufferReader) -> JSONValue? {
|
||||
var _1: Api.Bool?
|
||||
|
|
@ -652,8 +682,12 @@ public extension Api {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.Bool
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.JSONValue.jsonBool(value: _1!)
|
||||
if _c1 {
|
||||
return Api.JSONValue.jsonBool(value: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_jsonNull(_ reader: BufferReader) -> JSONValue? {
|
||||
return Api.JSONValue.jsonNull
|
||||
|
|
@ -662,8 +696,12 @@ public extension Api {
|
|||
var _1: Double?
|
||||
_1 = reader.readDouble()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.JSONValue.jsonNumber(value: _1!)
|
||||
if _c1 {
|
||||
return Api.JSONValue.jsonNumber(value: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_jsonObject(_ reader: BufferReader) -> JSONValue? {
|
||||
var _1: [Api.JSONObjectValue]?
|
||||
|
|
@ -671,15 +709,23 @@ public extension Api {
|
|||
_1 = Api.parseVector(reader, elementSignature: 0, elementType: Api.JSONObjectValue.self)
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.JSONValue.jsonObject(value: _1!)
|
||||
if _c1 {
|
||||
return Api.JSONValue.jsonObject(value: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_jsonString(_ reader: BufferReader) -> JSONValue? {
|
||||
var _1: String?
|
||||
_1 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.JSONValue.jsonString(value: _1!)
|
||||
if _c1 {
|
||||
return Api.JSONValue.jsonString(value: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -909,12 +955,12 @@ public extension Api {
|
|||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
let _c5 = _5 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
return Api.KeyboardButton.inputKeyboardButtonRequestPeer(flags: _1!, text: _2!, buttonId: _3!, peerType: _4!, maxQuantity: _5!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 {
|
||||
return Api.KeyboardButton.inputKeyboardButtonRequestPeer(flags: _1!, text: _2!, buttonId: _3!, peerType: _4!, maxQuantity: _5!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputKeyboardButtonUrlAuth(_ reader: BufferReader) -> KeyboardButton? {
|
||||
var _1: Int32?
|
||||
|
|
@ -934,12 +980,12 @@ public extension Api {
|
|||
let _c3 = (Int(_1!) & Int(1 << 1) == 0) || _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
let _c5 = _5 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
return Api.KeyboardButton.inputKeyboardButtonUrlAuth(flags: _1!, text: _2!, fwdText: _3, url: _4!, bot: _5!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 {
|
||||
return Api.KeyboardButton.inputKeyboardButtonUrlAuth(flags: _1!, text: _2!, fwdText: _3, url: _4!, bot: _5!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputKeyboardButtonUserProfile(_ reader: BufferReader) -> KeyboardButton? {
|
||||
var _1: String?
|
||||
|
|
@ -950,23 +996,34 @@ public extension Api {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.KeyboardButton.inputKeyboardButtonUserProfile(text: _1!, userId: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.KeyboardButton.inputKeyboardButtonUserProfile(text: _1!, userId: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_keyboardButton(_ reader: BufferReader) -> KeyboardButton? {
|
||||
var _1: String?
|
||||
_1 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.KeyboardButton.keyboardButton(text: _1!)
|
||||
if _c1 {
|
||||
return Api.KeyboardButton.keyboardButton(text: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_keyboardButtonBuy(_ reader: BufferReader) -> KeyboardButton? {
|
||||
var _1: String?
|
||||
_1 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.KeyboardButton.keyboardButtonBuy(text: _1!)
|
||||
if _c1 {
|
||||
return Api.KeyboardButton.keyboardButtonBuy(text: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_keyboardButtonCallback(_ reader: BufferReader) -> KeyboardButton? {
|
||||
var _1: Int32?
|
||||
|
|
@ -978,10 +1035,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.KeyboardButton.keyboardButtonCallback(flags: _1!, text: _2!, data: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.KeyboardButton.keyboardButtonCallback(flags: _1!, text: _2!, data: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_keyboardButtonCopy(_ reader: BufferReader) -> KeyboardButton? {
|
||||
var _1: String?
|
||||
|
|
@ -990,23 +1049,34 @@ public extension Api {
|
|||
_2 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.KeyboardButton.keyboardButtonCopy(text: _1!, copyText: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.KeyboardButton.keyboardButtonCopy(text: _1!, copyText: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_keyboardButtonGame(_ reader: BufferReader) -> KeyboardButton? {
|
||||
var _1: String?
|
||||
_1 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.KeyboardButton.keyboardButtonGame(text: _1!)
|
||||
if _c1 {
|
||||
return Api.KeyboardButton.keyboardButtonGame(text: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_keyboardButtonRequestGeoLocation(_ reader: BufferReader) -> KeyboardButton? {
|
||||
var _1: String?
|
||||
_1 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.KeyboardButton.keyboardButtonRequestGeoLocation(text: _1!)
|
||||
if _c1 {
|
||||
return Api.KeyboardButton.keyboardButtonRequestGeoLocation(text: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_keyboardButtonRequestPeer(_ reader: BufferReader) -> KeyboardButton? {
|
||||
var _1: String?
|
||||
|
|
@ -1023,18 +1093,23 @@ public extension Api {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.KeyboardButton.keyboardButtonRequestPeer(text: _1!, buttonId: _2!, peerType: _3!, maxQuantity: _4!)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.KeyboardButton.keyboardButtonRequestPeer(text: _1!, buttonId: _2!, peerType: _3!, maxQuantity: _4!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_keyboardButtonRequestPhone(_ reader: BufferReader) -> KeyboardButton? {
|
||||
var _1: String?
|
||||
_1 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.KeyboardButton.keyboardButtonRequestPhone(text: _1!)
|
||||
if _c1 {
|
||||
return Api.KeyboardButton.keyboardButtonRequestPhone(text: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_keyboardButtonRequestPoll(_ reader: BufferReader) -> KeyboardButton? {
|
||||
var _1: Int32?
|
||||
|
|
@ -1048,10 +1123,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = (Int(_1!) & Int(1 << 0) == 0) || _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.KeyboardButton.keyboardButtonRequestPoll(flags: _1!, quiz: _2, text: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.KeyboardButton.keyboardButtonRequestPoll(flags: _1!, quiz: _2, text: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_keyboardButtonSimpleWebView(_ reader: BufferReader) -> KeyboardButton? {
|
||||
var _1: String?
|
||||
|
|
@ -1060,9 +1137,12 @@ public extension Api {
|
|||
_2 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.KeyboardButton.keyboardButtonSimpleWebView(text: _1!, url: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.KeyboardButton.keyboardButtonSimpleWebView(text: _1!, url: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_keyboardButtonSwitchInline(_ reader: BufferReader) -> KeyboardButton? {
|
||||
var _1: Int32?
|
||||
|
|
@ -1079,11 +1159,12 @@ public extension Api {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = (Int(_1!) & Int(1 << 1) == 0) || _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.KeyboardButton.keyboardButtonSwitchInline(flags: _1!, text: _2!, query: _3!, peerTypes: _4)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.KeyboardButton.keyboardButtonSwitchInline(flags: _1!, text: _2!, query: _3!, peerTypes: _4)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_keyboardButtonUrl(_ reader: BufferReader) -> KeyboardButton? {
|
||||
var _1: String?
|
||||
|
|
@ -1092,9 +1173,12 @@ public extension Api {
|
|||
_2 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.KeyboardButton.keyboardButtonUrl(text: _1!, url: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.KeyboardButton.keyboardButtonUrl(text: _1!, url: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_keyboardButtonUrlAuth(_ reader: BufferReader) -> KeyboardButton? {
|
||||
var _1: Int32?
|
||||
|
|
@ -1112,12 +1196,12 @@ public extension Api {
|
|||
let _c3 = (Int(_1!) & Int(1 << 0) == 0) || _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
let _c5 = _5 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
return Api.KeyboardButton.keyboardButtonUrlAuth(flags: _1!, text: _2!, fwdText: _3, url: _4!, buttonId: _5!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 {
|
||||
return Api.KeyboardButton.keyboardButtonUrlAuth(flags: _1!, text: _2!, fwdText: _3, url: _4!, buttonId: _5!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_keyboardButtonUserProfile(_ reader: BufferReader) -> KeyboardButton? {
|
||||
var _1: String?
|
||||
|
|
@ -1126,9 +1210,12 @@ public extension Api {
|
|||
_2 = reader.readInt64()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.KeyboardButton.keyboardButtonUserProfile(text: _1!, userId: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.KeyboardButton.keyboardButtonUserProfile(text: _1!, userId: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_keyboardButtonWebView(_ reader: BufferReader) -> KeyboardButton? {
|
||||
var _1: String?
|
||||
|
|
@ -1137,9 +1224,12 @@ public extension Api {
|
|||
_2 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.KeyboardButton.keyboardButtonWebView(text: _1!, url: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.KeyboardButton.keyboardButtonWebView(text: _1!, url: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -239,10 +239,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.MessageEntity.inputMessageEntityMentionName(offset: _1!, length: _2!, userId: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.MessageEntity.inputMessageEntityMentionName(offset: _1!, length: _2!, userId: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_messageEntityBankCard(_ reader: BufferReader) -> MessageEntity? {
|
||||
var _1: Int32?
|
||||
|
|
@ -251,9 +253,12 @@ public extension Api {
|
|||
_2 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.MessageEntity.messageEntityBankCard(offset: _1!, length: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.MessageEntity.messageEntityBankCard(offset: _1!, length: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_messageEntityBlockquote(_ reader: BufferReader) -> MessageEntity? {
|
||||
var _1: Int32?
|
||||
|
|
@ -265,10 +270,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.MessageEntity.messageEntityBlockquote(flags: _1!, offset: _2!, length: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.MessageEntity.messageEntityBlockquote(flags: _1!, offset: _2!, length: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_messageEntityBold(_ reader: BufferReader) -> MessageEntity? {
|
||||
var _1: Int32?
|
||||
|
|
@ -277,9 +284,12 @@ public extension Api {
|
|||
_2 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.MessageEntity.messageEntityBold(offset: _1!, length: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.MessageEntity.messageEntityBold(offset: _1!, length: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_messageEntityBotCommand(_ reader: BufferReader) -> MessageEntity? {
|
||||
var _1: Int32?
|
||||
|
|
@ -288,9 +298,12 @@ public extension Api {
|
|||
_2 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.MessageEntity.messageEntityBotCommand(offset: _1!, length: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.MessageEntity.messageEntityBotCommand(offset: _1!, length: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_messageEntityCashtag(_ reader: BufferReader) -> MessageEntity? {
|
||||
var _1: Int32?
|
||||
|
|
@ -299,9 +312,12 @@ public extension Api {
|
|||
_2 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.MessageEntity.messageEntityCashtag(offset: _1!, length: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.MessageEntity.messageEntityCashtag(offset: _1!, length: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_messageEntityCode(_ reader: BufferReader) -> MessageEntity? {
|
||||
var _1: Int32?
|
||||
|
|
@ -310,9 +326,12 @@ public extension Api {
|
|||
_2 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.MessageEntity.messageEntityCode(offset: _1!, length: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.MessageEntity.messageEntityCode(offset: _1!, length: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_messageEntityCustomEmoji(_ reader: BufferReader) -> MessageEntity? {
|
||||
var _1: Int32?
|
||||
|
|
@ -324,10 +343,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.MessageEntity.messageEntityCustomEmoji(offset: _1!, length: _2!, documentId: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.MessageEntity.messageEntityCustomEmoji(offset: _1!, length: _2!, documentId: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_messageEntityEmail(_ reader: BufferReader) -> MessageEntity? {
|
||||
var _1: Int32?
|
||||
|
|
@ -336,9 +357,12 @@ public extension Api {
|
|||
_2 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.MessageEntity.messageEntityEmail(offset: _1!, length: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.MessageEntity.messageEntityEmail(offset: _1!, length: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_messageEntityHashtag(_ reader: BufferReader) -> MessageEntity? {
|
||||
var _1: Int32?
|
||||
|
|
@ -347,9 +371,12 @@ public extension Api {
|
|||
_2 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.MessageEntity.messageEntityHashtag(offset: _1!, length: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.MessageEntity.messageEntityHashtag(offset: _1!, length: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_messageEntityItalic(_ reader: BufferReader) -> MessageEntity? {
|
||||
var _1: Int32?
|
||||
|
|
@ -358,9 +385,12 @@ public extension Api {
|
|||
_2 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.MessageEntity.messageEntityItalic(offset: _1!, length: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.MessageEntity.messageEntityItalic(offset: _1!, length: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_messageEntityMention(_ reader: BufferReader) -> MessageEntity? {
|
||||
var _1: Int32?
|
||||
|
|
@ -369,9 +399,12 @@ public extension Api {
|
|||
_2 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.MessageEntity.messageEntityMention(offset: _1!, length: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.MessageEntity.messageEntityMention(offset: _1!, length: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_messageEntityMentionName(_ reader: BufferReader) -> MessageEntity? {
|
||||
var _1: Int32?
|
||||
|
|
@ -383,10 +416,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.MessageEntity.messageEntityMentionName(offset: _1!, length: _2!, userId: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.MessageEntity.messageEntityMentionName(offset: _1!, length: _2!, userId: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_messageEntityPhone(_ reader: BufferReader) -> MessageEntity? {
|
||||
var _1: Int32?
|
||||
|
|
@ -395,9 +430,12 @@ public extension Api {
|
|||
_2 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.MessageEntity.messageEntityPhone(offset: _1!, length: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.MessageEntity.messageEntityPhone(offset: _1!, length: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_messageEntityPre(_ reader: BufferReader) -> MessageEntity? {
|
||||
var _1: Int32?
|
||||
|
|
@ -409,10 +447,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.MessageEntity.messageEntityPre(offset: _1!, length: _2!, language: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.MessageEntity.messageEntityPre(offset: _1!, length: _2!, language: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_messageEntitySpoiler(_ reader: BufferReader) -> MessageEntity? {
|
||||
var _1: Int32?
|
||||
|
|
@ -421,9 +461,12 @@ public extension Api {
|
|||
_2 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.MessageEntity.messageEntitySpoiler(offset: _1!, length: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.MessageEntity.messageEntitySpoiler(offset: _1!, length: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_messageEntityStrike(_ reader: BufferReader) -> MessageEntity? {
|
||||
var _1: Int32?
|
||||
|
|
@ -432,9 +475,12 @@ public extension Api {
|
|||
_2 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.MessageEntity.messageEntityStrike(offset: _1!, length: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.MessageEntity.messageEntityStrike(offset: _1!, length: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_messageEntityTextUrl(_ reader: BufferReader) -> MessageEntity? {
|
||||
var _1: Int32?
|
||||
|
|
@ -446,10 +492,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.MessageEntity.messageEntityTextUrl(offset: _1!, length: _2!, url: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.MessageEntity.messageEntityTextUrl(offset: _1!, length: _2!, url: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_messageEntityUnderline(_ reader: BufferReader) -> MessageEntity? {
|
||||
var _1: Int32?
|
||||
|
|
@ -458,9 +506,12 @@ public extension Api {
|
|||
_2 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.MessageEntity.messageEntityUnderline(offset: _1!, length: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.MessageEntity.messageEntityUnderline(offset: _1!, length: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_messageEntityUnknown(_ reader: BufferReader) -> MessageEntity? {
|
||||
var _1: Int32?
|
||||
|
|
@ -469,9 +520,12 @@ public extension Api {
|
|||
_2 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.MessageEntity.messageEntityUnknown(offset: _1!, length: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.MessageEntity.messageEntityUnknown(offset: _1!, length: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_messageEntityUrl(_ reader: BufferReader) -> MessageEntity? {
|
||||
var _1: Int32?
|
||||
|
|
@ -480,9 +534,12 @@ public extension Api {
|
|||
_2 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.MessageEntity.messageEntityUrl(offset: _1!, length: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.MessageEntity.messageEntityUrl(offset: _1!, length: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -528,8 +585,12 @@ public extension Api {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.MessageMedia
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.MessageExtendedMedia.messageExtendedMedia(media: _1!)
|
||||
if _c1 {
|
||||
return Api.MessageExtendedMedia.messageExtendedMedia(media: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_messageExtendedMediaPreview(_ reader: BufferReader) -> MessageExtendedMedia? {
|
||||
var _1: Int32?
|
||||
|
|
@ -549,12 +610,12 @@ public extension Api {
|
|||
let _c3 = (Int(_1!) & Int(1 << 0) == 0) || _3 != nil
|
||||
let _c4 = (Int(_1!) & Int(1 << 1) == 0) || _4 != nil
|
||||
let _c5 = (Int(_1!) & Int(1 << 2) == 0) || _5 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
return Api.MessageExtendedMedia.messageExtendedMediaPreview(flags: _1!, w: _2, h: _3, thumb: _4, videoDuration: _5)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 {
|
||||
return Api.MessageExtendedMedia.messageExtendedMediaPreview(flags: _1!, w: _2, h: _3, thumb: _4, videoDuration: _5)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -635,19 +696,12 @@ public extension Api {
|
|||
let _c10 = (Int(_1!) & Int(1 << 9) == 0) || _10 != nil
|
||||
let _c11 = (Int(_1!) & Int(1 << 10) == 0) || _11 != nil
|
||||
let _c12 = (Int(_1!) & Int(1 << 6) == 0) || _12 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
if !_c9 { return nil }
|
||||
if !_c10 { return nil }
|
||||
if !_c11 { return nil }
|
||||
if !_c12 { return nil }
|
||||
return Api.MessageFwdHeader.messageFwdHeader(flags: _1!, fromId: _2, fromName: _3, date: _4!, channelPost: _5, postAuthor: _6, savedFromPeer: _7, savedFromMsgId: _8, savedFromId: _9, savedFromName: _10, savedDate: _11, psaType: _12)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 && _c10 && _c11 && _c12 {
|
||||
return Api.MessageFwdHeader.messageFwdHeader(flags: _1!, fromId: _2, fromName: _3, date: _4!, channelPost: _5, postAuthor: _6, savedFromPeer: _7, savedFromMsgId: _8, savedFromId: _9, savedFromName: _10, savedDate: _11, psaType: _12)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -933,12 +987,12 @@ public extension Api {
|
|||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
let _c5 = _5 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
return Api.MessageMedia.messageMediaContact(phoneNumber: _1!, firstName: _2!, lastName: _3!, vcard: _4!, userId: _5!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 {
|
||||
return Api.MessageMedia.messageMediaContact(phoneNumber: _1!, firstName: _2!, lastName: _3!, vcard: _4!, userId: _5!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_messageMediaDice(_ reader: BufferReader) -> MessageMedia? {
|
||||
var _1: Int32?
|
||||
|
|
@ -955,11 +1009,12 @@ public extension Api {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = (Int(_1!) & Int(1 << 0) == 0) || _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.MessageMedia.messageMediaDice(flags: _1!, value: _2!, emoticon: _3!, gameOutcome: _4)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.MessageMedia.messageMediaDice(flags: _1!, value: _2!, emoticon: _3!, gameOutcome: _4)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_messageMediaDocument(_ reader: BufferReader) -> MessageMedia? {
|
||||
var _1: Int32?
|
||||
|
|
@ -986,13 +1041,12 @@ public extension Api {
|
|||
let _c4 = (Int(_1!) & Int(1 << 9) == 0) || _4 != nil
|
||||
let _c5 = (Int(_1!) & Int(1 << 10) == 0) || _5 != nil
|
||||
let _c6 = (Int(_1!) & Int(1 << 2) == 0) || _6 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
return Api.MessageMedia.messageMediaDocument(flags: _1!, document: _2, altDocuments: _3, videoCover: _4, videoTimestamp: _5, ttlSeconds: _6)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 {
|
||||
return Api.MessageMedia.messageMediaDocument(flags: _1!, document: _2, altDocuments: _3, videoCover: _4, videoTimestamp: _5, ttlSeconds: _6)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_messageMediaEmpty(_ reader: BufferReader) -> MessageMedia? {
|
||||
return Api.MessageMedia.messageMediaEmpty
|
||||
|
|
@ -1003,8 +1057,12 @@ public extension Api {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.Game
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.MessageMedia.messageMediaGame(game: _1!)
|
||||
if _c1 {
|
||||
return Api.MessageMedia.messageMediaGame(game: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_messageMediaGeo(_ reader: BufferReader) -> MessageMedia? {
|
||||
var _1: Api.GeoPoint?
|
||||
|
|
@ -1012,8 +1070,12 @@ public extension Api {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.GeoPoint
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.MessageMedia.messageMediaGeo(geo: _1!)
|
||||
if _c1 {
|
||||
return Api.MessageMedia.messageMediaGeo(geo: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_messageMediaGeoLive(_ reader: BufferReader) -> MessageMedia? {
|
||||
var _1: Int32?
|
||||
|
|
@ -1033,12 +1095,12 @@ public extension Api {
|
|||
let _c3 = (Int(_1!) & Int(1 << 0) == 0) || _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
let _c5 = (Int(_1!) & Int(1 << 1) == 0) || _5 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
return Api.MessageMedia.messageMediaGeoLive(flags: _1!, geo: _2!, heading: _3, period: _4!, proximityNotificationRadius: _5)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 {
|
||||
return Api.MessageMedia.messageMediaGeoLive(flags: _1!, geo: _2!, heading: _3, period: _4!, proximityNotificationRadius: _5)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_messageMediaGiveaway(_ reader: BufferReader) -> MessageMedia? {
|
||||
var _1: Int32?
|
||||
|
|
@ -1069,15 +1131,12 @@ public extension Api {
|
|||
let _c6 = (Int(_1!) & Int(1 << 4) == 0) || _6 != nil
|
||||
let _c7 = (Int(_1!) & Int(1 << 5) == 0) || _7 != nil
|
||||
let _c8 = _8 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
return Api.MessageMedia.messageMediaGiveaway(flags: _1!, channels: _2!, countriesIso2: _3, prizeDescription: _4, quantity: _5!, months: _6, stars: _7, untilDate: _8!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 {
|
||||
return Api.MessageMedia.messageMediaGiveaway(flags: _1!, channels: _2!, countriesIso2: _3, prizeDescription: _4, quantity: _5!, months: _6, stars: _7, untilDate: _8!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_messageMediaGiveawayResults(_ reader: BufferReader) -> MessageMedia? {
|
||||
var _1: Int32?
|
||||
|
|
@ -1115,18 +1174,12 @@ public extension Api {
|
|||
let _c9 = (Int(_1!) & Int(1 << 5) == 0) || _9 != nil
|
||||
let _c10 = (Int(_1!) & Int(1 << 1) == 0) || _10 != nil
|
||||
let _c11 = _11 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
if !_c9 { return nil }
|
||||
if !_c10 { return nil }
|
||||
if !_c11 { return nil }
|
||||
return Api.MessageMedia.messageMediaGiveawayResults(flags: _1!, channelId: _2!, additionalPeersCount: _3, launchMsgId: _4!, winnersCount: _5!, unclaimedCount: _6!, winners: _7!, months: _8, stars: _9, prizeDescription: _10, untilDate: _11!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 && _c10 && _c11 {
|
||||
return Api.MessageMedia.messageMediaGiveawayResults(flags: _1!, channelId: _2!, additionalPeersCount: _3, launchMsgId: _4!, winnersCount: _5!, unclaimedCount: _6!, winners: _7!, months: _8, stars: _9, prizeDescription: _10, untilDate: _11!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_messageMediaInvoice(_ reader: BufferReader) -> MessageMedia? {
|
||||
var _1: Int32?
|
||||
|
|
@ -1160,16 +1213,12 @@ public extension Api {
|
|||
let _c7 = _7 != nil
|
||||
let _c8 = _8 != nil
|
||||
let _c9 = (Int(_1!) & Int(1 << 4) == 0) || _9 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
if !_c9 { return nil }
|
||||
return Api.MessageMedia.messageMediaInvoice(flags: _1!, title: _2!, description: _3!, photo: _4, receiptMsgId: _5, currency: _6!, totalAmount: _7!, startParam: _8!, extendedMedia: _9)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 {
|
||||
return Api.MessageMedia.messageMediaInvoice(flags: _1!, title: _2!, description: _3!, photo: _4, receiptMsgId: _5, currency: _6!, totalAmount: _7!, startParam: _8!, extendedMedia: _9)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_messageMediaPaidMedia(_ reader: BufferReader) -> MessageMedia? {
|
||||
var _1: Int64?
|
||||
|
|
@ -1180,9 +1229,12 @@ public extension Api {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.MessageMedia.messageMediaPaidMedia(starsAmount: _1!, extendedMedia: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.MessageMedia.messageMediaPaidMedia(starsAmount: _1!, extendedMedia: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_messageMediaPhoto(_ reader: BufferReader) -> MessageMedia? {
|
||||
var _1: Int32?
|
||||
|
|
@ -1196,10 +1248,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = (Int(_1!) & Int(1 << 0) == 0) || _2 != nil
|
||||
let _c3 = (Int(_1!) & Int(1 << 2) == 0) || _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.MessageMedia.messageMediaPhoto(flags: _1!, photo: _2, ttlSeconds: _3)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.MessageMedia.messageMediaPhoto(flags: _1!, photo: _2, ttlSeconds: _3)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_messageMediaPoll(_ reader: BufferReader) -> MessageMedia? {
|
||||
var _1: Api.Poll?
|
||||
|
|
@ -1212,9 +1266,12 @@ public extension Api {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.MessageMedia.messageMediaPoll(poll: _1!, results: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.MessageMedia.messageMediaPoll(poll: _1!, results: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_messageMediaStory(_ reader: BufferReader) -> MessageMedia? {
|
||||
var _1: Int32?
|
||||
|
|
@ -1233,11 +1290,12 @@ public extension Api {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = (Int(_1!) & Int(1 << 0) == 0) || _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.MessageMedia.messageMediaStory(flags: _1!, peer: _2!, id: _3!, story: _4)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.MessageMedia.messageMediaStory(flags: _1!, peer: _2!, id: _3!, story: _4)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_messageMediaToDo(_ reader: BufferReader) -> MessageMedia? {
|
||||
var _1: Int32?
|
||||
|
|
@ -1253,10 +1311,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = (Int(_1!) & Int(1 << 0) == 0) || _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.MessageMedia.messageMediaToDo(flags: _1!, todo: _2!, completions: _3)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.MessageMedia.messageMediaToDo(flags: _1!, todo: _2!, completions: _3)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_messageMediaUnsupported(_ reader: BufferReader) -> MessageMedia? {
|
||||
return Api.MessageMedia.messageMediaUnsupported
|
||||
|
|
@ -1282,13 +1342,12 @@ public extension Api {
|
|||
let _c4 = _4 != nil
|
||||
let _c5 = _5 != nil
|
||||
let _c6 = _6 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
return Api.MessageMedia.messageMediaVenue(geo: _1!, title: _2!, address: _3!, provider: _4!, venueId: _5!, venueType: _6!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 {
|
||||
return Api.MessageMedia.messageMediaVenue(geo: _1!, title: _2!, address: _3!, provider: _4!, venueId: _5!, venueType: _6!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_messageMediaVideoStream(_ reader: BufferReader) -> MessageMedia? {
|
||||
var _1: Int32?
|
||||
|
|
@ -1299,9 +1358,12 @@ public extension Api {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.MessageMedia.messageMediaVideoStream(flags: _1!, call: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.MessageMedia.messageMediaVideoStream(flags: _1!, call: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_messageMediaWebPage(_ reader: BufferReader) -> MessageMedia? {
|
||||
var _1: Int32?
|
||||
|
|
@ -1312,9 +1374,12 @@ public extension Api {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.MessageMedia.messageMediaWebPage(flags: _1!, webpage: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.MessageMedia.messageMediaWebPage(flags: _1!, webpage: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -40,11 +40,12 @@ public extension Api {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.MessagePeerReaction.messagePeerReaction(flags: _1!, peerId: _2!, date: _3!, reaction: _4!)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.MessagePeerReaction.messagePeerReaction(flags: _1!, peerId: _2!, date: _3!, reaction: _4!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -110,10 +111,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.MessagePeerVote.messagePeerVote(peer: _1!, option: _2!, date: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.MessagePeerVote.messagePeerVote(peer: _1!, option: _2!, date: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_messagePeerVoteInputOption(_ reader: BufferReader) -> MessagePeerVote? {
|
||||
var _1: Api.Peer?
|
||||
|
|
@ -124,9 +127,12 @@ public extension Api {
|
|||
_2 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.MessagePeerVote.messagePeerVoteInputOption(peer: _1!, date: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.MessagePeerVote.messagePeerVoteInputOption(peer: _1!, date: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_messagePeerVoteMultiple(_ reader: BufferReader) -> MessagePeerVote? {
|
||||
var _1: Api.Peer?
|
||||
|
|
@ -142,10 +148,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.MessagePeerVote.messagePeerVoteMultiple(peer: _1!, options: _2!, date: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.MessagePeerVote.messagePeerVoteMultiple(peer: _1!, options: _2!, date: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -180,9 +188,12 @@ public extension Api {
|
|||
_2 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.MessageRange.messageRange(minId: _1!, maxId: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.MessageRange.messageRange(minId: _1!, maxId: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -243,11 +254,12 @@ public extension Api {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = (Int(_1!) & Int(1 << 1) == 0) || _3 != nil
|
||||
let _c4 = (Int(_1!) & Int(1 << 4) == 0) || _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.MessageReactions.messageReactions(flags: _1!, results: _2!, recentReactions: _3, topReactors: _4)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.MessageReactions.messageReactions(flags: _1!, results: _2!, recentReactions: _3, topReactors: _4)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -288,10 +300,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = (Int(_1!) & Int(1 << 3) == 0) || _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.MessageReactor.messageReactor(flags: _1!, peerId: _2, count: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.MessageReactor.messageReactor(flags: _1!, peerId: _2, count: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -352,14 +366,12 @@ public extension Api {
|
|||
let _c5 = (Int(_1!) & Int(1 << 0) == 0) || _5 != nil
|
||||
let _c6 = (Int(_1!) & Int(1 << 2) == 0) || _6 != nil
|
||||
let _c7 = (Int(_1!) & Int(1 << 3) == 0) || _7 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
return Api.MessageReplies.messageReplies(flags: _1!, replies: _2!, repliesPts: _3!, recentRepliers: _4, channelId: _5, maxId: _6, readMaxId: _7)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 {
|
||||
return Api.MessageReplies.messageReplies(flags: _1!, replies: _2!, repliesPts: _3!, recentRepliers: _4, channelId: _5, maxId: _6, readMaxId: _7)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -448,17 +460,12 @@ public extension Api {
|
|||
let _c8 = (Int(_1!) & Int(1 << 7) == 0) || _8 != nil
|
||||
let _c9 = (Int(_1!) & Int(1 << 10) == 0) || _9 != nil
|
||||
let _c10 = (Int(_1!) & Int(1 << 11) == 0) || _10 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
if !_c9 { return nil }
|
||||
if !_c10 { return nil }
|
||||
return Api.MessageReplyHeader.messageReplyHeader(flags: _1!, replyToMsgId: _2, replyToPeerId: _3, replyFrom: _4, replyMedia: _5, replyToTopId: _6, quoteText: _7, quoteEntities: _8, quoteOffset: _9, todoItemId: _10)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 && _c10 {
|
||||
return Api.MessageReplyHeader.messageReplyHeader(flags: _1!, replyToMsgId: _2, replyToPeerId: _3, replyFrom: _4, replyMedia: _5, replyToTopId: _6, quoteText: _7, quoteEntities: _8, quoteOffset: _9, todoItemId: _10)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_messageReplyStoryHeader(_ reader: BufferReader) -> MessageReplyHeader? {
|
||||
var _1: Api.Peer?
|
||||
|
|
@ -469,9 +476,12 @@ public extension Api {
|
|||
_2 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.MessageReplyHeader.messageReplyStoryHeader(peer: _1!, storyId: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.MessageReplyHeader.messageReplyStoryHeader(peer: _1!, storyId: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -506,9 +516,12 @@ public extension Api {
|
|||
_2 = parseBytes(reader)
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.MessageReportOption.messageReportOption(text: _1!, option: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.MessageReportOption.messageReportOption(text: _1!, option: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -553,11 +566,12 @@ public extension Api {
|
|||
let _c2 = (Int(_1!) & Int(1 << 0) == 0) || _2 != nil
|
||||
let _c3 = (Int(_1!) & Int(1 << 1) == 0) || _3 != nil
|
||||
let _c4 = (Int(_1!) & Int(1 << 2) == 0) || _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.MessageViews.messageViews(flags: _1!, views: _2, forwards: _3, replies: _4)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.MessageViews.messageViews(flags: _1!, views: _2, forwards: _3, replies: _4)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -756,8 +770,12 @@ public extension Api {
|
|||
var _1: Int32?
|
||||
_1 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.MessagesFilter.inputMessagesFilterPhoneCalls(flags: _1!)
|
||||
if _c1 {
|
||||
return Api.MessagesFilter.inputMessagesFilterPhoneCalls(flags: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputMessagesFilterPhotoVideo(_ reader: BufferReader) -> MessagesFilter? {
|
||||
return Api.MessagesFilter.inputMessagesFilterPhotoVideo
|
||||
|
|
@ -816,9 +834,12 @@ public extension Api {
|
|||
_2 = reader.readInt64()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.MissingInvitee.missingInvitee(flags: _1!, userId: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.MissingInvitee.missingInvitee(flags: _1!, userId: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -871,13 +892,12 @@ public extension Api {
|
|||
let _c4 = _4 != nil
|
||||
let _c5 = _5 != nil
|
||||
let _c6 = (Int(_1!) & Int(1 << 1) == 0) || _6 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
return Api.MyBoost.myBoost(flags: _1!, slot: _2!, peer: _3, date: _4!, expires: _5!, cooldownUntilDate: _6)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 {
|
||||
return Api.MyBoost.myBoost(flags: _1!, slot: _2!, peer: _3, date: _4!, expires: _5!, cooldownUntilDate: _6)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -916,10 +936,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.NearestDc.nearestDc(country: _1!, thisDc: _2!, nearestDc: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.NearestDc.nearestDc(country: _1!, thisDc: _2!, nearestDc: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -58,9 +58,12 @@ public extension Api {
|
|||
_2 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.NotificationSound.notificationSoundLocal(title: _1!, data: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.NotificationSound.notificationSoundLocal(title: _1!, data: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_notificationSoundNone(_ reader: BufferReader) -> NotificationSound? {
|
||||
return Api.NotificationSound.notificationSoundNone
|
||||
|
|
@ -69,8 +72,12 @@ public extension Api {
|
|||
var _1: Int64?
|
||||
_1 = reader.readInt64()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.NotificationSound.notificationSoundRingtone(id: _1!)
|
||||
if _c1 {
|
||||
return Api.NotificationSound.notificationSoundRingtone(id: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -149,9 +156,12 @@ public extension Api {
|
|||
_2 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.NotifyPeer.notifyForumTopic(peer: _1!, topMsgId: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.NotifyPeer.notifyForumTopic(peer: _1!, topMsgId: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_notifyPeer(_ reader: BufferReader) -> NotifyPeer? {
|
||||
var _1: Api.Peer?
|
||||
|
|
@ -159,8 +169,12 @@ public extension Api {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.Peer
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.NotifyPeer.notifyPeer(peer: _1!)
|
||||
if _c1 {
|
||||
return Api.NotifyPeer.notifyPeer(peer: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_notifyUsers(_ reader: BufferReader) -> NotifyPeer? {
|
||||
return Api.NotifyPeer.notifyUsers
|
||||
|
|
@ -194,8 +208,12 @@ public extension Api {
|
|||
var _1: Int32?
|
||||
_1 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.OutboxReadDate.outboxReadDate(date: _1!)
|
||||
if _c1 {
|
||||
return Api.OutboxReadDate.outboxReadDate(date: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -264,13 +282,12 @@ public extension Api {
|
|||
let _c4 = _4 != nil
|
||||
let _c5 = _5 != nil
|
||||
let _c6 = (Int(_1!) & Int(1 << 3) == 0) || _6 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
return Api.Page.page(flags: _1!, url: _2!, blocks: _3!, photos: _4!, documents: _5!, views: _6)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 {
|
||||
return Api.Page.page(flags: _1!, url: _2!, blocks: _3!, photos: _4!, documents: _5!, views: _6)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -619,8 +636,12 @@ public extension Api {
|
|||
var _1: String?
|
||||
_1 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.PageBlock.pageBlockAnchor(name: _1!)
|
||||
if _c1 {
|
||||
return Api.PageBlock.pageBlockAnchor(name: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_pageBlockAudio(_ reader: BufferReader) -> PageBlock? {
|
||||
var _1: Int64?
|
||||
|
|
@ -631,9 +652,12 @@ public extension Api {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.PageBlock.pageBlockAudio(audioId: _1!, caption: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.PageBlock.pageBlockAudio(audioId: _1!, caption: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_pageBlockAuthorDate(_ reader: BufferReader) -> PageBlock? {
|
||||
var _1: Api.RichText?
|
||||
|
|
@ -644,9 +668,12 @@ public extension Api {
|
|||
_2 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.PageBlock.pageBlockAuthorDate(author: _1!, publishedDate: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.PageBlock.pageBlockAuthorDate(author: _1!, publishedDate: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_pageBlockBlockquote(_ reader: BufferReader) -> PageBlock? {
|
||||
var _1: Api.RichText?
|
||||
|
|
@ -659,9 +686,12 @@ public extension Api {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.PageBlock.pageBlockBlockquote(text: _1!, caption: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.PageBlock.pageBlockBlockquote(text: _1!, caption: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_pageBlockChannel(_ reader: BufferReader) -> PageBlock? {
|
||||
var _1: Api.Chat?
|
||||
|
|
@ -669,8 +699,12 @@ public extension Api {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.Chat
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.PageBlock.pageBlockChannel(channel: _1!)
|
||||
if _c1 {
|
||||
return Api.PageBlock.pageBlockChannel(channel: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_pageBlockCollage(_ reader: BufferReader) -> PageBlock? {
|
||||
var _1: [Api.PageBlock]?
|
||||
|
|
@ -683,9 +717,12 @@ public extension Api {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.PageBlock.pageBlockCollage(items: _1!, caption: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.PageBlock.pageBlockCollage(items: _1!, caption: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_pageBlockCover(_ reader: BufferReader) -> PageBlock? {
|
||||
var _1: Api.PageBlock?
|
||||
|
|
@ -693,8 +730,12 @@ public extension Api {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.PageBlock
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.PageBlock.pageBlockCover(cover: _1!)
|
||||
if _c1 {
|
||||
return Api.PageBlock.pageBlockCover(cover: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_pageBlockDetails(_ reader: BufferReader) -> PageBlock? {
|
||||
var _1: Int32?
|
||||
|
|
@ -710,10 +751,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.PageBlock.pageBlockDetails(flags: _1!, blocks: _2!, title: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.PageBlock.pageBlockDetails(flags: _1!, blocks: _2!, title: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_pageBlockDivider(_ reader: BufferReader) -> PageBlock? {
|
||||
return Api.PageBlock.pageBlockDivider
|
||||
|
|
@ -742,14 +785,12 @@ public extension Api {
|
|||
let _c5 = (Int(_1!) & Int(1 << 5) == 0) || _5 != nil
|
||||
let _c6 = (Int(_1!) & Int(1 << 5) == 0) || _6 != nil
|
||||
let _c7 = _7 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
return Api.PageBlock.pageBlockEmbed(flags: _1!, url: _2, html: _3, posterPhotoId: _4, w: _5, h: _6, caption: _7!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 {
|
||||
return Api.PageBlock.pageBlockEmbed(flags: _1!, url: _2, html: _3, posterPhotoId: _4, w: _5, h: _6, caption: _7!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_pageBlockEmbedPost(_ reader: BufferReader) -> PageBlock? {
|
||||
var _1: String?
|
||||
|
|
@ -777,14 +818,12 @@ public extension Api {
|
|||
let _c5 = _5 != nil
|
||||
let _c6 = _6 != nil
|
||||
let _c7 = _7 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
return Api.PageBlock.pageBlockEmbedPost(url: _1!, webpageId: _2!, authorPhotoId: _3!, author: _4!, date: _5!, blocks: _6!, caption: _7!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 {
|
||||
return Api.PageBlock.pageBlockEmbedPost(url: _1!, webpageId: _2!, authorPhotoId: _3!, author: _4!, date: _5!, blocks: _6!, caption: _7!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_pageBlockFooter(_ reader: BufferReader) -> PageBlock? {
|
||||
var _1: Api.RichText?
|
||||
|
|
@ -792,8 +831,12 @@ public extension Api {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.RichText
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.PageBlock.pageBlockFooter(text: _1!)
|
||||
if _c1 {
|
||||
return Api.PageBlock.pageBlockFooter(text: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_pageBlockHeader(_ reader: BufferReader) -> PageBlock? {
|
||||
var _1: Api.RichText?
|
||||
|
|
@ -801,8 +844,12 @@ public extension Api {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.RichText
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.PageBlock.pageBlockHeader(text: _1!)
|
||||
if _c1 {
|
||||
return Api.PageBlock.pageBlockHeader(text: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_pageBlockKicker(_ reader: BufferReader) -> PageBlock? {
|
||||
var _1: Api.RichText?
|
||||
|
|
@ -810,8 +857,12 @@ public extension Api {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.RichText
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.PageBlock.pageBlockKicker(text: _1!)
|
||||
if _c1 {
|
||||
return Api.PageBlock.pageBlockKicker(text: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_pageBlockList(_ reader: BufferReader) -> PageBlock? {
|
||||
var _1: [Api.PageListItem]?
|
||||
|
|
@ -819,8 +870,12 @@ public extension Api {
|
|||
_1 = Api.parseVector(reader, elementSignature: 0, elementType: Api.PageListItem.self)
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.PageBlock.pageBlockList(items: _1!)
|
||||
if _c1 {
|
||||
return Api.PageBlock.pageBlockList(items: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_pageBlockMap(_ reader: BufferReader) -> PageBlock? {
|
||||
var _1: Api.GeoPoint?
|
||||
|
|
@ -842,12 +897,12 @@ public extension Api {
|
|||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
let _c5 = _5 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
return Api.PageBlock.pageBlockMap(geo: _1!, zoom: _2!, w: _3!, h: _4!, caption: _5!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 {
|
||||
return Api.PageBlock.pageBlockMap(geo: _1!, zoom: _2!, w: _3!, h: _4!, caption: _5!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_pageBlockOrderedList(_ reader: BufferReader) -> PageBlock? {
|
||||
var _1: [Api.PageListOrderedItem]?
|
||||
|
|
@ -855,8 +910,12 @@ public extension Api {
|
|||
_1 = Api.parseVector(reader, elementSignature: 0, elementType: Api.PageListOrderedItem.self)
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.PageBlock.pageBlockOrderedList(items: _1!)
|
||||
if _c1 {
|
||||
return Api.PageBlock.pageBlockOrderedList(items: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_pageBlockParagraph(_ reader: BufferReader) -> PageBlock? {
|
||||
var _1: Api.RichText?
|
||||
|
|
@ -864,8 +923,12 @@ public extension Api {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.RichText
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.PageBlock.pageBlockParagraph(text: _1!)
|
||||
if _c1 {
|
||||
return Api.PageBlock.pageBlockParagraph(text: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_pageBlockPhoto(_ reader: BufferReader) -> PageBlock? {
|
||||
var _1: Int32?
|
||||
|
|
@ -885,12 +948,12 @@ public extension Api {
|
|||
let _c3 = _3 != nil
|
||||
let _c4 = (Int(_1!) & Int(1 << 0) == 0) || _4 != nil
|
||||
let _c5 = (Int(_1!) & Int(1 << 0) == 0) || _5 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
return Api.PageBlock.pageBlockPhoto(flags: _1!, photoId: _2!, caption: _3!, url: _4, webpageId: _5)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 {
|
||||
return Api.PageBlock.pageBlockPhoto(flags: _1!, photoId: _2!, caption: _3!, url: _4, webpageId: _5)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_pageBlockPreformatted(_ reader: BufferReader) -> PageBlock? {
|
||||
var _1: Api.RichText?
|
||||
|
|
@ -901,9 +964,12 @@ public extension Api {
|
|||
_2 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.PageBlock.pageBlockPreformatted(text: _1!, language: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.PageBlock.pageBlockPreformatted(text: _1!, language: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_pageBlockPullquote(_ reader: BufferReader) -> PageBlock? {
|
||||
var _1: Api.RichText?
|
||||
|
|
@ -916,9 +982,12 @@ public extension Api {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.PageBlock.pageBlockPullquote(text: _1!, caption: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.PageBlock.pageBlockPullquote(text: _1!, caption: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_pageBlockRelatedArticles(_ reader: BufferReader) -> PageBlock? {
|
||||
var _1: Api.RichText?
|
||||
|
|
@ -931,9 +1000,12 @@ public extension Api {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.PageBlock.pageBlockRelatedArticles(title: _1!, articles: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.PageBlock.pageBlockRelatedArticles(title: _1!, articles: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_pageBlockSlideshow(_ reader: BufferReader) -> PageBlock? {
|
||||
var _1: [Api.PageBlock]?
|
||||
|
|
@ -946,9 +1018,12 @@ public extension Api {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.PageBlock.pageBlockSlideshow(items: _1!, caption: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.PageBlock.pageBlockSlideshow(items: _1!, caption: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_pageBlockSubheader(_ reader: BufferReader) -> PageBlock? {
|
||||
var _1: Api.RichText?
|
||||
|
|
@ -956,8 +1031,12 @@ public extension Api {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.RichText
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.PageBlock.pageBlockSubheader(text: _1!)
|
||||
if _c1 {
|
||||
return Api.PageBlock.pageBlockSubheader(text: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_pageBlockSubtitle(_ reader: BufferReader) -> PageBlock? {
|
||||
var _1: Api.RichText?
|
||||
|
|
@ -965,8 +1044,12 @@ public extension Api {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.RichText
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.PageBlock.pageBlockSubtitle(text: _1!)
|
||||
if _c1 {
|
||||
return Api.PageBlock.pageBlockSubtitle(text: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_pageBlockTable(_ reader: BufferReader) -> PageBlock? {
|
||||
var _1: Int32?
|
||||
|
|
@ -982,10 +1065,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.PageBlock.pageBlockTable(flags: _1!, title: _2!, rows: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.PageBlock.pageBlockTable(flags: _1!, title: _2!, rows: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_pageBlockTitle(_ reader: BufferReader) -> PageBlock? {
|
||||
var _1: Api.RichText?
|
||||
|
|
@ -993,8 +1078,12 @@ public extension Api {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.RichText
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.PageBlock.pageBlockTitle(text: _1!)
|
||||
if _c1 {
|
||||
return Api.PageBlock.pageBlockTitle(text: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_pageBlockUnsupported(_ reader: BufferReader) -> PageBlock? {
|
||||
return Api.PageBlock.pageBlockUnsupported
|
||||
|
|
@ -1011,10 +1100,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.PageBlock.pageBlockVideo(flags: _1!, videoId: _2!, caption: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.PageBlock.pageBlockVideo(flags: _1!, videoId: _2!, caption: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,9 +32,12 @@ public extension Api {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.PageCaption.pageCaption(text: _1!, credit: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.PageCaption.pageCaption(text: _1!, credit: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -80,8 +83,12 @@ public extension Api {
|
|||
_1 = Api.parseVector(reader, elementSignature: 0, elementType: Api.PageBlock.self)
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.PageListItem.pageListItemBlocks(blocks: _1!)
|
||||
if _c1 {
|
||||
return Api.PageListItem.pageListItemBlocks(blocks: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_pageListItemText(_ reader: BufferReader) -> PageListItem? {
|
||||
var _1: Api.RichText?
|
||||
|
|
@ -89,8 +96,12 @@ public extension Api {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.RichText
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.PageListItem.pageListItemText(text: _1!)
|
||||
if _c1 {
|
||||
return Api.PageListItem.pageListItemText(text: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -141,9 +152,12 @@ public extension Api {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.PageListOrderedItem.pageListOrderedItemBlocks(num: _1!, blocks: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.PageListOrderedItem.pageListOrderedItemBlocks(num: _1!, blocks: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_pageListOrderedItemText(_ reader: BufferReader) -> PageListOrderedItem? {
|
||||
var _1: String?
|
||||
|
|
@ -154,9 +168,12 @@ public extension Api {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.PageListOrderedItem.pageListOrderedItemText(num: _1!, text: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.PageListOrderedItem.pageListOrderedItemText(num: _1!, text: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -215,15 +232,12 @@ public extension Api {
|
|||
let _c6 = (Int(_1!) & Int(1 << 2) == 0) || _6 != nil
|
||||
let _c7 = (Int(_1!) & Int(1 << 3) == 0) || _7 != nil
|
||||
let _c8 = (Int(_1!) & Int(1 << 4) == 0) || _8 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
return Api.PageRelatedArticle.pageRelatedArticle(flags: _1!, url: _2!, webpageId: _3!, title: _4, description: _5, photoId: _6, author: _7, publishedDate: _8)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 {
|
||||
return Api.PageRelatedArticle.pageRelatedArticle(flags: _1!, url: _2!, webpageId: _3!, title: _4, description: _5, photoId: _6, author: _7, publishedDate: _8)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -268,11 +282,12 @@ public extension Api {
|
|||
let _c2 = (Int(_1!) & Int(1 << 7) == 0) || _2 != nil
|
||||
let _c3 = (Int(_1!) & Int(1 << 1) == 0) || _3 != nil
|
||||
let _c4 = (Int(_1!) & Int(1 << 2) == 0) || _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.PageTableCell.pageTableCell(flags: _1!, text: _2, colspan: _3, rowspan: _4)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.PageTableCell.pageTableCell(flags: _1!, text: _2, colspan: _3, rowspan: _4)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -309,8 +324,12 @@ public extension Api {
|
|||
_1 = Api.parseVector(reader, elementSignature: 0, elementType: Api.PageTableCell.self)
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.PageTableRow.pageTableRow(cells: _1!)
|
||||
if _c1 {
|
||||
return Api.PageTableRow.pageTableRow(cells: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -367,8 +386,12 @@ public extension Api {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.InputPeer
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.PaidReactionPrivacy.paidReactionPrivacyPeer(peer: _1!)
|
||||
if _c1 {
|
||||
return Api.PaidReactionPrivacy.paidReactionPrivacyPeer(peer: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -419,13 +442,12 @@ public extension Api {
|
|||
let _c4 = _4 != nil
|
||||
let _c5 = (Int(_1!) & Int(1 << 0) == 0) || _5 != nil
|
||||
let _c6 = (Int(_1!) & Int(1 << 1) == 0) || _6 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
return Api.Passkey.passkey(flags: _1!, id: _2!, name: _3!, date: _4!, softwareEmojiId: _5, lastUsageDate: _6)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 {
|
||||
return Api.Passkey.passkey(flags: _1!, id: _2!, name: _3!, date: _4!, softwareEmojiId: _5, lastUsageDate: _6)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -477,11 +499,12 @@ public extension Api {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.PasswordKdfAlgo.passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow(salt1: _1!, salt2: _2!, g: _3!, p: _4!)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.PasswordKdfAlgo.passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow(salt1: _1!, salt2: _2!, g: _3!, p: _4!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_passwordKdfAlgoUnknown(_ reader: BufferReader) -> PasswordKdfAlgo? {
|
||||
return Api.PasswordKdfAlgo.passwordKdfAlgoUnknown
|
||||
|
|
@ -519,9 +542,12 @@ public extension Api {
|
|||
_2 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.PaymentCharge.paymentCharge(id: _1!, providerChargeId: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.PaymentCharge.paymentCharge(id: _1!, providerChargeId: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -556,9 +582,12 @@ public extension Api {
|
|||
_2 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.PaymentFormMethod.paymentFormMethod(url: _1!, title: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.PaymentFormMethod.paymentFormMethod(url: _1!, title: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -607,12 +636,12 @@ public extension Api {
|
|||
let _c3 = (Int(_1!) & Int(1 << 1) == 0) || _3 != nil
|
||||
let _c4 = (Int(_1!) & Int(1 << 2) == 0) || _4 != nil
|
||||
let _c5 = (Int(_1!) & Int(1 << 3) == 0) || _5 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
return Api.PaymentRequestedInfo.paymentRequestedInfo(flags: _1!, name: _2, phone: _3, email: _4, shippingAddress: _5)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 {
|
||||
return Api.PaymentRequestedInfo.paymentRequestedInfo(flags: _1!, name: _2, phone: _3, email: _4, shippingAddress: _5)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -647,9 +676,12 @@ public extension Api {
|
|||
_2 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.PaymentSavedCredentials.paymentSavedCredentialsCard(id: _1!, title: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.PaymentSavedCredentials.paymentSavedCredentialsCard(id: _1!, title: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -698,22 +730,34 @@ public extension Api {
|
|||
var _1: Int64?
|
||||
_1 = reader.readInt64()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.Peer.peerChannel(channelId: _1!)
|
||||
if _c1 {
|
||||
return Api.Peer.peerChannel(channelId: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_peerChat(_ reader: BufferReader) -> Peer? {
|
||||
var _1: Int64?
|
||||
_1 = reader.readInt64()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.Peer.peerChat(chatId: _1!)
|
||||
if _c1 {
|
||||
return Api.Peer.peerChat(chatId: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_peerUser(_ reader: BufferReader) -> Peer? {
|
||||
var _1: Int64?
|
||||
_1 = reader.readInt64()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.Peer.peerUser(userId: _1!)
|
||||
if _c1 {
|
||||
return Api.Peer.peerUser(userId: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -750,9 +794,12 @@ public extension Api {
|
|||
_2 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.PeerBlocked.peerBlocked(peerId: _1!, date: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.PeerBlocked.peerBlocked(peerId: _1!, date: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -818,8 +865,12 @@ public extension Api {
|
|||
var _1: Int64?
|
||||
_1 = reader.readInt64()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.PeerColor.inputPeerColorCollectible(collectibleId: _1!)
|
||||
if _c1 {
|
||||
return Api.PeerColor.inputPeerColorCollectible(collectibleId: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_peerColor(_ reader: BufferReader) -> PeerColor? {
|
||||
var _1: Int32?
|
||||
|
|
@ -831,10 +882,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = (Int(_1!) & Int(1 << 0) == 0) || _2 != nil
|
||||
let _c3 = (Int(_1!) & Int(1 << 1) == 0) || _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.PeerColor.peerColor(flags: _1!, color: _2, backgroundEmojiId: _3)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.PeerColor.peerColor(flags: _1!, color: _2, backgroundEmojiId: _3)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_peerColorCollectible(_ reader: BufferReader) -> PeerColor? {
|
||||
var _1: Int32?
|
||||
|
|
@ -865,15 +918,12 @@ public extension Api {
|
|||
let _c6 = _6 != nil
|
||||
let _c7 = (Int(_1!) & Int(1 << 0) == 0) || _7 != nil
|
||||
let _c8 = (Int(_1!) & Int(1 << 1) == 0) || _8 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
return Api.PeerColor.peerColorCollectible(flags: _1!, collectibleId: _2!, giftEmojiId: _3!, backgroundEmojiId: _4!, accentColor: _5!, colors: _6!, darkAccentColor: _7, darkColors: _8)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 {
|
||||
return Api.PeerColor.peerColorCollectible(flags: _1!, collectibleId: _2!, giftEmojiId: _3!, backgroundEmojiId: _4!, accentColor: _5!, colors: _6!, darkAccentColor: _7, darkColors: _8)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -923,17 +973,23 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.PeerLocated.peerLocated(peer: _1!, expires: _2!, distance: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.PeerLocated.peerLocated(peer: _1!, expires: _2!, distance: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_peerSelfLocated(_ reader: BufferReader) -> PeerLocated? {
|
||||
var _1: Int32?
|
||||
_1 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.PeerLocated.peerSelfLocated(expires: _1!)
|
||||
if _c1 {
|
||||
return Api.PeerLocated.peerSelfLocated(expires: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1028,19 +1084,12 @@ public extension Api {
|
|||
let _c10 = (Int(_1!) & Int(1 << 8) == 0) || _10 != nil
|
||||
let _c11 = (Int(_1!) & Int(1 << 9) == 0) || _11 != nil
|
||||
let _c12 = (Int(_1!) & Int(1 << 10) == 0) || _12 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
if !_c9 { return nil }
|
||||
if !_c10 { return nil }
|
||||
if !_c11 { return nil }
|
||||
if !_c12 { return nil }
|
||||
return Api.PeerNotifySettings.peerNotifySettings(flags: _1!, showPreviews: _2, silent: _3, muteUntil: _4, iosSound: _5, androidSound: _6, otherSound: _7, storiesMuted: _8, storiesHideSender: _9, storiesIosSound: _10, storiesAndroidSound: _11, storiesOtherSound: _12)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 && _c10 && _c11 && _c12 {
|
||||
return Api.PeerNotifySettings.peerNotifySettings(flags: _1!, showPreviews: _2, silent: _3, muteUntil: _4, iosSound: _5, androidSound: _6, otherSound: _7, storiesMuted: _8, storiesHideSender: _9, storiesIosSound: _10, storiesAndroidSound: _11, storiesOtherSound: _12)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1111,18 +1160,12 @@ public extension Api {
|
|||
let _c9 = (Int(_1!) & Int(1 << 16) == 0) || _9 != nil
|
||||
let _c10 = (Int(_1!) & Int(1 << 17) == 0) || _10 != nil
|
||||
let _c11 = (Int(_1!) & Int(1 << 18) == 0) || _11 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
if !_c9 { return nil }
|
||||
if !_c10 { return nil }
|
||||
if !_c11 { return nil }
|
||||
return Api.PeerSettings.peerSettings(flags: _1!, geoDistance: _2, requestChatTitle: _3, requestChatDate: _4, businessBotId: _5, businessBotManageUrl: _6, chargePaidMessageStars: _7, registrationMonth: _8, phoneCountry: _9, nameChangeDate: _10, photoChangeDate: _11)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 && _c10 && _c11 {
|
||||
return Api.PeerSettings.peerSettings(flags: _1!, geoDistance: _2, requestChatTitle: _3, requestChatDate: _4, businessBotId: _5, businessBotManageUrl: _6, chargePaidMessageStars: _7, registrationMonth: _8, phoneCountry: _9, nameChangeDate: _10, photoChangeDate: _11)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1173,11 +1216,12 @@ public extension Api {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = (Int(_1!) & Int(1 << 0) == 0) || _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.PeerStories.peerStories(flags: _1!, peer: _2!, maxReadId: _3, stories: _4!)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.PeerStories.peerStories(flags: _1!, peer: _2!, maxReadId: _3, stories: _4!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1224,11 +1268,12 @@ public extension Api {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.PendingSuggestion.pendingSuggestion(suggestion: _1!, title: _2!, description: _3!, url: _4!)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.PendingSuggestion.pendingSuggestion(suggestion: _1!, title: _2!, description: _3!, url: _4!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1382,19 +1427,12 @@ public extension Api {
|
|||
let _c10 = _10 != nil
|
||||
let _c11 = _11 != nil
|
||||
let _c12 = (Int(_1!) & Int(1 << 7) == 0) || _12 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
if !_c9 { return nil }
|
||||
if !_c10 { return nil }
|
||||
if !_c11 { return nil }
|
||||
if !_c12 { return nil }
|
||||
return Api.PhoneCall.phoneCall(flags: _1!, id: _2!, accessHash: _3!, date: _4!, adminId: _5!, participantId: _6!, gAOrB: _7!, keyFingerprint: _8!, protocol: _9!, connections: _10!, startDate: _11!, customParameters: _12)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 && _c10 && _c11 && _c12 {
|
||||
return Api.PhoneCall.phoneCall(flags: _1!, id: _2!, accessHash: _3!, date: _4!, adminId: _5!, participantId: _6!, gAOrB: _7!, keyFingerprint: _8!, protocol: _9!, connections: _10!, startDate: _11!, customParameters: _12)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_phoneCallAccepted(_ reader: BufferReader) -> PhoneCall? {
|
||||
var _1: Int32?
|
||||
|
|
@ -1423,15 +1461,12 @@ public extension Api {
|
|||
let _c6 = _6 != nil
|
||||
let _c7 = _7 != nil
|
||||
let _c8 = _8 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
return Api.PhoneCall.phoneCallAccepted(flags: _1!, id: _2!, accessHash: _3!, date: _4!, adminId: _5!, participantId: _6!, gB: _7!, protocol: _8!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 {
|
||||
return Api.PhoneCall.phoneCallAccepted(flags: _1!, id: _2!, accessHash: _3!, date: _4!, adminId: _5!, participantId: _6!, gB: _7!, protocol: _8!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_phoneCallDiscarded(_ reader: BufferReader) -> PhoneCall? {
|
||||
var _1: Int32?
|
||||
|
|
@ -1448,18 +1483,23 @@ public extension Api {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = (Int(_1!) & Int(1 << 0) == 0) || _3 != nil
|
||||
let _c4 = (Int(_1!) & Int(1 << 1) == 0) || _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.PhoneCall.phoneCallDiscarded(flags: _1!, id: _2!, reason: _3, duration: _4)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.PhoneCall.phoneCallDiscarded(flags: _1!, id: _2!, reason: _3, duration: _4)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_phoneCallEmpty(_ reader: BufferReader) -> PhoneCall? {
|
||||
var _1: Int64?
|
||||
_1 = reader.readInt64()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.PhoneCall.phoneCallEmpty(id: _1!)
|
||||
if _c1 {
|
||||
return Api.PhoneCall.phoneCallEmpty(id: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_phoneCallRequested(_ reader: BufferReader) -> PhoneCall? {
|
||||
var _1: Int32?
|
||||
|
|
@ -1488,15 +1528,12 @@ public extension Api {
|
|||
let _c6 = _6 != nil
|
||||
let _c7 = _7 != nil
|
||||
let _c8 = _8 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
return Api.PhoneCall.phoneCallRequested(flags: _1!, id: _2!, accessHash: _3!, date: _4!, adminId: _5!, participantId: _6!, gAHash: _7!, protocol: _8!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 {
|
||||
return Api.PhoneCall.phoneCallRequested(flags: _1!, id: _2!, accessHash: _3!, date: _4!, adminId: _5!, participantId: _6!, gAHash: _7!, protocol: _8!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_phoneCallWaiting(_ reader: BufferReader) -> PhoneCall? {
|
||||
var _1: Int32?
|
||||
|
|
@ -1525,15 +1562,12 @@ public extension Api {
|
|||
let _c6 = _6 != nil
|
||||
let _c7 = _7 != nil
|
||||
let _c8 = (Int(_1!) & Int(1 << 0) == 0) || _8 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
return Api.PhoneCall.phoneCallWaiting(flags: _1!, id: _2!, accessHash: _3!, date: _4!, adminId: _5!, participantId: _6!, protocol: _7!, receiveDate: _8)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 {
|
||||
return Api.PhoneCall.phoneCallWaiting(flags: _1!, id: _2!, accessHash: _3!, date: _4!, adminId: _5!, participantId: _6!, protocol: _7!, receiveDate: _8)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -46,13 +46,12 @@ public extension Api {
|
|||
let _c4 = _4 != nil
|
||||
let _c5 = _5 != nil
|
||||
let _c6 = (Int(_1!) & Int(1 << 2) == 0) || _6 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
return Api.BotBusinessConnection.botBusinessConnection(flags: _1!, connectionId: _2!, userId: _3!, dcId: _4!, date: _5!, rights: _6)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 {
|
||||
return Api.BotBusinessConnection.botBusinessConnection(flags: _1!, connectionId: _2!, userId: _3!, dcId: _4!, date: _5!, rights: _6)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -87,9 +86,12 @@ public extension Api {
|
|||
_2 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.BotCommand.botCommand(command: _1!, description: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.BotCommand.botCommand(command: _1!, description: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -186,8 +188,12 @@ public extension Api {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.InputPeer
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.BotCommandScope.botCommandScopePeer(peer: _1!)
|
||||
if _c1 {
|
||||
return Api.BotCommandScope.botCommandScopePeer(peer: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_botCommandScopePeerAdmins(_ reader: BufferReader) -> BotCommandScope? {
|
||||
var _1: Api.InputPeer?
|
||||
|
|
@ -195,8 +201,12 @@ public extension Api {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.InputPeer
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.BotCommandScope.botCommandScopePeerAdmins(peer: _1!)
|
||||
if _c1 {
|
||||
return Api.BotCommandScope.botCommandScopePeerAdmins(peer: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_botCommandScopePeerUser(_ reader: BufferReader) -> BotCommandScope? {
|
||||
var _1: Api.InputPeer?
|
||||
|
|
@ -209,9 +219,12 @@ public extension Api {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.BotCommandScope.botCommandScopePeerUser(peer: _1!, userId: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.BotCommandScope.botCommandScopePeerUser(peer: _1!, userId: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_botCommandScopeUsers(_ reader: BufferReader) -> BotCommandScope? {
|
||||
return Api.BotCommandScope.botCommandScopeUsers
|
||||
|
|
@ -297,17 +310,12 @@ public extension Api {
|
|||
let _c8 = (Int(_1!) & Int(1 << 7) == 0) || _8 != nil
|
||||
let _c9 = (Int(_1!) & Int(1 << 8) == 0) || _9 != nil
|
||||
let _c10 = (Int(_1!) & Int(1 << 9) == 0) || _10 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
if !_c9 { return nil }
|
||||
if !_c10 { return nil }
|
||||
return Api.BotInfo.botInfo(flags: _1!, userId: _2, description: _3, descriptionPhoto: _4, descriptionDocument: _5, commands: _6, menuButton: _7, privacyPolicyUrl: _8, appSettings: _9, verifierSettings: _10)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 && _c10 {
|
||||
return Api.BotInfo.botInfo(flags: _1!, userId: _2, description: _3, descriptionPhoto: _4, descriptionDocument: _5, commands: _6, menuButton: _7, privacyPolicyUrl: _8, appSettings: _9, verifierSettings: _10)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -450,11 +458,12 @@ public extension Api {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = (Int(_1!) & Int(1 << 1) == 0) || _3 != nil
|
||||
let _c4 = (Int(_1!) & Int(1 << 2) == 0) || _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.BotInlineMessage.botInlineMessageMediaAuto(flags: _1!, message: _2!, entities: _3, replyMarkup: _4)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.BotInlineMessage.botInlineMessageMediaAuto(flags: _1!, message: _2!, entities: _3, replyMarkup: _4)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_botInlineMessageMediaContact(_ reader: BufferReader) -> BotInlineMessage? {
|
||||
var _1: Int32?
|
||||
|
|
@ -477,13 +486,12 @@ public extension Api {
|
|||
let _c4 = _4 != nil
|
||||
let _c5 = _5 != nil
|
||||
let _c6 = (Int(_1!) & Int(1 << 2) == 0) || _6 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
return Api.BotInlineMessage.botInlineMessageMediaContact(flags: _1!, phoneNumber: _2!, firstName: _3!, lastName: _4!, vcard: _5!, replyMarkup: _6)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 {
|
||||
return Api.BotInlineMessage.botInlineMessageMediaContact(flags: _1!, phoneNumber: _2!, firstName: _3!, lastName: _4!, vcard: _5!, replyMarkup: _6)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_botInlineMessageMediaGeo(_ reader: BufferReader) -> BotInlineMessage? {
|
||||
var _1: Int32?
|
||||
|
|
@ -508,13 +516,12 @@ public extension Api {
|
|||
let _c4 = (Int(_1!) & Int(1 << 1) == 0) || _4 != nil
|
||||
let _c5 = (Int(_1!) & Int(1 << 3) == 0) || _5 != nil
|
||||
let _c6 = (Int(_1!) & Int(1 << 2) == 0) || _6 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
return Api.BotInlineMessage.botInlineMessageMediaGeo(flags: _1!, geo: _2!, heading: _3, period: _4, proximityNotificationRadius: _5, replyMarkup: _6)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 {
|
||||
return Api.BotInlineMessage.botInlineMessageMediaGeo(flags: _1!, geo: _2!, heading: _3, period: _4, proximityNotificationRadius: _5, replyMarkup: _6)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_botInlineMessageMediaInvoice(_ reader: BufferReader) -> BotInlineMessage? {
|
||||
var _1: Int32?
|
||||
|
|
@ -542,14 +549,12 @@ public extension Api {
|
|||
let _c5 = _5 != nil
|
||||
let _c6 = _6 != nil
|
||||
let _c7 = (Int(_1!) & Int(1 << 2) == 0) || _7 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
return Api.BotInlineMessage.botInlineMessageMediaInvoice(flags: _1!, title: _2!, description: _3!, photo: _4, currency: _5!, totalAmount: _6!, replyMarkup: _7)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 {
|
||||
return Api.BotInlineMessage.botInlineMessageMediaInvoice(flags: _1!, title: _2!, description: _3!, photo: _4, currency: _5!, totalAmount: _6!, replyMarkup: _7)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_botInlineMessageMediaVenue(_ reader: BufferReader) -> BotInlineMessage? {
|
||||
var _1: Int32?
|
||||
|
|
@ -580,15 +585,12 @@ public extension Api {
|
|||
let _c6 = _6 != nil
|
||||
let _c7 = _7 != nil
|
||||
let _c8 = (Int(_1!) & Int(1 << 2) == 0) || _8 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
return Api.BotInlineMessage.botInlineMessageMediaVenue(flags: _1!, geo: _2!, title: _3!, address: _4!, provider: _5!, venueId: _6!, venueType: _7!, replyMarkup: _8)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 {
|
||||
return Api.BotInlineMessage.botInlineMessageMediaVenue(flags: _1!, geo: _2!, title: _3!, address: _4!, provider: _5!, venueId: _6!, venueType: _7!, replyMarkup: _8)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_botInlineMessageMediaWebPage(_ reader: BufferReader) -> BotInlineMessage? {
|
||||
var _1: Int32?
|
||||
|
|
@ -610,12 +612,12 @@ public extension Api {
|
|||
let _c3 = (Int(_1!) & Int(1 << 1) == 0) || _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
let _c5 = (Int(_1!) & Int(1 << 2) == 0) || _5 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
return Api.BotInlineMessage.botInlineMessageMediaWebPage(flags: _1!, message: _2!, entities: _3, url: _4!, replyMarkup: _5)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 {
|
||||
return Api.BotInlineMessage.botInlineMessageMediaWebPage(flags: _1!, message: _2!, entities: _3, url: _4!, replyMarkup: _5)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_botInlineMessageText(_ reader: BufferReader) -> BotInlineMessage? {
|
||||
var _1: Int32?
|
||||
|
|
@ -634,11 +636,12 @@ public extension Api {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = (Int(_1!) & Int(1 << 1) == 0) || _3 != nil
|
||||
let _c4 = (Int(_1!) & Int(1 << 2) == 0) || _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.BotInlineMessage.botInlineMessageText(flags: _1!, message: _2!, entities: _3, replyMarkup: _4)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.BotInlineMessage.botInlineMessageText(flags: _1!, message: _2!, entities: _3, replyMarkup: _4)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -720,15 +723,12 @@ public extension Api {
|
|||
let _c6 = (Int(_1!) & Int(1 << 2) == 0) || _6 != nil
|
||||
let _c7 = (Int(_1!) & Int(1 << 3) == 0) || _7 != nil
|
||||
let _c8 = _8 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
return Api.BotInlineResult.botInlineMediaResult(flags: _1!, id: _2!, type: _3!, photo: _4, document: _5, title: _6, description: _7, sendMessage: _8!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 {
|
||||
return Api.BotInlineResult.botInlineMediaResult(flags: _1!, id: _2!, type: _3!, photo: _4, document: _5, title: _6, description: _7, sendMessage: _8!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_botInlineResult(_ reader: BufferReader) -> BotInlineResult? {
|
||||
var _1: Int32?
|
||||
|
|
@ -764,16 +764,12 @@ public extension Api {
|
|||
let _c7 = (Int(_1!) & Int(1 << 4) == 0) || _7 != nil
|
||||
let _c8 = (Int(_1!) & Int(1 << 5) == 0) || _8 != nil
|
||||
let _c9 = _9 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
if !_c9 { return nil }
|
||||
return Api.BotInlineResult.botInlineResult(flags: _1!, id: _2!, type: _3!, title: _4, description: _5, url: _6, thumb: _7, content: _8, sendMessage: _9!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 {
|
||||
return Api.BotInlineResult.botInlineResult(flags: _1!, id: _2!, type: _3!, title: _4, description: _5, url: _6, thumb: _7, content: _8, sendMessage: _9!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -826,9 +822,12 @@ public extension Api {
|
|||
_2 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.BotMenuButton.botMenuButton(text: _1!, url: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.BotMenuButton.botMenuButton(text: _1!, url: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_botMenuButtonCommands(_ reader: BufferReader) -> BotMenuButton? {
|
||||
return Api.BotMenuButton.botMenuButtonCommands
|
||||
|
|
@ -871,9 +870,12 @@ public extension Api {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.BotPreviewMedia.botPreviewMedia(date: _1!, media: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.BotPreviewMedia.botPreviewMedia(date: _1!, media: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -912,10 +914,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.BotVerification.botVerification(botId: _1!, icon: _2!, description: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.BotVerification.botVerification(botId: _1!, icon: _2!, description: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -958,11 +962,12 @@ public extension Api {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = (Int(_1!) & Int(1 << 0) == 0) || _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.BotVerifierSettings.botVerifierSettings(flags: _1!, icon: _2!, company: _3!, customDescription: _4)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.BotVerifierSettings.botVerifierSettings(flags: _1!, icon: _2!, company: _3!, customDescription: _4)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1009,11 +1014,12 @@ public extension Api {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.BusinessAwayMessage.businessAwayMessage(flags: _1!, shortcutId: _2!, schedule: _3!, recipients: _4!)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.BusinessAwayMessage.businessAwayMessage(flags: _1!, shortcutId: _2!, schedule: _3!, recipients: _4!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1069,9 +1075,12 @@ public extension Api {
|
|||
_2 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.BusinessAwayMessageSchedule.businessAwayMessageScheduleCustom(startDate: _1!, endDate: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.BusinessAwayMessageSchedule.businessAwayMessageScheduleCustom(startDate: _1!, endDate: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_businessAwayMessageScheduleOutsideWorkHours(_ reader: BufferReader) -> BusinessAwayMessageSchedule? {
|
||||
return Api.BusinessAwayMessageSchedule.businessAwayMessageScheduleOutsideWorkHours
|
||||
|
|
@ -1125,10 +1134,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = (Int(_1!) & Int(1 << 4) == 0) || _2 != nil
|
||||
let _c3 = (Int(_1!) & Int(1 << 6) == 0) || _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.BusinessBotRecipients.businessBotRecipients(flags: _1!, users: _2, excludeUsers: _3)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.BusinessBotRecipients.businessBotRecipients(flags: _1!, users: _2, excludeUsers: _3)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1159,8 +1170,12 @@ public extension Api {
|
|||
var _1: Int32?
|
||||
_1 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.BusinessBotRights.businessBotRights(flags: _1!)
|
||||
if _c1 {
|
||||
return Api.BusinessBotRights.businessBotRights(flags: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1217,13 +1232,12 @@ public extension Api {
|
|||
let _c4 = (Int(_1!) & Int(1 << 0) == 0) || _4 != nil
|
||||
let _c5 = (Int(_1!) & Int(1 << 1) == 0) || _5 != nil
|
||||
let _c6 = _6 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
return Api.BusinessChatLink.businessChatLink(flags: _1!, link: _2!, message: _3!, entities: _4, title: _5, views: _6!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 {
|
||||
return Api.BusinessChatLink.businessChatLink(flags: _1!, link: _2!, message: _3!, entities: _4, title: _5, views: _6!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -69,8 +69,12 @@ public extension Api {
|
|||
var _1: String?
|
||||
_1 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.PhoneCallDiscardReason.phoneCallDiscardReasonMigrateConferenceCall(slug: _1!)
|
||||
if _c1 {
|
||||
return Api.PhoneCallDiscardReason.phoneCallDiscardReasonMigrateConferenceCall(slug: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_phoneCallDiscardReasonMissed(_ reader: BufferReader) -> PhoneCallDiscardReason? {
|
||||
return Api.PhoneCallDiscardReason.phoneCallDiscardReasonMissed
|
||||
|
|
@ -122,11 +126,12 @@ public extension Api {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.PhoneCallProtocol.phoneCallProtocol(flags: _1!, minLayer: _2!, maxLayer: _3!, libraryVersions: _4!)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.PhoneCallProtocol.phoneCallProtocol(flags: _1!, minLayer: _2!, maxLayer: _3!, libraryVersions: _4!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -192,13 +197,12 @@ public extension Api {
|
|||
let _c4 = _4 != nil
|
||||
let _c5 = _5 != nil
|
||||
let _c6 = _6 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
return Api.PhoneConnection.phoneConnection(flags: _1!, id: _2!, ip: _3!, ipv6: _4!, port: _5!, peerTag: _6!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 {
|
||||
return Api.PhoneConnection.phoneConnection(flags: _1!, id: _2!, ip: _3!, ipv6: _4!, port: _5!, peerTag: _6!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_phoneConnectionWebrtc(_ reader: BufferReader) -> PhoneConnection? {
|
||||
var _1: Int32?
|
||||
|
|
@ -222,14 +226,12 @@ public extension Api {
|
|||
let _c5 = _5 != nil
|
||||
let _c6 = _6 != nil
|
||||
let _c7 = _7 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
return Api.PhoneConnection.phoneConnectionWebrtc(flags: _1!, id: _2!, ip: _3!, ipv6: _4!, port: _5!, username: _6!, password: _7!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 {
|
||||
return Api.PhoneConnection.phoneConnectionWebrtc(flags: _1!, id: _2!, ip: _3!, ipv6: _4!, port: _5!, username: _6!, password: _7!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -309,22 +311,23 @@ public extension Api {
|
|||
let _c6 = _6 != nil
|
||||
let _c7 = (Int(_1!) & Int(1 << 1) == 0) || _7 != nil
|
||||
let _c8 = _8 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
return Api.Photo.photo(flags: _1!, id: _2!, accessHash: _3!, fileReference: _4!, date: _5!, sizes: _6!, videoSizes: _7, dcId: _8!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 {
|
||||
return Api.Photo.photo(flags: _1!, id: _2!, accessHash: _3!, fileReference: _4!, date: _5!, sizes: _6!, videoSizes: _7, dcId: _8!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_photoEmpty(_ reader: BufferReader) -> Photo? {
|
||||
var _1: Int64?
|
||||
_1 = reader.readInt64()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.Photo.photoEmpty(id: _1!)
|
||||
if _c1 {
|
||||
return Api.Photo.photoEmpty(id: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -424,11 +427,12 @@ public extension Api {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.PhotoSize.photoCachedSize(type: _1!, w: _2!, h: _3!, bytes: _4!)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.PhotoSize.photoCachedSize(type: _1!, w: _2!, h: _3!, bytes: _4!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_photoPathSize(_ reader: BufferReader) -> PhotoSize? {
|
||||
var _1: String?
|
||||
|
|
@ -437,9 +441,12 @@ public extension Api {
|
|||
_2 = parseBytes(reader)
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.PhotoSize.photoPathSize(type: _1!, bytes: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.PhotoSize.photoPathSize(type: _1!, bytes: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_photoSize(_ reader: BufferReader) -> PhotoSize? {
|
||||
var _1: String?
|
||||
|
|
@ -454,18 +461,23 @@ public extension Api {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.PhotoSize.photoSize(type: _1!, w: _2!, h: _3!, size: _4!)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.PhotoSize.photoSize(type: _1!, w: _2!, h: _3!, size: _4!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_photoSizeEmpty(_ reader: BufferReader) -> PhotoSize? {
|
||||
var _1: String?
|
||||
_1 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.PhotoSize.photoSizeEmpty(type: _1!)
|
||||
if _c1 {
|
||||
return Api.PhotoSize.photoSizeEmpty(type: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_photoSizeProgressive(_ reader: BufferReader) -> PhotoSize? {
|
||||
var _1: String?
|
||||
|
|
@ -482,11 +494,12 @@ public extension Api {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.PhotoSize.photoSizeProgressive(type: _1!, w: _2!, h: _3!, sizes: _4!)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.PhotoSize.photoSizeProgressive(type: _1!, w: _2!, h: _3!, sizes: _4!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_photoStrippedSize(_ reader: BufferReader) -> PhotoSize? {
|
||||
var _1: String?
|
||||
|
|
@ -495,9 +508,12 @@ public extension Api {
|
|||
_2 = parseBytes(reader)
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.PhotoSize.photoStrippedSize(type: _1!, bytes: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.PhotoSize.photoStrippedSize(type: _1!, bytes: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -556,13 +572,12 @@ public extension Api {
|
|||
let _c4 = _4 != nil
|
||||
let _c5 = (Int(_2!) & Int(1 << 4) == 0) || _5 != nil
|
||||
let _c6 = (Int(_2!) & Int(1 << 5) == 0) || _6 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
return Api.Poll.poll(id: _1!, flags: _2!, question: _3!, answers: _4!, closePeriod: _5, closeDate: _6)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 {
|
||||
return Api.Poll.poll(id: _1!, flags: _2!, question: _3!, answers: _4!, closePeriod: _5, closeDate: _6)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -599,9 +614,12 @@ public extension Api {
|
|||
_2 = parseBytes(reader)
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.PollAnswer.pollAnswer(text: _1!, option: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.PollAnswer.pollAnswer(text: _1!, option: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -640,10 +658,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.PollAnswerVoters.pollAnswerVoters(flags: _1!, option: _2!, voters: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.PollAnswerVoters.pollAnswerVoters(flags: _1!, option: _2!, voters: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -712,13 +732,12 @@ public extension Api {
|
|||
let _c4 = (Int(_1!) & Int(1 << 3) == 0) || _4 != nil
|
||||
let _c5 = (Int(_1!) & Int(1 << 4) == 0) || _5 != nil
|
||||
let _c6 = (Int(_1!) & Int(1 << 4) == 0) || _6 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
return Api.PollResults.pollResults(flags: _1!, results: _2, totalVoters: _3, recentVoters: _4, solution: _5, solutionEntities: _6)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 {
|
||||
return Api.PollResults.pollResults(flags: _1!, results: _2, totalVoters: _3, recentVoters: _4, solution: _5, solutionEntities: _6)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -753,9 +772,12 @@ public extension Api {
|
|||
_2 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.PopularContact.popularContact(clientId: _1!, importers: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.PopularContact.popularContact(clientId: _1!, importers: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -806,13 +828,12 @@ public extension Api {
|
|||
let _c4 = _4 != nil
|
||||
let _c5 = _5 != nil
|
||||
let _c6 = _6 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
return Api.PostAddress.postAddress(streetLine1: _1!, streetLine2: _2!, city: _3!, state: _4!, countryIso2: _5!, postCode: _6!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 {
|
||||
return Api.PostAddress.postAddress(streetLine1: _1!, streetLine2: _2!, city: _3!, state: _4!, countryIso2: _5!, postCode: _6!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -867,11 +888,12 @@ public extension Api {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.PostInteractionCounters.postInteractionCountersMessage(msgId: _1!, views: _2!, forwards: _3!, reactions: _4!)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.PostInteractionCounters.postInteractionCountersMessage(msgId: _1!, views: _2!, forwards: _3!, reactions: _4!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_postInteractionCountersStory(_ reader: BufferReader) -> PostInteractionCounters? {
|
||||
var _1: Int32?
|
||||
|
|
@ -886,11 +908,12 @@ public extension Api {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.PostInteractionCounters.postInteractionCountersStory(storyId: _1!, views: _2!, forwards: _3!, reactions: _4!)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.PostInteractionCounters.postInteractionCountersStory(storyId: _1!, views: _2!, forwards: _3!, reactions: _4!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -945,14 +968,12 @@ public extension Api {
|
|||
let _c5 = (Int(_1!) & Int(1 << 1) == 0) || _5 != nil
|
||||
let _c6 = _6 != nil
|
||||
let _c7 = _7 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
return Api.PremiumGiftCodeOption.premiumGiftCodeOption(flags: _1!, users: _2!, months: _3!, storeProduct: _4, storeQuantity: _5, currency: _6!, amount: _7!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 {
|
||||
return Api.PremiumGiftCodeOption.premiumGiftCodeOption(flags: _1!, users: _2!, months: _3!, storeProduct: _4, storeQuantity: _5, currency: _6!, amount: _7!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1007,14 +1028,12 @@ public extension Api {
|
|||
let _c5 = _5 != nil
|
||||
let _c6 = _6 != nil
|
||||
let _c7 = (Int(_1!) & Int(1 << 0) == 0) || _7 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
return Api.PremiumSubscriptionOption.premiumSubscriptionOption(flags: _1!, transaction: _2, months: _3!, currency: _4!, amount: _5!, botUrl: _6!, storeProduct: _7)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 {
|
||||
return Api.PremiumSubscriptionOption.premiumSubscriptionOption(flags: _1!, transaction: _2, months: _3!, currency: _4!, amount: _5!, botUrl: _6!, storeProduct: _7)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1070,11 +1089,12 @@ public extension Api {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.PrepaidGiveaway.prepaidGiveaway(id: _1!, months: _2!, quantity: _3!, date: _4!)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.PrepaidGiveaway.prepaidGiveaway(id: _1!, months: _2!, quantity: _3!, date: _4!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_prepaidStarsGiveaway(_ reader: BufferReader) -> PrepaidGiveaway? {
|
||||
var _1: Int64?
|
||||
|
|
@ -1092,12 +1112,12 @@ public extension Api {
|
|||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
let _c5 = _5 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
return Api.PrepaidGiveaway.prepaidStarsGiveaway(id: _1!, stars: _2!, quantity: _3!, boosts: _4!, date: _5!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 {
|
||||
return Api.PrepaidGiveaway.prepaidStarsGiveaway(id: _1!, stars: _2!, quantity: _3!, boosts: _4!, date: _5!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -147,8 +147,12 @@ public extension Api {
|
|||
_1 = Api.parseVector(reader, elementSignature: 570911930, elementType: Int64.self)
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.PrivacyRule.privacyValueAllowChatParticipants(chats: _1!)
|
||||
if _c1 {
|
||||
return Api.PrivacyRule.privacyValueAllowChatParticipants(chats: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_privacyValueAllowCloseFriends(_ reader: BufferReader) -> PrivacyRule? {
|
||||
return Api.PrivacyRule.privacyValueAllowCloseFriends
|
||||
|
|
@ -165,8 +169,12 @@ public extension Api {
|
|||
_1 = Api.parseVector(reader, elementSignature: 570911930, elementType: Int64.self)
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.PrivacyRule.privacyValueAllowUsers(users: _1!)
|
||||
if _c1 {
|
||||
return Api.PrivacyRule.privacyValueAllowUsers(users: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_privacyValueDisallowAll(_ reader: BufferReader) -> PrivacyRule? {
|
||||
return Api.PrivacyRule.privacyValueDisallowAll
|
||||
|
|
@ -180,8 +188,12 @@ public extension Api {
|
|||
_1 = Api.parseVector(reader, elementSignature: 570911930, elementType: Int64.self)
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.PrivacyRule.privacyValueDisallowChatParticipants(chats: _1!)
|
||||
if _c1 {
|
||||
return Api.PrivacyRule.privacyValueDisallowChatParticipants(chats: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_privacyValueDisallowContacts(_ reader: BufferReader) -> PrivacyRule? {
|
||||
return Api.PrivacyRule.privacyValueDisallowContacts
|
||||
|
|
@ -192,8 +204,12 @@ public extension Api {
|
|||
_1 = Api.parseVector(reader, elementSignature: 570911930, elementType: Int64.self)
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.PrivacyRule.privacyValueDisallowUsers(users: _1!)
|
||||
if _c1 {
|
||||
return Api.PrivacyRule.privacyValueDisallowUsers(users: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -348,8 +364,12 @@ public extension Api {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.Message
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.PublicForward.publicForwardMessage(message: _1!)
|
||||
if _c1 {
|
||||
return Api.PublicForward.publicForwardMessage(message: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_publicForwardStory(_ reader: BufferReader) -> PublicForward? {
|
||||
var _1: Api.Peer?
|
||||
|
|
@ -362,9 +382,12 @@ public extension Api {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.PublicForward.publicForwardStory(peer: _1!, story: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.PublicForward.publicForwardStory(peer: _1!, story: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -407,11 +430,12 @@ public extension Api {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.QuickReply.quickReply(shortcutId: _1!, shortcut: _2!, topMessage: _3!, count: _4!)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.QuickReply.quickReply(shortcutId: _1!, shortcut: _2!, topMessage: _3!, count: _4!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -469,15 +493,23 @@ public extension Api {
|
|||
var _1: Int64?
|
||||
_1 = reader.readInt64()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.Reaction.reactionCustomEmoji(documentId: _1!)
|
||||
if _c1 {
|
||||
return Api.Reaction.reactionCustomEmoji(documentId: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_reactionEmoji(_ reader: BufferReader) -> Reaction? {
|
||||
var _1: String?
|
||||
_1 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.Reaction.reactionEmoji(emoticon: _1!)
|
||||
if _c1 {
|
||||
return Api.Reaction.reactionEmoji(emoticon: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_reactionEmpty(_ reader: BufferReader) -> Reaction? {
|
||||
return Api.Reaction.reactionEmpty
|
||||
|
|
@ -528,11 +560,12 @@ public extension Api {
|
|||
let _c2 = (Int(_1!) & Int(1 << 0) == 0) || _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.ReactionCount.reactionCount(flags: _1!, chosenOrder: _2, reaction: _3!, count: _4!)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.ReactionCount.reactionCount(flags: _1!, chosenOrder: _2, reaction: _3!, count: _4!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -627,12 +660,12 @@ public extension Api {
|
|||
let _c3 = (Int(_1!) & Int(1 << 1) == 0) || _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
let _c5 = _5 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
return Api.ReactionsNotifySettings.reactionsNotifySettings(flags: _1!, messagesNotifyFrom: _2, storiesNotifyFrom: _3, sound: _4!, showPreviews: _5!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 {
|
||||
return Api.ReactionsNotifySettings.reactionsNotifySettings(flags: _1!, messagesNotifyFrom: _2, storiesNotifyFrom: _3, sound: _4!, showPreviews: _5!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -667,9 +700,12 @@ public extension Api {
|
|||
_2 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.ReadParticipantDate.readParticipantDate(userId: _1!, date: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.ReadParticipantDate.readParticipantDate(userId: _1!, date: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,9 +28,12 @@ public extension Api {
|
|||
_2 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.ReceivedNotifyMessage.receivedNotifyMessage(id: _1!, flags: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.ReceivedNotifyMessage.receivedNotifyMessage(id: _1!, flags: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -104,9 +107,12 @@ public extension Api {
|
|||
_2 = reader.readInt64()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.RecentMeUrl.recentMeUrlChat(url: _1!, chatId: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.RecentMeUrl.recentMeUrlChat(url: _1!, chatId: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_recentMeUrlChatInvite(_ reader: BufferReader) -> RecentMeUrl? {
|
||||
var _1: String?
|
||||
|
|
@ -117,9 +123,12 @@ public extension Api {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.RecentMeUrl.recentMeUrlChatInvite(url: _1!, chatInvite: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.RecentMeUrl.recentMeUrlChatInvite(url: _1!, chatInvite: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_recentMeUrlStickerSet(_ reader: BufferReader) -> RecentMeUrl? {
|
||||
var _1: String?
|
||||
|
|
@ -130,16 +139,23 @@ public extension Api {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.RecentMeUrl.recentMeUrlStickerSet(url: _1!, set: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.RecentMeUrl.recentMeUrlStickerSet(url: _1!, set: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_recentMeUrlUnknown(_ reader: BufferReader) -> RecentMeUrl? {
|
||||
var _1: String?
|
||||
_1 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.RecentMeUrl.recentMeUrlUnknown(url: _1!)
|
||||
if _c1 {
|
||||
return Api.RecentMeUrl.recentMeUrlUnknown(url: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_recentMeUrlUser(_ reader: BufferReader) -> RecentMeUrl? {
|
||||
var _1: String?
|
||||
|
|
@ -148,9 +164,12 @@ public extension Api {
|
|||
_2 = reader.readInt64()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.RecentMeUrl.recentMeUrlUser(url: _1!, userId: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.RecentMeUrl.recentMeUrlUser(url: _1!, userId: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -185,9 +204,12 @@ public extension Api {
|
|||
if Int(_1!) & Int(1 << 1) != 0 {_2 = reader.readInt32() }
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = (Int(_1!) & Int(1 << 1) == 0) || _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.RecentStory.recentStory(flags: _1!, maxId: _2)
|
||||
if _c1 && _c2 {
|
||||
return Api.RecentStory.recentStory(flags: _1!, maxId: _2)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -258,8 +280,12 @@ public extension Api {
|
|||
_1 = Api.parseVector(reader, elementSignature: 0, elementType: Api.KeyboardButtonRow.self)
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.ReplyMarkup.replyInlineMarkup(rows: _1!)
|
||||
if _c1 {
|
||||
return Api.ReplyMarkup.replyInlineMarkup(rows: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_replyKeyboardForceReply(_ reader: BufferReader) -> ReplyMarkup? {
|
||||
var _1: Int32?
|
||||
|
|
@ -268,16 +294,23 @@ public extension Api {
|
|||
if Int(_1!) & Int(1 << 3) != 0 {_2 = parseString(reader) }
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = (Int(_1!) & Int(1 << 3) == 0) || _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.ReplyMarkup.replyKeyboardForceReply(flags: _1!, placeholder: _2)
|
||||
if _c1 && _c2 {
|
||||
return Api.ReplyMarkup.replyKeyboardForceReply(flags: _1!, placeholder: _2)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_replyKeyboardHide(_ reader: BufferReader) -> ReplyMarkup? {
|
||||
var _1: Int32?
|
||||
_1 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.ReplyMarkup.replyKeyboardHide(flags: _1!)
|
||||
if _c1 {
|
||||
return Api.ReplyMarkup.replyKeyboardHide(flags: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_replyKeyboardMarkup(_ reader: BufferReader) -> ReplyMarkup? {
|
||||
var _1: Int32?
|
||||
|
|
@ -291,10 +324,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = (Int(_1!) & Int(1 << 3) == 0) || _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.ReplyMarkup.replyKeyboardMarkup(flags: _1!, rows: _2!, placeholder: _3)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.ReplyMarkup.replyKeyboardMarkup(flags: _1!, rows: _2!, placeholder: _3)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -488,9 +523,12 @@ public extension Api {
|
|||
_2 = parseBytes(reader)
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.ReportResult.reportResultAddComment(flags: _1!, option: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.ReportResult.reportResultAddComment(flags: _1!, option: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_reportResultChooseOption(_ reader: BufferReader) -> ReportResult? {
|
||||
var _1: String?
|
||||
|
|
@ -501,9 +539,12 @@ public extension Api {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.ReportResult.reportResultChooseOption(title: _1!, options: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.ReportResult.reportResultChooseOption(title: _1!, options: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_reportResultReported(_ reader: BufferReader) -> ReportResult? {
|
||||
return Api.ReportResult.reportResultReported
|
||||
|
|
@ -579,11 +620,12 @@ public extension Api {
|
|||
let _c2 = (Int(_1!) & Int(1 << 3) == 0) || _2 != nil
|
||||
let _c3 = (Int(_1!) & Int(1 << 1) == 0) || _3 != nil
|
||||
let _c4 = (Int(_1!) & Int(1 << 2) == 0) || _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.RequestPeerType.requestPeerTypeBroadcast(flags: _1!, hasUsername: _2, userAdminRights: _3, botAdminRights: _4)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.RequestPeerType.requestPeerTypeBroadcast(flags: _1!, hasUsername: _2, userAdminRights: _3, botAdminRights: _4)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_requestPeerTypeChat(_ reader: BufferReader) -> RequestPeerType? {
|
||||
var _1: Int32?
|
||||
|
|
@ -609,12 +651,12 @@ public extension Api {
|
|||
let _c3 = (Int(_1!) & Int(1 << 4) == 0) || _3 != nil
|
||||
let _c4 = (Int(_1!) & Int(1 << 1) == 0) || _4 != nil
|
||||
let _c5 = (Int(_1!) & Int(1 << 2) == 0) || _5 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
return Api.RequestPeerType.requestPeerTypeChat(flags: _1!, hasUsername: _2, forum: _3, userAdminRights: _4, botAdminRights: _5)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 {
|
||||
return Api.RequestPeerType.requestPeerTypeChat(flags: _1!, hasUsername: _2, forum: _3, userAdminRights: _4, botAdminRights: _5)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_requestPeerTypeUser(_ reader: BufferReader) -> RequestPeerType? {
|
||||
var _1: Int32?
|
||||
|
|
@ -630,10 +672,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = (Int(_1!) & Int(1 << 0) == 0) || _2 != nil
|
||||
let _c3 = (Int(_1!) & Int(1 << 1) == 0) || _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.RequestPeerType.requestPeerTypeUser(flags: _1!, bot: _2, premium: _3)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.RequestPeerType.requestPeerTypeUser(flags: _1!, bot: _2, premium: _3)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -708,12 +752,12 @@ public extension Api {
|
|||
let _c3 = (Int(_1!) & Int(1 << 0) == 0) || _3 != nil
|
||||
let _c4 = (Int(_1!) & Int(1 << 1) == 0) || _4 != nil
|
||||
let _c5 = (Int(_1!) & Int(1 << 2) == 0) || _5 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
return Api.RequestedPeer.requestedPeerChannel(flags: _1!, channelId: _2!, title: _3, username: _4, photo: _5)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 {
|
||||
return Api.RequestedPeer.requestedPeerChannel(flags: _1!, channelId: _2!, title: _3, username: _4, photo: _5)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_requestedPeerChat(_ reader: BufferReader) -> RequestedPeer? {
|
||||
var _1: Int32?
|
||||
|
|
@ -730,11 +774,12 @@ public extension Api {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = (Int(_1!) & Int(1 << 0) == 0) || _3 != nil
|
||||
let _c4 = (Int(_1!) & Int(1 << 2) == 0) || _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.RequestedPeer.requestedPeerChat(flags: _1!, chatId: _2!, title: _3, photo: _4)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.RequestedPeer.requestedPeerChat(flags: _1!, chatId: _2!, title: _3, photo: _4)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_requestedPeerUser(_ reader: BufferReader) -> RequestedPeer? {
|
||||
var _1: Int32?
|
||||
|
|
@ -757,13 +802,12 @@ public extension Api {
|
|||
let _c4 = (Int(_1!) & Int(1 << 0) == 0) || _4 != nil
|
||||
let _c5 = (Int(_1!) & Int(1 << 1) == 0) || _5 != nil
|
||||
let _c6 = (Int(_1!) & Int(1 << 2) == 0) || _6 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
return Api.RequestedPeer.requestedPeerUser(flags: _1!, userId: _2!, firstName: _3, lastName: _4, username: _5, photo: _6)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 {
|
||||
return Api.RequestedPeer.requestedPeerUser(flags: _1!, userId: _2!, firstName: _3, lastName: _4, username: _5, photo: _6)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -815,8 +859,12 @@ public extension Api {
|
|||
var _1: Int64?
|
||||
_1 = reader.readInt64()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.RequirementToContact.requirementToContactPaidMessages(starsAmount: _1!)
|
||||
if _c1 {
|
||||
return Api.RequirementToContact.requirementToContactPaidMessages(starsAmount: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_requirementToContactPremium(_ reader: BufferReader) -> RequirementToContact? {
|
||||
return Api.RequirementToContact.requirementToContactPremium
|
||||
|
|
|
|||
|
|
@ -32,10 +32,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.RestrictionReason.restrictionReason(platform: _1!, reason: _2!, text: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.RestrictionReason.restrictionReason(platform: _1!, reason: _2!, text: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -217,9 +219,12 @@ public extension Api {
|
|||
_2 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.RichText.textAnchor(text: _1!, name: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.RichText.textAnchor(text: _1!, name: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_textBold(_ reader: BufferReader) -> RichText? {
|
||||
var _1: Api.RichText?
|
||||
|
|
@ -227,8 +232,12 @@ public extension Api {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.RichText
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.RichText.textBold(text: _1!)
|
||||
if _c1 {
|
||||
return Api.RichText.textBold(text: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_textConcat(_ reader: BufferReader) -> RichText? {
|
||||
var _1: [Api.RichText]?
|
||||
|
|
@ -236,8 +245,12 @@ public extension Api {
|
|||
_1 = Api.parseVector(reader, elementSignature: 0, elementType: Api.RichText.self)
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.RichText.textConcat(texts: _1!)
|
||||
if _c1 {
|
||||
return Api.RichText.textConcat(texts: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_textEmail(_ reader: BufferReader) -> RichText? {
|
||||
var _1: Api.RichText?
|
||||
|
|
@ -248,9 +261,12 @@ public extension Api {
|
|||
_2 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.RichText.textEmail(text: _1!, email: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.RichText.textEmail(text: _1!, email: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_textEmpty(_ reader: BufferReader) -> RichText? {
|
||||
return Api.RichText.textEmpty
|
||||
|
|
@ -261,8 +277,12 @@ public extension Api {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.RichText
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.RichText.textFixed(text: _1!)
|
||||
if _c1 {
|
||||
return Api.RichText.textFixed(text: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_textImage(_ reader: BufferReader) -> RichText? {
|
||||
var _1: Int64?
|
||||
|
|
@ -274,10 +294,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.RichText.textImage(documentId: _1!, w: _2!, h: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.RichText.textImage(documentId: _1!, w: _2!, h: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_textItalic(_ reader: BufferReader) -> RichText? {
|
||||
var _1: Api.RichText?
|
||||
|
|
@ -285,8 +307,12 @@ public extension Api {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.RichText
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.RichText.textItalic(text: _1!)
|
||||
if _c1 {
|
||||
return Api.RichText.textItalic(text: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_textMarked(_ reader: BufferReader) -> RichText? {
|
||||
var _1: Api.RichText?
|
||||
|
|
@ -294,8 +320,12 @@ public extension Api {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.RichText
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.RichText.textMarked(text: _1!)
|
||||
if _c1 {
|
||||
return Api.RichText.textMarked(text: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_textPhone(_ reader: BufferReader) -> RichText? {
|
||||
var _1: Api.RichText?
|
||||
|
|
@ -306,16 +336,23 @@ public extension Api {
|
|||
_2 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.RichText.textPhone(text: _1!, phone: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.RichText.textPhone(text: _1!, phone: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_textPlain(_ reader: BufferReader) -> RichText? {
|
||||
var _1: String?
|
||||
_1 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.RichText.textPlain(text: _1!)
|
||||
if _c1 {
|
||||
return Api.RichText.textPlain(text: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_textStrike(_ reader: BufferReader) -> RichText? {
|
||||
var _1: Api.RichText?
|
||||
|
|
@ -323,8 +360,12 @@ public extension Api {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.RichText
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.RichText.textStrike(text: _1!)
|
||||
if _c1 {
|
||||
return Api.RichText.textStrike(text: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_textSubscript(_ reader: BufferReader) -> RichText? {
|
||||
var _1: Api.RichText?
|
||||
|
|
@ -332,8 +373,12 @@ public extension Api {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.RichText
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.RichText.textSubscript(text: _1!)
|
||||
if _c1 {
|
||||
return Api.RichText.textSubscript(text: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_textSuperscript(_ reader: BufferReader) -> RichText? {
|
||||
var _1: Api.RichText?
|
||||
|
|
@ -341,8 +386,12 @@ public extension Api {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.RichText
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.RichText.textSuperscript(text: _1!)
|
||||
if _c1 {
|
||||
return Api.RichText.textSuperscript(text: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_textUnderline(_ reader: BufferReader) -> RichText? {
|
||||
var _1: Api.RichText?
|
||||
|
|
@ -350,8 +399,12 @@ public extension Api {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.RichText
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.RichText.textUnderline(text: _1!)
|
||||
if _c1 {
|
||||
return Api.RichText.textUnderline(text: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_textUrl(_ reader: BufferReader) -> RichText? {
|
||||
var _1: Api.RichText?
|
||||
|
|
@ -365,10 +418,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.RichText.textUrl(text: _1!, url: _2!, webpageId: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.RichText.textUrl(text: _1!, url: _2!, webpageId: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -411,11 +466,12 @@ public extension Api {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.SavedContact.savedPhoneContact(phone: _1!, firstName: _2!, lastName: _3!, date: _4!)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.SavedContact.savedPhoneContact(phone: _1!, firstName: _2!, lastName: _3!, date: _4!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -489,15 +545,12 @@ public extension Api {
|
|||
let _c6 = _6 != nil
|
||||
let _c7 = _7 != nil
|
||||
let _c8 = (Int(_1!) & Int(1 << 1) == 0) || _8 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
return Api.SavedDialog.monoForumDialog(flags: _1!, peer: _2!, topMessage: _3!, readInboxMaxId: _4!, readOutboxMaxId: _5!, unreadCount: _6!, unreadReactionsCount: _7!, draft: _8)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 {
|
||||
return Api.SavedDialog.monoForumDialog(flags: _1!, peer: _2!, topMessage: _3!, readInboxMaxId: _4!, readOutboxMaxId: _5!, unreadCount: _6!, unreadReactionsCount: _7!, draft: _8)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_savedDialog(_ reader: BufferReader) -> SavedDialog? {
|
||||
var _1: Int32?
|
||||
|
|
@ -511,10 +564,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.SavedDialog.savedDialog(flags: _1!, peer: _2!, topMessage: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.SavedDialog.savedDialog(flags: _1!, peer: _2!, topMessage: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -559,24 +614,25 @@ public extension Api {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = (Int(_1!) & Int(1 << 0) == 0) || _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.SavedReactionTag.savedReactionTag(flags: _1!, reaction: _2!, title: _3, count: _4!)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.SavedReactionTag.savedReactionTag(flags: _1!, reaction: _2!, title: _3, count: _4!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
public extension Api {
|
||||
enum SavedStarGift: TypeConstructorDescription {
|
||||
case savedStarGift(flags: Int32, fromId: Api.Peer?, date: Int32, gift: Api.StarGift, message: Api.TextWithEntities?, msgId: Int32?, savedId: Int64?, convertStars: Int64?, upgradeStars: Int64?, canExportAt: Int32?, transferStars: Int64?, canTransferAt: Int32?, canResellAt: Int32?, collectionId: [Int32]?, prepaidUpgradeHash: String?, dropOriginalDetailsStars: Int64?, giftNum: Int32?)
|
||||
case savedStarGift(flags: Int32, fromId: Api.Peer?, date: Int32, gift: Api.StarGift, message: Api.TextWithEntities?, msgId: Int32?, savedId: Int64?, convertStars: Int64?, upgradeStars: Int64?, canExportAt: Int32?, transferStars: Int64?, canTransferAt: Int32?, canResellAt: Int32?, collectionId: [Int32]?, prepaidUpgradeHash: String?, dropOriginalDetailsStars: Int64?, giftNum: Int32?, canCraftAt: Int32?, craftChancePermille: Int32?)
|
||||
|
||||
public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) {
|
||||
switch self {
|
||||
case .savedStarGift(let flags, let fromId, let date, let gift, let message, let msgId, let savedId, let convertStars, let upgradeStars, let canExportAt, let transferStars, let canTransferAt, let canResellAt, let collectionId, let prepaidUpgradeHash, let dropOriginalDetailsStars, let giftNum):
|
||||
case .savedStarGift(let flags, let fromId, let date, let gift, let message, let msgId, let savedId, let convertStars, let upgradeStars, let canExportAt, let transferStars, let canTransferAt, let canResellAt, let collectionId, let prepaidUpgradeHash, let dropOriginalDetailsStars, let giftNum, let canCraftAt, let craftChancePermille):
|
||||
if boxed {
|
||||
buffer.appendInt32(-355041186)
|
||||
buffer.appendInt32(949728281)
|
||||
}
|
||||
serializeInt32(flags, buffer: buffer, boxed: false)
|
||||
if Int(flags) & Int(1 << 1) != 0 {fromId!.serialize(buffer, true)}
|
||||
|
|
@ -599,14 +655,16 @@ public extension Api {
|
|||
if Int(flags) & Int(1 << 16) != 0 {serializeString(prepaidUpgradeHash!, buffer: buffer, boxed: false)}
|
||||
if Int(flags) & Int(1 << 18) != 0 {serializeInt64(dropOriginalDetailsStars!, buffer: buffer, boxed: false)}
|
||||
if Int(flags) & Int(1 << 19) != 0 {serializeInt32(giftNum!, buffer: buffer, boxed: false)}
|
||||
if Int(flags) & Int(1 << 20) != 0 {serializeInt32(canCraftAt!, buffer: buffer, boxed: false)}
|
||||
if Int(flags) & Int(1 << 20) != 0 {serializeInt32(craftChancePermille!, buffer: buffer, boxed: false)}
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
public func descriptionFields() -> (String, [(String, Any)]) {
|
||||
switch self {
|
||||
case .savedStarGift(let flags, let fromId, let date, let gift, let message, let msgId, let savedId, let convertStars, let upgradeStars, let canExportAt, let transferStars, let canTransferAt, let canResellAt, let collectionId, let prepaidUpgradeHash, let dropOriginalDetailsStars, let giftNum):
|
||||
return ("savedStarGift", [("flags", flags as Any), ("fromId", fromId as Any), ("date", date as Any), ("gift", gift as Any), ("message", message as Any), ("msgId", msgId as Any), ("savedId", savedId as Any), ("convertStars", convertStars as Any), ("upgradeStars", upgradeStars as Any), ("canExportAt", canExportAt as Any), ("transferStars", transferStars as Any), ("canTransferAt", canTransferAt as Any), ("canResellAt", canResellAt as Any), ("collectionId", collectionId as Any), ("prepaidUpgradeHash", prepaidUpgradeHash as Any), ("dropOriginalDetailsStars", dropOriginalDetailsStars as Any), ("giftNum", giftNum as Any)])
|
||||
case .savedStarGift(let flags, let fromId, let date, let gift, let message, let msgId, let savedId, let convertStars, let upgradeStars, let canExportAt, let transferStars, let canTransferAt, let canResellAt, let collectionId, let prepaidUpgradeHash, let dropOriginalDetailsStars, let giftNum, let canCraftAt, let craftChancePermille):
|
||||
return ("savedStarGift", [("flags", flags as Any), ("fromId", fromId as Any), ("date", date as Any), ("gift", gift as Any), ("message", message as Any), ("msgId", msgId as Any), ("savedId", savedId as Any), ("convertStars", convertStars as Any), ("upgradeStars", upgradeStars as Any), ("canExportAt", canExportAt as Any), ("transferStars", transferStars as Any), ("canTransferAt", canTransferAt as Any), ("canResellAt", canResellAt as Any), ("collectionId", collectionId as Any), ("prepaidUpgradeHash", prepaidUpgradeHash as Any), ("dropOriginalDetailsStars", dropOriginalDetailsStars as Any), ("giftNum", giftNum as Any), ("canCraftAt", canCraftAt as Any), ("craftChancePermille", craftChancePermille as Any)])
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -653,6 +711,10 @@ public extension Api {
|
|||
if Int(_1!) & Int(1 << 18) != 0 {_16 = reader.readInt64() }
|
||||
var _17: Int32?
|
||||
if Int(_1!) & Int(1 << 19) != 0 {_17 = reader.readInt32() }
|
||||
var _18: Int32?
|
||||
if Int(_1!) & Int(1 << 20) != 0 {_18 = reader.readInt32() }
|
||||
var _19: Int32?
|
||||
if Int(_1!) & Int(1 << 20) != 0 {_19 = reader.readInt32() }
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = (Int(_1!) & Int(1 << 1) == 0) || _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
|
|
@ -670,24 +732,14 @@ public extension Api {
|
|||
let _c15 = (Int(_1!) & Int(1 << 16) == 0) || _15 != nil
|
||||
let _c16 = (Int(_1!) & Int(1 << 18) == 0) || _16 != nil
|
||||
let _c17 = (Int(_1!) & Int(1 << 19) == 0) || _17 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
if !_c9 { return nil }
|
||||
if !_c10 { return nil }
|
||||
if !_c11 { return nil }
|
||||
if !_c12 { return nil }
|
||||
if !_c13 { return nil }
|
||||
if !_c14 { return nil }
|
||||
if !_c15 { return nil }
|
||||
if !_c16 { return nil }
|
||||
if !_c17 { return nil }
|
||||
return Api.SavedStarGift.savedStarGift(flags: _1!, fromId: _2, date: _3!, gift: _4!, message: _5, msgId: _6, savedId: _7, convertStars: _8, upgradeStars: _9, canExportAt: _10, transferStars: _11, canTransferAt: _12, canResellAt: _13, collectionId: _14, prepaidUpgradeHash: _15, dropOriginalDetailsStars: _16, giftNum: _17)
|
||||
let _c18 = (Int(_1!) & Int(1 << 20) == 0) || _18 != nil
|
||||
let _c19 = (Int(_1!) & Int(1 << 20) == 0) || _19 != nil
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 && _c10 && _c11 && _c12 && _c13 && _c14 && _c15 && _c16 && _c17 && _c18 && _c19 {
|
||||
return Api.SavedStarGift.savedStarGift(flags: _1!, fromId: _2, date: _3!, gift: _4!, message: _5, msgId: _6, savedId: _7, convertStars: _8, upgradeStars: _9, canExportAt: _10, transferStars: _11, canTransferAt: _12, canResellAt: _13, collectionId: _14, prepaidUpgradeHash: _15, dropOriginalDetailsStars: _16, giftNum: _17, canCraftAt: _18, craftChancePermille: _19)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -734,12 +786,12 @@ public extension Api {
|
|||
let _c3 = _3 != nil
|
||||
let _c4 = (Int(_1!) & Int(1 << 1) == 0) || _4 != nil
|
||||
let _c5 = _5 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
return Api.SearchPostsFlood.searchPostsFlood(flags: _1!, totalDaily: _2!, remains: _3!, waitTill: _4, starsAmount: _5!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 {
|
||||
return Api.SearchPostsFlood.searchPostsFlood(flags: _1!, totalDaily: _2!, remains: _3!, waitTill: _4, starsAmount: _5!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -782,11 +834,12 @@ public extension Api {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.SearchResultsCalendarPeriod.searchResultsCalendarPeriod(date: _1!, minMsgId: _2!, maxMsgId: _3!, count: _4!)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.SearchResultsCalendarPeriod.searchResultsCalendarPeriod(date: _1!, minMsgId: _2!, maxMsgId: _3!, count: _4!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -825,10 +878,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.SearchResultsPosition.searchResultPosition(msgId: _1!, date: _2!, offset: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.SearchResultsPosition.searchResultPosition(msgId: _1!, date: _2!, offset: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -867,10 +922,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.SecureCredentialsEncrypted.secureCredentialsEncrypted(data: _1!, hash: _2!, secret: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.SecureCredentialsEncrypted.secureCredentialsEncrypted(data: _1!, hash: _2!, secret: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -909,10 +966,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.SecureData.secureData(data: _1!, dataHash: _2!, secret: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.SecureData.secureData(data: _1!, dataHash: _2!, secret: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -976,14 +1035,12 @@ public extension Api {
|
|||
let _c5 = _5 != nil
|
||||
let _c6 = _6 != nil
|
||||
let _c7 = _7 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
return Api.SecureFile.secureFile(id: _1!, accessHash: _2!, size: _3!, dcId: _4!, date: _5!, fileHash: _6!, secret: _7!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 {
|
||||
return Api.SecureFile.secureFile(id: _1!, accessHash: _2!, size: _3!, dcId: _4!, date: _5!, fileHash: _6!, secret: _7!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_secureFileEmpty(_ reader: BufferReader) -> SecureFile? {
|
||||
return Api.SecureFile.secureFileEmpty
|
||||
|
|
@ -1035,15 +1092,23 @@ public extension Api {
|
|||
var _1: Buffer?
|
||||
_1 = parseBytes(reader)
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.SecurePasswordKdfAlgo.securePasswordKdfAlgoPBKDF2HMACSHA512iter100000(salt: _1!)
|
||||
if _c1 {
|
||||
return Api.SecurePasswordKdfAlgo.securePasswordKdfAlgoPBKDF2HMACSHA512iter100000(salt: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_securePasswordKdfAlgoSHA512(_ reader: BufferReader) -> SecurePasswordKdfAlgo? {
|
||||
var _1: Buffer?
|
||||
_1 = parseBytes(reader)
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.SecurePasswordKdfAlgo.securePasswordKdfAlgoSHA512(salt: _1!)
|
||||
if _c1 {
|
||||
return Api.SecurePasswordKdfAlgo.securePasswordKdfAlgoSHA512(salt: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_securePasswordKdfAlgoUnknown(_ reader: BufferReader) -> SecurePasswordKdfAlgo? {
|
||||
return Api.SecurePasswordKdfAlgo.securePasswordKdfAlgoUnknown
|
||||
|
|
|
|||
|
|
@ -33,15 +33,23 @@ public extension Api {
|
|||
var _1: String?
|
||||
_1 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.SecurePlainData.securePlainEmail(email: _1!)
|
||||
if _c1 {
|
||||
return Api.SecurePlainData.securePlainEmail(email: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_securePlainPhone(_ reader: BufferReader) -> SecurePlainData? {
|
||||
var _1: String?
|
||||
_1 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.SecurePlainData.securePlainPhone(phone: _1!)
|
||||
if _c1 {
|
||||
return Api.SecurePlainData.securePlainPhone(phone: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -91,9 +99,12 @@ public extension Api {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.SecureRequiredType.secureRequiredType(flags: _1!, type: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.SecureRequiredType.secureRequiredType(flags: _1!, type: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_secureRequiredTypeOneOf(_ reader: BufferReader) -> SecureRequiredType? {
|
||||
var _1: [Api.SecureRequiredType]?
|
||||
|
|
@ -101,8 +112,12 @@ public extension Api {
|
|||
_1 = Api.parseVector(reader, elementSignature: 0, elementType: Api.SecureRequiredType.self)
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.SecureRequiredType.secureRequiredTypeOneOf(types: _1!)
|
||||
if _c1 {
|
||||
return Api.SecureRequiredType.secureRequiredTypeOneOf(types: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -143,10 +158,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.SecureSecretSettings.secureSecretSettings(secureAlgo: _1!, secureSecret: _2!, secureSecretId: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.SecureSecretSettings.secureSecretSettings(secureAlgo: _1!, secureSecret: _2!, secureSecretId: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -237,17 +254,12 @@ public extension Api {
|
|||
let _c8 = (Int(_1!) & Int(1 << 4) == 0) || _8 != nil
|
||||
let _c9 = (Int(_1!) & Int(1 << 5) == 0) || _9 != nil
|
||||
let _c10 = _10 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
if !_c9 { return nil }
|
||||
if !_c10 { return nil }
|
||||
return Api.SecureValue.secureValue(flags: _1!, type: _2!, data: _3, frontSide: _4, reverseSide: _5, selfie: _6, translation: _7, files: _8, plainData: _9, hash: _10!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 && _c10 {
|
||||
return Api.SecureValue.secureValue(flags: _1!, type: _2!, data: _3, frontSide: _4, reverseSide: _5, selfie: _6, translation: _7, files: _8, plainData: _9, hash: _10!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -385,10 +397,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.SecureValueError.secureValueError(type: _1!, hash: _2!, text: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.SecureValueError.secureValueError(type: _1!, hash: _2!, text: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_secureValueErrorData(_ reader: BufferReader) -> SecureValueError? {
|
||||
var _1: Api.SecureValueType?
|
||||
|
|
@ -405,11 +419,12 @@ public extension Api {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.SecureValueError.secureValueErrorData(type: _1!, dataHash: _2!, field: _3!, text: _4!)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.SecureValueError.secureValueErrorData(type: _1!, dataHash: _2!, field: _3!, text: _4!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_secureValueErrorFile(_ reader: BufferReader) -> SecureValueError? {
|
||||
var _1: Api.SecureValueType?
|
||||
|
|
@ -423,10 +438,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.SecureValueError.secureValueErrorFile(type: _1!, fileHash: _2!, text: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.SecureValueError.secureValueErrorFile(type: _1!, fileHash: _2!, text: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_secureValueErrorFiles(_ reader: BufferReader) -> SecureValueError? {
|
||||
var _1: Api.SecureValueType?
|
||||
|
|
@ -442,10 +459,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.SecureValueError.secureValueErrorFiles(type: _1!, fileHash: _2!, text: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.SecureValueError.secureValueErrorFiles(type: _1!, fileHash: _2!, text: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_secureValueErrorFrontSide(_ reader: BufferReader) -> SecureValueError? {
|
||||
var _1: Api.SecureValueType?
|
||||
|
|
@ -459,10 +478,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.SecureValueError.secureValueErrorFrontSide(type: _1!, fileHash: _2!, text: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.SecureValueError.secureValueErrorFrontSide(type: _1!, fileHash: _2!, text: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_secureValueErrorReverseSide(_ reader: BufferReader) -> SecureValueError? {
|
||||
var _1: Api.SecureValueType?
|
||||
|
|
@ -476,10 +497,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.SecureValueError.secureValueErrorReverseSide(type: _1!, fileHash: _2!, text: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.SecureValueError.secureValueErrorReverseSide(type: _1!, fileHash: _2!, text: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_secureValueErrorSelfie(_ reader: BufferReader) -> SecureValueError? {
|
||||
var _1: Api.SecureValueType?
|
||||
|
|
@ -493,10 +516,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.SecureValueError.secureValueErrorSelfie(type: _1!, fileHash: _2!, text: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.SecureValueError.secureValueErrorSelfie(type: _1!, fileHash: _2!, text: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_secureValueErrorTranslationFile(_ reader: BufferReader) -> SecureValueError? {
|
||||
var _1: Api.SecureValueType?
|
||||
|
|
@ -510,10 +535,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.SecureValueError.secureValueErrorTranslationFile(type: _1!, fileHash: _2!, text: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.SecureValueError.secureValueErrorTranslationFile(type: _1!, fileHash: _2!, text: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_secureValueErrorTranslationFiles(_ reader: BufferReader) -> SecureValueError? {
|
||||
var _1: Api.SecureValueType?
|
||||
|
|
@ -529,10 +556,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.SecureValueError.secureValueErrorTranslationFiles(type: _1!, fileHash: _2!, text: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.SecureValueError.secureValueErrorTranslationFiles(type: _1!, fileHash: _2!, text: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -569,9 +598,12 @@ public extension Api {
|
|||
_2 = parseBytes(reader)
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.SecureValueHash.secureValueHash(type: _1!, hash: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.SecureValueHash.secureValueHash(type: _1!, hash: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -780,9 +812,12 @@ public extension Api {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.SendAsPeer.sendAsPeer(flags: _1!, peer: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.SendAsPeer.sendAsPeer(flags: _1!, peer: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -995,17 +1030,23 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.SendMessageAction.sendMessageEmojiInteraction(emoticon: _1!, msgId: _2!, interaction: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.SendMessageAction.sendMessageEmojiInteraction(emoticon: _1!, msgId: _2!, interaction: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_sendMessageEmojiInteractionSeen(_ reader: BufferReader) -> SendMessageAction? {
|
||||
var _1: String?
|
||||
_1 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.SendMessageAction.sendMessageEmojiInteractionSeen(emoticon: _1!)
|
||||
if _c1 {
|
||||
return Api.SendMessageAction.sendMessageEmojiInteractionSeen(emoticon: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_sendMessageGamePlayAction(_ reader: BufferReader) -> SendMessageAction? {
|
||||
return Api.SendMessageAction.sendMessageGamePlayAction
|
||||
|
|
@ -1017,8 +1058,12 @@ public extension Api {
|
|||
var _1: Int32?
|
||||
_1 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.SendMessageAction.sendMessageHistoryImportAction(progress: _1!)
|
||||
if _c1 {
|
||||
return Api.SendMessageAction.sendMessageHistoryImportAction(progress: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_sendMessageRecordAudioAction(_ reader: BufferReader) -> SendMessageAction? {
|
||||
return Api.SendMessageAction.sendMessageRecordAudioAction
|
||||
|
|
@ -1038,9 +1083,12 @@ public extension Api {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.SendMessageAction.sendMessageTextDraftAction(randomId: _1!, text: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.SendMessageAction.sendMessageTextDraftAction(randomId: _1!, text: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_sendMessageTypingAction(_ reader: BufferReader) -> SendMessageAction? {
|
||||
return Api.SendMessageAction.sendMessageTypingAction
|
||||
|
|
@ -1049,36 +1097,56 @@ public extension Api {
|
|||
var _1: Int32?
|
||||
_1 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.SendMessageAction.sendMessageUploadAudioAction(progress: _1!)
|
||||
if _c1 {
|
||||
return Api.SendMessageAction.sendMessageUploadAudioAction(progress: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_sendMessageUploadDocumentAction(_ reader: BufferReader) -> SendMessageAction? {
|
||||
var _1: Int32?
|
||||
_1 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.SendMessageAction.sendMessageUploadDocumentAction(progress: _1!)
|
||||
if _c1 {
|
||||
return Api.SendMessageAction.sendMessageUploadDocumentAction(progress: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_sendMessageUploadPhotoAction(_ reader: BufferReader) -> SendMessageAction? {
|
||||
var _1: Int32?
|
||||
_1 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.SendMessageAction.sendMessageUploadPhotoAction(progress: _1!)
|
||||
if _c1 {
|
||||
return Api.SendMessageAction.sendMessageUploadPhotoAction(progress: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_sendMessageUploadRoundAction(_ reader: BufferReader) -> SendMessageAction? {
|
||||
var _1: Int32?
|
||||
_1 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.SendMessageAction.sendMessageUploadRoundAction(progress: _1!)
|
||||
if _c1 {
|
||||
return Api.SendMessageAction.sendMessageUploadRoundAction(progress: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_sendMessageUploadVideoAction(_ reader: BufferReader) -> SendMessageAction? {
|
||||
var _1: Int32?
|
||||
_1 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.SendMessageAction.sendMessageUploadVideoAction(progress: _1!)
|
||||
if _c1 {
|
||||
return Api.SendMessageAction.sendMessageUploadVideoAction(progress: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_speakingInGroupCallAction(_ reader: BufferReader) -> SendMessageAction? {
|
||||
return Api.SendMessageAction.speakingInGroupCallAction
|
||||
|
|
|
|||
|
|
@ -38,10 +38,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.ShippingOption.shippingOption(id: _1!, title: _2!, prices: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.ShippingOption.shippingOption(id: _1!, title: _2!, prices: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -80,10 +82,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.SmsJob.smsJob(jobId: _1!, phoneNumber: _2!, text: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.SmsJob.smsJob(jobId: _1!, phoneNumber: _2!, text: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -178,21 +182,12 @@ public extension Api {
|
|||
let _c12 = (Int(_1!) & Int(1 << 8) == 0) || _12 != nil
|
||||
let _c13 = (Int(_1!) & Int(1 << 15) == 0) || _13 != nil
|
||||
let _c14 = (Int(_1!) & Int(1 << 15) == 0) || _14 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
if !_c9 { return nil }
|
||||
if !_c10 { return nil }
|
||||
if !_c11 { return nil }
|
||||
if !_c12 { return nil }
|
||||
if !_c13 { return nil }
|
||||
if !_c14 { return nil }
|
||||
return Api.SponsoredMessage.sponsoredMessage(flags: _1!, randomId: _2!, url: _3!, title: _4!, message: _5!, entities: _6, photo: _7, media: _8, color: _9, buttonText: _10!, sponsorInfo: _11, additionalInfo: _12, minDisplayDuration: _13, maxDisplayDuration: _14)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 && _c10 && _c11 && _c12 && _c13 && _c14 {
|
||||
return Api.SponsoredMessage.sponsoredMessage(flags: _1!, randomId: _2!, url: _3!, title: _4!, message: _5!, entities: _6, photo: _7, media: _8, color: _9, buttonText: _10!, sponsorInfo: _11, additionalInfo: _12, minDisplayDuration: _13, maxDisplayDuration: _14)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -227,9 +222,12 @@ public extension Api {
|
|||
_2 = parseBytes(reader)
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.SponsoredMessageReportOption.sponsoredMessageReportOption(text: _1!, option: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.SponsoredMessageReportOption.sponsoredMessageReportOption(text: _1!, option: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -278,12 +276,12 @@ public extension Api {
|
|||
let _c3 = _3 != nil
|
||||
let _c4 = (Int(_1!) & Int(1 << 0) == 0) || _4 != nil
|
||||
let _c5 = (Int(_1!) & Int(1 << 1) == 0) || _5 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
return Api.SponsoredPeer.sponsoredPeer(flags: _1!, randomId: _2!, peer: _3!, sponsorInfo: _4, additionalInfo: _5)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 {
|
||||
return Api.SponsoredPeer.sponsoredPeer(flags: _1!, randomId: _2!, peer: _3!, sponsorInfo: _4, additionalInfo: _5)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -442,29 +440,12 @@ public extension Api {
|
|||
let _c20 = (Int(_1!) & Int(1 << 11) == 0) || _20 != nil
|
||||
let _c21 = (Int(_1!) & Int(1 << 12) == 0) || _21 != nil
|
||||
let _c22 = (Int(_1!) & Int(1 << 13) == 0) || _22 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
if !_c9 { return nil }
|
||||
if !_c10 { return nil }
|
||||
if !_c11 { return nil }
|
||||
if !_c12 { return nil }
|
||||
if !_c13 { return nil }
|
||||
if !_c14 { return nil }
|
||||
if !_c15 { return nil }
|
||||
if !_c16 { return nil }
|
||||
if !_c17 { return nil }
|
||||
if !_c18 { return nil }
|
||||
if !_c19 { return nil }
|
||||
if !_c20 { return nil }
|
||||
if !_c21 { return nil }
|
||||
if !_c22 { return nil }
|
||||
return Api.StarGift.starGift(flags: _1!, id: _2!, sticker: _3!, stars: _4!, availabilityRemains: _5, availabilityTotal: _6, availabilityResale: _7, convertStars: _8!, firstSaleDate: _9, lastSaleDate: _10, upgradeStars: _11, resellMinStars: _12, title: _13, releasedBy: _14, perUserTotal: _15, perUserRemains: _16, lockedUntilDate: _17, auctionSlug: _18, giftsPerRound: _19, auctionStartDate: _20, upgradeVariants: _21, background: _22)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 && _c10 && _c11 && _c12 && _c13 && _c14 && _c15 && _c16 && _c17 && _c18 && _c19 && _c20 && _c21 && _c22 {
|
||||
return Api.StarGift.starGift(flags: _1!, id: _2!, sticker: _3!, stars: _4!, availabilityRemains: _5, availabilityTotal: _6, availabilityResale: _7, convertStars: _8!, firstSaleDate: _9, lastSaleDate: _10, upgradeStars: _11, resellMinStars: _12, title: _13, releasedBy: _14, perUserTotal: _15, perUserRemains: _16, lockedUntilDate: _17, auctionSlug: _18, giftsPerRound: _19, auctionStartDate: _20, upgradeVariants: _21, background: _22)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_starGiftUnique(_ reader: BufferReader) -> StarGift? {
|
||||
var _1: Int32?
|
||||
|
|
@ -547,29 +528,12 @@ public extension Api {
|
|||
let _c20 = (Int(_1!) & Int(1 << 11) == 0) || _20 != nil
|
||||
let _c21 = (Int(_1!) & Int(1 << 12) == 0) || _21 != nil
|
||||
let _c22 = (Int(_1!) & Int(1 << 13) == 0) || _22 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
if !_c9 { return nil }
|
||||
if !_c10 { return nil }
|
||||
if !_c11 { return nil }
|
||||
if !_c12 { return nil }
|
||||
if !_c13 { return nil }
|
||||
if !_c14 { return nil }
|
||||
if !_c15 { return nil }
|
||||
if !_c16 { return nil }
|
||||
if !_c17 { return nil }
|
||||
if !_c18 { return nil }
|
||||
if !_c19 { return nil }
|
||||
if !_c20 { return nil }
|
||||
if !_c21 { return nil }
|
||||
if !_c22 { return nil }
|
||||
return Api.StarGift.starGiftUnique(flags: _1!, id: _2!, giftId: _3!, title: _4!, slug: _5!, num: _6!, ownerId: _7, ownerName: _8, ownerAddress: _9, attributes: _10!, availabilityIssued: _11!, availabilityTotal: _12!, giftAddress: _13, resellAmount: _14, releasedBy: _15, valueAmount: _16, valueCurrency: _17, valueUsdAmount: _18, themePeer: _19, peerColor: _20, hostId: _21, offerMinStars: _22)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 && _c10 && _c11 && _c12 && _c13 && _c14 && _c15 && _c16 && _c17 && _c18 && _c19 && _c20 && _c21 && _c22 {
|
||||
return Api.StarGift.starGiftUnique(flags: _1!, id: _2!, giftId: _3!, title: _4!, slug: _5!, num: _6!, ownerId: _7, ownerName: _8, ownerAddress: _9, attributes: _10!, availabilityIssued: _11!, availabilityTotal: _12!, giftAddress: _13, resellAmount: _14, releasedBy: _15, valueAmount: _16, valueCurrency: _17, valueUsdAmount: _18, themePeer: _19, peerColor: _20, hostId: _21, offerMinStars: _22)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -614,10 +578,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.StarGiftActiveAuctionState.starGiftActiveAuctionState(gift: _1!, state: _2!, userState: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.StarGiftActiveAuctionState.starGiftActiveAuctionState(gift: _1!, state: _2!, userState: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -707,14 +673,12 @@ public extension Api {
|
|||
let _c5 = _5 != nil
|
||||
let _c6 = _6 != nil
|
||||
let _c7 = _7 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
return Api.StarGiftAttribute.starGiftAttributeBackdrop(name: _1!, backdropId: _2!, centerColor: _3!, edgeColor: _4!, patternColor: _5!, textColor: _6!, rarityPermille: _7!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 {
|
||||
return Api.StarGiftAttribute.starGiftAttributeBackdrop(name: _1!, backdropId: _2!, centerColor: _3!, edgeColor: _4!, patternColor: _5!, textColor: _6!, rarityPermille: _7!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_starGiftAttributeModel(_ reader: BufferReader) -> StarGiftAttribute? {
|
||||
var _1: String?
|
||||
|
|
@ -728,10 +692,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.StarGiftAttribute.starGiftAttributeModel(name: _1!, document: _2!, rarityPermille: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.StarGiftAttribute.starGiftAttributeModel(name: _1!, document: _2!, rarityPermille: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_starGiftAttributeOriginalDetails(_ reader: BufferReader) -> StarGiftAttribute? {
|
||||
var _1: Int32?
|
||||
|
|
@ -755,12 +721,12 @@ public extension Api {
|
|||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
let _c5 = (Int(_1!) & Int(1 << 1) == 0) || _5 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
return Api.StarGiftAttribute.starGiftAttributeOriginalDetails(flags: _1!, senderId: _2, recipientId: _3!, date: _4!, message: _5)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 {
|
||||
return Api.StarGiftAttribute.starGiftAttributeOriginalDetails(flags: _1!, senderId: _2, recipientId: _3!, date: _4!, message: _5)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_starGiftAttributePattern(_ reader: BufferReader) -> StarGiftAttribute? {
|
||||
var _1: String?
|
||||
|
|
@ -774,10 +740,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.StarGiftAttribute.starGiftAttributePattern(name: _1!, document: _2!, rarityPermille: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.StarGiftAttribute.starGiftAttributePattern(name: _1!, document: _2!, rarityPermille: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -814,9 +782,12 @@ public extension Api {
|
|||
_2 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.StarGiftAttributeCounter.starGiftAttributeCounter(attribute: _1!, count: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.StarGiftAttributeCounter.starGiftAttributeCounter(attribute: _1!, count: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -865,22 +836,34 @@ public extension Api {
|
|||
var _1: Int32?
|
||||
_1 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.StarGiftAttributeId.starGiftAttributeIdBackdrop(backdropId: _1!)
|
||||
if _c1 {
|
||||
return Api.StarGiftAttributeId.starGiftAttributeIdBackdrop(backdropId: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_starGiftAttributeIdModel(_ reader: BufferReader) -> StarGiftAttributeId? {
|
||||
var _1: Int64?
|
||||
_1 = reader.readInt64()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.StarGiftAttributeId.starGiftAttributeIdModel(documentId: _1!)
|
||||
if _c1 {
|
||||
return Api.StarGiftAttributeId.starGiftAttributeIdModel(documentId: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_starGiftAttributeIdPattern(_ reader: BufferReader) -> StarGiftAttributeId? {
|
||||
var _1: Int64?
|
||||
_1 = reader.readInt64()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.StarGiftAttributeId.starGiftAttributeIdPattern(documentId: _1!)
|
||||
if _c1 {
|
||||
return Api.StarGiftAttributeId.starGiftAttributeIdPattern(documentId: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -943,15 +926,12 @@ public extension Api {
|
|||
let _c6 = _6 != nil
|
||||
let _c7 = (Int(_1!) & Int(1 << 1) == 0) || _7 != nil
|
||||
let _c8 = (Int(_1!) & Int(1 << 2) == 0) || _8 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
return Api.StarGiftAuctionAcquiredGift.starGiftAuctionAcquiredGift(flags: _1!, peer: _2!, date: _3!, bidAmount: _4!, round: _5!, pos: _6!, message: _7, giftNum: _8)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 {
|
||||
return Api.StarGiftAuctionAcquiredGift.starGiftAuctionAcquiredGift(flags: _1!, peer: _2!, date: _3!, bidAmount: _4!, round: _5!, pos: _6!, message: _7, giftNum: _8)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -998,9 +978,12 @@ public extension Api {
|
|||
_2 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.StarGiftAuctionRound.starGiftAuctionRound(num: _1!, duration: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.StarGiftAuctionRound.starGiftAuctionRound(num: _1!, duration: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_starGiftAuctionRoundExtendable(_ reader: BufferReader) -> StarGiftAuctionRound? {
|
||||
var _1: Int32?
|
||||
|
|
@ -1015,11 +998,12 @@ public extension Api {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.StarGiftAuctionRound.starGiftAuctionRoundExtendable(num: _1!, duration: _2!, extendTop: _3!, extendWindow: _4!)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.StarGiftAuctionRound.starGiftAuctionRoundExtendable(num: _1!, duration: _2!, extendTop: _3!, extendWindow: _4!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1136,19 +1120,12 @@ public extension Api {
|
|||
let _c10 = _10 != nil
|
||||
let _c11 = _11 != nil
|
||||
let _c12 = _12 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
if !_c9 { return nil }
|
||||
if !_c10 { return nil }
|
||||
if !_c11 { return nil }
|
||||
if !_c12 { return nil }
|
||||
return Api.StarGiftAuctionState.starGiftAuctionState(version: _1!, startDate: _2!, endDate: _3!, minBidAmount: _4!, bidLevels: _5!, topBidders: _6!, nextRoundAt: _7!, lastGiftNum: _8!, giftsLeft: _9!, currentRound: _10!, totalRounds: _11!, rounds: _12!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 && _c10 && _c11 && _c12 {
|
||||
return Api.StarGiftAuctionState.starGiftAuctionState(version: _1!, startDate: _2!, endDate: _3!, minBidAmount: _4!, bidLevels: _5!, topBidders: _6!, nextRoundAt: _7!, lastGiftNum: _8!, giftsLeft: _9!, currentRound: _10!, totalRounds: _11!, rounds: _12!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_starGiftAuctionStateFinished(_ reader: BufferReader) -> StarGiftAuctionState? {
|
||||
var _1: Int32?
|
||||
|
|
@ -1172,14 +1149,12 @@ public extension Api {
|
|||
let _c5 = (Int(_1!) & Int(1 << 0) == 0) || _5 != nil
|
||||
let _c6 = (Int(_1!) & Int(1 << 1) == 0) || _6 != nil
|
||||
let _c7 = (Int(_1!) & Int(1 << 1) == 0) || _7 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
return Api.StarGiftAuctionState.starGiftAuctionStateFinished(flags: _1!, startDate: _2!, endDate: _3!, averagePrice: _4!, listedCount: _5, fragmentListedCount: _6, fragmentListedUrl: _7)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 {
|
||||
return Api.StarGiftAuctionState.starGiftAuctionStateFinished(flags: _1!, startDate: _2!, endDate: _3!, averagePrice: _4!, listedCount: _5, fragmentListedCount: _6, fragmentListedUrl: _7)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_starGiftAuctionStateNotModified(_ reader: BufferReader) -> StarGiftAuctionState? {
|
||||
return Api.StarGiftAuctionState.starGiftAuctionStateNotModified
|
||||
|
|
@ -1235,13 +1210,12 @@ public extension Api {
|
|||
let _c4 = (Int(_1!) & Int(1 << 0) == 0) || _4 != nil
|
||||
let _c5 = (Int(_1!) & Int(1 << 0) == 0) || _5 != nil
|
||||
let _c6 = _6 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
return Api.StarGiftAuctionUserState.starGiftAuctionUserState(flags: _1!, bidAmount: _2, bidDate: _3, minBidAmount: _4, bidPeer: _5, acquiredCount: _6!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 {
|
||||
return Api.StarGiftAuctionUserState.starGiftAuctionUserState(flags: _1!, bidAmount: _2, bidDate: _3, minBidAmount: _4, bidPeer: _5, acquiredCount: _6!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1280,10 +1254,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.StarGiftBackground.starGiftBackground(centerColor: _1!, edgeColor: _2!, textColor: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.StarGiftBackground.starGiftBackground(centerColor: _1!, edgeColor: _2!, textColor: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1336,13 +1312,12 @@ public extension Api {
|
|||
let _c4 = (Int(_1!) & Int(1 << 0) == 0) || _4 != nil
|
||||
let _c5 = _5 != nil
|
||||
let _c6 = _6 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
return Api.StarGiftCollection.starGiftCollection(flags: _1!, collectionId: _2!, title: _3!, icon: _4, giftsCount: _5!, hash: _6!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 {
|
||||
return Api.StarGiftCollection.starGiftCollection(flags: _1!, collectionId: _2!, title: _3!, icon: _4, giftsCount: _5!, hash: _6!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1377,9 +1352,12 @@ public extension Api {
|
|||
_2 = reader.readInt64()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.StarGiftUpgradePrice.starGiftUpgradePrice(date: _1!, upgradeStars: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.StarGiftUpgradePrice.starGiftUpgradePrice(date: _1!, upgradeStars: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1432,13 +1410,12 @@ public extension Api {
|
|||
let _c4 = (Int(_1!) & Int(1 << 0) == 0) || _4 != nil
|
||||
let _c5 = (Int(_1!) & Int(1 << 1) == 0) || _5 != nil
|
||||
let _c6 = (Int(_1!) & Int(1 << 2) == 0) || _6 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
return Api.StarRefProgram.starRefProgram(flags: _1!, botId: _2!, commissionPermille: _3!, durationMonths: _4, endDate: _5, dailyRevenuePerUser: _6)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 {
|
||||
return Api.StarRefProgram.starRefProgram(flags: _1!, botId: _2!, commissionPermille: _3!, durationMonths: _4, endDate: _5, dailyRevenuePerUser: _6)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1482,16 +1459,23 @@ public extension Api {
|
|||
_2 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.StarsAmount.starsAmount(amount: _1!, nanos: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.StarsAmount.starsAmount(amount: _1!, nanos: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_starsTonAmount(_ reader: BufferReader) -> StarsAmount? {
|
||||
var _1: Int64?
|
||||
_1 = reader.readInt64()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.StarsAmount.starsTonAmount(amount: _1!)
|
||||
if _c1 {
|
||||
return Api.StarsAmount.starsTonAmount(amount: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1538,12 +1522,12 @@ public extension Api {
|
|||
let _c3 = (Int(_1!) & Int(1 << 0) == 0) || _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
let _c5 = _5 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
return Api.StarsGiftOption.starsGiftOption(flags: _1!, stars: _2!, storeProduct: _3, currency: _4!, amount: _5!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 {
|
||||
return Api.StarsGiftOption.starsGiftOption(flags: _1!, stars: _2!, storeProduct: _3, currency: _4!, amount: _5!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1604,14 +1588,12 @@ public extension Api {
|
|||
let _c5 = _5 != nil
|
||||
let _c6 = _6 != nil
|
||||
let _c7 = _7 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
return Api.StarsGiveawayOption.starsGiveawayOption(flags: _1!, stars: _2!, yearlyBoosts: _3!, storeProduct: _4, currency: _5!, amount: _6!, winners: _7!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 {
|
||||
return Api.StarsGiveawayOption.starsGiveawayOption(flags: _1!, stars: _2!, yearlyBoosts: _3!, storeProduct: _4, currency: _5!, amount: _6!, winners: _7!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1650,10 +1632,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.StarsGiveawayWinnersOption.starsGiveawayWinnersOption(flags: _1!, users: _2!, perUserStars: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.StarsGiveawayWinnersOption.starsGiveawayWinnersOption(flags: _1!, users: _2!, perUserStars: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -40,12 +40,12 @@ public extension Api {
|
|||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
let _c5 = (Int(_1!) & Int(1 << 0) == 0) || _5 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
return Api.StarsRating.starsRating(flags: _1!, level: _2!, currentLevelStars: _3!, stars: _4!, nextLevelStars: _5)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 {
|
||||
return Api.StarsRating.starsRating(flags: _1!, level: _2!, currentLevelStars: _3!, stars: _4!, nextLevelStars: _5)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -98,12 +98,12 @@ public extension Api {
|
|||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
let _c5 = (Int(_1!) & Int(1 << 1) == 0) || _5 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
return Api.StarsRevenueStatus.starsRevenueStatus(flags: _1!, currentBalance: _2!, availableBalance: _3!, overallRevenue: _4!, nextWithdrawalAt: _5)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 {
|
||||
return Api.StarsRevenueStatus.starsRevenueStatus(flags: _1!, currentBalance: _2!, availableBalance: _3!, overallRevenue: _4!, nextWithdrawalAt: _5)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -172,16 +172,12 @@ public extension Api {
|
|||
let _c7 = (Int(_1!) & Int(1 << 4) == 0) || _7 != nil
|
||||
let _c8 = (Int(_1!) & Int(1 << 5) == 0) || _8 != nil
|
||||
let _c9 = (Int(_1!) & Int(1 << 6) == 0) || _9 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
if !_c9 { return nil }
|
||||
return Api.StarsSubscription.starsSubscription(flags: _1!, id: _2!, peer: _3!, untilDate: _4!, pricing: _5!, chatInviteHash: _6, title: _7, photo: _8, invoiceSlug: _9)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 {
|
||||
return Api.StarsSubscription.starsSubscription(flags: _1!, id: _2!, peer: _3!, untilDate: _4!, pricing: _5!, chatInviteHash: _6, title: _7, photo: _8, invoiceSlug: _9)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -216,9 +212,12 @@ public extension Api {
|
|||
_2 = reader.readInt64()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.StarsSubscriptionPricing.starsSubscriptionPricing(period: _1!, amount: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.StarsSubscriptionPricing.starsSubscriptionPricing(period: _1!, amount: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -265,12 +264,12 @@ public extension Api {
|
|||
let _c3 = (Int(_1!) & Int(1 << 0) == 0) || _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
let _c5 = _5 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
return Api.StarsTopupOption.starsTopupOption(flags: _1!, stars: _2!, storeProduct: _3, currency: _4!, amount: _5!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 {
|
||||
return Api.StarsTopupOption.starsTopupOption(flags: _1!, stars: _2!, storeProduct: _3, currency: _4!, amount: _5!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -411,31 +410,12 @@ public extension Api {
|
|||
let _c22 = (Int(_1!) & Int(1 << 20) == 0) || _22 != nil
|
||||
let _c23 = (Int(_1!) & Int(1 << 23) == 0) || _23 != nil
|
||||
let _c24 = (Int(_1!) & Int(1 << 23) == 0) || _24 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
if !_c9 { return nil }
|
||||
if !_c10 { return nil }
|
||||
if !_c11 { return nil }
|
||||
if !_c12 { return nil }
|
||||
if !_c13 { return nil }
|
||||
if !_c14 { return nil }
|
||||
if !_c15 { return nil }
|
||||
if !_c16 { return nil }
|
||||
if !_c17 { return nil }
|
||||
if !_c18 { return nil }
|
||||
if !_c19 { return nil }
|
||||
if !_c20 { return nil }
|
||||
if !_c21 { return nil }
|
||||
if !_c22 { return nil }
|
||||
if !_c23 { return nil }
|
||||
if !_c24 { return nil }
|
||||
return Api.StarsTransaction.starsTransaction(flags: _1!, id: _2!, amount: _3!, date: _4!, peer: _5!, title: _6, description: _7, photo: _8, transactionDate: _9, transactionUrl: _10, botPayload: _11, msgId: _12, extendedMedia: _13, subscriptionPeriod: _14, giveawayPostId: _15, stargift: _16, floodskipNumber: _17, starrefCommissionPermille: _18, starrefPeer: _19, starrefAmount: _20, paidMessages: _21, premiumGiftMonths: _22, adsProceedsFromDate: _23, adsProceedsToDate: _24)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 && _c10 && _c11 && _c12 && _c13 && _c14 && _c15 && _c16 && _c17 && _c18 && _c19 && _c20 && _c21 && _c22 && _c23 && _c24 {
|
||||
return Api.StarsTransaction.starsTransaction(flags: _1!, id: _2!, amount: _3!, date: _4!, peer: _5!, title: _6, description: _7, photo: _8, transactionDate: _9, transactionUrl: _10, botPayload: _11, msgId: _12, extendedMedia: _13, subscriptionPeriod: _14, giveawayPostId: _15, stargift: _16, floodskipNumber: _17, starrefCommissionPermille: _18, starrefPeer: _19, starrefAmount: _20, paidMessages: _21, premiumGiftMonths: _22, adsProceedsFromDate: _23, adsProceedsToDate: _24)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -531,8 +511,12 @@ public extension Api {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.Peer
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.StarsTransactionPeer.starsTransactionPeer(peer: _1!)
|
||||
if _c1 {
|
||||
return Api.StarsTransactionPeer.starsTransactionPeer(peer: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_starsTransactionPeerAPI(_ reader: BufferReader) -> StarsTransactionPeer? {
|
||||
return Api.StarsTransactionPeer.starsTransactionPeerAPI
|
||||
|
|
@ -588,9 +572,12 @@ public extension Api {
|
|||
_2 = reader.readDouble()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.StatsAbsValueAndPrev.statsAbsValueAndPrev(current: _1!, previous: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.StatsAbsValueAndPrev.statsAbsValueAndPrev(current: _1!, previous: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -625,9 +612,12 @@ public extension Api {
|
|||
_2 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.StatsDateRangeDays.statsDateRangeDays(minDate: _1!, maxDate: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.StatsDateRangeDays.statsDateRangeDays(minDate: _1!, maxDate: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -686,24 +676,34 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = (Int(_1!) & Int(1 << 0) == 0) || _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.StatsGraph.statsGraph(flags: _1!, json: _2!, zoomToken: _3)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.StatsGraph.statsGraph(flags: _1!, json: _2!, zoomToken: _3)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_statsGraphAsync(_ reader: BufferReader) -> StatsGraph? {
|
||||
var _1: String?
|
||||
_1 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.StatsGraph.statsGraphAsync(token: _1!)
|
||||
if _c1 {
|
||||
return Api.StatsGraph.statsGraphAsync(token: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_statsGraphError(_ reader: BufferReader) -> StatsGraph? {
|
||||
var _1: String?
|
||||
_1 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.StatsGraph.statsGraphError(error: _1!)
|
||||
if _c1 {
|
||||
return Api.StatsGraph.statsGraphError(error: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -746,11 +746,12 @@ public extension Api {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.StatsGroupTopAdmin.statsGroupTopAdmin(userId: _1!, deleted: _2!, kicked: _3!, banned: _4!)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.StatsGroupTopAdmin.statsGroupTopAdmin(userId: _1!, deleted: _2!, kicked: _3!, banned: _4!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -785,9 +786,12 @@ public extension Api {
|
|||
_2 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.StatsGroupTopInviter.statsGroupTopInviter(userId: _1!, invitations: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.StatsGroupTopInviter.statsGroupTopInviter(userId: _1!, invitations: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -826,10 +830,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.StatsGroupTopPoster.statsGroupTopPoster(userId: _1!, messages: _2!, avgChars: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.StatsGroupTopPoster.statsGroupTopPoster(userId: _1!, messages: _2!, avgChars: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -864,9 +870,12 @@ public extension Api {
|
|||
_2 = reader.readDouble()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.StatsPercentValue.statsPercentValue(part: _1!, total: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.StatsPercentValue.statsPercentValue(part: _1!, total: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -897,8 +906,12 @@ public extension Api {
|
|||
var _1: String?
|
||||
_1 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.StatsURL.statsURL(url: _1!)
|
||||
if _c1 {
|
||||
return Api.StatsURL.statsURL(url: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -939,9 +952,12 @@ public extension Api {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.StickerKeyword.stickerKeyword(documentId: _1!, keyword: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.StickerKeyword.stickerKeyword(documentId: _1!, keyword: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -982,9 +998,12 @@ public extension Api {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.StickerPack.stickerPack(emoticon: _1!, documents: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.StickerPack.stickerPack(emoticon: _1!, documents: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1065,19 +1084,12 @@ public extension Api {
|
|||
let _c10 = (Int(_1!) & Int(1 << 8) == 0) || _10 != nil
|
||||
let _c11 = _11 != nil
|
||||
let _c12 = _12 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
if !_c9 { return nil }
|
||||
if !_c10 { return nil }
|
||||
if !_c11 { return nil }
|
||||
if !_c12 { return nil }
|
||||
return Api.StickerSet.stickerSet(flags: _1!, installedDate: _2, id: _3!, accessHash: _4!, title: _5!, shortName: _6!, thumbs: _7, thumbDcId: _8, thumbVersion: _9, thumbDocumentId: _10, count: _11!, hash: _12!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 && _c10 && _c11 && _c12 {
|
||||
return Api.StickerSet.stickerSet(flags: _1!, installedDate: _2, id: _3!, accessHash: _4!, title: _5!, shortName: _6!, thumbs: _7, thumbDcId: _8, thumbVersion: _9, thumbDocumentId: _10, count: _11!, hash: _12!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1163,9 +1175,12 @@ public extension Api {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.StickerSetCovered.stickerSetCovered(set: _1!, cover: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.StickerSetCovered.stickerSetCovered(set: _1!, cover: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_stickerSetFullCovered(_ reader: BufferReader) -> StickerSetCovered? {
|
||||
var _1: Api.StickerSet?
|
||||
|
|
@ -1188,11 +1203,12 @@ public extension Api {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.StickerSetCovered.stickerSetFullCovered(set: _1!, packs: _2!, keywords: _3!, documents: _4!)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.StickerSetCovered.stickerSetFullCovered(set: _1!, packs: _2!, keywords: _3!, documents: _4!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_stickerSetMultiCovered(_ reader: BufferReader) -> StickerSetCovered? {
|
||||
var _1: Api.StickerSet?
|
||||
|
|
@ -1205,9 +1221,12 @@ public extension Api {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.StickerSetCovered.stickerSetMultiCovered(set: _1!, covers: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.StickerSetCovered.stickerSetMultiCovered(set: _1!, covers: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_stickerSetNoCovered(_ reader: BufferReader) -> StickerSetCovered? {
|
||||
var _1: Api.StickerSet?
|
||||
|
|
@ -1215,8 +1234,12 @@ public extension Api {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.StickerSet
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.StickerSetCovered.stickerSetNoCovered(set: _1!)
|
||||
if _c1 {
|
||||
return Api.StickerSetCovered.stickerSetNoCovered(set: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1255,10 +1278,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = (Int(_1!) & Int(1 << 0) == 0) || _2 != nil
|
||||
let _c3 = (Int(_1!) & Int(1 << 1) == 0) || _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.StoriesStealthMode.storiesStealthMode(flags: _1!, activeUntilDate: _2, cooldownUntilDate: _3)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.StoriesStealthMode.storiesStealthMode(flags: _1!, activeUntilDate: _2, cooldownUntilDate: _3)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -159,9 +159,12 @@ public extension Api {
|
|||
_2 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.Updates.updateShort(update: _1!, date: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.Updates.updateShort(update: _1!, date: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_updateShortChatMessage(_ reader: BufferReader) -> Updates? {
|
||||
var _1: Int32?
|
||||
|
|
@ -209,20 +212,12 @@ public extension Api {
|
|||
let _c11 = (Int(_1!) & Int(1 << 3) == 0) || _11 != nil
|
||||
let _c12 = (Int(_1!) & Int(1 << 7) == 0) || _12 != nil
|
||||
let _c13 = (Int(_1!) & Int(1 << 25) == 0) || _13 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
if !_c9 { return nil }
|
||||
if !_c10 { return nil }
|
||||
if !_c11 { return nil }
|
||||
if !_c12 { return nil }
|
||||
if !_c13 { return nil }
|
||||
return Api.Updates.updateShortChatMessage(flags: _1!, id: _2!, fromId: _3!, chatId: _4!, message: _5!, pts: _6!, ptsCount: _7!, date: _8!, fwdFrom: _9, viaBotId: _10, replyTo: _11, entities: _12, ttlPeriod: _13)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 && _c10 && _c11 && _c12 && _c13 {
|
||||
return Api.Updates.updateShortChatMessage(flags: _1!, id: _2!, fromId: _3!, chatId: _4!, message: _5!, pts: _6!, ptsCount: _7!, date: _8!, fwdFrom: _9, viaBotId: _10, replyTo: _11, entities: _12, ttlPeriod: _13)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_updateShortMessage(_ reader: BufferReader) -> Updates? {
|
||||
var _1: Int32?
|
||||
|
|
@ -267,19 +262,12 @@ public extension Api {
|
|||
let _c10 = (Int(_1!) & Int(1 << 3) == 0) || _10 != nil
|
||||
let _c11 = (Int(_1!) & Int(1 << 7) == 0) || _11 != nil
|
||||
let _c12 = (Int(_1!) & Int(1 << 25) == 0) || _12 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
if !_c9 { return nil }
|
||||
if !_c10 { return nil }
|
||||
if !_c11 { return nil }
|
||||
if !_c12 { return nil }
|
||||
return Api.Updates.updateShortMessage(flags: _1!, id: _2!, userId: _3!, message: _4!, pts: _5!, ptsCount: _6!, date: _7!, fwdFrom: _8, viaBotId: _9, replyTo: _10, entities: _11, ttlPeriod: _12)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 && _c10 && _c11 && _c12 {
|
||||
return Api.Updates.updateShortMessage(flags: _1!, id: _2!, userId: _3!, message: _4!, pts: _5!, ptsCount: _6!, date: _7!, fwdFrom: _8, viaBotId: _9, replyTo: _10, entities: _11, ttlPeriod: _12)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_updateShortSentMessage(_ reader: BufferReader) -> Updates? {
|
||||
var _1: Int32?
|
||||
|
|
@ -310,15 +298,12 @@ public extension Api {
|
|||
let _c6 = (Int(_1!) & Int(1 << 9) == 0) || _6 != nil
|
||||
let _c7 = (Int(_1!) & Int(1 << 7) == 0) || _7 != nil
|
||||
let _c8 = (Int(_1!) & Int(1 << 25) == 0) || _8 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
return Api.Updates.updateShortSentMessage(flags: _1!, id: _2!, pts: _3!, ptsCount: _4!, date: _5!, media: _6, entities: _7, ttlPeriod: _8)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 {
|
||||
return Api.Updates.updateShortSentMessage(flags: _1!, id: _2!, pts: _3!, ptsCount: _4!, date: _5!, media: _6, entities: _7, ttlPeriod: _8)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_updates(_ reader: BufferReader) -> Updates? {
|
||||
var _1: [Api.Update]?
|
||||
|
|
@ -342,12 +327,12 @@ public extension Api {
|
|||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
let _c5 = _5 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
return Api.Updates.updates(updates: _1!, users: _2!, chats: _3!, date: _4!, seq: _5!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 {
|
||||
return Api.Updates.updates(updates: _1!, users: _2!, chats: _3!, date: _4!, seq: _5!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_updatesCombined(_ reader: BufferReader) -> Updates? {
|
||||
var _1: [Api.Update]?
|
||||
|
|
@ -374,13 +359,12 @@ public extension Api {
|
|||
let _c4 = _4 != nil
|
||||
let _c5 = _5 != nil
|
||||
let _c6 = _6 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
return Api.Updates.updatesCombined(updates: _1!, users: _2!, chats: _3!, date: _4!, seqStart: _5!, seq: _6!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 {
|
||||
return Api.Updates.updatesCombined(updates: _1!, users: _2!, chats: _3!, date: _4!, seqStart: _5!, seq: _6!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_updatesTooLong(_ reader: BufferReader) -> Updates? {
|
||||
return Api.Updates.updatesTooLong
|
||||
|
|
@ -434,8 +418,12 @@ public extension Api {
|
|||
var _1: String?
|
||||
_1 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.UrlAuthResult.urlAuthResultAccepted(url: _1!)
|
||||
if _c1 {
|
||||
return Api.UrlAuthResult.urlAuthResultAccepted(url: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_urlAuthResultDefault(_ reader: BufferReader) -> UrlAuthResult? {
|
||||
return Api.UrlAuthResult.urlAuthResultDefault
|
||||
|
|
@ -452,10 +440,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.UrlAuthResult.urlAuthResultRequest(flags: _1!, bot: _2!, domain: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.UrlAuthResult.urlAuthResultRequest(flags: _1!, bot: _2!, domain: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -603,36 +593,23 @@ public extension Api {
|
|||
let _c20 = (Int(_2!) & Int(1 << 12) == 0) || _20 != nil
|
||||
let _c21 = (Int(_2!) & Int(1 << 14) == 0) || _21 != nil
|
||||
let _c22 = (Int(_2!) & Int(1 << 15) == 0) || _22 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
if !_c9 { return nil }
|
||||
if !_c10 { return nil }
|
||||
if !_c11 { return nil }
|
||||
if !_c12 { return nil }
|
||||
if !_c13 { return nil }
|
||||
if !_c14 { return nil }
|
||||
if !_c15 { return nil }
|
||||
if !_c16 { return nil }
|
||||
if !_c17 { return nil }
|
||||
if !_c18 { return nil }
|
||||
if !_c19 { return nil }
|
||||
if !_c20 { return nil }
|
||||
if !_c21 { return nil }
|
||||
if !_c22 { return nil }
|
||||
return Api.User.user(flags: _1!, flags2: _2!, id: _3!, accessHash: _4, firstName: _5, lastName: _6, username: _7, phone: _8, photo: _9, status: _10, botInfoVersion: _11, restrictionReason: _12, botInlinePlaceholder: _13, langCode: _14, emojiStatus: _15, usernames: _16, storiesMaxId: _17, color: _18, profileColor: _19, botActiveUsers: _20, botVerificationIcon: _21, sendPaidMessagesStars: _22)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 && _c10 && _c11 && _c12 && _c13 && _c14 && _c15 && _c16 && _c17 && _c18 && _c19 && _c20 && _c21 && _c22 {
|
||||
return Api.User.user(flags: _1!, flags2: _2!, id: _3!, accessHash: _4, firstName: _5, lastName: _6, username: _7, phone: _8, photo: _9, status: _10, botInfoVersion: _11, restrictionReason: _12, botInlinePlaceholder: _13, langCode: _14, emojiStatus: _15, usernames: _16, storiesMaxId: _17, color: _18, profileColor: _19, botActiveUsers: _20, botVerificationIcon: _21, sendPaidMessagesStars: _22)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_userEmpty(_ reader: BufferReader) -> User? {
|
||||
var _1: Int64?
|
||||
_1 = reader.readInt64()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.User.userEmpty(id: _1!)
|
||||
if _c1 {
|
||||
return Api.User.userEmpty(id: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -865,46 +842,12 @@ public extension Api {
|
|||
let _c37 = (Int(_2!) & Int(1 << 20) == 0) || _37 != nil
|
||||
let _c38 = (Int(_2!) & Int(1 << 21) == 0) || _38 != nil
|
||||
let _c39 = (Int(_2!) & Int(1 << 22) == 0) || _39 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
if !_c9 { return nil }
|
||||
if !_c10 { return nil }
|
||||
if !_c11 { return nil }
|
||||
if !_c12 { return nil }
|
||||
if !_c13 { return nil }
|
||||
if !_c14 { return nil }
|
||||
if !_c15 { return nil }
|
||||
if !_c16 { return nil }
|
||||
if !_c17 { return nil }
|
||||
if !_c18 { return nil }
|
||||
if !_c19 { return nil }
|
||||
if !_c20 { return nil }
|
||||
if !_c21 { return nil }
|
||||
if !_c22 { return nil }
|
||||
if !_c23 { return nil }
|
||||
if !_c24 { return nil }
|
||||
if !_c25 { return nil }
|
||||
if !_c26 { return nil }
|
||||
if !_c27 { return nil }
|
||||
if !_c28 { return nil }
|
||||
if !_c29 { return nil }
|
||||
if !_c30 { return nil }
|
||||
if !_c31 { return nil }
|
||||
if !_c32 { return nil }
|
||||
if !_c33 { return nil }
|
||||
if !_c34 { return nil }
|
||||
if !_c35 { return nil }
|
||||
if !_c36 { return nil }
|
||||
if !_c37 { return nil }
|
||||
if !_c38 { return nil }
|
||||
if !_c39 { return nil }
|
||||
return Api.UserFull.userFull(flags: _1!, flags2: _2!, id: _3!, about: _4, settings: _5!, personalPhoto: _6, profilePhoto: _7, fallbackPhoto: _8, notifySettings: _9!, botInfo: _10, pinnedMsgId: _11, commonChatsCount: _12!, folderId: _13, ttlPeriod: _14, theme: _15, privateForwardName: _16, botGroupAdminRights: _17, botBroadcastAdminRights: _18, wallpaper: _19, stories: _20, businessWorkHours: _21, businessLocation: _22, businessGreetingMessage: _23, businessAwayMessage: _24, businessIntro: _25, birthday: _26, personalChannelId: _27, personalChannelMessage: _28, stargiftsCount: _29, starrefProgram: _30, botVerification: _31, sendPaidMessagesStars: _32, disallowedGifts: _33, starsRating: _34, starsMyPendingRating: _35, starsMyPendingRatingDate: _36, mainTab: _37, savedMusic: _38, note: _39)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 && _c10 && _c11 && _c12 && _c13 && _c14 && _c15 && _c16 && _c17 && _c18 && _c19 && _c20 && _c21 && _c22 && _c23 && _c24 && _c25 && _c26 && _c27 && _c28 && _c29 && _c30 && _c31 && _c32 && _c33 && _c34 && _c35 && _c36 && _c37 && _c38 && _c39 {
|
||||
return Api.UserFull.userFull(flags: _1!, flags2: _2!, id: _3!, about: _4, settings: _5!, personalPhoto: _6, profilePhoto: _7, fallbackPhoto: _8, notifySettings: _9!, botInfo: _10, pinnedMsgId: _11, commonChatsCount: _12!, folderId: _13, ttlPeriod: _14, theme: _15, privateForwardName: _16, botGroupAdminRights: _17, botBroadcastAdminRights: _18, wallpaper: _19, stories: _20, businessWorkHours: _21, businessLocation: _22, businessGreetingMessage: _23, businessAwayMessage: _24, businessIntro: _25, birthday: _26, personalChannelId: _27, personalChannelMessage: _28, stargiftsCount: _29, starrefProgram: _30, botVerification: _31, sendPaidMessagesStars: _32, disallowedGifts: _33, starsRating: _34, starsMyPendingRating: _35, starsMyPendingRatingDate: _36, mainTab: _37, savedMusic: _38, note: _39)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -956,11 +899,12 @@ public extension Api {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = (Int(_1!) & Int(1 << 1) == 0) || _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.UserProfilePhoto.userProfilePhoto(flags: _1!, photoId: _2!, strippedThumb: _3, dcId: _4!)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.UserProfilePhoto.userProfilePhoto(flags: _1!, photoId: _2!, strippedThumb: _3, dcId: _4!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_userProfilePhotoEmpty(_ reader: BufferReader) -> UserProfilePhoto? {
|
||||
return Api.UserProfilePhoto.userProfilePhotoEmpty
|
||||
|
|
@ -1042,36 +986,56 @@ public extension Api {
|
|||
var _1: Int32?
|
||||
_1 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.UserStatus.userStatusLastMonth(flags: _1!)
|
||||
if _c1 {
|
||||
return Api.UserStatus.userStatusLastMonth(flags: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_userStatusLastWeek(_ reader: BufferReader) -> UserStatus? {
|
||||
var _1: Int32?
|
||||
_1 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.UserStatus.userStatusLastWeek(flags: _1!)
|
||||
if _c1 {
|
||||
return Api.UserStatus.userStatusLastWeek(flags: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_userStatusOffline(_ reader: BufferReader) -> UserStatus? {
|
||||
var _1: Int32?
|
||||
_1 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.UserStatus.userStatusOffline(wasOnline: _1!)
|
||||
if _c1 {
|
||||
return Api.UserStatus.userStatusOffline(wasOnline: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_userStatusOnline(_ reader: BufferReader) -> UserStatus? {
|
||||
var _1: Int32?
|
||||
_1 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.UserStatus.userStatusOnline(expires: _1!)
|
||||
if _c1 {
|
||||
return Api.UserStatus.userStatusOnline(expires: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_userStatusRecently(_ reader: BufferReader) -> UserStatus? {
|
||||
var _1: Int32?
|
||||
_1 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.UserStatus.userStatusRecently(flags: _1!)
|
||||
if _c1 {
|
||||
return Api.UserStatus.userStatusRecently(flags: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1106,9 +1070,12 @@ public extension Api {
|
|||
_2 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.Username.username(flags: _1!, username: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.Username.username(flags: _1!, username: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1188,13 +1155,12 @@ public extension Api {
|
|||
let _c4 = _4 != nil
|
||||
let _c5 = _5 != nil
|
||||
let _c6 = (Int(_1!) & Int(1 << 0) == 0) || _6 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
return Api.VideoSize.videoSize(flags: _1!, type: _2!, w: _3!, h: _4!, size: _5!, videoStartTs: _6)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 {
|
||||
return Api.VideoSize.videoSize(flags: _1!, type: _2!, w: _3!, h: _4!, size: _5!, videoStartTs: _6)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_videoSizeEmojiMarkup(_ reader: BufferReader) -> VideoSize? {
|
||||
var _1: Int64?
|
||||
|
|
@ -1205,9 +1171,12 @@ public extension Api {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.VideoSize.videoSizeEmojiMarkup(emojiId: _1!, backgroundColors: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.VideoSize.videoSizeEmojiMarkup(emojiId: _1!, backgroundColors: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_videoSizeStickerMarkup(_ reader: BufferReader) -> VideoSize? {
|
||||
var _1: Api.InputStickerSet?
|
||||
|
|
@ -1223,10 +1192,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.VideoSize.videoSizeStickerMarkup(stickerset: _1!, stickerId: _2!, backgroundColors: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.VideoSize.videoSizeStickerMarkup(stickerset: _1!, stickerId: _2!, backgroundColors: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1292,13 +1263,12 @@ public extension Api {
|
|||
let _c4 = _4 != nil
|
||||
let _c5 = _5 != nil
|
||||
let _c6 = (Int(_2!) & Int(1 << 2) == 0) || _6 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
return Api.WallPaper.wallPaper(id: _1!, flags: _2!, accessHash: _3!, slug: _4!, document: _5!, settings: _6)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 {
|
||||
return Api.WallPaper.wallPaper(id: _1!, flags: _2!, accessHash: _3!, slug: _4!, document: _5!, settings: _6)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_wallPaperNoFile(_ reader: BufferReader) -> WallPaper? {
|
||||
var _1: Int64?
|
||||
|
|
@ -1312,10 +1282,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = (Int(_2!) & Int(1 << 2) == 0) || _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.WallPaper.wallPaperNoFile(id: _1!, flags: _2!, settings: _3)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.WallPaper.wallPaperNoFile(id: _1!, flags: _2!, settings: _3)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1374,15 +1346,12 @@ public extension Api {
|
|||
let _c6 = (Int(_1!) & Int(1 << 3) == 0) || _6 != nil
|
||||
let _c7 = (Int(_1!) & Int(1 << 4) == 0) || _7 != nil
|
||||
let _c8 = (Int(_1!) & Int(1 << 7) == 0) || _8 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
return Api.WallPaperSettings.wallPaperSettings(flags: _1!, backgroundColor: _2, secondBackgroundColor: _3, thirdBackgroundColor: _4, fourthBackgroundColor: _5, intensity: _6, rotation: _7, emoticon: _8)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 {
|
||||
return Api.WallPaperSettings.wallPaperSettings(flags: _1!, backgroundColor: _2, secondBackgroundColor: _3, thirdBackgroundColor: _4, fourthBackgroundColor: _5, intensity: _6, rotation: _7, emoticon: _8)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1445,16 +1414,12 @@ public extension Api {
|
|||
let _c7 = _7 != nil
|
||||
let _c8 = _8 != nil
|
||||
let _c9 = _9 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
if !_c9 { return nil }
|
||||
return Api.WebAuthorization.webAuthorization(hash: _1!, botId: _2!, domain: _3!, browser: _4!, platform: _5!, dateCreated: _6!, dateActive: _7!, ip: _8!, region: _9!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 {
|
||||
return Api.WebAuthorization.webAuthorization(hash: _1!, botId: _2!, domain: _3!, browser: _4!, platform: _5!, dateCreated: _6!, dateActive: _7!, ip: _8!, region: _9!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1523,12 +1488,12 @@ public extension Api {
|
|||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
let _c5 = _5 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
return Api.WebDocument.webDocument(url: _1!, accessHash: _2!, size: _3!, mimeType: _4!, attributes: _5!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 {
|
||||
return Api.WebDocument.webDocument(url: _1!, accessHash: _2!, size: _3!, mimeType: _4!, attributes: _5!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_webDocumentNoProxy(_ reader: BufferReader) -> WebDocument? {
|
||||
var _1: String?
|
||||
|
|
@ -1545,11 +1510,12 @@ public extension Api {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.WebDocument.webDocumentNoProxy(url: _1!, size: _2!, mimeType: _3!, attributes: _4!)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.WebDocument.webDocumentNoProxy(url: _1!, size: _2!, mimeType: _3!, attributes: _4!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1697,26 +1663,12 @@ public extension Api {
|
|||
let _c17 = (Int(_1!) & Int(1 << 9) == 0) || _17 != nil
|
||||
let _c18 = (Int(_1!) & Int(1 << 10) == 0) || _18 != nil
|
||||
let _c19 = (Int(_1!) & Int(1 << 12) == 0) || _19 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
if !_c9 { return nil }
|
||||
if !_c10 { return nil }
|
||||
if !_c11 { return nil }
|
||||
if !_c12 { return nil }
|
||||
if !_c13 { return nil }
|
||||
if !_c14 { return nil }
|
||||
if !_c15 { return nil }
|
||||
if !_c16 { return nil }
|
||||
if !_c17 { return nil }
|
||||
if !_c18 { return nil }
|
||||
if !_c19 { return nil }
|
||||
return Api.WebPage.webPage(flags: _1!, id: _2!, url: _3!, displayUrl: _4!, hash: _5!, type: _6, siteName: _7, title: _8, description: _9, photo: _10, embedUrl: _11, embedType: _12, embedWidth: _13, embedHeight: _14, duration: _15, author: _16, document: _17, cachedPage: _18, attributes: _19)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 && _c10 && _c11 && _c12 && _c13 && _c14 && _c15 && _c16 && _c17 && _c18 && _c19 {
|
||||
return Api.WebPage.webPage(flags: _1!, id: _2!, url: _3!, displayUrl: _4!, hash: _5!, type: _6, siteName: _7, title: _8, description: _9, photo: _10, embedUrl: _11, embedType: _12, embedWidth: _13, embedHeight: _14, duration: _15, author: _16, document: _17, cachedPage: _18, attributes: _19)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_webPageEmpty(_ reader: BufferReader) -> WebPage? {
|
||||
var _1: Int32?
|
||||
|
|
@ -1728,10 +1680,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = (Int(_1!) & Int(1 << 0) == 0) || _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.WebPage.webPageEmpty(flags: _1!, id: _2!, url: _3)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.WebPage.webPageEmpty(flags: _1!, id: _2!, url: _3)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_webPageNotModified(_ reader: BufferReader) -> WebPage? {
|
||||
var _1: Int32?
|
||||
|
|
@ -1740,9 +1694,12 @@ public extension Api {
|
|||
if Int(_1!) & Int(1 << 0) != 0 {_2 = reader.readInt32() }
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = (Int(_1!) & Int(1 << 0) == 0) || _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.WebPage.webPageNotModified(flags: _1!, cachedPageViews: _2)
|
||||
if _c1 && _c2 {
|
||||
return Api.WebPage.webPageNotModified(flags: _1!, cachedPageViews: _2)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_webPagePending(_ reader: BufferReader) -> WebPage? {
|
||||
var _1: Int32?
|
||||
|
|
@ -1757,11 +1714,12 @@ public extension Api {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = (Int(_1!) & Int(1 << 0) == 0) || _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.WebPage.webPagePending(flags: _1!, id: _2!, url: _3, date: _4!)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.WebPage.webPagePending(flags: _1!, id: _2!, url: _3, date: _4!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -93,9 +93,12 @@ public extension Api {
|
|||
_2 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.WebPageAttribute.webPageAttributeStarGiftAuction(gift: _1!, endDate: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.WebPageAttribute.webPageAttributeStarGiftAuction(gift: _1!, endDate: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_webPageAttributeStarGiftCollection(_ reader: BufferReader) -> WebPageAttribute? {
|
||||
var _1: [Api.Document]?
|
||||
|
|
@ -103,8 +106,12 @@ public extension Api {
|
|||
_1 = Api.parseVector(reader, elementSignature: 0, elementType: Api.Document.self)
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.WebPageAttribute.webPageAttributeStarGiftCollection(icons: _1!)
|
||||
if _c1 {
|
||||
return Api.WebPageAttribute.webPageAttributeStarGiftCollection(icons: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_webPageAttributeStickerSet(_ reader: BufferReader) -> WebPageAttribute? {
|
||||
var _1: Int32?
|
||||
|
|
@ -115,9 +122,12 @@ public extension Api {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.WebPageAttribute.webPageAttributeStickerSet(flags: _1!, stickers: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.WebPageAttribute.webPageAttributeStickerSet(flags: _1!, stickers: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_webPageAttributeStory(_ reader: BufferReader) -> WebPageAttribute? {
|
||||
var _1: Int32?
|
||||
|
|
@ -136,11 +146,12 @@ public extension Api {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = (Int(_1!) & Int(1 << 0) == 0) || _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.WebPageAttribute.webPageAttributeStory(flags: _1!, peer: _2!, id: _3!, story: _4)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.WebPageAttribute.webPageAttributeStory(flags: _1!, peer: _2!, id: _3!, story: _4)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_webPageAttributeTheme(_ reader: BufferReader) -> WebPageAttribute? {
|
||||
var _1: Int32?
|
||||
|
|
@ -156,10 +167,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = (Int(_1!) & Int(1 << 0) == 0) || _2 != nil
|
||||
let _c3 = (Int(_1!) & Int(1 << 1) == 0) || _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.WebPageAttribute.webPageAttributeTheme(flags: _1!, documents: _2, settings: _3)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.WebPageAttribute.webPageAttributeTheme(flags: _1!, documents: _2, settings: _3)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_webPageAttributeUniqueStarGift(_ reader: BufferReader) -> WebPageAttribute? {
|
||||
var _1: Api.StarGift?
|
||||
|
|
@ -167,8 +180,12 @@ public extension Api {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.StarGift
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.WebPageAttribute.webPageAttributeUniqueStarGift(gift: _1!)
|
||||
if _c1 {
|
||||
return Api.WebPageAttribute.webPageAttributeUniqueStarGift(gift: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -205,9 +222,12 @@ public extension Api {
|
|||
} }
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = (Int(_1!) & Int(1 << 0) == 0) || _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.WebViewMessageSent.webViewMessageSent(flags: _1!, msgId: _2)
|
||||
if _c1 && _c2 {
|
||||
return Api.WebViewMessageSent.webViewMessageSent(flags: _1!, msgId: _2)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -246,10 +266,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = (Int(_1!) & Int(1 << 0) == 0) || _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.WebViewResult.webViewResultUrl(flags: _1!, queryId: _2, url: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.WebViewResult.webViewResultUrl(flags: _1!, queryId: _2, url: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -324,13 +346,12 @@ public extension Api.account {
|
|||
let _c4 = _4 != nil
|
||||
let _c5 = _5 != nil
|
||||
let _c6 = (Int(_1!) & Int(1 << 0) == 0) || _6 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
return Api.account.AuthorizationForm.authorizationForm(flags: _1!, requiredTypes: _2!, values: _3!, errors: _4!, users: _5!, privacyPolicyUrl: _6)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 {
|
||||
return Api.account.AuthorizationForm.authorizationForm(flags: _1!, requiredTypes: _2!, values: _3!, errors: _4!, users: _5!, privacyPolicyUrl: _6)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -371,9 +392,12 @@ public extension Api.account {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.account.Authorizations.authorizations(authorizationTtlDays: _1!, authorizations: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.account.Authorizations.authorizations(authorizationTtlDays: _1!, authorizations: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -418,10 +442,12 @@ public extension Api.account {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.account.AutoDownloadSettings.autoDownloadSettings(low: _1!, medium: _2!, high: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.account.AutoDownloadSettings.autoDownloadSettings(low: _1!, medium: _2!, high: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -496,13 +522,12 @@ public extension Api.account {
|
|||
let _c4 = _4 != nil
|
||||
let _c5 = _5 != nil
|
||||
let _c6 = _6 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
return Api.account.AutoSaveSettings.autoSaveSettings(usersSettings: _1!, chatsSettings: _2!, broadcastsSettings: _3!, exceptions: _4!, chats: _5!, users: _6!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 {
|
||||
return Api.account.AutoSaveSettings.autoSaveSettings(usersSettings: _1!, chatsSettings: _2!, broadcastsSettings: _3!, exceptions: _4!, chats: _5!, users: _6!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -559,10 +584,12 @@ public extension Api.account {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.account.BusinessChatLinks.businessChatLinks(links: _1!, chats: _2!, users: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.account.BusinessChatLinks.businessChatLinks(links: _1!, chats: _2!, users: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -640,13 +667,12 @@ public extension Api.account {
|
|||
let _c4 = _4 != nil
|
||||
let _c5 = _5 != nil
|
||||
let _c6 = (Int(_1!) & Int(1 << 0) == 0) || _6 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
return Api.account.ChatThemes.chatThemes(flags: _1!, hash: _2!, themes: _3!, chats: _4!, users: _5!, nextOffset: _6)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 {
|
||||
return Api.account.ChatThemes.chatThemes(flags: _1!, hash: _2!, themes: _3!, chats: _4!, users: _5!, nextOffset: _6)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_chatThemesNotModified(_ reader: BufferReader) -> ChatThemes? {
|
||||
return Api.account.ChatThemes.chatThemesNotModified
|
||||
|
|
@ -696,9 +722,12 @@ public extension Api.account {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.account.ConnectedBots.connectedBots(connectedBots: _1!, users: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.account.ConnectedBots.connectedBots(connectedBots: _1!, users: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -729,8 +758,12 @@ public extension Api.account {
|
|||
var _1: Int32?
|
||||
_1 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.account.ContentSettings.contentSettings(flags: _1!)
|
||||
if _c1 {
|
||||
return Api.account.ContentSettings.contentSettings(flags: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -771,8 +804,12 @@ public extension Api.account {
|
|||
var _1: String?
|
||||
_1 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.account.EmailVerified.emailVerified(email: _1!)
|
||||
if _c1 {
|
||||
return Api.account.EmailVerified.emailVerified(email: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_emailVerifiedLogin(_ reader: BufferReader) -> EmailVerified? {
|
||||
var _1: String?
|
||||
|
|
@ -783,9 +820,12 @@ public extension Api.account {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.account.EmailVerified.emailVerifiedLogin(email: _1!, sentCode: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.account.EmailVerified.emailVerifiedLogin(email: _1!, sentCode: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -835,9 +875,12 @@ public extension Api.account {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.account.EmojiStatuses.emojiStatuses(hash: _1!, statuses: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.account.EmojiStatuses.emojiStatuses(hash: _1!, statuses: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_emojiStatusesNotModified(_ reader: BufferReader) -> EmojiStatuses? {
|
||||
return Api.account.EmojiStatuses.emojiStatusesNotModified
|
||||
|
|
@ -871,8 +914,12 @@ public extension Api.account {
|
|||
var _1: Int64?
|
||||
_1 = reader.readInt64()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.account.PaidMessagesRevenue.paidMessagesRevenue(starsAmount: _1!)
|
||||
if _c1 {
|
||||
return Api.account.PaidMessagesRevenue.paidMessagesRevenue(starsAmount: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -905,8 +952,12 @@ public extension Api.account {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.DataJSON
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.account.PasskeyRegistrationOptions.passkeyRegistrationOptions(options: _1!)
|
||||
if _c1 {
|
||||
return Api.account.PasskeyRegistrationOptions.passkeyRegistrationOptions(options: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -943,8 +994,12 @@ public extension Api.account {
|
|||
_1 = Api.parseVector(reader, elementSignature: 0, elementType: Api.Passkey.self)
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.account.Passkeys.passkeys(passkeys: _1!)
|
||||
if _c1 {
|
||||
return Api.account.Passkeys.passkeys(passkeys: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1021,18 +1076,12 @@ public extension Api.account {
|
|||
let _c9 = _9 != nil
|
||||
let _c10 = (Int(_1!) & Int(1 << 5) == 0) || _10 != nil
|
||||
let _c11 = (Int(_1!) & Int(1 << 6) == 0) || _11 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
if !_c9 { return nil }
|
||||
if !_c10 { return nil }
|
||||
if !_c11 { return nil }
|
||||
return Api.account.Password.password(flags: _1!, currentAlgo: _2, srpB: _3, srpId: _4, hint: _5, emailUnconfirmedPattern: _6, newAlgo: _7!, newSecureAlgo: _8!, secureRandom: _9!, pendingResetDate: _10, loginEmailPattern: _11)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 && _c10 && _c11 {
|
||||
return Api.account.Password.password(flags: _1!, currentAlgo: _2, srpB: _3, srpId: _4, hint: _5, emailUnconfirmedPattern: _6, newAlgo: _7!, newSecureAlgo: _8!, secureRandom: _9!, pendingResetDate: _10, loginEmailPattern: _11)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1087,13 +1136,12 @@ public extension Api.account {
|
|||
let _c4 = (Int(_1!) & Int(1 << 0) == 0) || _4 != nil
|
||||
let _c5 = (Int(_1!) & Int(1 << 1) == 0) || _5 != nil
|
||||
let _c6 = (Int(_1!) & Int(1 << 2) == 0) || _6 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
return Api.account.PasswordInputSettings.passwordInputSettings(flags: _1!, newAlgo: _2, newPasswordHash: _3, hint: _4, email: _5, newSecureSettings: _6)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 {
|
||||
return Api.account.PasswordInputSettings.passwordInputSettings(flags: _1!, newAlgo: _2, newPasswordHash: _3, hint: _4, email: _5, newSecureSettings: _6)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1134,10 +1182,12 @@ public extension Api.account {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = (Int(_1!) & Int(1 << 0) == 0) || _2 != nil
|
||||
let _c3 = (Int(_1!) & Int(1 << 1) == 0) || _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.account.PasswordSettings.passwordSettings(flags: _1!, email: _2, secureSettings: _3)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.account.PasswordSettings.passwordSettings(flags: _1!, email: _2, secureSettings: _3)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1194,10 +1244,12 @@ public extension Api.account {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.account.PrivacyRules.privacyRules(rules: _1!, chats: _2!, users: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.account.PrivacyRules.privacyRules(rules: _1!, chats: _2!, users: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1246,8 +1298,12 @@ public extension Api.account {
|
|||
var _1: Int32?
|
||||
_1 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.account.ResetPasswordResult.resetPasswordFailedWait(retryDate: _1!)
|
||||
if _c1 {
|
||||
return Api.account.ResetPasswordResult.resetPasswordFailedWait(retryDate: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_resetPasswordOk(_ reader: BufferReader) -> ResetPasswordResult? {
|
||||
return Api.account.ResetPasswordResult.resetPasswordOk
|
||||
|
|
@ -1256,8 +1312,12 @@ public extension Api.account {
|
|||
var _1: Int32?
|
||||
_1 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.account.ResetPasswordResult.resetPasswordRequestedWait(untilDate: _1!)
|
||||
if _c1 {
|
||||
return Api.account.ResetPasswordResult.resetPasswordRequestedWait(untilDate: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1328,13 +1388,12 @@ public extension Api.account {
|
|||
let _c4 = (Int(_1!) & Int(1 << 0) == 0) || _4 != nil
|
||||
let _c5 = _5 != nil
|
||||
let _c6 = _6 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
return Api.account.ResolvedBusinessChatLinks.resolvedBusinessChatLinks(flags: _1!, peer: _2!, message: _3!, entities: _4, chats: _5!, users: _6!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 {
|
||||
return Api.account.ResolvedBusinessChatLinks.resolvedBusinessChatLinks(flags: _1!, peer: _2!, message: _3!, entities: _4, chats: _5!, users: _6!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -34,10 +34,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.BusinessGreetingMessage.businessGreetingMessage(shortcutId: _1!, recipients: _2!, noActivityDays: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.BusinessGreetingMessage.businessGreetingMessage(shortcutId: _1!, recipients: _2!, noActivityDays: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -82,11 +84,12 @@ public extension Api {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = (Int(_1!) & Int(1 << 0) == 0) || _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.BusinessIntro.businessIntro(flags: _1!, title: _2!, description: _3!, sticker: _4)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.BusinessIntro.businessIntro(flags: _1!, title: _2!, description: _3!, sticker: _4)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -127,10 +130,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = (Int(_1!) & Int(1 << 0) == 0) || _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.BusinessLocation.businessLocation(flags: _1!, geoPoint: _2, address: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.BusinessLocation.businessLocation(flags: _1!, geoPoint: _2, address: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -171,9 +176,12 @@ public extension Api {
|
|||
} }
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = (Int(_1!) & Int(1 << 4) == 0) || _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.BusinessRecipients.businessRecipients(flags: _1!, users: _2)
|
||||
if _c1 && _c2 {
|
||||
return Api.BusinessRecipients.businessRecipients(flags: _1!, users: _2)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -208,9 +216,12 @@ public extension Api {
|
|||
_2 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.BusinessWeeklyOpen.businessWeeklyOpen(startMinute: _1!, endMinute: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.BusinessWeeklyOpen.businessWeeklyOpen(startMinute: _1!, endMinute: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -255,10 +266,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.BusinessWorkHours.businessWorkHours(flags: _1!, timezoneId: _2!, weeklyOpen: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.BusinessWorkHours.businessWorkHours(flags: _1!, timezoneId: _2!, weeklyOpen: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -295,8 +308,12 @@ public extension Api {
|
|||
_1 = Api.parseVector(reader, elementSignature: 0, elementType: Api.CdnPublicKey.self)
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.CdnConfig.cdnConfig(publicKeys: _1!)
|
||||
if _c1 {
|
||||
return Api.CdnConfig.cdnConfig(publicKeys: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -331,9 +348,12 @@ public extension Api {
|
|||
_2 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.CdnPublicKey.cdnPublicKey(dcId: _1!, publicKey: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.CdnPublicKey.cdnPublicKey(dcId: _1!, publicKey: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -378,11 +398,12 @@ public extension Api {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.ChannelAdminLogEvent.channelAdminLogEvent(id: _1!, date: _2!, userId: _3!, action: _4!)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.ChannelAdminLogEvent.channelAdminLogEvent(id: _1!, date: _2!, userId: _3!, action: _4!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -901,9 +922,12 @@ public extension Api {
|
|||
_2 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionChangeAbout(prevValue: _1!, newValue: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionChangeAbout(prevValue: _1!, newValue: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_channelAdminLogEventActionChangeAvailableReactions(_ reader: BufferReader) -> ChannelAdminLogEventAction? {
|
||||
var _1: Api.ChatReactions?
|
||||
|
|
@ -916,9 +940,12 @@ public extension Api {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionChangeAvailableReactions(prevValue: _1!, newValue: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionChangeAvailableReactions(prevValue: _1!, newValue: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_channelAdminLogEventActionChangeEmojiStatus(_ reader: BufferReader) -> ChannelAdminLogEventAction? {
|
||||
var _1: Api.EmojiStatus?
|
||||
|
|
@ -931,9 +958,12 @@ public extension Api {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionChangeEmojiStatus(prevValue: _1!, newValue: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionChangeEmojiStatus(prevValue: _1!, newValue: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_channelAdminLogEventActionChangeEmojiStickerSet(_ reader: BufferReader) -> ChannelAdminLogEventAction? {
|
||||
var _1: Api.InputStickerSet?
|
||||
|
|
@ -946,9 +976,12 @@ public extension Api {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionChangeEmojiStickerSet(prevStickerset: _1!, newStickerset: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionChangeEmojiStickerSet(prevStickerset: _1!, newStickerset: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_channelAdminLogEventActionChangeHistoryTTL(_ reader: BufferReader) -> ChannelAdminLogEventAction? {
|
||||
var _1: Int32?
|
||||
|
|
@ -957,9 +990,12 @@ public extension Api {
|
|||
_2 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionChangeHistoryTTL(prevValue: _1!, newValue: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionChangeHistoryTTL(prevValue: _1!, newValue: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_channelAdminLogEventActionChangeLinkedChat(_ reader: BufferReader) -> ChannelAdminLogEventAction? {
|
||||
var _1: Int64?
|
||||
|
|
@ -968,9 +1004,12 @@ public extension Api {
|
|||
_2 = reader.readInt64()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionChangeLinkedChat(prevValue: _1!, newValue: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionChangeLinkedChat(prevValue: _1!, newValue: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_channelAdminLogEventActionChangeLocation(_ reader: BufferReader) -> ChannelAdminLogEventAction? {
|
||||
var _1: Api.ChannelLocation?
|
||||
|
|
@ -983,9 +1022,12 @@ public extension Api {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionChangeLocation(prevValue: _1!, newValue: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionChangeLocation(prevValue: _1!, newValue: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_channelAdminLogEventActionChangePeerColor(_ reader: BufferReader) -> ChannelAdminLogEventAction? {
|
||||
var _1: Api.PeerColor?
|
||||
|
|
@ -998,9 +1040,12 @@ public extension Api {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionChangePeerColor(prevValue: _1!, newValue: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionChangePeerColor(prevValue: _1!, newValue: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_channelAdminLogEventActionChangePhoto(_ reader: BufferReader) -> ChannelAdminLogEventAction? {
|
||||
var _1: Api.Photo?
|
||||
|
|
@ -1013,9 +1058,12 @@ public extension Api {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionChangePhoto(prevPhoto: _1!, newPhoto: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionChangePhoto(prevPhoto: _1!, newPhoto: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_channelAdminLogEventActionChangeProfilePeerColor(_ reader: BufferReader) -> ChannelAdminLogEventAction? {
|
||||
var _1: Api.PeerColor?
|
||||
|
|
@ -1028,9 +1076,12 @@ public extension Api {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionChangeProfilePeerColor(prevValue: _1!, newValue: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionChangeProfilePeerColor(prevValue: _1!, newValue: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_channelAdminLogEventActionChangeStickerSet(_ reader: BufferReader) -> ChannelAdminLogEventAction? {
|
||||
var _1: Api.InputStickerSet?
|
||||
|
|
@ -1043,9 +1094,12 @@ public extension Api {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionChangeStickerSet(prevStickerset: _1!, newStickerset: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionChangeStickerSet(prevStickerset: _1!, newStickerset: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_channelAdminLogEventActionChangeTitle(_ reader: BufferReader) -> ChannelAdminLogEventAction? {
|
||||
var _1: String?
|
||||
|
|
@ -1054,9 +1108,12 @@ public extension Api {
|
|||
_2 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionChangeTitle(prevValue: _1!, newValue: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionChangeTitle(prevValue: _1!, newValue: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_channelAdminLogEventActionChangeUsername(_ reader: BufferReader) -> ChannelAdminLogEventAction? {
|
||||
var _1: String?
|
||||
|
|
@ -1065,9 +1122,12 @@ public extension Api {
|
|||
_2 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionChangeUsername(prevValue: _1!, newValue: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionChangeUsername(prevValue: _1!, newValue: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_channelAdminLogEventActionChangeUsernames(_ reader: BufferReader) -> ChannelAdminLogEventAction? {
|
||||
var _1: [String]?
|
||||
|
|
@ -1080,9 +1140,12 @@ public extension Api {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionChangeUsernames(prevValue: _1!, newValue: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionChangeUsernames(prevValue: _1!, newValue: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_channelAdminLogEventActionChangeWallpaper(_ reader: BufferReader) -> ChannelAdminLogEventAction? {
|
||||
var _1: Api.WallPaper?
|
||||
|
|
@ -1095,9 +1158,12 @@ public extension Api {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionChangeWallpaper(prevValue: _1!, newValue: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionChangeWallpaper(prevValue: _1!, newValue: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_channelAdminLogEventActionCreateTopic(_ reader: BufferReader) -> ChannelAdminLogEventAction? {
|
||||
var _1: Api.ForumTopic?
|
||||
|
|
@ -1105,8 +1171,12 @@ public extension Api {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.ForumTopic
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionCreateTopic(topic: _1!)
|
||||
if _c1 {
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionCreateTopic(topic: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_channelAdminLogEventActionDefaultBannedRights(_ reader: BufferReader) -> ChannelAdminLogEventAction? {
|
||||
var _1: Api.ChatBannedRights?
|
||||
|
|
@ -1119,9 +1189,12 @@ public extension Api {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionDefaultBannedRights(prevBannedRights: _1!, newBannedRights: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionDefaultBannedRights(prevBannedRights: _1!, newBannedRights: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_channelAdminLogEventActionDeleteMessage(_ reader: BufferReader) -> ChannelAdminLogEventAction? {
|
||||
var _1: Api.Message?
|
||||
|
|
@ -1129,8 +1202,12 @@ public extension Api {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.Message
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionDeleteMessage(message: _1!)
|
||||
if _c1 {
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionDeleteMessage(message: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_channelAdminLogEventActionDeleteTopic(_ reader: BufferReader) -> ChannelAdminLogEventAction? {
|
||||
var _1: Api.ForumTopic?
|
||||
|
|
@ -1138,8 +1215,12 @@ public extension Api {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.ForumTopic
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionDeleteTopic(topic: _1!)
|
||||
if _c1 {
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionDeleteTopic(topic: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_channelAdminLogEventActionDiscardGroupCall(_ reader: BufferReader) -> ChannelAdminLogEventAction? {
|
||||
var _1: Api.InputGroupCall?
|
||||
|
|
@ -1147,8 +1228,12 @@ public extension Api {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.InputGroupCall
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionDiscardGroupCall(call: _1!)
|
||||
if _c1 {
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionDiscardGroupCall(call: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_channelAdminLogEventActionEditMessage(_ reader: BufferReader) -> ChannelAdminLogEventAction? {
|
||||
var _1: Api.Message?
|
||||
|
|
@ -1161,9 +1246,12 @@ public extension Api {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionEditMessage(prevMessage: _1!, newMessage: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionEditMessage(prevMessage: _1!, newMessage: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_channelAdminLogEventActionEditTopic(_ reader: BufferReader) -> ChannelAdminLogEventAction? {
|
||||
var _1: Api.ForumTopic?
|
||||
|
|
@ -1176,9 +1264,12 @@ public extension Api {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionEditTopic(prevTopic: _1!, newTopic: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionEditTopic(prevTopic: _1!, newTopic: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_channelAdminLogEventActionExportedInviteDelete(_ reader: BufferReader) -> ChannelAdminLogEventAction? {
|
||||
var _1: Api.ExportedChatInvite?
|
||||
|
|
@ -1186,8 +1277,12 @@ public extension Api {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.ExportedChatInvite
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionExportedInviteDelete(invite: _1!)
|
||||
if _c1 {
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionExportedInviteDelete(invite: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_channelAdminLogEventActionExportedInviteEdit(_ reader: BufferReader) -> ChannelAdminLogEventAction? {
|
||||
var _1: Api.ExportedChatInvite?
|
||||
|
|
@ -1200,9 +1295,12 @@ public extension Api {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionExportedInviteEdit(prevInvite: _1!, newInvite: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionExportedInviteEdit(prevInvite: _1!, newInvite: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_channelAdminLogEventActionExportedInviteRevoke(_ reader: BufferReader) -> ChannelAdminLogEventAction? {
|
||||
var _1: Api.ExportedChatInvite?
|
||||
|
|
@ -1210,8 +1308,12 @@ public extension Api {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.ExportedChatInvite
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionExportedInviteRevoke(invite: _1!)
|
||||
if _c1 {
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionExportedInviteRevoke(invite: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_channelAdminLogEventActionParticipantInvite(_ reader: BufferReader) -> ChannelAdminLogEventAction? {
|
||||
var _1: Api.ChannelParticipant?
|
||||
|
|
@ -1219,8 +1321,12 @@ public extension Api {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.ChannelParticipant
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionParticipantInvite(participant: _1!)
|
||||
if _c1 {
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionParticipantInvite(participant: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_channelAdminLogEventActionParticipantJoin(_ reader: BufferReader) -> ChannelAdminLogEventAction? {
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionParticipantJoin
|
||||
|
|
@ -1234,9 +1340,12 @@ public extension Api {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionParticipantJoinByInvite(flags: _1!, invite: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionParticipantJoinByInvite(flags: _1!, invite: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_channelAdminLogEventActionParticipantJoinByRequest(_ reader: BufferReader) -> ChannelAdminLogEventAction? {
|
||||
var _1: Api.ExportedChatInvite?
|
||||
|
|
@ -1247,9 +1356,12 @@ public extension Api {
|
|||
_2 = reader.readInt64()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionParticipantJoinByRequest(invite: _1!, approvedBy: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionParticipantJoinByRequest(invite: _1!, approvedBy: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_channelAdminLogEventActionParticipantLeave(_ reader: BufferReader) -> ChannelAdminLogEventAction? {
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionParticipantLeave
|
||||
|
|
@ -1260,8 +1372,12 @@ public extension Api {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.GroupCallParticipant
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionParticipantMute(participant: _1!)
|
||||
if _c1 {
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionParticipantMute(participant: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_channelAdminLogEventActionParticipantSubExtend(_ reader: BufferReader) -> ChannelAdminLogEventAction? {
|
||||
var _1: Api.ChannelParticipant?
|
||||
|
|
@ -1274,9 +1390,12 @@ public extension Api {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionParticipantSubExtend(prevParticipant: _1!, newParticipant: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionParticipantSubExtend(prevParticipant: _1!, newParticipant: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_channelAdminLogEventActionParticipantToggleAdmin(_ reader: BufferReader) -> ChannelAdminLogEventAction? {
|
||||
var _1: Api.ChannelParticipant?
|
||||
|
|
@ -1289,9 +1408,12 @@ public extension Api {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionParticipantToggleAdmin(prevParticipant: _1!, newParticipant: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionParticipantToggleAdmin(prevParticipant: _1!, newParticipant: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_channelAdminLogEventActionParticipantToggleBan(_ reader: BufferReader) -> ChannelAdminLogEventAction? {
|
||||
var _1: Api.ChannelParticipant?
|
||||
|
|
@ -1304,9 +1426,12 @@ public extension Api {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionParticipantToggleBan(prevParticipant: _1!, newParticipant: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionParticipantToggleBan(prevParticipant: _1!, newParticipant: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_channelAdminLogEventActionParticipantUnmute(_ reader: BufferReader) -> ChannelAdminLogEventAction? {
|
||||
var _1: Api.GroupCallParticipant?
|
||||
|
|
@ -1314,8 +1439,12 @@ public extension Api {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.GroupCallParticipant
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionParticipantUnmute(participant: _1!)
|
||||
if _c1 {
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionParticipantUnmute(participant: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_channelAdminLogEventActionParticipantVolume(_ reader: BufferReader) -> ChannelAdminLogEventAction? {
|
||||
var _1: Api.GroupCallParticipant?
|
||||
|
|
@ -1323,8 +1452,12 @@ public extension Api {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.GroupCallParticipant
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionParticipantVolume(participant: _1!)
|
||||
if _c1 {
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionParticipantVolume(participant: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_channelAdminLogEventActionPinTopic(_ reader: BufferReader) -> ChannelAdminLogEventAction? {
|
||||
var _1: Int32?
|
||||
|
|
@ -1340,10 +1473,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = (Int(_1!) & Int(1 << 0) == 0) || _2 != nil
|
||||
let _c3 = (Int(_1!) & Int(1 << 1) == 0) || _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionPinTopic(flags: _1!, prevTopic: _2, newTopic: _3)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionPinTopic(flags: _1!, prevTopic: _2, newTopic: _3)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_channelAdminLogEventActionSendMessage(_ reader: BufferReader) -> ChannelAdminLogEventAction? {
|
||||
var _1: Api.Message?
|
||||
|
|
@ -1351,8 +1486,12 @@ public extension Api {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.Message
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionSendMessage(message: _1!)
|
||||
if _c1 {
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionSendMessage(message: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_channelAdminLogEventActionStartGroupCall(_ reader: BufferReader) -> ChannelAdminLogEventAction? {
|
||||
var _1: Api.InputGroupCall?
|
||||
|
|
@ -1360,8 +1499,12 @@ public extension Api {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.InputGroupCall
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionStartGroupCall(call: _1!)
|
||||
if _c1 {
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionStartGroupCall(call: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_channelAdminLogEventActionStopPoll(_ reader: BufferReader) -> ChannelAdminLogEventAction? {
|
||||
var _1: Api.Message?
|
||||
|
|
@ -1369,8 +1512,12 @@ public extension Api {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.Message
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionStopPoll(message: _1!)
|
||||
if _c1 {
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionStopPoll(message: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_channelAdminLogEventActionToggleAntiSpam(_ reader: BufferReader) -> ChannelAdminLogEventAction? {
|
||||
var _1: Api.Bool?
|
||||
|
|
@ -1378,8 +1525,12 @@ public extension Api {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.Bool
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionToggleAntiSpam(newValue: _1!)
|
||||
if _c1 {
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionToggleAntiSpam(newValue: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_channelAdminLogEventActionToggleAutotranslation(_ reader: BufferReader) -> ChannelAdminLogEventAction? {
|
||||
var _1: Api.Bool?
|
||||
|
|
@ -1387,8 +1538,12 @@ public extension Api {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.Bool
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionToggleAutotranslation(newValue: _1!)
|
||||
if _c1 {
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionToggleAutotranslation(newValue: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_channelAdminLogEventActionToggleForum(_ reader: BufferReader) -> ChannelAdminLogEventAction? {
|
||||
var _1: Api.Bool?
|
||||
|
|
@ -1396,8 +1551,12 @@ public extension Api {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.Bool
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionToggleForum(newValue: _1!)
|
||||
if _c1 {
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionToggleForum(newValue: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_channelAdminLogEventActionToggleGroupCallSetting(_ reader: BufferReader) -> ChannelAdminLogEventAction? {
|
||||
var _1: Api.Bool?
|
||||
|
|
@ -1405,8 +1564,12 @@ public extension Api {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.Bool
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionToggleGroupCallSetting(joinMuted: _1!)
|
||||
if _c1 {
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionToggleGroupCallSetting(joinMuted: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_channelAdminLogEventActionToggleInvites(_ reader: BufferReader) -> ChannelAdminLogEventAction? {
|
||||
var _1: Api.Bool?
|
||||
|
|
@ -1414,8 +1577,12 @@ public extension Api {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.Bool
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionToggleInvites(newValue: _1!)
|
||||
if _c1 {
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionToggleInvites(newValue: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_channelAdminLogEventActionToggleNoForwards(_ reader: BufferReader) -> ChannelAdminLogEventAction? {
|
||||
var _1: Api.Bool?
|
||||
|
|
@ -1423,8 +1590,12 @@ public extension Api {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.Bool
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionToggleNoForwards(newValue: _1!)
|
||||
if _c1 {
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionToggleNoForwards(newValue: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_channelAdminLogEventActionTogglePreHistoryHidden(_ reader: BufferReader) -> ChannelAdminLogEventAction? {
|
||||
var _1: Api.Bool?
|
||||
|
|
@ -1432,8 +1603,12 @@ public extension Api {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.Bool
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionTogglePreHistoryHidden(newValue: _1!)
|
||||
if _c1 {
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionTogglePreHistoryHidden(newValue: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_channelAdminLogEventActionToggleSignatureProfiles(_ reader: BufferReader) -> ChannelAdminLogEventAction? {
|
||||
var _1: Api.Bool?
|
||||
|
|
@ -1441,8 +1616,12 @@ public extension Api {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.Bool
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionToggleSignatureProfiles(newValue: _1!)
|
||||
if _c1 {
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionToggleSignatureProfiles(newValue: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_channelAdminLogEventActionToggleSignatures(_ reader: BufferReader) -> ChannelAdminLogEventAction? {
|
||||
var _1: Api.Bool?
|
||||
|
|
@ -1450,8 +1629,12 @@ public extension Api {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.Bool
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionToggleSignatures(newValue: _1!)
|
||||
if _c1 {
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionToggleSignatures(newValue: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_channelAdminLogEventActionToggleSlowMode(_ reader: BufferReader) -> ChannelAdminLogEventAction? {
|
||||
var _1: Int32?
|
||||
|
|
@ -1460,9 +1643,12 @@ public extension Api {
|
|||
_2 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionToggleSlowMode(prevValue: _1!, newValue: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionToggleSlowMode(prevValue: _1!, newValue: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_channelAdminLogEventActionUpdatePinned(_ reader: BufferReader) -> ChannelAdminLogEventAction? {
|
||||
var _1: Api.Message?
|
||||
|
|
@ -1470,8 +1656,12 @@ public extension Api {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.Message
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionUpdatePinned(message: _1!)
|
||||
if _c1 {
|
||||
return Api.ChannelAdminLogEventAction.channelAdminLogEventActionUpdatePinned(message: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -39,8 +39,12 @@ public extension Api.account {
|
|||
_1 = Api.parseVector(reader, elementSignature: 570911930, elementType: Int64.self)
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.account.SavedMusicIds.savedMusicIds(ids: _1!)
|
||||
if _c1 {
|
||||
return Api.account.SavedMusicIds.savedMusicIds(ids: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_savedMusicIdsNotModified(_ reader: BufferReader) -> SavedMusicIds? {
|
||||
return Api.account.SavedMusicIds.savedMusicIdsNotModified
|
||||
|
|
@ -88,8 +92,12 @@ public extension Api.account {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.Document
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.account.SavedRingtone.savedRingtoneConverted(document: _1!)
|
||||
if _c1 {
|
||||
return Api.account.SavedRingtone.savedRingtoneConverted(document: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -139,9 +147,12 @@ public extension Api.account {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.account.SavedRingtones.savedRingtones(hash: _1!, ringtones: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.account.SavedRingtones.savedRingtones(hash: _1!, ringtones: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_savedRingtonesNotModified(_ reader: BufferReader) -> SavedRingtones? {
|
||||
return Api.account.SavedRingtones.savedRingtonesNotModified
|
||||
|
|
@ -179,9 +190,12 @@ public extension Api.account {
|
|||
_2 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.account.SentEmailCode.sentEmailCode(emailPattern: _1!, length: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.account.SentEmailCode.sentEmailCode(emailPattern: _1!, length: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -212,8 +226,12 @@ public extension Api.account {
|
|||
var _1: Int64?
|
||||
_1 = reader.readInt64()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.account.Takeout.takeout(id: _1!)
|
||||
if _c1 {
|
||||
return Api.account.Takeout.takeout(id: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -263,9 +281,12 @@ public extension Api.account {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.account.Themes.themes(hash: _1!, themes: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.account.Themes.themes(hash: _1!, themes: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_themesNotModified(_ reader: BufferReader) -> Themes? {
|
||||
return Api.account.Themes.themesNotModified
|
||||
|
|
@ -303,9 +324,12 @@ public extension Api.account {
|
|||
_2 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.account.TmpPassword.tmpPassword(tmpPassword: _1!, validUntil: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.account.TmpPassword.tmpPassword(tmpPassword: _1!, validUntil: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -355,9 +379,12 @@ public extension Api.account {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.account.WallPapers.wallPapers(hash: _1!, wallpapers: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.account.WallPapers.wallPapers(hash: _1!, wallpapers: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_wallPapersNotModified(_ reader: BufferReader) -> WallPapers? {
|
||||
return Api.account.WallPapers.wallPapersNotModified
|
||||
|
|
@ -407,9 +434,12 @@ public extension Api.account {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.account.WebAuthorizations.webAuthorizations(authorizations: _1!, users: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.account.WebAuthorizations.webAuthorizations(authorizations: _1!, users: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -468,12 +498,12 @@ public extension Api.auth {
|
|||
let _c3 = (Int(_1!) & Int(1 << 0) == 0) || _3 != nil
|
||||
let _c4 = (Int(_1!) & Int(1 << 2) == 0) || _4 != nil
|
||||
let _c5 = _5 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
return Api.auth.Authorization.authorization(flags: _1!, otherwiseReloginDays: _2, tmpSessions: _3, futureAuthToken: _4, user: _5!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 {
|
||||
return Api.auth.Authorization.authorization(flags: _1!, otherwiseReloginDays: _2, tmpSessions: _3, futureAuthToken: _4, user: _5!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_authorizationSignUpRequired(_ reader: BufferReader) -> Authorization? {
|
||||
var _1: Int32?
|
||||
|
|
@ -484,9 +514,12 @@ public extension Api.auth {
|
|||
} }
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = (Int(_1!) & Int(1 << 0) == 0) || _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.auth.Authorization.authorizationSignUpRequired(flags: _1!, termsOfService: _2)
|
||||
if _c1 && _c2 {
|
||||
return Api.auth.Authorization.authorizationSignUpRequired(flags: _1!, termsOfService: _2)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -597,9 +630,12 @@ public extension Api.auth {
|
|||
_2 = parseBytes(reader)
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.auth.ExportedAuthorization.exportedAuthorization(id: _1!, bytes: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.auth.ExportedAuthorization.exportedAuthorization(id: _1!, bytes: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -634,9 +670,12 @@ public extension Api.auth {
|
|||
if Int(_1!) & Int(1 << 0) != 0 {_2 = parseBytes(reader) }
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = (Int(_1!) & Int(1 << 0) == 0) || _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.auth.LoggedOut.loggedOut(flags: _1!, futureAuthToken: _2)
|
||||
if _c1 && _c2 {
|
||||
return Api.auth.LoggedOut.loggedOut(flags: _1!, futureAuthToken: _2)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -690,9 +729,12 @@ public extension Api.auth {
|
|||
_2 = parseBytes(reader)
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.auth.LoginToken.loginToken(expires: _1!, token: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.auth.LoginToken.loginToken(expires: _1!, token: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_loginTokenMigrateTo(_ reader: BufferReader) -> LoginToken? {
|
||||
var _1: Int32?
|
||||
|
|
@ -701,9 +743,12 @@ public extension Api.auth {
|
|||
_2 = parseBytes(reader)
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.auth.LoginToken.loginTokenMigrateTo(dcId: _1!, token: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.auth.LoginToken.loginTokenMigrateTo(dcId: _1!, token: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_loginTokenSuccess(_ reader: BufferReader) -> LoginToken? {
|
||||
var _1: Api.auth.Authorization?
|
||||
|
|
@ -711,8 +756,12 @@ public extension Api.auth {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.auth.Authorization
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.auth.LoginToken.loginTokenSuccess(authorization: _1!)
|
||||
if _c1 {
|
||||
return Api.auth.LoginToken.loginTokenSuccess(authorization: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -745,8 +794,12 @@ public extension Api.auth {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.DataJSON
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.auth.PasskeyLoginOptions.passkeyLoginOptions(options: _1!)
|
||||
if _c1 {
|
||||
return Api.auth.PasskeyLoginOptions.passkeyLoginOptions(options: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -777,8 +830,12 @@ public extension Api.auth {
|
|||
var _1: String?
|
||||
_1 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.auth.PasswordRecovery.passwordRecovery(emailPattern: _1!)
|
||||
if _c1 {
|
||||
return Api.auth.PasswordRecovery.passwordRecovery(emailPattern: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -852,12 +909,12 @@ public extension Api.auth {
|
|||
let _c3 = _3 != nil
|
||||
let _c4 = (Int(_1!) & Int(1 << 1) == 0) || _4 != nil
|
||||
let _c5 = (Int(_1!) & Int(1 << 2) == 0) || _5 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
return Api.auth.SentCode.sentCode(flags: _1!, type: _2!, phoneCodeHash: _3!, nextType: _4, timeout: _5)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 {
|
||||
return Api.auth.SentCode.sentCode(flags: _1!, type: _2!, phoneCodeHash: _3!, nextType: _4, timeout: _5)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_sentCodePaymentRequired(_ reader: BufferReader) -> SentCode? {
|
||||
var _1: String?
|
||||
|
|
@ -878,13 +935,12 @@ public extension Api.auth {
|
|||
let _c4 = _4 != nil
|
||||
let _c5 = _5 != nil
|
||||
let _c6 = _6 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
return Api.auth.SentCode.sentCodePaymentRequired(storeProduct: _1!, phoneCodeHash: _2!, supportEmailAddress: _3!, supportEmailSubject: _4!, currency: _5!, amount: _6!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 {
|
||||
return Api.auth.SentCode.sentCodePaymentRequired(storeProduct: _1!, phoneCodeHash: _2!, supportEmailAddress: _3!, supportEmailSubject: _4!, currency: _5!, amount: _6!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_sentCodeSuccess(_ reader: BufferReader) -> SentCode? {
|
||||
var _1: Api.auth.Authorization?
|
||||
|
|
@ -892,8 +948,12 @@ public extension Api.auth {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.auth.Authorization
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.auth.SentCode.sentCodeSuccess(authorization: _1!)
|
||||
if _c1 {
|
||||
return Api.auth.SentCode.sentCodeSuccess(authorization: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1028,15 +1088,23 @@ public extension Api.auth {
|
|||
var _1: Int32?
|
||||
_1 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.auth.SentCodeType.sentCodeTypeApp(length: _1!)
|
||||
if _c1 {
|
||||
return Api.auth.SentCodeType.sentCodeTypeApp(length: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_sentCodeTypeCall(_ reader: BufferReader) -> SentCodeType? {
|
||||
var _1: Int32?
|
||||
_1 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.auth.SentCodeType.sentCodeTypeCall(length: _1!)
|
||||
if _c1 {
|
||||
return Api.auth.SentCodeType.sentCodeTypeCall(length: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_sentCodeTypeEmailCode(_ reader: BufferReader) -> SentCodeType? {
|
||||
var _1: Int32?
|
||||
|
|
@ -1054,12 +1122,12 @@ public extension Api.auth {
|
|||
let _c3 = _3 != nil
|
||||
let _c4 = (Int(_1!) & Int(1 << 3) == 0) || _4 != nil
|
||||
let _c5 = (Int(_1!) & Int(1 << 4) == 0) || _5 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
return Api.auth.SentCodeType.sentCodeTypeEmailCode(flags: _1!, emailPattern: _2!, length: _3!, resetAvailablePeriod: _4, resetPendingDate: _5)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 {
|
||||
return Api.auth.SentCodeType.sentCodeTypeEmailCode(flags: _1!, emailPattern: _2!, length: _3!, resetAvailablePeriod: _4, resetPendingDate: _5)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_sentCodeTypeFirebaseSms(_ reader: BufferReader) -> SentCodeType? {
|
||||
var _1: Int32?
|
||||
|
|
@ -1083,21 +1151,23 @@ public extension Api.auth {
|
|||
let _c5 = (Int(_1!) & Int(1 << 1) == 0) || _5 != nil
|
||||
let _c6 = (Int(_1!) & Int(1 << 1) == 0) || _6 != nil
|
||||
let _c7 = _7 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
return Api.auth.SentCodeType.sentCodeTypeFirebaseSms(flags: _1!, nonce: _2, playIntegrityProjectId: _3, playIntegrityNonce: _4, receipt: _5, pushTimeout: _6, length: _7!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 {
|
||||
return Api.auth.SentCodeType.sentCodeTypeFirebaseSms(flags: _1!, nonce: _2, playIntegrityProjectId: _3, playIntegrityNonce: _4, receipt: _5, pushTimeout: _6, length: _7!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_sentCodeTypeFlashCall(_ reader: BufferReader) -> SentCodeType? {
|
||||
var _1: String?
|
||||
_1 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.auth.SentCodeType.sentCodeTypeFlashCall(pattern: _1!)
|
||||
if _c1 {
|
||||
return Api.auth.SentCodeType.sentCodeTypeFlashCall(pattern: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_sentCodeTypeFragmentSms(_ reader: BufferReader) -> SentCodeType? {
|
||||
var _1: String?
|
||||
|
|
@ -1106,9 +1176,12 @@ public extension Api.auth {
|
|||
_2 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.auth.SentCodeType.sentCodeTypeFragmentSms(url: _1!, length: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.auth.SentCodeType.sentCodeTypeFragmentSms(url: _1!, length: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_sentCodeTypeMissedCall(_ reader: BufferReader) -> SentCodeType? {
|
||||
var _1: String?
|
||||
|
|
@ -1117,23 +1190,34 @@ public extension Api.auth {
|
|||
_2 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.auth.SentCodeType.sentCodeTypeMissedCall(prefix: _1!, length: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.auth.SentCodeType.sentCodeTypeMissedCall(prefix: _1!, length: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_sentCodeTypeSetUpEmailRequired(_ reader: BufferReader) -> SentCodeType? {
|
||||
var _1: Int32?
|
||||
_1 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.auth.SentCodeType.sentCodeTypeSetUpEmailRequired(flags: _1!)
|
||||
if _c1 {
|
||||
return Api.auth.SentCodeType.sentCodeTypeSetUpEmailRequired(flags: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_sentCodeTypeSms(_ reader: BufferReader) -> SentCodeType? {
|
||||
var _1: Int32?
|
||||
_1 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.auth.SentCodeType.sentCodeTypeSms(length: _1!)
|
||||
if _c1 {
|
||||
return Api.auth.SentCodeType.sentCodeTypeSms(length: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_sentCodeTypeSmsPhrase(_ reader: BufferReader) -> SentCodeType? {
|
||||
var _1: Int32?
|
||||
|
|
@ -1142,9 +1226,12 @@ public extension Api.auth {
|
|||
if Int(_1!) & Int(1 << 0) != 0 {_2 = parseString(reader) }
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = (Int(_1!) & Int(1 << 0) == 0) || _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.auth.SentCodeType.sentCodeTypeSmsPhrase(flags: _1!, beginning: _2)
|
||||
if _c1 && _c2 {
|
||||
return Api.auth.SentCodeType.sentCodeTypeSmsPhrase(flags: _1!, beginning: _2)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_sentCodeTypeSmsWord(_ reader: BufferReader) -> SentCodeType? {
|
||||
var _1: Int32?
|
||||
|
|
@ -1153,9 +1240,12 @@ public extension Api.auth {
|
|||
if Int(_1!) & Int(1 << 0) != 0 {_2 = parseString(reader) }
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = (Int(_1!) & Int(1 << 0) == 0) || _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.auth.SentCodeType.sentCodeTypeSmsWord(flags: _1!, beginning: _2)
|
||||
if _c1 && _c2 {
|
||||
return Api.auth.SentCodeType.sentCodeTypeSmsWord(flags: _1!, beginning: _2)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,10 +32,12 @@ public extension Api.bots {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.bots.BotInfo.botInfo(name: _1!, about: _2!, description: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.bots.BotInfo.botInfo(name: _1!, about: _2!, description: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -80,10 +82,12 @@ public extension Api.bots {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = (Int(_1!) & Int(1 << 0) == 0) || _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.bots.PopularAppBots.popularAppBots(flags: _1!, nextOffset: _2, users: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.bots.PopularAppBots.popularAppBots(flags: _1!, nextOffset: _2, users: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -130,9 +134,12 @@ public extension Api.bots {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.bots.PreviewInfo.previewInfo(media: _1!, langCodes: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.bots.PreviewInfo.previewInfo(media: _1!, langCodes: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -189,10 +196,12 @@ public extension Api.channels {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.channels.AdminLogResults.adminLogResults(events: _1!, chats: _2!, users: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.channels.AdminLogResults.adminLogResults(events: _1!, chats: _2!, users: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -245,10 +254,12 @@ public extension Api.channels {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.channels.ChannelParticipant.channelParticipant(participant: _1!, chats: _2!, users: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.channels.ChannelParticipant.channelParticipant(participant: _1!, chats: _2!, users: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -318,11 +329,12 @@ public extension Api.channels {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.channels.ChannelParticipants.channelParticipants(count: _1!, participants: _2!, chats: _3!, users: _4!)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.channels.ChannelParticipants.channelParticipants(count: _1!, participants: _2!, chats: _3!, users: _4!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_channelParticipantsNotModified(_ reader: BufferReader) -> ChannelParticipants? {
|
||||
return Api.channels.ChannelParticipants.channelParticipantsNotModified
|
||||
|
|
@ -382,10 +394,12 @@ public extension Api.channels {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.channels.SendAsPeers.sendAsPeers(peers: _1!, chats: _2!, users: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.channels.SendAsPeers.sendAsPeers(peers: _1!, chats: _2!, users: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -447,9 +461,12 @@ public extension Api.channels {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.channels.SponsoredMessageReportResult.sponsoredMessageReportResultChooseOption(title: _1!, options: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.channels.SponsoredMessageReportResult.sponsoredMessageReportResultChooseOption(title: _1!, options: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_sponsoredMessageReportResultReported(_ reader: BufferReader) -> SponsoredMessageReportResult? {
|
||||
return Api.channels.SponsoredMessageReportResult.sponsoredMessageReportResultReported
|
||||
|
|
@ -552,13 +569,12 @@ public extension Api.chatlists {
|
|||
let _c4 = _4 != nil
|
||||
let _c5 = _5 != nil
|
||||
let _c6 = _6 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
return Api.chatlists.ChatlistInvite.chatlistInvite(flags: _1!, title: _2!, emoticon: _3, peers: _4!, chats: _5!, users: _6!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 {
|
||||
return Api.chatlists.ChatlistInvite.chatlistInvite(flags: _1!, title: _2!, emoticon: _3, peers: _4!, chats: _5!, users: _6!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_chatlistInviteAlready(_ reader: BufferReader) -> ChatlistInvite? {
|
||||
var _1: Int32?
|
||||
|
|
@ -584,12 +600,12 @@ public extension Api.chatlists {
|
|||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
let _c5 = _5 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
return Api.chatlists.ChatlistInvite.chatlistInviteAlready(filterId: _1!, missingPeers: _2!, alreadyPeers: _3!, chats: _4!, users: _5!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 {
|
||||
return Api.chatlists.ChatlistInvite.chatlistInviteAlready(filterId: _1!, missingPeers: _2!, alreadyPeers: _3!, chats: _4!, users: _5!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -646,10 +662,12 @@ public extension Api.chatlists {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.chatlists.ChatlistUpdates.chatlistUpdates(missingPeers: _1!, chats: _2!, users: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.chatlists.ChatlistUpdates.chatlistUpdates(missingPeers: _1!, chats: _2!, users: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -688,9 +706,12 @@ public extension Api.chatlists {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.chatlists.ExportedChatlistInvite.exportedChatlistInvite(filter: _1!, invite: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.chatlists.ExportedChatlistInvite.exportedChatlistInvite(filter: _1!, invite: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -747,10 +768,12 @@ public extension Api.chatlists {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.chatlists.ExportedInvites.exportedInvites(invites: _1!, chats: _2!, users: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.chatlists.ExportedInvites.exportedInvites(invites: _1!, chats: _2!, users: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -831,10 +854,12 @@ public extension Api.contacts {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.contacts.Blocked.blocked(blocked: _1!, chats: _2!, users: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.contacts.Blocked.blocked(blocked: _1!, chats: _2!, users: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_blockedSlice(_ reader: BufferReader) -> Blocked? {
|
||||
var _1: Int32?
|
||||
|
|
@ -855,11 +880,12 @@ public extension Api.contacts {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.contacts.Blocked.blockedSlice(count: _1!, blocked: _2!, chats: _3!, users: _4!)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.contacts.Blocked.blockedSlice(count: _1!, blocked: _2!, chats: _3!, users: _4!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -906,9 +932,12 @@ public extension Api.contacts {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.contacts.ContactBirthdays.contactBirthdays(contacts: _1!, users: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.contacts.ContactBirthdays.contactBirthdays(contacts: _1!, users: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -968,10 +997,12 @@ public extension Api.contacts {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.contacts.Contacts.contacts(contacts: _1!, savedCount: _2!, users: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.contacts.Contacts.contacts(contacts: _1!, savedCount: _2!, users: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_contactsNotModified(_ reader: BufferReader) -> Contacts? {
|
||||
return Api.contacts.Contacts.contactsNotModified
|
||||
|
|
@ -1041,11 +1072,12 @@ public extension Api.contacts {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.contacts.Found.found(myResults: _1!, results: _2!, chats: _3!, users: _4!)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.contacts.Found.found(myResults: _1!, results: _2!, chats: _3!, users: _4!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1112,11 +1144,12 @@ public extension Api.contacts {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.contacts.ImportedContacts.importedContacts(imported: _1!, popularInvites: _2!, retryContacts: _3!, users: _4!)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.contacts.ImportedContacts.importedContacts(imported: _1!, popularInvites: _2!, retryContacts: _3!, users: _4!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1169,10 +1202,12 @@ public extension Api.contacts {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.contacts.ResolvedPeer.resolvedPeer(peer: _1!, chats: _2!, users: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.contacts.ResolvedPeer.resolvedPeer(peer: _1!, chats: _2!, users: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1238,10 +1273,12 @@ public extension Api.contacts {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.contacts.SponsoredPeers.sponsoredPeers(peers: _1!, chats: _2!, users: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.contacts.SponsoredPeers.sponsoredPeers(peers: _1!, chats: _2!, users: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_sponsoredPeersEmpty(_ reader: BufferReader) -> SponsoredPeers? {
|
||||
return Api.contacts.SponsoredPeers.sponsoredPeersEmpty
|
||||
|
|
@ -1319,10 +1356,12 @@ public extension Api.contacts {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.contacts.TopPeers.topPeers(categories: _1!, chats: _2!, users: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.contacts.TopPeers.topPeers(categories: _1!, chats: _2!, users: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_topPeersDisabled(_ reader: BufferReader) -> TopPeers? {
|
||||
return Api.contacts.TopPeers.topPeersDisabled
|
||||
|
|
@ -1379,13 +1418,12 @@ public extension Api.fragment {
|
|||
let _c4 = _4 != nil
|
||||
let _c5 = _5 != nil
|
||||
let _c6 = _6 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
return Api.fragment.CollectibleInfo.collectibleInfo(purchaseDate: _1!, currency: _2!, amount: _3!, cryptoCurrency: _4!, cryptoAmount: _5!, url: _6!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 {
|
||||
return Api.fragment.CollectibleInfo.collectibleInfo(purchaseDate: _1!, currency: _2!, amount: _3!, cryptoCurrency: _4!, cryptoAmount: _5!, url: _6!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1431,9 +1469,12 @@ public extension Api.help {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.help.AppConfig.appConfig(hash: _1!, config: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.help.AppConfig.appConfig(hash: _1!, config: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_appConfigNotModified(_ reader: BufferReader) -> AppConfig? {
|
||||
return Api.help.AppConfig.appConfigNotModified
|
||||
|
|
|
|||
|
|
@ -71,15 +71,12 @@ public extension Api.help {
|
|||
let _c6 = (Int(_1!) & Int(1 << 1) == 0) || _6 != nil
|
||||
let _c7 = (Int(_1!) & Int(1 << 2) == 0) || _7 != nil
|
||||
let _c8 = (Int(_1!) & Int(1 << 3) == 0) || _8 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
return Api.help.AppUpdate.appUpdate(flags: _1!, id: _2!, version: _3!, text: _4!, entities: _5!, document: _6, url: _7, sticker: _8)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 {
|
||||
return Api.help.AppUpdate.appUpdate(flags: _1!, id: _2!, version: _3!, text: _4!, entities: _5!, document: _6, url: _7, sticker: _8)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_noAppUpdate(_ reader: BufferReader) -> AppUpdate? {
|
||||
return Api.help.AppUpdate.noAppUpdate
|
||||
|
|
@ -132,9 +129,12 @@ public extension Api.help {
|
|||
_2 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.help.CountriesList.countriesList(countries: _1!, hash: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.help.CountriesList.countriesList(countries: _1!, hash: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_countriesListNotModified(_ reader: BufferReader) -> CountriesList? {
|
||||
return Api.help.CountriesList.countriesListNotModified
|
||||
|
|
@ -190,12 +190,12 @@ public extension Api.help {
|
|||
let _c3 = _3 != nil
|
||||
let _c4 = (Int(_1!) & Int(1 << 1) == 0) || _4 != nil
|
||||
let _c5 = _5 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
return Api.help.Country.country(flags: _1!, iso2: _2!, defaultName: _3!, name: _4, countryCodes: _5!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 {
|
||||
return Api.help.Country.country(flags: _1!, iso2: _2!, defaultName: _3!, name: _4, countryCodes: _5!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -250,11 +250,12 @@ public extension Api.help {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = (Int(_1!) & Int(1 << 0) == 0) || _3 != nil
|
||||
let _c4 = (Int(_1!) & Int(1 << 1) == 0) || _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.help.CountryCode.countryCode(flags: _1!, countryCode: _2!, prefixes: _3, patterns: _4)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.help.CountryCode.countryCode(flags: _1!, countryCode: _2!, prefixes: _3, patterns: _4)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -308,10 +309,12 @@ public extension Api.help {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = (Int(_1!) & Int(1 << 1) == 0) || _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.help.DeepLinkInfo.deepLinkInfo(flags: _1!, message: _2!, entities: _3)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.help.DeepLinkInfo.deepLinkInfo(flags: _1!, message: _2!, entities: _3)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_deepLinkInfoEmpty(_ reader: BufferReader) -> DeepLinkInfo? {
|
||||
return Api.help.DeepLinkInfo.deepLinkInfoEmpty
|
||||
|
|
@ -345,8 +348,12 @@ public extension Api.help {
|
|||
var _1: String?
|
||||
_1 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.help.InviteText.inviteText(message: _1!)
|
||||
if _c1 {
|
||||
return Api.help.InviteText.inviteText(message: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -392,9 +399,12 @@ public extension Api.help {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.help.PassportConfig.passportConfig(hash: _1!, countriesLangs: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.help.PassportConfig.passportConfig(hash: _1!, countriesLangs: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_passportConfigNotModified(_ reader: BufferReader) -> PassportConfig? {
|
||||
return Api.help.PassportConfig.passportConfigNotModified
|
||||
|
|
@ -452,13 +462,12 @@ public extension Api.help {
|
|||
let _c4 = (Int(_1!) & Int(1 << 2) == 0) || _4 != nil
|
||||
let _c5 = (Int(_1!) & Int(1 << 3) == 0) || _5 != nil
|
||||
let _c6 = (Int(_1!) & Int(1 << 4) == 0) || _6 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
return Api.help.PeerColorOption.peerColorOption(flags: _1!, colorId: _2!, colors: _3, darkColors: _4, channelMinLevel: _5, groupMinLevel: _6)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 {
|
||||
return Api.help.PeerColorOption.peerColorOption(flags: _1!, colorId: _2!, colors: _3, darkColors: _4, channelMinLevel: _5, groupMinLevel: _6)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -528,10 +537,12 @@ public extension Api.help {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.help.PeerColorSet.peerColorProfileSet(paletteColors: _1!, bgColors: _2!, storyColors: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.help.PeerColorSet.peerColorProfileSet(paletteColors: _1!, bgColors: _2!, storyColors: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_peerColorSet(_ reader: BufferReader) -> PeerColorSet? {
|
||||
var _1: [Int32]?
|
||||
|
|
@ -539,8 +550,12 @@ public extension Api.help {
|
|||
_1 = Api.parseVector(reader, elementSignature: -1471112230, elementType: Int32.self)
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.help.PeerColorSet.peerColorSet(colors: _1!)
|
||||
if _c1 {
|
||||
return Api.help.PeerColorSet.peerColorSet(colors: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -590,9 +605,12 @@ public extension Api.help {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.help.PeerColors.peerColors(hash: _1!, colors: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.help.PeerColors.peerColors(hash: _1!, colors: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_peerColorsNotModified(_ reader: BufferReader) -> PeerColors? {
|
||||
return Api.help.PeerColors.peerColorsNotModified
|
||||
|
|
@ -676,13 +694,12 @@ public extension Api.help {
|
|||
let _c4 = _4 != nil
|
||||
let _c5 = _5 != nil
|
||||
let _c6 = _6 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
return Api.help.PremiumPromo.premiumPromo(statusText: _1!, statusEntities: _2!, videoSections: _3!, videos: _4!, periodOptions: _5!, users: _6!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 {
|
||||
return Api.help.PremiumPromo.premiumPromo(statusText: _1!, statusEntities: _2!, videoSections: _3!, videos: _4!, periodOptions: _5!, users: _6!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -786,24 +803,23 @@ public extension Api.help {
|
|||
let _c8 = (Int(_1!) & Int(1 << 4) == 0) || _8 != nil
|
||||
let _c9 = _9 != nil
|
||||
let _c10 = _10 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
if !_c9 { return nil }
|
||||
if !_c10 { return nil }
|
||||
return Api.help.PromoData.promoData(flags: _1!, expires: _2!, peer: _3, psaType: _4, psaMessage: _5, pendingSuggestions: _6!, dismissedSuggestions: _7!, customPendingSuggestion: _8, chats: _9!, users: _10!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 && _c10 {
|
||||
return Api.help.PromoData.promoData(flags: _1!, expires: _2!, peer: _3, psaType: _4, psaMessage: _5, pendingSuggestions: _6!, dismissedSuggestions: _7!, customPendingSuggestion: _8, chats: _9!, users: _10!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_promoDataEmpty(_ reader: BufferReader) -> PromoData? {
|
||||
var _1: Int32?
|
||||
_1 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.help.PromoData.promoDataEmpty(expires: _1!)
|
||||
if _c1 {
|
||||
return Api.help.PromoData.promoDataEmpty(expires: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -860,10 +876,12 @@ public extension Api.help {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.help.RecentMeUrls.recentMeUrls(urls: _1!, chats: _2!, users: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.help.RecentMeUrls.recentMeUrls(urls: _1!, chats: _2!, users: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -900,9 +918,12 @@ public extension Api.help {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.help.Support.support(phoneNumber: _1!, user: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.help.Support.support(phoneNumber: _1!, user: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -933,8 +954,12 @@ public extension Api.help {
|
|||
var _1: String?
|
||||
_1 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.help.SupportName.supportName(name: _1!)
|
||||
if _c1 {
|
||||
return Api.help.SupportName.supportName(name: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -989,12 +1014,12 @@ public extension Api.help {
|
|||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
let _c5 = (Int(_1!) & Int(1 << 1) == 0) || _5 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
return Api.help.TermsOfService.termsOfService(flags: _1!, id: _2!, text: _3!, entities: _4!, minAgeConfirm: _5)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 {
|
||||
return Api.help.TermsOfService.termsOfService(flags: _1!, id: _2!, text: _3!, entities: _4!, minAgeConfirm: _5)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1040,16 +1065,23 @@ public extension Api.help {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.help.TermsOfServiceUpdate.termsOfServiceUpdate(expires: _1!, termsOfService: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.help.TermsOfServiceUpdate.termsOfServiceUpdate(expires: _1!, termsOfService: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_termsOfServiceUpdateEmpty(_ reader: BufferReader) -> TermsOfServiceUpdate? {
|
||||
var _1: Int32?
|
||||
_1 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.help.TermsOfServiceUpdate.termsOfServiceUpdateEmpty(expires: _1!)
|
||||
if _c1 {
|
||||
return Api.help.TermsOfServiceUpdate.termsOfServiceUpdateEmpty(expires: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1099,9 +1131,12 @@ public extension Api.help {
|
|||
_2 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.help.TimezonesList.timezonesList(timezones: _1!, hash: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.help.TimezonesList.timezonesList(timezones: _1!, hash: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_timezonesListNotModified(_ reader: BufferReader) -> TimezonesList? {
|
||||
return Api.help.TimezonesList.timezonesListNotModified
|
||||
|
|
@ -1162,11 +1197,12 @@ public extension Api.help {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.help.UserInfo.userInfo(message: _1!, entities: _2!, author: _3!, date: _4!)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.help.UserInfo.userInfo(message: _1!, entities: _2!, author: _3!, date: _4!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_userInfoEmpty(_ reader: BufferReader) -> UserInfo? {
|
||||
return Api.help.UserInfo.userInfoEmpty
|
||||
|
|
@ -1218,11 +1254,12 @@ public extension Api.messages {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.messages.AffectedFoundMessages.affectedFoundMessages(pts: _1!, ptsCount: _2!, offset: _3!, messages: _4!)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.messages.AffectedFoundMessages.affectedFoundMessages(pts: _1!, ptsCount: _2!, offset: _3!, messages: _4!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1261,10 +1298,12 @@ public extension Api.messages {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.messages.AffectedHistory.affectedHistory(pts: _1!, ptsCount: _2!, offset: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.messages.AffectedHistory.affectedHistory(pts: _1!, ptsCount: _2!, offset: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1299,9 +1338,12 @@ public extension Api.messages {
|
|||
_2 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.messages.AffectedMessages.affectedMessages(pts: _1!, ptsCount: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.messages.AffectedMessages.affectedMessages(pts: _1!, ptsCount: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -43,9 +43,12 @@ public extension Api.messages {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.messages.AllStickers.allStickers(hash: _1!, sets: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.messages.AllStickers.allStickers(hash: _1!, sets: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_allStickersNotModified(_ reader: BufferReader) -> AllStickers? {
|
||||
return Api.messages.AllStickers.allStickersNotModified
|
||||
|
|
@ -89,9 +92,12 @@ public extension Api.messages {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.messages.ArchivedStickers.archivedStickers(count: _1!, sets: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.messages.ArchivedStickers.archivedStickers(count: _1!, sets: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -151,10 +157,12 @@ public extension Api.messages {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.messages.AvailableEffects.availableEffects(hash: _1!, effects: _2!, documents: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.messages.AvailableEffects.availableEffects(hash: _1!, effects: _2!, documents: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_availableEffectsNotModified(_ reader: BufferReader) -> AvailableEffects? {
|
||||
return Api.messages.AvailableEffects.availableEffectsNotModified
|
||||
|
|
@ -207,9 +215,12 @@ public extension Api.messages {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.messages.AvailableReactions.availableReactions(hash: _1!, reactions: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.messages.AvailableReactions.availableReactions(hash: _1!, reactions: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_availableReactionsNotModified(_ reader: BufferReader) -> AvailableReactions? {
|
||||
return Api.messages.AvailableReactions.availableReactionsNotModified
|
||||
|
|
@ -249,9 +260,12 @@ public extension Api.messages {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.messages.BotApp.botApp(flags: _1!, app: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.messages.BotApp.botApp(flags: _1!, app: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -294,11 +308,12 @@ public extension Api.messages {
|
|||
let _c2 = (Int(_1!) & Int(1 << 0) == 0) || _2 != nil
|
||||
let _c3 = (Int(_1!) & Int(1 << 2) == 0) || _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.messages.BotCallbackAnswer.botCallbackAnswer(flags: _1!, message: _2, url: _3, cacheTime: _4!)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.messages.BotCallbackAnswer.botCallbackAnswer(flags: _1!, message: _2, url: _3, cacheTime: _4!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -333,9 +348,12 @@ public extension Api.messages {
|
|||
_2 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.messages.BotPreparedInlineMessage.botPreparedInlineMessage(id: _1!, expireDate: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.messages.BotPreparedInlineMessage.botPreparedInlineMessage(id: _1!, expireDate: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -410,15 +428,12 @@ public extension Api.messages {
|
|||
let _c6 = _6 != nil
|
||||
let _c7 = _7 != nil
|
||||
let _c8 = _8 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
return Api.messages.BotResults.botResults(flags: _1!, queryId: _2!, nextOffset: _3, switchPm: _4, switchWebview: _5, results: _6!, cacheTime: _7!, users: _8!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 {
|
||||
return Api.messages.BotResults.botResults(flags: _1!, queryId: _2!, nextOffset: _3, switchPm: _4, switchWebview: _5, results: _6!, cacheTime: _7!, users: _8!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -465,9 +480,12 @@ public extension Api.messages {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.messages.ChatAdminsWithInvites.chatAdminsWithInvites(admins: _1!, users: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.messages.ChatAdminsWithInvites.chatAdminsWithInvites(admins: _1!, users: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -520,10 +538,12 @@ public extension Api.messages {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.messages.ChatFull.chatFull(fullChat: _1!, chats: _2!, users: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.messages.ChatFull.chatFull(fullChat: _1!, chats: _2!, users: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -574,10 +594,12 @@ public extension Api.messages {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.messages.ChatInviteImporters.chatInviteImporters(count: _1!, importers: _2!, users: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.messages.ChatInviteImporters.chatInviteImporters(count: _1!, importers: _2!, users: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -628,8 +650,12 @@ public extension Api.messages {
|
|||
_1 = Api.parseVector(reader, elementSignature: 0, elementType: Api.Chat.self)
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.messages.Chats.chats(chats: _1!)
|
||||
if _c1 {
|
||||
return Api.messages.Chats.chats(chats: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_chatsSlice(_ reader: BufferReader) -> Chats? {
|
||||
var _1: Int32?
|
||||
|
|
@ -640,9 +666,12 @@ public extension Api.messages {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.messages.Chats.chatsSlice(count: _1!, chats: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.messages.Chats.chatsSlice(count: _1!, chats: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -673,8 +702,12 @@ public extension Api.messages {
|
|||
var _1: String?
|
||||
_1 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.messages.CheckedHistoryImportPeer.checkedHistoryImportPeer(confirmText: _1!)
|
||||
if _c1 {
|
||||
return Api.messages.CheckedHistoryImportPeer.checkedHistoryImportPeer(confirmText: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -726,18 +759,23 @@ public extension Api.messages {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.messages.DhConfig.dhConfig(g: _1!, p: _2!, version: _3!, random: _4!)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.messages.DhConfig.dhConfig(g: _1!, p: _2!, version: _3!, random: _4!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_dhConfigNotModified(_ reader: BufferReader) -> DhConfig? {
|
||||
var _1: Buffer?
|
||||
_1 = parseBytes(reader)
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.messages.DhConfig.dhConfigNotModified(random: _1!)
|
||||
if _c1 {
|
||||
return Api.messages.DhConfig.dhConfigNotModified(random: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -778,9 +816,12 @@ public extension Api.messages {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.messages.DialogFilters.dialogFilters(flags: _1!, filters: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.messages.DialogFilters.dialogFilters(flags: _1!, filters: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -885,18 +926,23 @@ public extension Api.messages {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.messages.Dialogs.dialogs(dialogs: _1!, messages: _2!, chats: _3!, users: _4!)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.messages.Dialogs.dialogs(dialogs: _1!, messages: _2!, chats: _3!, users: _4!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_dialogsNotModified(_ reader: BufferReader) -> Dialogs? {
|
||||
var _1: Int32?
|
||||
_1 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.messages.Dialogs.dialogsNotModified(count: _1!)
|
||||
if _c1 {
|
||||
return Api.messages.Dialogs.dialogsNotModified(count: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_dialogsSlice(_ reader: BufferReader) -> Dialogs? {
|
||||
var _1: Int32?
|
||||
|
|
@ -922,12 +968,12 @@ public extension Api.messages {
|
|||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
let _c5 = _5 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
return Api.messages.Dialogs.dialogsSlice(count: _1!, dialogs: _2!, messages: _3!, chats: _4!, users: _5!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 {
|
||||
return Api.messages.Dialogs.dialogsSlice(count: _1!, dialogs: _2!, messages: _3!, chats: _4!, users: _5!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1004,15 +1050,12 @@ public extension Api.messages {
|
|||
let _c6 = _6 != nil
|
||||
let _c7 = _7 != nil
|
||||
let _c8 = _8 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
return Api.messages.DiscussionMessage.discussionMessage(flags: _1!, messages: _2!, maxId: _3, readInboxMaxId: _4, readOutboxMaxId: _5, unreadCount: _6!, chats: _7!, users: _8!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 {
|
||||
return Api.messages.DiscussionMessage.discussionMessage(flags: _1!, messages: _2!, maxId: _3, readInboxMaxId: _4, readOutboxMaxId: _5, unreadCount: _6!, chats: _7!, users: _8!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1078,13 +1121,12 @@ public extension Api.messages {
|
|||
let _c4 = _4 != nil
|
||||
let _c5 = _5 != nil
|
||||
let _c6 = (Int(_1!) & Int(1 << 0) == 0) || _6 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
return Api.messages.EmojiGameInfo.emojiGameDiceInfo(flags: _1!, gameHash: _2!, prevStake: _3!, currentStreak: _4!, params: _5!, playsLeft: _6)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 {
|
||||
return Api.messages.EmojiGameInfo.emojiGameDiceInfo(flags: _1!, gameHash: _2!, prevStake: _3!, currentStreak: _4!, params: _5!, playsLeft: _6)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_emojiGameUnavailable(_ reader: BufferReader) -> EmojiGameInfo? {
|
||||
return Api.messages.EmojiGameInfo.emojiGameUnavailable
|
||||
|
|
@ -1126,10 +1168,12 @@ public extension Api.messages {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.messages.EmojiGameOutcome.emojiGameOutcome(seed: _1!, stakeTonAmount: _2!, tonAmount: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.messages.EmojiGameOutcome.emojiGameOutcome(seed: _1!, stakeTonAmount: _2!, tonAmount: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1179,9 +1223,12 @@ public extension Api.messages {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.messages.EmojiGroups.emojiGroups(hash: _1!, groups: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.messages.EmojiGroups.emojiGroups(hash: _1!, groups: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_emojiGroupsNotModified(_ reader: BufferReader) -> EmojiGroups? {
|
||||
return Api.messages.EmojiGroups.emojiGroupsNotModified
|
||||
|
|
@ -1242,9 +1289,12 @@ public extension Api.messages {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.messages.ExportedChatInvite.exportedChatInvite(invite: _1!, users: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.messages.ExportedChatInvite.exportedChatInvite(invite: _1!, users: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_exportedChatInviteReplaced(_ reader: BufferReader) -> ExportedChatInvite? {
|
||||
var _1: Api.ExportedChatInvite?
|
||||
|
|
@ -1262,10 +1312,12 @@ public extension Api.messages {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.messages.ExportedChatInvite.exportedChatInviteReplaced(invite: _1!, newInvite: _2!, users: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.messages.ExportedChatInvite.exportedChatInviteReplaced(invite: _1!, newInvite: _2!, users: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1316,10 +1368,12 @@ public extension Api.messages {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.messages.ExportedChatInvites.exportedChatInvites(count: _1!, invites: _2!, users: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.messages.ExportedChatInvites.exportedChatInvites(count: _1!, invites: _2!, users: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -53,10 +53,12 @@ public extension Api.messages {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.messages.FavedStickers.favedStickers(hash: _1!, packs: _2!, stickers: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.messages.FavedStickers.favedStickers(hash: _1!, packs: _2!, stickers: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_favedStickersNotModified(_ reader: BufferReader) -> FavedStickers? {
|
||||
return Api.messages.FavedStickers.favedStickersNotModified
|
||||
|
|
@ -127,19 +129,23 @@ public extension Api.messages {
|
|||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
let _c5 = _5 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
return Api.messages.FeaturedStickers.featuredStickers(flags: _1!, hash: _2!, count: _3!, sets: _4!, unread: _5!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 {
|
||||
return Api.messages.FeaturedStickers.featuredStickers(flags: _1!, hash: _2!, count: _3!, sets: _4!, unread: _5!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_featuredStickersNotModified(_ reader: BufferReader) -> FeaturedStickers? {
|
||||
var _1: Int32?
|
||||
_1 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.messages.FeaturedStickers.featuredStickersNotModified(count: _1!)
|
||||
if _c1 {
|
||||
return Api.messages.FeaturedStickers.featuredStickersNotModified(count: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -218,14 +224,12 @@ public extension Api.messages {
|
|||
let _c5 = _5 != nil
|
||||
let _c6 = _6 != nil
|
||||
let _c7 = _7 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
return Api.messages.ForumTopics.forumTopics(flags: _1!, count: _2!, topics: _3!, messages: _4!, chats: _5!, users: _6!, pts: _7!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 {
|
||||
return Api.messages.ForumTopics.forumTopics(flags: _1!, count: _2!, topics: _3!, messages: _4!, chats: _5!, users: _6!, pts: _7!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -275,9 +279,12 @@ public extension Api.messages {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.messages.FoundStickerSets.foundStickerSets(hash: _1!, sets: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.messages.FoundStickerSets.foundStickerSets(hash: _1!, sets: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_foundStickerSetsNotModified(_ reader: BufferReader) -> FoundStickerSets? {
|
||||
return Api.messages.FoundStickerSets.foundStickerSetsNotModified
|
||||
|
|
@ -339,11 +346,12 @@ public extension Api.messages {
|
|||
let _c2 = (Int(_1!) & Int(1 << 0) == 0) || _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.messages.FoundStickers.foundStickers(flags: _1!, nextOffset: _2, hash: _3!, stickers: _4!)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.messages.FoundStickers.foundStickers(flags: _1!, nextOffset: _2, hash: _3!, stickers: _4!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_foundStickersNotModified(_ reader: BufferReader) -> FoundStickers? {
|
||||
var _1: Int32?
|
||||
|
|
@ -352,9 +360,12 @@ public extension Api.messages {
|
|||
if Int(_1!) & Int(1 << 0) != 0 {_2 = reader.readInt32() }
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = (Int(_1!) & Int(1 << 0) == 0) || _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.messages.FoundStickers.foundStickersNotModified(flags: _1!, nextOffset: _2)
|
||||
if _c1 && _c2 {
|
||||
return Api.messages.FoundStickers.foundStickersNotModified(flags: _1!, nextOffset: _2)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -401,9 +412,12 @@ public extension Api.messages {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.messages.HighScores.highScores(scores: _1!, users: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.messages.HighScores.highScores(scores: _1!, users: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -434,8 +448,12 @@ public extension Api.messages {
|
|||
var _1: Int64?
|
||||
_1 = reader.readInt64()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.messages.HistoryImport.historyImport(id: _1!)
|
||||
if _c1 {
|
||||
return Api.messages.HistoryImport.historyImport(id: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -470,9 +488,12 @@ public extension Api.messages {
|
|||
if Int(_1!) & Int(1 << 2) != 0 {_2 = parseString(reader) }
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = (Int(_1!) & Int(1 << 2) == 0) || _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.messages.HistoryImportParsed.historyImportParsed(flags: _1!, title: _2)
|
||||
if _c1 && _c2 {
|
||||
return Api.messages.HistoryImportParsed.historyImportParsed(flags: _1!, title: _2)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -529,10 +550,12 @@ public extension Api.messages {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.messages.InactiveChats.inactiveChats(dates: _1!, chats: _2!, users: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.messages.InactiveChats.inactiveChats(dates: _1!, chats: _2!, users: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -575,9 +598,12 @@ public extension Api.messages {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.messages.InvitedUsers.invitedUsers(updates: _1!, missingInvitees: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.messages.InvitedUsers.invitedUsers(updates: _1!, missingInvitees: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -608,8 +634,12 @@ public extension Api.messages {
|
|||
var _1: Int32?
|
||||
_1 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.messages.MessageEditData.messageEditData(flags: _1!)
|
||||
if _c1 {
|
||||
return Api.messages.MessageEditData.messageEditData(flags: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -678,13 +708,12 @@ public extension Api.messages {
|
|||
let _c4 = _4 != nil
|
||||
let _c5 = _5 != nil
|
||||
let _c6 = (Int(_1!) & Int(1 << 0) == 0) || _6 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
return Api.messages.MessageReactionsList.messageReactionsList(flags: _1!, count: _2!, reactions: _3!, chats: _4!, users: _5!, nextOffset: _6)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 {
|
||||
return Api.messages.MessageReactionsList.messageReactionsList(flags: _1!, count: _2!, reactions: _3!, chats: _4!, users: _5!, nextOffset: _6)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -741,10 +770,12 @@ public extension Api.messages {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.messages.MessageViews.messageViews(views: _1!, chats: _2!, users: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.messages.MessageViews.messageViews(views: _1!, chats: _2!, users: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -897,15 +928,12 @@ public extension Api.messages {
|
|||
let _c6 = _6 != nil
|
||||
let _c7 = _7 != nil
|
||||
let _c8 = _8 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
return Api.messages.Messages.channelMessages(flags: _1!, pts: _2!, count: _3!, offsetIdOffset: _4, messages: _5!, topics: _6!, chats: _7!, users: _8!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 {
|
||||
return Api.messages.Messages.channelMessages(flags: _1!, pts: _2!, count: _3!, offsetIdOffset: _4, messages: _5!, topics: _6!, chats: _7!, users: _8!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_messages(_ reader: BufferReader) -> Messages? {
|
||||
var _1: [Api.Message]?
|
||||
|
|
@ -928,18 +956,23 @@ public extension Api.messages {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.messages.Messages.messages(messages: _1!, topics: _2!, chats: _3!, users: _4!)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.messages.Messages.messages(messages: _1!, topics: _2!, chats: _3!, users: _4!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_messagesNotModified(_ reader: BufferReader) -> Messages? {
|
||||
var _1: Int32?
|
||||
_1 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.messages.Messages.messagesNotModified(count: _1!)
|
||||
if _c1 {
|
||||
return Api.messages.Messages.messagesNotModified(count: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_messagesSlice(_ reader: BufferReader) -> Messages? {
|
||||
var _1: Int32?
|
||||
|
|
@ -979,16 +1012,12 @@ public extension Api.messages {
|
|||
let _c7 = _7 != nil
|
||||
let _c8 = _8 != nil
|
||||
let _c9 = _9 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
if !_c9 { return nil }
|
||||
return Api.messages.Messages.messagesSlice(flags: _1!, count: _2!, nextRate: _3, offsetIdOffset: _4, searchFlood: _5, messages: _6!, topics: _7!, chats: _8!, users: _9!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 {
|
||||
return Api.messages.Messages.messagesSlice(flags: _1!, count: _2!, nextRate: _3, offsetIdOffset: _4, searchFlood: _5, messages: _6!, topics: _7!, chats: _8!, users: _9!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1029,9 +1058,12 @@ public extension Api.messages {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.messages.MyStickers.myStickers(count: _1!, sets: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.messages.MyStickers.myStickers(count: _1!, sets: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1104,12 +1136,12 @@ public extension Api.messages {
|
|||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
let _c5 = _5 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
return Api.messages.PeerDialogs.peerDialogs(dialogs: _1!, messages: _2!, chats: _3!, users: _4!, state: _5!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 {
|
||||
return Api.messages.PeerDialogs.peerDialogs(dialogs: _1!, messages: _2!, chats: _3!, users: _4!, state: _5!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1162,10 +1194,12 @@ public extension Api.messages {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.messages.PeerSettings.peerSettings(settings: _1!, chats: _2!, users: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.messages.PeerSettings.peerSettings(settings: _1!, chats: _2!, users: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1226,12 +1260,12 @@ public extension Api.messages {
|
|||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
let _c5 = _5 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
return Api.messages.PreparedInlineMessage.preparedInlineMessage(queryId: _1!, result: _2!, peerTypes: _3!, cacheTime: _4!, users: _5!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 {
|
||||
return Api.messages.PreparedInlineMessage.preparedInlineMessage(queryId: _1!, result: _2!, peerTypes: _3!, cacheTime: _4!, users: _5!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1307,11 +1341,12 @@ public extension Api.messages {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.messages.QuickReplies.quickReplies(quickReplies: _1!, messages: _2!, chats: _3!, users: _4!)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.messages.QuickReplies.quickReplies(quickReplies: _1!, messages: _2!, chats: _3!, users: _4!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_quickRepliesNotModified(_ reader: BufferReader) -> QuickReplies? {
|
||||
return Api.messages.QuickReplies.quickRepliesNotModified
|
||||
|
|
@ -1364,9 +1399,12 @@ public extension Api.messages {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.messages.Reactions.reactions(hash: _1!, reactions: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.messages.Reactions.reactions(hash: _1!, reactions: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_reactionsNotModified(_ reader: BufferReader) -> Reactions? {
|
||||
return Api.messages.Reactions.reactionsNotModified
|
||||
|
|
@ -1439,11 +1477,12 @@ public extension Api.messages {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.messages.RecentStickers.recentStickers(hash: _1!, packs: _2!, stickers: _3!, dates: _4!)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.messages.RecentStickers.recentStickers(hash: _1!, packs: _2!, stickers: _3!, dates: _4!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_recentStickersNotModified(_ reader: BufferReader) -> RecentStickers? {
|
||||
return Api.messages.RecentStickers.recentStickersNotModified
|
||||
|
|
@ -1551,18 +1590,23 @@ public extension Api.messages {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.messages.SavedDialogs.savedDialogs(dialogs: _1!, messages: _2!, chats: _3!, users: _4!)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.messages.SavedDialogs.savedDialogs(dialogs: _1!, messages: _2!, chats: _3!, users: _4!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_savedDialogsNotModified(_ reader: BufferReader) -> SavedDialogs? {
|
||||
var _1: Int32?
|
||||
_1 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.messages.SavedDialogs.savedDialogsNotModified(count: _1!)
|
||||
if _c1 {
|
||||
return Api.messages.SavedDialogs.savedDialogsNotModified(count: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_savedDialogsSlice(_ reader: BufferReader) -> SavedDialogs? {
|
||||
var _1: Int32?
|
||||
|
|
@ -1588,12 +1632,12 @@ public extension Api.messages {
|
|||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
let _c5 = _5 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
return Api.messages.SavedDialogs.savedDialogsSlice(count: _1!, dialogs: _2!, messages: _3!, chats: _4!, users: _5!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 {
|
||||
return Api.messages.SavedDialogs.savedDialogsSlice(count: _1!, dialogs: _2!, messages: _3!, chats: _4!, users: _5!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -43,9 +43,12 @@ public extension Api.messages {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.messages.SavedGifs.savedGifs(hash: _1!, gifs: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.messages.SavedGifs.savedGifs(hash: _1!, gifs: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_savedGifsNotModified(_ reader: BufferReader) -> SavedGifs? {
|
||||
return Api.messages.SavedGifs.savedGifsNotModified
|
||||
|
|
@ -98,9 +101,12 @@ public extension Api.messages {
|
|||
_2 = reader.readInt64()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.messages.SavedReactionTags.savedReactionTags(tags: _1!, hash: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.messages.SavedReactionTags.savedReactionTags(tags: _1!, hash: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_savedReactionTagsNotModified(_ reader: BufferReader) -> SavedReactionTags? {
|
||||
return Api.messages.SavedReactionTags.savedReactionTagsNotModified
|
||||
|
|
@ -144,10 +150,12 @@ public extension Api.messages {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.messages.SearchCounter.searchCounter(flags: _1!, filter: _2!, count: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.messages.SearchCounter.searchCounter(flags: _1!, filter: _2!, count: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -234,16 +242,12 @@ public extension Api.messages {
|
|||
let _c7 = _7 != nil
|
||||
let _c8 = _8 != nil
|
||||
let _c9 = _9 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
if !_c9 { return nil }
|
||||
return Api.messages.SearchResultsCalendar.searchResultsCalendar(flags: _1!, count: _2!, minDate: _3!, minMsgId: _4!, offsetIdOffset: _5, periods: _6!, messages: _7!, chats: _8!, users: _9!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 {
|
||||
return Api.messages.SearchResultsCalendar.searchResultsCalendar(flags: _1!, count: _2!, minDate: _3!, minMsgId: _4!, offsetIdOffset: _5, periods: _6!, messages: _7!, chats: _8!, users: _9!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -284,9 +288,12 @@ public extension Api.messages {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.messages.SearchResultsPositions.searchResultsPositions(count: _1!, positions: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.messages.SearchResultsPositions.searchResultsPositions(count: _1!, positions: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -332,16 +339,23 @@ public extension Api.messages {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.messages.SentEncryptedMessage.sentEncryptedFile(date: _1!, file: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.messages.SentEncryptedMessage.sentEncryptedFile(date: _1!, file: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_sentEncryptedMessage(_ reader: BufferReader) -> SentEncryptedMessage? {
|
||||
var _1: Int32?
|
||||
_1 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.messages.SentEncryptedMessage.sentEncryptedMessage(date: _1!)
|
||||
if _c1 {
|
||||
return Api.messages.SentEncryptedMessage.sentEncryptedMessage(date: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -423,14 +437,12 @@ public extension Api.messages {
|
|||
let _c5 = _5 != nil
|
||||
let _c6 = _6 != nil
|
||||
let _c7 = _7 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
return Api.messages.SponsoredMessages.sponsoredMessages(flags: _1!, postsBetween: _2, startDelay: _3, betweenDelay: _4, messages: _5!, chats: _6!, users: _7!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 {
|
||||
return Api.messages.SponsoredMessages.sponsoredMessages(flags: _1!, postsBetween: _2, startDelay: _3, betweenDelay: _4, messages: _5!, chats: _6!, users: _7!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_sponsoredMessagesEmpty(_ reader: BufferReader) -> SponsoredMessages? {
|
||||
return Api.messages.SponsoredMessages.sponsoredMessagesEmpty
|
||||
|
|
@ -505,11 +517,12 @@ public extension Api.messages {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.messages.StickerSet.stickerSet(set: _1!, packs: _2!, keywords: _3!, documents: _4!)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.messages.StickerSet.stickerSet(set: _1!, packs: _2!, keywords: _3!, documents: _4!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_stickerSetNotModified(_ reader: BufferReader) -> StickerSet? {
|
||||
return Api.messages.StickerSet.stickerSetNotModified
|
||||
|
|
@ -558,8 +571,12 @@ public extension Api.messages {
|
|||
_1 = Api.parseVector(reader, elementSignature: 0, elementType: Api.StickerSetCovered.self)
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.messages.StickerSetInstallResult.stickerSetInstallResultArchive(sets: _1!)
|
||||
if _c1 {
|
||||
return Api.messages.StickerSetInstallResult.stickerSetInstallResultArchive(sets: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_stickerSetInstallResultSuccess(_ reader: BufferReader) -> StickerSetInstallResult? {
|
||||
return Api.messages.StickerSetInstallResult.stickerSetInstallResultSuccess
|
||||
|
|
@ -612,9 +629,12 @@ public extension Api.messages {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.messages.Stickers.stickers(hash: _1!, stickers: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.messages.Stickers.stickers(hash: _1!, stickers: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_stickersNotModified(_ reader: BufferReader) -> Stickers? {
|
||||
return Api.messages.Stickers.stickersNotModified
|
||||
|
|
@ -664,12 +684,12 @@ public extension Api.messages {
|
|||
let _c3 = _3 != nil
|
||||
let _c4 = (Int(_1!) & Int(1 << 1) == 0) || _4 != nil
|
||||
let _c5 = (Int(_1!) & Int(1 << 1) == 0) || _5 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
return Api.messages.TranscribedAudio.transcribedAudio(flags: _1!, transcriptionId: _2!, text: _3!, trialRemainsNum: _4, trialRemainsUntilDate: _5)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 {
|
||||
return Api.messages.TranscribedAudio.transcribedAudio(flags: _1!, transcriptionId: _2!, text: _3!, trialRemainsNum: _4, trialRemainsUntilDate: _5)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -706,8 +726,12 @@ public extension Api.messages {
|
|||
_1 = Api.parseVector(reader, elementSignature: 0, elementType: Api.TextWithEntities.self)
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.messages.TranslatedText.translateResult(result: _1!)
|
||||
if _c1 {
|
||||
return Api.messages.TranslatedText.translateResult(result: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -776,13 +800,12 @@ public extension Api.messages {
|
|||
let _c4 = _4 != nil
|
||||
let _c5 = _5 != nil
|
||||
let _c6 = (Int(_1!) & Int(1 << 0) == 0) || _6 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
return Api.messages.VotesList.votesList(flags: _1!, count: _2!, votes: _3!, chats: _4!, users: _5!, nextOffset: _6)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 {
|
||||
return Api.messages.VotesList.votesList(flags: _1!, count: _2!, votes: _3!, chats: _4!, users: _5!, nextOffset: _6)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -835,10 +858,12 @@ public extension Api.messages {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.messages.WebPage.webPage(webpage: _1!, chats: _2!, users: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.messages.WebPage.webPage(webpage: _1!, chats: _2!, users: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -891,10 +916,12 @@ public extension Api.messages {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.messages.WebPagePreview.webPagePreview(media: _1!, chats: _2!, users: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.messages.WebPagePreview.webPagePreview(media: _1!, chats: _2!, users: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -935,9 +962,12 @@ public extension Api.payments {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.payments.BankCardData.bankCardData(title: _1!, openUrls: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.payments.BankCardData.bankCardData(title: _1!, openUrls: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -979,8 +1009,12 @@ public extension Api.payments {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.TextWithEntities
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.payments.CheckCanSendGiftResult.checkCanSendGiftResultFail(reason: _1!)
|
||||
if _c1 {
|
||||
return Api.payments.CheckCanSendGiftResult.checkCanSendGiftResultFail(reason: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_checkCanSendGiftResultOk(_ reader: BufferReader) -> CheckCanSendGiftResult? {
|
||||
return Api.payments.CheckCanSendGiftResult.checkCanSendGiftResultOk
|
||||
|
|
@ -1060,16 +1094,12 @@ public extension Api.payments {
|
|||
let _c7 = (Int(_1!) & Int(1 << 1) == 0) || _7 != nil
|
||||
let _c8 = _8 != nil
|
||||
let _c9 = _9 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
if !_c9 { return nil }
|
||||
return Api.payments.CheckedGiftCode.checkedGiftCode(flags: _1!, fromId: _2, giveawayMsgId: _3, toId: _4, date: _5!, days: _6!, usedDate: _7, chats: _8!, users: _9!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 {
|
||||
return Api.payments.CheckedGiftCode.checkedGiftCode(flags: _1!, fromId: _2, giveawayMsgId: _3, toId: _4, date: _5!, days: _6!, usedDate: _7, chats: _8!, users: _9!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1120,10 +1150,12 @@ public extension Api.payments {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.payments.ConnectedStarRefBots.connectedStarRefBots(count: _1!, connectedBots: _2!, users: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.payments.ConnectedStarRefBots.connectedStarRefBots(count: _1!, connectedBots: _2!, users: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1154,8 +1186,12 @@ public extension Api.payments {
|
|||
var _1: String?
|
||||
_1 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.payments.ExportedInvoice.exportedInvoice(url: _1!)
|
||||
if _c1 {
|
||||
return Api.payments.ExportedInvoice.exportedInvoice(url: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1217,12 +1253,12 @@ public extension Api.payments {
|
|||
let _c3 = (Int(_1!) & Int(1 << 1) == 0) || _3 != nil
|
||||
let _c4 = (Int(_1!) & Int(1 << 2) == 0) || _4 != nil
|
||||
let _c5 = (Int(_1!) & Int(1 << 4) == 0) || _5 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
return Api.payments.GiveawayInfo.giveawayInfo(flags: _1!, startDate: _2!, joinedTooEarlyDate: _3, adminDisallowedChatId: _4, disallowedCountry: _5)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 {
|
||||
return Api.payments.GiveawayInfo.giveawayInfo(flags: _1!, startDate: _2!, joinedTooEarlyDate: _3, adminDisallowedChatId: _4, disallowedCountry: _5)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_giveawayInfoResults(_ reader: BufferReader) -> GiveawayInfo? {
|
||||
var _1: Int32?
|
||||
|
|
@ -1246,14 +1282,12 @@ public extension Api.payments {
|
|||
let _c5 = _5 != nil
|
||||
let _c6 = _6 != nil
|
||||
let _c7 = (Int(_1!) & Int(1 << 2) == 0) || _7 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
return Api.payments.GiveawayInfo.giveawayInfoResults(flags: _1!, startDate: _2!, giftCodeSlug: _3, starsPrize: _4, finishDate: _5!, winnersCount: _6!, activatedCount: _7)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 {
|
||||
return Api.payments.GiveawayInfo.giveawayInfoResults(flags: _1!, startDate: _2!, giftCodeSlug: _3, starsPrize: _4, finishDate: _5!, winnersCount: _6!, activatedCount: _7)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1396,22 +1430,12 @@ public extension Api.payments {
|
|||
let _c13 = (Int(_1!) & Int(1 << 0) == 0) || _13 != nil
|
||||
let _c14 = (Int(_1!) & Int(1 << 1) == 0) || _14 != nil
|
||||
let _c15 = _15 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
if !_c9 { return nil }
|
||||
if !_c10 { return nil }
|
||||
if !_c11 { return nil }
|
||||
if !_c12 { return nil }
|
||||
if !_c13 { return nil }
|
||||
if !_c14 { return nil }
|
||||
if !_c15 { return nil }
|
||||
return Api.payments.PaymentForm.paymentForm(flags: _1!, formId: _2!, botId: _3!, title: _4!, description: _5!, photo: _6, invoice: _7!, providerId: _8!, url: _9!, nativeProvider: _10, nativeParams: _11, additionalMethods: _12, savedInfo: _13, savedCredentials: _14, users: _15!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 && _c10 && _c11 && _c12 && _c13 && _c14 && _c15 {
|
||||
return Api.payments.PaymentForm.paymentForm(flags: _1!, formId: _2!, botId: _3!, title: _4!, description: _5!, photo: _6, invoice: _7!, providerId: _8!, url: _9!, nativeProvider: _10, nativeParams: _11, additionalMethods: _12, savedInfo: _13, savedCredentials: _14, users: _15!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_paymentFormStarGift(_ reader: BufferReader) -> PaymentForm? {
|
||||
var _1: Int64?
|
||||
|
|
@ -1422,9 +1446,12 @@ public extension Api.payments {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.payments.PaymentForm.paymentFormStarGift(formId: _1!, invoice: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.payments.PaymentForm.paymentFormStarGift(formId: _1!, invoice: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_paymentFormStars(_ reader: BufferReader) -> PaymentForm? {
|
||||
var _1: Int32?
|
||||
|
|
@ -1457,15 +1484,12 @@ public extension Api.payments {
|
|||
let _c6 = (Int(_1!) & Int(1 << 5) == 0) || _6 != nil
|
||||
let _c7 = _7 != nil
|
||||
let _c8 = _8 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
return Api.payments.PaymentForm.paymentFormStars(flags: _1!, formId: _2!, botId: _3!, title: _4!, description: _5!, photo: _6, invoice: _7!, users: _8!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 {
|
||||
return Api.payments.PaymentForm.paymentFormStars(flags: _1!, formId: _2!, botId: _3!, title: _4!, description: _5!, photo: _6, invoice: _7!, users: _8!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -117,22 +117,12 @@ public extension Api.payments {
|
|||
let _c13 = _13 != nil
|
||||
let _c14 = _14 != nil
|
||||
let _c15 = _15 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
if !_c9 { return nil }
|
||||
if !_c10 { return nil }
|
||||
if !_c11 { return nil }
|
||||
if !_c12 { return nil }
|
||||
if !_c13 { return nil }
|
||||
if !_c14 { return nil }
|
||||
if !_c15 { return nil }
|
||||
return Api.payments.PaymentReceipt.paymentReceipt(flags: _1!, date: _2!, botId: _3!, providerId: _4!, title: _5!, description: _6!, photo: _7, invoice: _8!, info: _9, shipping: _10, tipAmount: _11, currency: _12!, totalAmount: _13!, credentialsTitle: _14!, users: _15!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 && _c10 && _c11 && _c12 && _c13 && _c14 && _c15 {
|
||||
return Api.payments.PaymentReceipt.paymentReceipt(flags: _1!, date: _2!, botId: _3!, providerId: _4!, title: _5!, description: _6!, photo: _7, invoice: _8!, info: _9, shipping: _10, tipAmount: _11, currency: _12!, totalAmount: _13!, credentialsTitle: _14!, users: _15!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_paymentReceiptStars(_ reader: BufferReader) -> PaymentReceipt? {
|
||||
var _1: Int32?
|
||||
|
|
@ -174,18 +164,12 @@ public extension Api.payments {
|
|||
let _c9 = _9 != nil
|
||||
let _c10 = _10 != nil
|
||||
let _c11 = _11 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
if !_c9 { return nil }
|
||||
if !_c10 { return nil }
|
||||
if !_c11 { return nil }
|
||||
return Api.payments.PaymentReceipt.paymentReceiptStars(flags: _1!, date: _2!, botId: _3!, title: _4!, description: _5!, photo: _6, invoice: _7!, currency: _8!, totalAmount: _9!, transactionId: _10!, users: _11!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 && _c10 && _c11 {
|
||||
return Api.payments.PaymentReceipt.paymentReceiptStars(flags: _1!, date: _2!, botId: _3!, title: _4!, description: _5!, photo: _6, invoice: _7!, currency: _8!, totalAmount: _9!, transactionId: _10!, users: _11!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -227,15 +211,23 @@ public extension Api.payments {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.Updates
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.payments.PaymentResult.paymentResult(updates: _1!)
|
||||
if _c1 {
|
||||
return Api.payments.PaymentResult.paymentResult(updates: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_paymentVerificationNeeded(_ reader: BufferReader) -> PaymentResult? {
|
||||
var _1: String?
|
||||
_1 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.payments.PaymentResult.paymentVerificationNeeded(url: _1!)
|
||||
if _c1 {
|
||||
return Api.payments.PaymentResult.paymentVerificationNeeded(url: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -328,16 +320,12 @@ public extension Api.payments {
|
|||
let _c7 = _7 != nil
|
||||
let _c8 = (Int(_1!) & Int(1 << 2) == 0) || _8 != nil
|
||||
let _c9 = _9 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
if !_c9 { return nil }
|
||||
return Api.payments.ResaleStarGifts.resaleStarGifts(flags: _1!, count: _2!, gifts: _3!, nextOffset: _4, attributes: _5, attributesHash: _6, chats: _7!, counters: _8, users: _9!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 {
|
||||
return Api.payments.ResaleStarGifts.resaleStarGifts(flags: _1!, count: _2!, gifts: _3!, nextOffset: _4, attributes: _5, attributesHash: _6, chats: _7!, counters: _8, users: _9!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -374,9 +362,12 @@ public extension Api.payments {
|
|||
} }
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = (Int(_1!) & Int(1 << 0) == 0) || _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.payments.SavedInfo.savedInfo(flags: _1!, savedInfo: _2)
|
||||
if _c1 && _c2 {
|
||||
return Api.payments.SavedInfo.savedInfo(flags: _1!, savedInfo: _2)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -451,14 +442,12 @@ public extension Api.payments {
|
|||
let _c5 = (Int(_1!) & Int(1 << 0) == 0) || _5 != nil
|
||||
let _c6 = _6 != nil
|
||||
let _c7 = _7 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
return Api.payments.SavedStarGifts.savedStarGifts(flags: _1!, count: _2!, chatNotificationsEnabled: _3, gifts: _4!, nextOffset: _5, chats: _6!, users: _7!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 {
|
||||
return Api.payments.SavedStarGifts.savedStarGifts(flags: _1!, count: _2!, chatNotificationsEnabled: _3, gifts: _4!, nextOffset: _5, chats: _6!, users: _7!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -524,10 +513,12 @@ public extension Api.payments {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.payments.StarGiftActiveAuctions.starGiftActiveAuctions(auctions: _1!, users: _2!, chats: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.payments.StarGiftActiveAuctions.starGiftActiveAuctions(auctions: _1!, users: _2!, chats: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_starGiftActiveAuctionsNotModified(_ reader: BufferReader) -> StarGiftActiveAuctions? {
|
||||
return Api.payments.StarGiftActiveAuctions.starGiftActiveAuctionsNotModified
|
||||
|
|
@ -587,10 +578,12 @@ public extension Api.payments {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.payments.StarGiftAuctionAcquiredGifts.starGiftAuctionAcquiredGifts(gifts: _1!, users: _2!, chats: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.payments.StarGiftAuctionAcquiredGifts.starGiftAuctionAcquiredGifts(gifts: _1!, users: _2!, chats: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -659,13 +652,12 @@ public extension Api.payments {
|
|||
let _c4 = _4 != nil
|
||||
let _c5 = _5 != nil
|
||||
let _c6 = _6 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
return Api.payments.StarGiftAuctionState.starGiftAuctionState(gift: _1!, state: _2!, userState: _3!, timeout: _4!, users: _5!, chats: _6!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 {
|
||||
return Api.payments.StarGiftAuctionState.starGiftAuctionState(gift: _1!, state: _2!, userState: _3!, timeout: _4!, users: _5!, chats: _6!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -711,8 +703,12 @@ public extension Api.payments {
|
|||
_1 = Api.parseVector(reader, elementSignature: 0, elementType: Api.StarGiftCollection.self)
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.payments.StarGiftCollections.starGiftCollections(collections: _1!)
|
||||
if _c1 {
|
||||
return Api.payments.StarGiftCollections.starGiftCollections(collections: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_starGiftCollectionsNotModified(_ reader: BufferReader) -> StarGiftCollections? {
|
||||
return Api.payments.StarGiftCollections.starGiftCollectionsNotModified
|
||||
|
|
@ -752,8 +748,12 @@ public extension Api.payments {
|
|||
_1 = Api.parseVector(reader, elementSignature: 0, elementType: Api.StarGiftAttribute.self)
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.payments.StarGiftUpgradeAttributes.starGiftUpgradeAttributes(attributes: _1!)
|
||||
if _c1 {
|
||||
return Api.payments.StarGiftUpgradeAttributes.starGiftUpgradeAttributes(attributes: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -810,10 +810,12 @@ public extension Api.payments {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.payments.StarGiftUpgradePreview.starGiftUpgradePreview(sampleAttributes: _1!, prices: _2!, nextPrices: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.payments.StarGiftUpgradePreview.starGiftUpgradePreview(sampleAttributes: _1!, prices: _2!, nextPrices: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -844,8 +846,12 @@ public extension Api.payments {
|
|||
var _1: String?
|
||||
_1 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.payments.StarGiftWithdrawalUrl.starGiftWithdrawalUrl(url: _1!)
|
||||
if _c1 {
|
||||
return Api.payments.StarGiftWithdrawalUrl.starGiftWithdrawalUrl(url: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -915,11 +921,12 @@ public extension Api.payments {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.payments.StarGifts.starGifts(hash: _1!, gifts: _2!, chats: _3!, users: _4!)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.payments.StarGifts.starGifts(hash: _1!, gifts: _2!, chats: _3!, users: _4!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_starGiftsNotModified(_ reader: BufferReader) -> StarGifts? {
|
||||
return Api.payments.StarGifts.starGiftsNotModified
|
||||
|
|
@ -953,8 +960,12 @@ public extension Api.payments {
|
|||
var _1: String?
|
||||
_1 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.payments.StarsRevenueAdsAccountUrl.starsRevenueAdsAccountUrl(url: _1!)
|
||||
if _c1 {
|
||||
return Api.payments.StarsRevenueAdsAccountUrl.starsRevenueAdsAccountUrl(url: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1007,12 +1018,12 @@ public extension Api.payments {
|
|||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
let _c5 = _5 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
return Api.payments.StarsRevenueStats.starsRevenueStats(flags: _1!, topHoursGraph: _2, revenueGraph: _3!, status: _4!, usdRate: _5!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 {
|
||||
return Api.payments.StarsRevenueStats.starsRevenueStats(flags: _1!, topHoursGraph: _2, revenueGraph: _3!, status: _4!, usdRate: _5!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1043,8 +1054,12 @@ public extension Api.payments {
|
|||
var _1: String?
|
||||
_1 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.payments.StarsRevenueWithdrawalUrl.starsRevenueWithdrawalUrl(url: _1!)
|
||||
if _c1 {
|
||||
return Api.payments.StarsRevenueWithdrawalUrl.starsRevenueWithdrawalUrl(url: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1133,16 +1148,12 @@ public extension Api.payments {
|
|||
let _c7 = (Int(_1!) & Int(1 << 0) == 0) || _7 != nil
|
||||
let _c8 = _8 != nil
|
||||
let _c9 = _9 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
if !_c9 { return nil }
|
||||
return Api.payments.StarsStatus.starsStatus(flags: _1!, balance: _2!, subscriptions: _3, subscriptionsNextOffset: _4, subscriptionsMissingBalance: _5, history: _6, nextOffset: _7, chats: _8!, users: _9!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 {
|
||||
return Api.payments.StarsStatus.starsStatus(flags: _1!, balance: _2!, subscriptions: _3, subscriptionsNextOffset: _4, subscriptionsMissingBalance: _5, history: _6, nextOffset: _7, chats: _8!, users: _9!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1201,12 +1212,12 @@ public extension Api.payments {
|
|||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
let _c5 = (Int(_1!) & Int(1 << 0) == 0) || _5 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
return Api.payments.SuggestedStarRefBots.suggestedStarRefBots(flags: _1!, count: _2!, suggestedBots: _3!, users: _4!, nextOffset: _5)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 {
|
||||
return Api.payments.SuggestedStarRefBots.suggestedStarRefBots(flags: _1!, count: _2!, suggestedBots: _3!, users: _4!, nextOffset: _5)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1259,10 +1270,12 @@ public extension Api.payments {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.payments.UniqueStarGift.uniqueStarGift(gift: _1!, chats: _2!, users: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.payments.UniqueStarGift.uniqueStarGift(gift: _1!, chats: _2!, users: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1341,20 +1354,12 @@ public extension Api.payments {
|
|||
let _c11 = (Int(_1!) & Int(1 << 4) == 0) || _11 != nil
|
||||
let _c12 = (Int(_1!) & Int(1 << 5) == 0) || _12 != nil
|
||||
let _c13 = (Int(_1!) & Int(1 << 5) == 0) || _13 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
if !_c9 { return nil }
|
||||
if !_c10 { return nil }
|
||||
if !_c11 { return nil }
|
||||
if !_c12 { return nil }
|
||||
if !_c13 { return nil }
|
||||
return Api.payments.UniqueStarGiftValueInfo.uniqueStarGiftValueInfo(flags: _1!, currency: _2!, value: _3!, initialSaleDate: _4!, initialSaleStars: _5!, initialSalePrice: _6!, lastSaleDate: _7, lastSalePrice: _8, floorPrice: _9, averagePrice: _10, listedCount: _11, fragmentListedCount: _12, fragmentListedUrl: _13)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 && _c10 && _c11 && _c12 && _c13 {
|
||||
return Api.payments.UniqueStarGiftValueInfo.uniqueStarGiftValueInfo(flags: _1!, currency: _2!, value: _3!, initialSaleDate: _4!, initialSaleStars: _5!, initialSalePrice: _6!, lastSaleDate: _7, lastSalePrice: _8, floorPrice: _9, averagePrice: _10, listedCount: _11, fragmentListedCount: _12, fragmentListedUrl: _13)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1399,10 +1404,12 @@ public extension Api.payments {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = (Int(_1!) & Int(1 << 0) == 0) || _2 != nil
|
||||
let _c3 = (Int(_1!) & Int(1 << 1) == 0) || _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.payments.ValidatedRequestedInfo.validatedRequestedInfo(flags: _1!, id: _2, shippingOptions: _3)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.payments.ValidatedRequestedInfo.validatedRequestedInfo(flags: _1!, id: _2, shippingOptions: _3)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1433,8 +1440,12 @@ public extension Api.phone {
|
|||
var _1: String?
|
||||
_1 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.phone.ExportedGroupCallInvite.exportedGroupCallInvite(link: _1!)
|
||||
if _c1 {
|
||||
return Api.phone.ExportedGroupCallInvite.exportedGroupCallInvite(link: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1501,12 +1512,12 @@ public extension Api.phone {
|
|||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
let _c5 = _5 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
return Api.phone.GroupCall.groupCall(call: _1!, participants: _2!, participantsNextOffset: _3!, chats: _4!, users: _5!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 {
|
||||
return Api.phone.GroupCall.groupCall(call: _1!, participants: _2!, participantsNextOffset: _3!, chats: _4!, users: _5!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1567,11 +1578,12 @@ public extension Api.phone {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.phone.GroupCallStars.groupCallStars(totalStars: _1!, topDonors: _2!, chats: _3!, users: _4!)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.phone.GroupCallStars.groupCallStars(totalStars: _1!, topDonors: _2!, chats: _3!, users: _4!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1608,8 +1620,12 @@ public extension Api.phone {
|
|||
_1 = Api.parseVector(reader, elementSignature: 0, elementType: Api.GroupCallStreamChannel.self)
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.phone.GroupCallStreamChannels.groupCallStreamChannels(channels: _1!)
|
||||
if _c1 {
|
||||
return Api.phone.GroupCallStreamChannels.groupCallStreamChannels(channels: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1644,9 +1660,12 @@ public extension Api.phone {
|
|||
_2 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.phone.GroupCallStreamRtmpUrl.groupCallStreamRtmpUrl(url: _1!, key: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.phone.GroupCallStreamRtmpUrl.groupCallStreamRtmpUrl(url: _1!, key: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1715,13 +1734,12 @@ public extension Api.phone {
|
|||
let _c4 = _4 != nil
|
||||
let _c5 = _5 != nil
|
||||
let _c6 = _6 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
return Api.phone.GroupParticipants.groupParticipants(count: _1!, participants: _2!, nextOffset: _3!, chats: _4!, users: _5!, version: _6!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 {
|
||||
return Api.phone.GroupParticipants.groupParticipants(count: _1!, participants: _2!, nextOffset: _3!, chats: _4!, users: _5!, version: _6!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -50,10 +50,12 @@ public extension Api.phone {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.phone.JoinAsPeers.joinAsPeers(peers: _1!, chats: _2!, users: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.phone.JoinAsPeers.joinAsPeers(peers: _1!, chats: _2!, users: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -96,9 +98,12 @@ public extension Api.phone {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.phone.PhoneCall.phoneCall(phoneCall: _1!, users: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.phone.PhoneCall.phoneCall(phoneCall: _1!, users: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -141,9 +146,12 @@ public extension Api.photos {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.photos.Photo.photo(photo: _1!, users: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.photos.Photo.photo(photo: _1!, users: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -209,9 +217,12 @@ public extension Api.photos {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.photos.Photos.photos(photos: _1!, users: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.photos.Photos.photos(photos: _1!, users: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_photosSlice(_ reader: BufferReader) -> Photos? {
|
||||
var _1: Int32?
|
||||
|
|
@ -227,10 +238,12 @@ public extension Api.photos {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.photos.Photos.photosSlice(count: _1!, photos: _2!, users: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.photos.Photos.photosSlice(count: _1!, photos: _2!, users: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -289,12 +302,12 @@ public extension Api.premium {
|
|||
let _c3 = _3 != nil
|
||||
let _c4 = (Int(_1!) & Int(1 << 0) == 0) || _4 != nil
|
||||
let _c5 = _5 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
return Api.premium.BoostsList.boostsList(flags: _1!, count: _2!, boosts: _3!, nextOffset: _4, users: _5!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 {
|
||||
return Api.premium.BoostsList.boostsList(flags: _1!, count: _2!, boosts: _3!, nextOffset: _4, users: _5!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -375,17 +388,12 @@ public extension Api.premium {
|
|||
let _c8 = _8 != nil
|
||||
let _c9 = (Int(_1!) & Int(1 << 3) == 0) || _9 != nil
|
||||
let _c10 = (Int(_1!) & Int(1 << 2) == 0) || _10 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
if !_c9 { return nil }
|
||||
if !_c10 { return nil }
|
||||
return Api.premium.BoostsStatus.boostsStatus(flags: _1!, level: _2!, currentLevelBoosts: _3!, boosts: _4!, giftBoosts: _5, nextLevelBoosts: _6, premiumAudience: _7, boostUrl: _8!, prepaidGiveaways: _9, myBoostSlots: _10)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 && _c10 {
|
||||
return Api.premium.BoostsStatus.boostsStatus(flags: _1!, level: _2!, currentLevelBoosts: _3!, boosts: _4!, giftBoosts: _5, nextLevelBoosts: _6, premiumAudience: _7, boostUrl: _8!, prepaidGiveaways: _9, myBoostSlots: _10)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -442,10 +450,12 @@ public extension Api.premium {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.premium.MyBoosts.myBoosts(myBoosts: _1!, chats: _2!, users: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.premium.MyBoosts.myBoosts(myBoosts: _1!, chats: _2!, users: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -480,9 +490,12 @@ public extension Api.smsjobs {
|
|||
_2 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.smsjobs.EligibilityToJoin.eligibleToJoin(termsUrl: _1!, monthlySentSms: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.smsjobs.EligibilityToJoin.eligibleToJoin(termsUrl: _1!, monthlySentSms: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -541,15 +554,12 @@ public extension Api.smsjobs {
|
|||
let _c6 = _6 != nil
|
||||
let _c7 = (Int(_1!) & Int(1 << 1) == 0) || _7 != nil
|
||||
let _c8 = _8 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
return Api.smsjobs.Status.status(flags: _1!, recentSent: _2!, recentSince: _3!, recentRemains: _4!, totalSent: _5!, totalSince: _6!, lastGiftSlug: _7, termsUrl: _8!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 {
|
||||
return Api.smsjobs.Status.status(flags: _1!, recentSent: _2!, recentSince: _3!, recentRemains: _4!, totalSent: _5!, totalSince: _6!, lastGiftSlug: _7, termsUrl: _8!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -712,29 +722,12 @@ public extension Api.stats {
|
|||
let _c20 = _20 != nil
|
||||
let _c21 = _21 != nil
|
||||
let _c22 = _22 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
if !_c9 { return nil }
|
||||
if !_c10 { return nil }
|
||||
if !_c11 { return nil }
|
||||
if !_c12 { return nil }
|
||||
if !_c13 { return nil }
|
||||
if !_c14 { return nil }
|
||||
if !_c15 { return nil }
|
||||
if !_c16 { return nil }
|
||||
if !_c17 { return nil }
|
||||
if !_c18 { return nil }
|
||||
if !_c19 { return nil }
|
||||
if !_c20 { return nil }
|
||||
if !_c21 { return nil }
|
||||
if !_c22 { return nil }
|
||||
return Api.stats.BroadcastStats.broadcastStats(period: _1!, followers: _2!, viewsPerPost: _3!, sharesPerPost: _4!, reactionsPerPost: _5!, viewsPerStory: _6!, sharesPerStory: _7!, reactionsPerStory: _8!, enabledNotifications: _9!, growthGraph: _10!, followersGraph: _11!, muteGraph: _12!, topHoursGraph: _13!, interactionsGraph: _14!, ivInteractionsGraph: _15!, viewsBySourceGraph: _16!, newFollowersBySourceGraph: _17!, languagesGraph: _18!, reactionsByEmotionGraph: _19!, storyInteractionsGraph: _20!, storyReactionsByEmotionGraph: _21!, recentPostsInteractions: _22!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 && _c10 && _c11 && _c12 && _c13 && _c14 && _c15 && _c16 && _c17 && _c18 && _c19 && _c20 && _c21 && _c22 {
|
||||
return Api.stats.BroadcastStats.broadcastStats(period: _1!, followers: _2!, viewsPerPost: _3!, sharesPerPost: _4!, reactionsPerPost: _5!, viewsPerStory: _6!, sharesPerStory: _7!, reactionsPerStory: _8!, enabledNotifications: _9!, growthGraph: _10!, followersGraph: _11!, muteGraph: _12!, topHoursGraph: _13!, interactionsGraph: _14!, ivInteractionsGraph: _15!, viewsBySourceGraph: _16!, newFollowersBySourceGraph: _17!, languagesGraph: _18!, reactionsByEmotionGraph: _19!, storyInteractionsGraph: _20!, storyReactionsByEmotionGraph: _21!, recentPostsInteractions: _22!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -879,24 +872,12 @@ public extension Api.stats {
|
|||
let _c15 = _15 != nil
|
||||
let _c16 = _16 != nil
|
||||
let _c17 = _17 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
if !_c9 { return nil }
|
||||
if !_c10 { return nil }
|
||||
if !_c11 { return nil }
|
||||
if !_c12 { return nil }
|
||||
if !_c13 { return nil }
|
||||
if !_c14 { return nil }
|
||||
if !_c15 { return nil }
|
||||
if !_c16 { return nil }
|
||||
if !_c17 { return nil }
|
||||
return Api.stats.MegagroupStats.megagroupStats(period: _1!, members: _2!, messages: _3!, viewers: _4!, posters: _5!, growthGraph: _6!, membersGraph: _7!, newMembersBySourceGraph: _8!, languagesGraph: _9!, messagesGraph: _10!, actionsGraph: _11!, topHoursGraph: _12!, weekdaysGraph: _13!, topPosters: _14!, topAdmins: _15!, topInviters: _16!, users: _17!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 && _c10 && _c11 && _c12 && _c13 && _c14 && _c15 && _c16 && _c17 {
|
||||
return Api.stats.MegagroupStats.megagroupStats(period: _1!, members: _2!, messages: _3!, viewers: _4!, posters: _5!, growthGraph: _6!, membersGraph: _7!, newMembersBySourceGraph: _8!, languagesGraph: _9!, messagesGraph: _10!, actionsGraph: _11!, topHoursGraph: _12!, weekdaysGraph: _13!, topPosters: _14!, topAdmins: _15!, topInviters: _16!, users: _17!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -935,9 +916,12 @@ public extension Api.stats {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.stats.MessageStats.messageStats(viewsGraph: _1!, reactionsByEmotionGraph: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.stats.MessageStats.messageStats(viewsGraph: _1!, reactionsByEmotionGraph: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1006,13 +990,12 @@ public extension Api.stats {
|
|||
let _c4 = (Int(_1!) & Int(1 << 0) == 0) || _4 != nil
|
||||
let _c5 = _5 != nil
|
||||
let _c6 = _6 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
return Api.stats.PublicForwards.publicForwards(flags: _1!, count: _2!, forwards: _3!, nextOffset: _4, chats: _5!, users: _6!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 {
|
||||
return Api.stats.PublicForwards.publicForwards(flags: _1!, count: _2!, forwards: _3!, nextOffset: _4, chats: _5!, users: _6!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1051,9 +1034,12 @@ public extension Api.stats {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.stats.StoryStats.storyStats(viewsGraph: _1!, reactionsByEmotionGraph: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.stats.StoryStats.storyStats(viewsGraph: _1!, reactionsByEmotionGraph: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1084,8 +1070,12 @@ public extension Api.stickers {
|
|||
var _1: String?
|
||||
_1 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.stickers.SuggestedShortName.suggestedShortName(shortName: _1!)
|
||||
if _c1 {
|
||||
return Api.stickers.SuggestedShortName.suggestedShortName(shortName: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1271,9 +1261,12 @@ public extension Api.stories {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.stories.Albums.albums(hash: _1!, albums: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.stories.Albums.albums(hash: _1!, albums: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_albumsNotModified(_ reader: BufferReader) -> Albums? {
|
||||
return Api.stories.Albums.albumsNotModified
|
||||
|
|
@ -1362,14 +1355,12 @@ public extension Api.stories {
|
|||
let _c5 = _5 != nil
|
||||
let _c6 = _6 != nil
|
||||
let _c7 = _7 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
return Api.stories.AllStories.allStories(flags: _1!, count: _2!, state: _3!, peerStories: _4!, chats: _5!, users: _6!, stealthMode: _7!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 {
|
||||
return Api.stories.AllStories.allStories(flags: _1!, count: _2!, state: _3!, peerStories: _4!, chats: _5!, users: _6!, stealthMode: _7!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_allStoriesNotModified(_ reader: BufferReader) -> AllStories? {
|
||||
var _1: Int32?
|
||||
|
|
@ -1383,10 +1374,12 @@ public extension Api.stories {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.stories.AllStories.allStoriesNotModified(flags: _1!, state: _2!, stealthMode: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.stories.AllStories.allStoriesNotModified(flags: _1!, state: _2!, stealthMode: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1417,8 +1410,12 @@ public extension Api.stories {
|
|||
var _1: Int32?
|
||||
_1 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.stories.CanSendStoryCount.canSendStoryCount(countRemains: _1!)
|
||||
if _c1 {
|
||||
return Api.stories.CanSendStoryCount.canSendStoryCount(countRemains: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1487,13 +1484,12 @@ public extension Api.stories {
|
|||
let _c4 = (Int(_1!) & Int(1 << 0) == 0) || _4 != nil
|
||||
let _c5 = _5 != nil
|
||||
let _c6 = _6 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
return Api.stories.FoundStories.foundStories(flags: _1!, count: _2!, stories: _3!, nextOffset: _4, chats: _5!, users: _6!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 {
|
||||
return Api.stories.FoundStories.foundStories(flags: _1!, count: _2!, stories: _3!, nextOffset: _4, chats: _5!, users: _6!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -46,10 +46,12 @@ public extension Api.stories {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.stories.PeerStories.peerStories(stories: _1!, chats: _2!, users: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.stories.PeerStories.peerStories(stories: _1!, chats: _2!, users: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -124,13 +126,12 @@ public extension Api.stories {
|
|||
let _c4 = (Int(_1!) & Int(1 << 0) == 0) || _4 != nil
|
||||
let _c5 = _5 != nil
|
||||
let _c6 = _6 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
return Api.stories.Stories.stories(flags: _1!, count: _2!, stories: _3!, pinnedToTop: _4, chats: _5!, users: _6!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 {
|
||||
return Api.stories.Stories.stories(flags: _1!, count: _2!, stories: _3!, pinnedToTop: _4, chats: _5!, users: _6!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -199,13 +200,12 @@ public extension Api.stories {
|
|||
let _c4 = _4 != nil
|
||||
let _c5 = _5 != nil
|
||||
let _c6 = (Int(_1!) & Int(1 << 0) == 0) || _6 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
return Api.stories.StoryReactionsList.storyReactionsList(flags: _1!, count: _2!, reactions: _3!, chats: _4!, users: _5!, nextOffset: _6)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 {
|
||||
return Api.stories.StoryReactionsList.storyReactionsList(flags: _1!, count: _2!, reactions: _3!, chats: _4!, users: _5!, nextOffset: _6)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -252,9 +252,12 @@ public extension Api.stories {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.stories.StoryViews.storyViews(views: _1!, users: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.stories.StoryViews.storyViews(views: _1!, users: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -335,16 +338,12 @@ public extension Api.stories {
|
|||
let _c7 = _7 != nil
|
||||
let _c8 = _8 != nil
|
||||
let _c9 = (Int(_1!) & Int(1 << 0) == 0) || _9 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
if !_c9 { return nil }
|
||||
return Api.stories.StoryViewsList.storyViewsList(flags: _1!, count: _2!, viewsCount: _3!, forwardsCount: _4!, reactionsCount: _5!, views: _6!, chats: _7!, users: _8!, nextOffset: _9)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 {
|
||||
return Api.stories.StoryViewsList.storyViewsList(flags: _1!, count: _2!, viewsCount: _3!, forwardsCount: _4!, reactionsCount: _5!, views: _6!, chats: _7!, users: _8!, nextOffset: _9)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -460,14 +459,12 @@ public extension Api.updates {
|
|||
let _c5 = _5 != nil
|
||||
let _c6 = _6 != nil
|
||||
let _c7 = _7 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
return Api.updates.ChannelDifference.channelDifference(flags: _1!, pts: _2!, timeout: _3, newMessages: _4!, otherUpdates: _5!, chats: _6!, users: _7!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 {
|
||||
return Api.updates.ChannelDifference.channelDifference(flags: _1!, pts: _2!, timeout: _3, newMessages: _4!, otherUpdates: _5!, chats: _6!, users: _7!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_channelDifferenceEmpty(_ reader: BufferReader) -> ChannelDifference? {
|
||||
var _1: Int32?
|
||||
|
|
@ -479,10 +476,12 @@ public extension Api.updates {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = (Int(_1!) & Int(1 << 1) == 0) || _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.updates.ChannelDifference.channelDifferenceEmpty(flags: _1!, pts: _2!, timeout: _3)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.updates.ChannelDifference.channelDifferenceEmpty(flags: _1!, pts: _2!, timeout: _3)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_channelDifferenceTooLong(_ reader: BufferReader) -> ChannelDifference? {
|
||||
var _1: Int32?
|
||||
|
|
@ -511,13 +510,12 @@ public extension Api.updates {
|
|||
let _c4 = _4 != nil
|
||||
let _c5 = _5 != nil
|
||||
let _c6 = _6 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
return Api.updates.ChannelDifference.channelDifferenceTooLong(flags: _1!, timeout: _2, dialog: _3!, messages: _4!, chats: _5!, users: _6!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 {
|
||||
return Api.updates.ChannelDifference.channelDifferenceTooLong(flags: _1!, timeout: _2, dialog: _3!, messages: _4!, chats: _5!, users: _6!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -653,13 +651,12 @@ public extension Api.updates {
|
|||
let _c4 = _4 != nil
|
||||
let _c5 = _5 != nil
|
||||
let _c6 = _6 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
return Api.updates.Difference.difference(newMessages: _1!, newEncryptedMessages: _2!, otherUpdates: _3!, chats: _4!, users: _5!, state: _6!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 {
|
||||
return Api.updates.Difference.difference(newMessages: _1!, newEncryptedMessages: _2!, otherUpdates: _3!, chats: _4!, users: _5!, state: _6!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_differenceEmpty(_ reader: BufferReader) -> Difference? {
|
||||
var _1: Int32?
|
||||
|
|
@ -668,9 +665,12 @@ public extension Api.updates {
|
|||
_2 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.updates.Difference.differenceEmpty(date: _1!, seq: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.updates.Difference.differenceEmpty(date: _1!, seq: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_differenceSlice(_ reader: BufferReader) -> Difference? {
|
||||
var _1: [Api.Message]?
|
||||
|
|
@ -703,20 +703,23 @@ public extension Api.updates {
|
|||
let _c4 = _4 != nil
|
||||
let _c5 = _5 != nil
|
||||
let _c6 = _6 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
return Api.updates.Difference.differenceSlice(newMessages: _1!, newEncryptedMessages: _2!, otherUpdates: _3!, chats: _4!, users: _5!, intermediateState: _6!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 {
|
||||
return Api.updates.Difference.differenceSlice(newMessages: _1!, newEncryptedMessages: _2!, otherUpdates: _3!, chats: _4!, users: _5!, intermediateState: _6!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_differenceTooLong(_ reader: BufferReader) -> Difference? {
|
||||
var _1: Int32?
|
||||
_1 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.updates.Difference.differenceTooLong(pts: _1!)
|
||||
if _c1 {
|
||||
return Api.updates.Difference.differenceTooLong(pts: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -763,12 +766,12 @@ public extension Api.updates {
|
|||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
let _c5 = _5 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
return Api.updates.State.state(pts: _1!, qts: _2!, date: _3!, seq: _4!, unreadCount: _5!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 {
|
||||
return Api.updates.State.state(pts: _1!, qts: _2!, date: _3!, seq: _4!, unreadCount: _5!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -808,15 +811,23 @@ public extension Api.upload {
|
|||
var _1: Buffer?
|
||||
_1 = parseBytes(reader)
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.upload.CdnFile.cdnFile(bytes: _1!)
|
||||
if _c1 {
|
||||
return Api.upload.CdnFile.cdnFile(bytes: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_cdnFileReuploadNeeded(_ reader: BufferReader) -> CdnFile? {
|
||||
var _1: Buffer?
|
||||
_1 = parseBytes(reader)
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.upload.CdnFile.cdnFileReuploadNeeded(requestToken: _1!)
|
||||
if _c1 {
|
||||
return Api.upload.CdnFile.cdnFileReuploadNeeded(requestToken: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -874,10 +885,12 @@ public extension Api.upload {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.upload.File.file(type: _1!, mtime: _2!, bytes: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.upload.File.file(type: _1!, mtime: _2!, bytes: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_fileCdnRedirect(_ reader: BufferReader) -> File? {
|
||||
var _1: Int32?
|
||||
|
|
@ -897,12 +910,12 @@ public extension Api.upload {
|
|||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
let _c5 = _5 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
return Api.upload.File.fileCdnRedirect(dcId: _1!, fileToken: _2!, encryptionKey: _3!, encryptionIv: _4!, fileHashes: _5!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 {
|
||||
return Api.upload.File.fileCdnRedirect(dcId: _1!, fileToken: _2!, encryptionKey: _3!, encryptionIv: _4!, fileHashes: _5!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -951,12 +964,12 @@ public extension Api.upload {
|
|||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
let _c5 = _5 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
return Api.upload.WebFile.webFile(size: _1!, mimeType: _2!, fileType: _3!, mtime: _4!, bytes: _5!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 {
|
||||
return Api.upload.WebFile.webFile(size: _1!, mimeType: _2!, fileType: _3!, mtime: _4!, bytes: _5!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1006,16 +1019,23 @@ public extension Api.users {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.users.SavedMusic.savedMusic(count: _1!, documents: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.users.SavedMusic.savedMusic(count: _1!, documents: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_savedMusicNotModified(_ reader: BufferReader) -> SavedMusic? {
|
||||
var _1: Int32?
|
||||
_1 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.users.SavedMusic.savedMusicNotModified(count: _1!)
|
||||
if _c1 {
|
||||
return Api.users.SavedMusic.savedMusicNotModified(count: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1068,10 +1088,12 @@ public extension Api.users {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.users.UserFull.userFull(fullUser: _1!, chats: _2!, users: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.users.UserFull.userFull(fullUser: _1!, chats: _2!, users: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1122,8 +1144,12 @@ public extension Api.users {
|
|||
_1 = Api.parseVector(reader, elementSignature: 0, elementType: Api.User.self)
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.users.Users.users(users: _1!)
|
||||
if _c1 {
|
||||
return Api.users.Users.users(users: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_usersSlice(_ reader: BufferReader) -> Users? {
|
||||
var _1: Int32?
|
||||
|
|
@ -1134,9 +1160,12 @@ public extension Api.users {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.users.Users.usersSlice(count: _1!, users: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.users.Users.usersSlice(count: _1!, users: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9605,6 +9605,25 @@ public extension Api.functions.payments {
|
|||
})
|
||||
}
|
||||
}
|
||||
public extension Api.functions.payments {
|
||||
static func craftStarGift(stargift: [Api.InputSavedStarGift]) -> (FunctionDescription, Buffer, DeserializeFunctionResponse<Api.Updates>) {
|
||||
let buffer = Buffer()
|
||||
buffer.appendInt32(-1325832113)
|
||||
buffer.appendInt32(481674261)
|
||||
buffer.appendInt32(Int32(stargift.count))
|
||||
for item in stargift {
|
||||
item.serialize(buffer, true)
|
||||
}
|
||||
return (FunctionDescription(name: "payments.craftStarGift", parameters: [("stargift", String(describing: stargift))]), buffer, DeserializeFunctionResponse { (buffer: Buffer) -> Api.Updates? in
|
||||
let reader = BufferReader(buffer)
|
||||
var result: Api.Updates?
|
||||
if let signature = reader.readInt32() {
|
||||
result = Api.parse(reader, signature: signature) as? Api.Updates
|
||||
}
|
||||
return result
|
||||
})
|
||||
}
|
||||
}
|
||||
public extension Api.functions.payments {
|
||||
static func createStarGiftCollection(peer: Api.InputPeer, title: String, stargift: [Api.InputSavedStarGift]) -> (FunctionDescription, Buffer, DeserializeFunctionResponse<Api.StarGiftCollection>) {
|
||||
let buffer = Buffer()
|
||||
|
|
@ -9740,6 +9759,23 @@ public extension Api.functions.payments {
|
|||
})
|
||||
}
|
||||
}
|
||||
public extension Api.functions.payments {
|
||||
static func getCraftStarGifts(giftId: Int64, offset: String, limit: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse<Api.payments.SavedStarGifts>) {
|
||||
let buffer = Buffer()
|
||||
buffer.appendInt32(-49947392)
|
||||
serializeInt64(giftId, buffer: buffer, boxed: false)
|
||||
serializeString(offset, buffer: buffer, boxed: false)
|
||||
serializeInt32(limit, buffer: buffer, boxed: false)
|
||||
return (FunctionDescription(name: "payments.getCraftStarGifts", parameters: [("giftId", String(describing: giftId)), ("offset", String(describing: offset)), ("limit", String(describing: limit))]), buffer, DeserializeFunctionResponse { (buffer: Buffer) -> Api.payments.SavedStarGifts? in
|
||||
let reader = BufferReader(buffer)
|
||||
var result: Api.payments.SavedStarGifts?
|
||||
if let signature = reader.readInt32() {
|
||||
result = Api.parse(reader, signature: signature) as? Api.payments.SavedStarGifts
|
||||
}
|
||||
return result
|
||||
})
|
||||
}
|
||||
}
|
||||
public extension Api.functions.payments {
|
||||
static func getGiveawayInfo(peer: Api.InputPeer, msgId: Int32) -> (FunctionDescription, Buffer, DeserializeFunctionResponse<Api.payments.GiveawayInfo>) {
|
||||
let buffer = Buffer()
|
||||
|
|
|
|||
|
|
@ -24,8 +24,12 @@ public extension Api {
|
|||
var _1: Int32?
|
||||
_1 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.ChannelAdminLogEventsFilter.channelAdminLogEventsFilter(flags: _1!)
|
||||
if _c1 {
|
||||
return Api.ChannelAdminLogEventsFilter.channelAdminLogEventsFilter(flags: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -71,9 +75,12 @@ public extension Api {
|
|||
_2 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.ChannelLocation.channelLocation(geoPoint: _1!, address: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.ChannelLocation.channelLocation(geoPoint: _1!, address: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_channelLocationEmpty(_ reader: BufferReader) -> ChannelLocation? {
|
||||
return Api.ChannelLocation.channelLocationEmpty
|
||||
|
|
@ -126,9 +133,12 @@ public extension Api {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.ChannelMessagesFilter.channelMessagesFilter(flags: _1!, ranges: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.ChannelMessagesFilter.channelMessagesFilter(flags: _1!, ranges: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_channelMessagesFilterEmpty(_ reader: BufferReader) -> ChannelMessagesFilter? {
|
||||
return Api.ChannelMessagesFilter.channelMessagesFilterEmpty
|
||||
|
|
@ -236,11 +246,12 @@ public extension Api {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = (Int(_1!) & Int(1 << 0) == 0) || _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.ChannelParticipant.channelParticipant(flags: _1!, userId: _2!, date: _3!, subscriptionUntilDate: _4)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.ChannelParticipant.channelParticipant(flags: _1!, userId: _2!, date: _3!, subscriptionUntilDate: _4)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_channelParticipantAdmin(_ reader: BufferReader) -> ChannelParticipant? {
|
||||
var _1: Int32?
|
||||
|
|
@ -266,14 +277,12 @@ public extension Api {
|
|||
let _c5 = _5 != nil
|
||||
let _c6 = _6 != nil
|
||||
let _c7 = (Int(_1!) & Int(1 << 2) == 0) || _7 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
return Api.ChannelParticipant.channelParticipantAdmin(flags: _1!, userId: _2!, inviterId: _3, promotedBy: _4!, date: _5!, adminRights: _6!, rank: _7)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 {
|
||||
return Api.ChannelParticipant.channelParticipantAdmin(flags: _1!, userId: _2!, inviterId: _3, promotedBy: _4!, date: _5!, adminRights: _6!, rank: _7)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_channelParticipantBanned(_ reader: BufferReader) -> ChannelParticipant? {
|
||||
var _1: Int32?
|
||||
|
|
@ -295,12 +304,12 @@ public extension Api {
|
|||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
let _c5 = _5 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
return Api.ChannelParticipant.channelParticipantBanned(flags: _1!, peer: _2!, kickedBy: _3!, date: _4!, bannedRights: _5!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 {
|
||||
return Api.ChannelParticipant.channelParticipantBanned(flags: _1!, peer: _2!, kickedBy: _3!, date: _4!, bannedRights: _5!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_channelParticipantCreator(_ reader: BufferReader) -> ChannelParticipant? {
|
||||
var _1: Int32?
|
||||
|
|
@ -317,11 +326,12 @@ public extension Api {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = (Int(_1!) & Int(1 << 0) == 0) || _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.ChannelParticipant.channelParticipantCreator(flags: _1!, userId: _2!, adminRights: _3!, rank: _4)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.ChannelParticipant.channelParticipantCreator(flags: _1!, userId: _2!, adminRights: _3!, rank: _4)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_channelParticipantLeft(_ reader: BufferReader) -> ChannelParticipant? {
|
||||
var _1: Api.Peer?
|
||||
|
|
@ -329,8 +339,12 @@ public extension Api {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.Peer
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.ChannelParticipant.channelParticipantLeft(peer: _1!)
|
||||
if _c1 {
|
||||
return Api.ChannelParticipant.channelParticipantLeft(peer: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_channelParticipantSelf(_ reader: BufferReader) -> ChannelParticipant? {
|
||||
var _1: Int32?
|
||||
|
|
@ -348,12 +362,12 @@ public extension Api {
|
|||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
let _c5 = (Int(_1!) & Int(1 << 1) == 0) || _5 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
return Api.ChannelParticipant.channelParticipantSelf(flags: _1!, userId: _2!, inviterId: _3!, date: _4!, subscriptionUntilDate: _5)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 {
|
||||
return Api.ChannelParticipant.channelParticipantSelf(flags: _1!, userId: _2!, inviterId: _3!, date: _4!, subscriptionUntilDate: _5)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -452,8 +466,12 @@ public extension Api {
|
|||
var _1: String?
|
||||
_1 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.ChannelParticipantsFilter.channelParticipantsBanned(q: _1!)
|
||||
if _c1 {
|
||||
return Api.ChannelParticipantsFilter.channelParticipantsBanned(q: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_channelParticipantsBots(_ reader: BufferReader) -> ChannelParticipantsFilter? {
|
||||
return Api.ChannelParticipantsFilter.channelParticipantsBots
|
||||
|
|
@ -462,15 +480,23 @@ public extension Api {
|
|||
var _1: String?
|
||||
_1 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.ChannelParticipantsFilter.channelParticipantsContacts(q: _1!)
|
||||
if _c1 {
|
||||
return Api.ChannelParticipantsFilter.channelParticipantsContacts(q: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_channelParticipantsKicked(_ reader: BufferReader) -> ChannelParticipantsFilter? {
|
||||
var _1: String?
|
||||
_1 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.ChannelParticipantsFilter.channelParticipantsKicked(q: _1!)
|
||||
if _c1 {
|
||||
return Api.ChannelParticipantsFilter.channelParticipantsKicked(q: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_channelParticipantsMentions(_ reader: BufferReader) -> ChannelParticipantsFilter? {
|
||||
var _1: Int32?
|
||||
|
|
@ -482,10 +508,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = (Int(_1!) & Int(1 << 0) == 0) || _2 != nil
|
||||
let _c3 = (Int(_1!) & Int(1 << 1) == 0) || _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.ChannelParticipantsFilter.channelParticipantsMentions(flags: _1!, q: _2, topMsgId: _3)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.ChannelParticipantsFilter.channelParticipantsMentions(flags: _1!, q: _2, topMsgId: _3)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_channelParticipantsRecent(_ reader: BufferReader) -> ChannelParticipantsFilter? {
|
||||
return Api.ChannelParticipantsFilter.channelParticipantsRecent
|
||||
|
|
@ -494,8 +522,12 @@ public extension Api {
|
|||
var _1: String?
|
||||
_1 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.ChannelParticipantsFilter.channelParticipantsSearch(q: _1!)
|
||||
if _c1 {
|
||||
return Api.ChannelParticipantsFilter.channelParticipantsSearch(q: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -692,30 +724,12 @@ public extension Api {
|
|||
let _c21 = (Int(_2!) & Int(1 << 13) == 0) || _21 != nil
|
||||
let _c22 = (Int(_2!) & Int(1 << 14) == 0) || _22 != nil
|
||||
let _c23 = (Int(_2!) & Int(1 << 18) == 0) || _23 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
if !_c9 { return nil }
|
||||
if !_c10 { return nil }
|
||||
if !_c11 { return nil }
|
||||
if !_c12 { return nil }
|
||||
if !_c13 { return nil }
|
||||
if !_c14 { return nil }
|
||||
if !_c15 { return nil }
|
||||
if !_c16 { return nil }
|
||||
if !_c17 { return nil }
|
||||
if !_c18 { return nil }
|
||||
if !_c19 { return nil }
|
||||
if !_c20 { return nil }
|
||||
if !_c21 { return nil }
|
||||
if !_c22 { return nil }
|
||||
if !_c23 { return nil }
|
||||
return Api.Chat.channel(flags: _1!, flags2: _2!, id: _3!, accessHash: _4, title: _5!, username: _6, photo: _7!, date: _8!, restrictionReason: _9, adminRights: _10, bannedRights: _11, defaultBannedRights: _12, participantsCount: _13, usernames: _14, storiesMaxId: _15, color: _16, profileColor: _17, emojiStatus: _18, level: _19, subscriptionUntilDate: _20, botVerificationIcon: _21, sendPaidMessagesStars: _22, linkedMonoforumId: _23)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 && _c10 && _c11 && _c12 && _c13 && _c14 && _c15 && _c16 && _c17 && _c18 && _c19 && _c20 && _c21 && _c22 && _c23 {
|
||||
return Api.Chat.channel(flags: _1!, flags2: _2!, id: _3!, accessHash: _4, title: _5!, username: _6, photo: _7!, date: _8!, restrictionReason: _9, adminRights: _10, bannedRights: _11, defaultBannedRights: _12, participantsCount: _13, usernames: _14, storiesMaxId: _15, color: _16, profileColor: _17, emojiStatus: _18, level: _19, subscriptionUntilDate: _20, botVerificationIcon: _21, sendPaidMessagesStars: _22, linkedMonoforumId: _23)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_channelForbidden(_ reader: BufferReader) -> Chat? {
|
||||
var _1: Int32?
|
||||
|
|
@ -733,12 +747,12 @@ public extension Api {
|
|||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
let _c5 = (Int(_1!) & Int(1 << 16) == 0) || _5 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
return Api.Chat.channelForbidden(flags: _1!, id: _2!, accessHash: _3!, title: _4!, untilDate: _5)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 {
|
||||
return Api.Chat.channelForbidden(flags: _1!, id: _2!, accessHash: _3!, title: _4!, untilDate: _5)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_chat(_ reader: BufferReader) -> Chat? {
|
||||
var _1: Int32?
|
||||
|
|
@ -779,24 +793,23 @@ public extension Api {
|
|||
let _c8 = (Int(_1!) & Int(1 << 6) == 0) || _8 != nil
|
||||
let _c9 = (Int(_1!) & Int(1 << 14) == 0) || _9 != nil
|
||||
let _c10 = (Int(_1!) & Int(1 << 18) == 0) || _10 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
if !_c9 { return nil }
|
||||
if !_c10 { return nil }
|
||||
return Api.Chat.chat(flags: _1!, id: _2!, title: _3!, photo: _4!, participantsCount: _5!, date: _6!, version: _7!, migratedTo: _8, adminRights: _9, defaultBannedRights: _10)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 && _c10 {
|
||||
return Api.Chat.chat(flags: _1!, id: _2!, title: _3!, photo: _4!, participantsCount: _5!, date: _6!, version: _7!, migratedTo: _8, adminRights: _9, defaultBannedRights: _10)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_chatEmpty(_ reader: BufferReader) -> Chat? {
|
||||
var _1: Int64?
|
||||
_1 = reader.readInt64()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.Chat.chatEmpty(id: _1!)
|
||||
if _c1 {
|
||||
return Api.Chat.chatEmpty(id: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_chatForbidden(_ reader: BufferReader) -> Chat? {
|
||||
var _1: Int64?
|
||||
|
|
@ -805,9 +818,12 @@ public extension Api {
|
|||
_2 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.Chat.chatForbidden(id: _1!, title: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.Chat.chatForbidden(id: _1!, title: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -838,8 +854,12 @@ public extension Api {
|
|||
var _1: Int32?
|
||||
_1 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.ChatAdminRights.chatAdminRights(flags: _1!)
|
||||
if _c1 {
|
||||
return Api.ChatAdminRights.chatAdminRights(flags: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -878,10 +898,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.ChatAdminWithInvites.chatAdminWithInvites(adminId: _1!, invitesCount: _2!, revokedInvitesCount: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.ChatAdminWithInvites.chatAdminWithInvites(adminId: _1!, invitesCount: _2!, revokedInvitesCount: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -916,9 +938,12 @@ public extension Api {
|
|||
_2 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.ChatBannedRights.chatBannedRights(flags: _1!, untilDate: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.ChatBannedRights.chatBannedRights(flags: _1!, untilDate: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1213,54 +1238,12 @@ public extension Api {
|
|||
let _c45 = (Int(_2!) & Int(1 << 18) == 0) || _45 != nil
|
||||
let _c46 = (Int(_2!) & Int(1 << 21) == 0) || _46 != nil
|
||||
let _c47 = (Int(_2!) & Int(1 << 22) == 0) || _47 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
if !_c9 { return nil }
|
||||
if !_c10 { return nil }
|
||||
if !_c11 { return nil }
|
||||
if !_c12 { return nil }
|
||||
if !_c13 { return nil }
|
||||
if !_c14 { return nil }
|
||||
if !_c15 { return nil }
|
||||
if !_c16 { return nil }
|
||||
if !_c17 { return nil }
|
||||
if !_c18 { return nil }
|
||||
if !_c19 { return nil }
|
||||
if !_c20 { return nil }
|
||||
if !_c21 { return nil }
|
||||
if !_c22 { return nil }
|
||||
if !_c23 { return nil }
|
||||
if !_c24 { return nil }
|
||||
if !_c25 { return nil }
|
||||
if !_c26 { return nil }
|
||||
if !_c27 { return nil }
|
||||
if !_c28 { return nil }
|
||||
if !_c29 { return nil }
|
||||
if !_c30 { return nil }
|
||||
if !_c31 { return nil }
|
||||
if !_c32 { return nil }
|
||||
if !_c33 { return nil }
|
||||
if !_c34 { return nil }
|
||||
if !_c35 { return nil }
|
||||
if !_c36 { return nil }
|
||||
if !_c37 { return nil }
|
||||
if !_c38 { return nil }
|
||||
if !_c39 { return nil }
|
||||
if !_c40 { return nil }
|
||||
if !_c41 { return nil }
|
||||
if !_c42 { return nil }
|
||||
if !_c43 { return nil }
|
||||
if !_c44 { return nil }
|
||||
if !_c45 { return nil }
|
||||
if !_c46 { return nil }
|
||||
if !_c47 { return nil }
|
||||
return Api.ChatFull.channelFull(flags: _1!, flags2: _2!, id: _3!, about: _4!, participantsCount: _5, adminsCount: _6, kickedCount: _7, bannedCount: _8, onlineCount: _9, readInboxMaxId: _10!, readOutboxMaxId: _11!, unreadCount: _12!, chatPhoto: _13!, notifySettings: _14!, exportedInvite: _15, botInfo: _16!, migratedFromChatId: _17, migratedFromMaxId: _18, pinnedMsgId: _19, stickerset: _20, availableMinId: _21, folderId: _22, linkedChatId: _23, location: _24, slowmodeSeconds: _25, slowmodeNextSendDate: _26, statsDc: _27, pts: _28!, call: _29, ttlPeriod: _30, pendingSuggestions: _31, groupcallDefaultJoinAs: _32, themeEmoticon: _33, requestsPending: _34, recentRequesters: _35, defaultSendAs: _36, availableReactions: _37, reactionsLimit: _38, stories: _39, wallpaper: _40, boostsApplied: _41, boostsUnrestrict: _42, emojiset: _43, botVerification: _44, stargiftsCount: _45, sendPaidMessagesStars: _46, mainTab: _47)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 && _c10 && _c11 && _c12 && _c13 && _c14 && _c15 && _c16 && _c17 && _c18 && _c19 && _c20 && _c21 && _c22 && _c23 && _c24 && _c25 && _c26 && _c27 && _c28 && _c29 && _c30 && _c31 && _c32 && _c33 && _c34 && _c35 && _c36 && _c37 && _c38 && _c39 && _c40 && _c41 && _c42 && _c43 && _c44 && _c45 && _c46 && _c47 {
|
||||
return Api.ChatFull.channelFull(flags: _1!, flags2: _2!, id: _3!, about: _4!, participantsCount: _5, adminsCount: _6, kickedCount: _7, bannedCount: _8, onlineCount: _9, readInboxMaxId: _10!, readOutboxMaxId: _11!, unreadCount: _12!, chatPhoto: _13!, notifySettings: _14!, exportedInvite: _15, botInfo: _16!, migratedFromChatId: _17, migratedFromMaxId: _18, pinnedMsgId: _19, stickerset: _20, availableMinId: _21, folderId: _22, linkedChatId: _23, location: _24, slowmodeSeconds: _25, slowmodeNextSendDate: _26, statsDc: _27, pts: _28!, call: _29, ttlPeriod: _30, pendingSuggestions: _31, groupcallDefaultJoinAs: _32, themeEmoticon: _33, requestsPending: _34, recentRequesters: _35, defaultSendAs: _36, availableReactions: _37, reactionsLimit: _38, stories: _39, wallpaper: _40, boostsApplied: _41, boostsUnrestrict: _42, emojiset: _43, botVerification: _44, stargiftsCount: _45, sendPaidMessagesStars: _46, mainTab: _47)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_chatFull(_ reader: BufferReader) -> ChatFull? {
|
||||
var _1: Int32?
|
||||
|
|
@ -1335,25 +1318,12 @@ public extension Api {
|
|||
let _c16 = (Int(_1!) & Int(1 << 17) == 0) || _16 != nil
|
||||
let _c17 = (Int(_1!) & Int(1 << 18) == 0) || _17 != nil
|
||||
let _c18 = (Int(_1!) & Int(1 << 20) == 0) || _18 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
if !_c9 { return nil }
|
||||
if !_c10 { return nil }
|
||||
if !_c11 { return nil }
|
||||
if !_c12 { return nil }
|
||||
if !_c13 { return nil }
|
||||
if !_c14 { return nil }
|
||||
if !_c15 { return nil }
|
||||
if !_c16 { return nil }
|
||||
if !_c17 { return nil }
|
||||
if !_c18 { return nil }
|
||||
return Api.ChatFull.chatFull(flags: _1!, id: _2!, about: _3!, participants: _4!, chatPhoto: _5, notifySettings: _6!, exportedInvite: _7, botInfo: _8, pinnedMsgId: _9, folderId: _10, call: _11, ttlPeriod: _12, groupcallDefaultJoinAs: _13, themeEmoticon: _14, requestsPending: _15, recentRequesters: _16, availableReactions: _17, reactionsLimit: _18)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 && _c10 && _c11 && _c12 && _c13 && _c14 && _c15 && _c16 && _c17 && _c18 {
|
||||
return Api.ChatFull.chatFull(flags: _1!, id: _2!, about: _3!, participants: _4!, chatPhoto: _5, notifySettings: _6!, exportedInvite: _7, botInfo: _8, pinnedMsgId: _9, folderId: _10, call: _11, ttlPeriod: _12, groupcallDefaultJoinAs: _13, themeEmoticon: _14, requestsPending: _15, recentRequesters: _16, availableReactions: _17, reactionsLimit: _18)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1451,17 +1421,12 @@ public extension Api {
|
|||
let _c8 = (Int(_1!) & Int(1 << 10) == 0) || _8 != nil
|
||||
let _c9 = (Int(_1!) & Int(1 << 12) == 0) || _9 != nil
|
||||
let _c10 = (Int(_1!) & Int(1 << 13) == 0) || _10 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
if !_c9 { return nil }
|
||||
if !_c10 { return nil }
|
||||
return Api.ChatInvite.chatInvite(flags: _1!, title: _2!, about: _3, photo: _4!, participantsCount: _5!, participants: _6, color: _7!, subscriptionPricing: _8, subscriptionFormId: _9, botVerification: _10)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 && _c10 {
|
||||
return Api.ChatInvite.chatInvite(flags: _1!, title: _2!, about: _3, photo: _4!, participantsCount: _5!, participants: _6, color: _7!, subscriptionPricing: _8, subscriptionFormId: _9, botVerification: _10)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_chatInviteAlready(_ reader: BufferReader) -> ChatInvite? {
|
||||
var _1: Api.Chat?
|
||||
|
|
@ -1469,8 +1434,12 @@ public extension Api {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.Chat
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.ChatInvite.chatInviteAlready(chat: _1!)
|
||||
if _c1 {
|
||||
return Api.ChatInvite.chatInviteAlready(chat: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_chatInvitePeek(_ reader: BufferReader) -> ChatInvite? {
|
||||
var _1: Api.Chat?
|
||||
|
|
@ -1481,9 +1450,12 @@ public extension Api {
|
|||
_2 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.ChatInvite.chatInvitePeek(chat: _1!, expires: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.ChatInvite.chatInvitePeek(chat: _1!, expires: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -40,12 +40,12 @@ public extension Api {
|
|||
let _c3 = _3 != nil
|
||||
let _c4 = (Int(_1!) & Int(1 << 2) == 0) || _4 != nil
|
||||
let _c5 = (Int(_1!) & Int(1 << 1) == 0) || _5 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
return Api.ChatInviteImporter.chatInviteImporter(flags: _1!, userId: _2!, date: _3!, about: _4, approvedBy: _5)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 {
|
||||
return Api.ChatInviteImporter.chatInviteImporter(flags: _1!, userId: _2!, date: _3!, about: _4, approvedBy: _5)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -76,8 +76,12 @@ public extension Api {
|
|||
var _1: Int32?
|
||||
_1 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.ChatOnlines.chatOnlines(onlines: _1!)
|
||||
if _c1 {
|
||||
return Api.ChatOnlines.chatOnlines(onlines: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -136,10 +140,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.ChatParticipant.chatParticipant(userId: _1!, inviterId: _2!, date: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.ChatParticipant.chatParticipant(userId: _1!, inviterId: _2!, date: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_chatParticipantAdmin(_ reader: BufferReader) -> ChatParticipant? {
|
||||
var _1: Int64?
|
||||
|
|
@ -151,17 +157,23 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.ChatParticipant.chatParticipantAdmin(userId: _1!, inviterId: _2!, date: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.ChatParticipant.chatParticipantAdmin(userId: _1!, inviterId: _2!, date: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_chatParticipantCreator(_ reader: BufferReader) -> ChatParticipant? {
|
||||
var _1: Int64?
|
||||
_1 = reader.readInt64()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.ChatParticipant.chatParticipantCreator(userId: _1!)
|
||||
if _c1 {
|
||||
return Api.ChatParticipant.chatParticipantCreator(userId: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -217,10 +229,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.ChatParticipants.chatParticipants(chatId: _1!, participants: _2!, version: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.ChatParticipants.chatParticipants(chatId: _1!, participants: _2!, version: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_chatParticipantsForbidden(_ reader: BufferReader) -> ChatParticipants? {
|
||||
var _1: Int32?
|
||||
|
|
@ -234,10 +248,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = (Int(_1!) & Int(1 << 0) == 0) || _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.ChatParticipants.chatParticipantsForbidden(flags: _1!, chatId: _2!, selfParticipant: _3)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.ChatParticipants.chatParticipantsForbidden(flags: _1!, chatId: _2!, selfParticipant: _3)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -289,11 +305,12 @@ public extension Api {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = (Int(_1!) & Int(1 << 1) == 0) || _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.ChatPhoto.chatPhoto(flags: _1!, photoId: _2!, strippedThumb: _3, dcId: _4!)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.ChatPhoto.chatPhoto(flags: _1!, photoId: _2!, strippedThumb: _3, dcId: _4!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_chatPhotoEmpty(_ reader: BufferReader) -> ChatPhoto? {
|
||||
return Api.ChatPhoto.chatPhotoEmpty
|
||||
|
|
@ -349,8 +366,12 @@ public extension Api {
|
|||
var _1: Int32?
|
||||
_1 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.ChatReactions.chatReactionsAll(flags: _1!)
|
||||
if _c1 {
|
||||
return Api.ChatReactions.chatReactionsAll(flags: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_chatReactionsNone(_ reader: BufferReader) -> ChatReactions? {
|
||||
return Api.ChatReactions.chatReactionsNone
|
||||
|
|
@ -361,8 +382,12 @@ public extension Api {
|
|||
_1 = Api.parseVector(reader, elementSignature: 0, elementType: Api.Reaction.self)
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.ChatReactions.chatReactionsSome(reactions: _1!)
|
||||
if _c1 {
|
||||
return Api.ChatReactions.chatReactionsSome(reactions: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -407,8 +432,12 @@ public extension Api {
|
|||
var _1: String?
|
||||
_1 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.ChatTheme.chatTheme(emoticon: _1!)
|
||||
if _c1 {
|
||||
return Api.ChatTheme.chatTheme(emoticon: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_chatThemeUniqueGift(_ reader: BufferReader) -> ChatTheme? {
|
||||
var _1: Api.StarGift?
|
||||
|
|
@ -421,9 +450,12 @@ public extension Api {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.ChatTheme.chatThemeUniqueGift(gift: _1!, themeSettings: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.ChatTheme.chatThemeUniqueGift(gift: _1!, themeSettings: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -474,11 +506,12 @@ public extension Api {
|
|||
let _c2 = (Int(_1!) & Int(1 << 6) == 0) || _2 != nil
|
||||
let _c3 = (Int(_1!) & Int(1 << 8) == 0) || _3 != nil
|
||||
let _c4 = (Int(_1!) & Int(1 << 8) == 0) || _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.CodeSettings.codeSettings(flags: _1!, logoutTokens: _2, token: _3, appSandbox: _4)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.CodeSettings.codeSettings(flags: _1!, logoutTokens: _2, token: _3, appSandbox: _4)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -687,50 +720,12 @@ public extension Api {
|
|||
let _c41 = (Int(_1!) & Int(1 << 2) == 0) || _41 != nil
|
||||
let _c42 = (Int(_1!) & Int(1 << 15) == 0) || _42 != nil
|
||||
let _c43 = (Int(_1!) & Int(1 << 16) == 0) || _43 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
if !_c9 { return nil }
|
||||
if !_c10 { return nil }
|
||||
if !_c11 { return nil }
|
||||
if !_c12 { return nil }
|
||||
if !_c13 { return nil }
|
||||
if !_c14 { return nil }
|
||||
if !_c15 { return nil }
|
||||
if !_c16 { return nil }
|
||||
if !_c17 { return nil }
|
||||
if !_c18 { return nil }
|
||||
if !_c19 { return nil }
|
||||
if !_c20 { return nil }
|
||||
if !_c21 { return nil }
|
||||
if !_c22 { return nil }
|
||||
if !_c23 { return nil }
|
||||
if !_c24 { return nil }
|
||||
if !_c25 { return nil }
|
||||
if !_c26 { return nil }
|
||||
if !_c27 { return nil }
|
||||
if !_c28 { return nil }
|
||||
if !_c29 { return nil }
|
||||
if !_c30 { return nil }
|
||||
if !_c31 { return nil }
|
||||
if !_c32 { return nil }
|
||||
if !_c33 { return nil }
|
||||
if !_c34 { return nil }
|
||||
if !_c35 { return nil }
|
||||
if !_c36 { return nil }
|
||||
if !_c37 { return nil }
|
||||
if !_c38 { return nil }
|
||||
if !_c39 { return nil }
|
||||
if !_c40 { return nil }
|
||||
if !_c41 { return nil }
|
||||
if !_c42 { return nil }
|
||||
if !_c43 { return nil }
|
||||
return Api.Config.config(flags: _1!, date: _2!, expires: _3!, testMode: _4!, thisDc: _5!, dcOptions: _6!, dcTxtDomainName: _7!, chatSizeMax: _8!, megagroupSizeMax: _9!, forwardedCountMax: _10!, onlineUpdatePeriodMs: _11!, offlineBlurTimeoutMs: _12!, offlineIdleTimeoutMs: _13!, onlineCloudTimeoutMs: _14!, notifyCloudDelayMs: _15!, notifyDefaultDelayMs: _16!, pushChatPeriodMs: _17!, pushChatLimit: _18!, editTimeLimit: _19!, revokeTimeLimit: _20!, revokePmTimeLimit: _21!, ratingEDecay: _22!, stickersRecentLimit: _23!, channelsReadMediaPeriod: _24!, tmpSessions: _25, callReceiveTimeoutMs: _26!, callRingTimeoutMs: _27!, callConnectTimeoutMs: _28!, callPacketTimeoutMs: _29!, meUrlPrefix: _30!, autoupdateUrlPrefix: _31, gifSearchUsername: _32, venueSearchUsername: _33, imgSearchUsername: _34, staticMapsProvider: _35, captionLengthMax: _36!, messageLengthMax: _37!, webfileDcId: _38!, suggestedLangCode: _39, langPackVersion: _40, baseLangPackVersion: _41, reactionsDefault: _42, autologinToken: _43)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 && _c10 && _c11 && _c12 && _c13 && _c14 && _c15 && _c16 && _c17 && _c18 && _c19 && _c20 && _c21 && _c22 && _c23 && _c24 && _c25 && _c26 && _c27 && _c28 && _c29 && _c30 && _c31 && _c32 && _c33 && _c34 && _c35 && _c36 && _c37 && _c38 && _c39 && _c40 && _c41 && _c42 && _c43 {
|
||||
return Api.Config.config(flags: _1!, date: _2!, expires: _3!, testMode: _4!, thisDc: _5!, dcOptions: _6!, dcTxtDomainName: _7!, chatSizeMax: _8!, megagroupSizeMax: _9!, forwardedCountMax: _10!, onlineUpdatePeriodMs: _11!, offlineBlurTimeoutMs: _12!, offlineIdleTimeoutMs: _13!, onlineCloudTimeoutMs: _14!, notifyCloudDelayMs: _15!, notifyDefaultDelayMs: _16!, pushChatPeriodMs: _17!, pushChatLimit: _18!, editTimeLimit: _19!, revokeTimeLimit: _20!, revokePmTimeLimit: _21!, ratingEDecay: _22!, stickersRecentLimit: _23!, channelsReadMediaPeriod: _24!, tmpSessions: _25, callReceiveTimeoutMs: _26!, callRingTimeoutMs: _27!, callConnectTimeoutMs: _28!, callPacketTimeoutMs: _29!, meUrlPrefix: _30!, autoupdateUrlPrefix: _31, gifSearchUsername: _32, venueSearchUsername: _33, imgSearchUsername: _34, staticMapsProvider: _35, captionLengthMax: _36!, messageLengthMax: _37!, webfileDcId: _38!, suggestedLangCode: _39, langPackVersion: _40, baseLangPackVersion: _41, reactionsDefault: _42, autologinToken: _43)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -777,11 +772,12 @@ public extension Api {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.ConnectedBot.connectedBot(flags: _1!, botId: _2!, recipients: _3!, rights: _4!)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.ConnectedBot.connectedBot(flags: _1!, botId: _2!, recipients: _3!, rights: _4!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -840,15 +836,12 @@ public extension Api {
|
|||
let _c6 = (Int(_1!) & Int(1 << 0) == 0) || _6 != nil
|
||||
let _c7 = _7 != nil
|
||||
let _c8 = _8 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
return Api.ConnectedBotStarRef.connectedBotStarRef(flags: _1!, url: _2!, date: _3!, botId: _4!, commissionPermille: _5!, durationMonths: _6, participants: _7!, revenue: _8!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 {
|
||||
return Api.ConnectedBotStarRef.connectedBotStarRef(flags: _1!, url: _2!, date: _3!, botId: _4!, commissionPermille: _5!, durationMonths: _6, participants: _7!, revenue: _8!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -885,9 +878,12 @@ public extension Api {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.Contact.contact(userId: _1!, mutual: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.Contact.contact(userId: _1!, mutual: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -924,9 +920,12 @@ public extension Api {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.ContactBirthday.contactBirthday(contactId: _1!, birthday: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.ContactBirthday.contactBirthday(contactId: _1!, birthday: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -963,9 +962,12 @@ public extension Api {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.ContactStatus.contactStatus(userId: _1!, status: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.ContactStatus.contactStatus(userId: _1!, status: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -996,8 +998,12 @@ public extension Api {
|
|||
var _1: String?
|
||||
_1 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.DataJSON.dataJSON(data: _1!)
|
||||
if _c1 {
|
||||
return Api.DataJSON.dataJSON(data: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1044,12 +1050,12 @@ public extension Api {
|
|||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
let _c5 = (Int(_1!) & Int(1 << 10) == 0) || _5 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
return Api.DcOption.dcOption(flags: _1!, id: _2!, ipAddress: _3!, port: _4!, secret: _5)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 {
|
||||
return Api.DcOption.dcOption(flags: _1!, id: _2!, ipAddress: _3!, port: _4!, secret: _5)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1080,8 +1086,12 @@ public extension Api {
|
|||
var _1: Int32?
|
||||
_1 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.DefaultHistoryTTL.defaultHistoryTTL(period: _1!)
|
||||
if _c1 {
|
||||
return Api.DefaultHistoryTTL.defaultHistoryTTL(period: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1182,20 +1192,12 @@ public extension Api {
|
|||
let _c11 = (Int(_1!) & Int(1 << 1) == 0) || _11 != nil
|
||||
let _c12 = (Int(_1!) & Int(1 << 4) == 0) || _12 != nil
|
||||
let _c13 = (Int(_1!) & Int(1 << 5) == 0) || _13 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
if !_c9 { return nil }
|
||||
if !_c10 { return nil }
|
||||
if !_c11 { return nil }
|
||||
if !_c12 { return nil }
|
||||
if !_c13 { return nil }
|
||||
return Api.Dialog.dialog(flags: _1!, peer: _2!, topMessage: _3!, readInboxMaxId: _4!, readOutboxMaxId: _5!, unreadCount: _6!, unreadMentionsCount: _7!, unreadReactionsCount: _8!, notifySettings: _9!, pts: _10, draft: _11, folderId: _12, ttlPeriod: _13)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 && _c10 && _c11 && _c12 && _c13 {
|
||||
return Api.Dialog.dialog(flags: _1!, peer: _2!, topMessage: _3!, readInboxMaxId: _4!, readOutboxMaxId: _5!, unreadCount: _6!, unreadMentionsCount: _7!, unreadReactionsCount: _8!, notifySettings: _9!, pts: _10, draft: _11, folderId: _12, ttlPeriod: _13)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_dialogFolder(_ reader: BufferReader) -> Dialog? {
|
||||
var _1: Int32?
|
||||
|
|
@ -1226,15 +1228,12 @@ public extension Api {
|
|||
let _c6 = _6 != nil
|
||||
let _c7 = _7 != nil
|
||||
let _c8 = _8 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
return Api.Dialog.dialogFolder(flags: _1!, folder: _2!, peer: _3!, topMessage: _4!, unreadMutedPeersCount: _5!, unreadUnmutedPeersCount: _6!, unreadMutedMessagesCount: _7!, unreadUnmutedMessagesCount: _8!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 {
|
||||
return Api.Dialog.dialogFolder(flags: _1!, folder: _2!, peer: _3!, topMessage: _4!, unreadMutedPeersCount: _5!, unreadUnmutedPeersCount: _6!, unreadMutedMessagesCount: _7!, unreadUnmutedMessagesCount: _8!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1345,15 +1344,12 @@ public extension Api {
|
|||
let _c6 = _6 != nil
|
||||
let _c7 = _7 != nil
|
||||
let _c8 = _8 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
return Api.DialogFilter.dialogFilter(flags: _1!, id: _2!, title: _3!, emoticon: _4, color: _5, pinnedPeers: _6!, includePeers: _7!, excludePeers: _8!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 {
|
||||
return Api.DialogFilter.dialogFilter(flags: _1!, id: _2!, title: _3!, emoticon: _4, color: _5, pinnedPeers: _6!, includePeers: _7!, excludePeers: _8!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_dialogFilterChatlist(_ reader: BufferReader) -> DialogFilter? {
|
||||
var _1: Int32?
|
||||
|
|
@ -1383,14 +1379,12 @@ public extension Api {
|
|||
let _c5 = (Int(_1!) & Int(1 << 27) == 0) || _5 != nil
|
||||
let _c6 = _6 != nil
|
||||
let _c7 = _7 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
return Api.DialogFilter.dialogFilterChatlist(flags: _1!, id: _2!, title: _3!, emoticon: _4, color: _5, pinnedPeers: _6!, includePeers: _7!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 {
|
||||
return Api.DialogFilter.dialogFilterChatlist(flags: _1!, id: _2!, title: _3!, emoticon: _4, color: _5, pinnedPeers: _6!, includePeers: _7!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_dialogFilterDefault(_ reader: BufferReader) -> DialogFilter? {
|
||||
return Api.DialogFilter.dialogFilterDefault
|
||||
|
|
@ -1430,9 +1424,12 @@ public extension Api {
|
|||
_2 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.DialogFilterSuggested.dialogFilterSuggested(filter: _1!, description: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.DialogFilterSuggested.dialogFilterSuggested(filter: _1!, description: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1474,15 +1471,23 @@ public extension Api {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.Peer
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.DialogPeer.dialogPeer(peer: _1!)
|
||||
if _c1 {
|
||||
return Api.DialogPeer.dialogPeer(peer: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_dialogPeerFolder(_ reader: BufferReader) -> DialogPeer? {
|
||||
var _1: Int32?
|
||||
_1 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.DialogPeer.dialogPeerFolder(folderId: _1!)
|
||||
if _c1 {
|
||||
return Api.DialogPeer.dialogPeerFolder(folderId: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,8 +24,12 @@ public extension Api {
|
|||
var _1: Int32?
|
||||
_1 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.DisallowedGiftsSettings.disallowedGiftsSettings(flags: _1!)
|
||||
if _c1 {
|
||||
return Api.DisallowedGiftsSettings.disallowedGiftsSettings(flags: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -123,25 +127,23 @@ public extension Api {
|
|||
let _c9 = (Int(_1!) & Int(1 << 1) == 0) || _9 != nil
|
||||
let _c10 = _10 != nil
|
||||
let _c11 = _11 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
if !_c9 { return nil }
|
||||
if !_c10 { return nil }
|
||||
if !_c11 { return nil }
|
||||
return Api.Document.document(flags: _1!, id: _2!, accessHash: _3!, fileReference: _4!, date: _5!, mimeType: _6!, size: _7!, thumbs: _8, videoThumbs: _9, dcId: _10!, attributes: _11!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 && _c10 && _c11 {
|
||||
return Api.Document.document(flags: _1!, id: _2!, accessHash: _3!, fileReference: _4!, date: _5!, mimeType: _6!, size: _7!, thumbs: _8, videoThumbs: _9, dcId: _10!, attributes: _11!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_documentEmpty(_ reader: BufferReader) -> Document? {
|
||||
var _1: Int64?
|
||||
_1 = reader.readInt64()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.Document.documentEmpty(id: _1!)
|
||||
if _c1 {
|
||||
return Api.Document.documentEmpty(id: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -266,12 +268,12 @@ public extension Api {
|
|||
let _c3 = (Int(_1!) & Int(1 << 0) == 0) || _3 != nil
|
||||
let _c4 = (Int(_1!) & Int(1 << 1) == 0) || _4 != nil
|
||||
let _c5 = (Int(_1!) & Int(1 << 2) == 0) || _5 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
return Api.DocumentAttribute.documentAttributeAudio(flags: _1!, duration: _2!, title: _3, performer: _4, waveform: _5)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 {
|
||||
return Api.DocumentAttribute.documentAttributeAudio(flags: _1!, duration: _2!, title: _3, performer: _4, waveform: _5)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_documentAttributeCustomEmoji(_ reader: BufferReader) -> DocumentAttribute? {
|
||||
var _1: Int32?
|
||||
|
|
@ -285,17 +287,23 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.DocumentAttribute.documentAttributeCustomEmoji(flags: _1!, alt: _2!, stickerset: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.DocumentAttribute.documentAttributeCustomEmoji(flags: _1!, alt: _2!, stickerset: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_documentAttributeFilename(_ reader: BufferReader) -> DocumentAttribute? {
|
||||
var _1: String?
|
||||
_1 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.DocumentAttribute.documentAttributeFilename(fileName: _1!)
|
||||
if _c1 {
|
||||
return Api.DocumentAttribute.documentAttributeFilename(fileName: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_documentAttributeHasStickers(_ reader: BufferReader) -> DocumentAttribute? {
|
||||
return Api.DocumentAttribute.documentAttributeHasStickers
|
||||
|
|
@ -307,9 +315,12 @@ public extension Api {
|
|||
_2 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.DocumentAttribute.documentAttributeImageSize(w: _1!, h: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.DocumentAttribute.documentAttributeImageSize(w: _1!, h: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_documentAttributeSticker(_ reader: BufferReader) -> DocumentAttribute? {
|
||||
var _1: Int32?
|
||||
|
|
@ -328,11 +339,12 @@ public extension Api {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = (Int(_1!) & Int(1 << 0) == 0) || _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.DocumentAttribute.documentAttributeSticker(flags: _1!, alt: _2!, stickerset: _3!, maskCoords: _4)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.DocumentAttribute.documentAttributeSticker(flags: _1!, alt: _2!, stickerset: _3!, maskCoords: _4)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_documentAttributeVideo(_ reader: BufferReader) -> DocumentAttribute? {
|
||||
var _1: Int32?
|
||||
|
|
@ -356,14 +368,12 @@ public extension Api {
|
|||
let _c5 = (Int(_1!) & Int(1 << 2) == 0) || _5 != nil
|
||||
let _c6 = (Int(_1!) & Int(1 << 4) == 0) || _6 != nil
|
||||
let _c7 = (Int(_1!) & Int(1 << 5) == 0) || _7 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
return Api.DocumentAttribute.documentAttributeVideo(flags: _1!, duration: _2!, w: _3!, h: _4!, preloadPrefixSize: _5, videoStartTs: _6, videoCodec: _7)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 {
|
||||
return Api.DocumentAttribute.documentAttributeVideo(flags: _1!, duration: _2!, w: _3!, h: _4!, preloadPrefixSize: _5, videoStartTs: _6, videoCodec: _7)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -444,15 +454,12 @@ public extension Api {
|
|||
let _c6 = _6 != nil
|
||||
let _c7 = (Int(_1!) & Int(1 << 7) == 0) || _7 != nil
|
||||
let _c8 = (Int(_1!) & Int(1 << 8) == 0) || _8 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
return Api.DraftMessage.draftMessage(flags: _1!, replyTo: _2, message: _3!, entities: _4, media: _5, date: _6!, effect: _7, suggestedPost: _8)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 {
|
||||
return Api.DraftMessage.draftMessage(flags: _1!, replyTo: _2, message: _3!, entities: _4, media: _5, date: _6!, effect: _7, suggestedPost: _8)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_draftMessageEmpty(_ reader: BufferReader) -> DraftMessage? {
|
||||
var _1: Int32?
|
||||
|
|
@ -461,9 +468,12 @@ public extension Api {
|
|||
if Int(_1!) & Int(1 << 0) != 0 {_2 = reader.readInt32() }
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = (Int(_1!) & Int(1 << 0) == 0) || _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.DraftMessage.draftMessageEmpty(flags: _1!, date: _2)
|
||||
if _c1 && _c2 {
|
||||
return Api.DraftMessage.draftMessageEmpty(flags: _1!, date: _2)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -512,22 +522,34 @@ public extension Api {
|
|||
var _1: String?
|
||||
_1 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.EmailVerification.emailVerificationApple(token: _1!)
|
||||
if _c1 {
|
||||
return Api.EmailVerification.emailVerificationApple(token: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_emailVerificationCode(_ reader: BufferReader) -> EmailVerification? {
|
||||
var _1: String?
|
||||
_1 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.EmailVerification.emailVerificationCode(code: _1!)
|
||||
if _c1 {
|
||||
return Api.EmailVerification.emailVerificationCode(code: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_emailVerificationGoogle(_ reader: BufferReader) -> EmailVerification? {
|
||||
var _1: String?
|
||||
_1 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.EmailVerification.emailVerificationGoogle(token: _1!)
|
||||
if _c1 {
|
||||
return Api.EmailVerification.emailVerificationGoogle(token: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -583,9 +605,12 @@ public extension Api {
|
|||
_2 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.EmailVerifyPurpose.emailVerifyPurposeLoginSetup(phoneNumber: _1!, phoneCodeHash: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.EmailVerifyPurpose.emailVerifyPurposeLoginSetup(phoneNumber: _1!, phoneCodeHash: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_emailVerifyPurposePassport(_ reader: BufferReader) -> EmailVerifyPurpose? {
|
||||
return Api.EmailVerifyPurpose.emailVerifyPurposePassport
|
||||
|
|
@ -658,10 +683,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.EmojiGroup.emojiGroup(title: _1!, iconEmojiId: _2!, emoticons: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.EmojiGroup.emojiGroup(title: _1!, iconEmojiId: _2!, emoticons: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_emojiGroupGreeting(_ reader: BufferReader) -> EmojiGroup? {
|
||||
var _1: String?
|
||||
|
|
@ -675,10 +702,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.EmojiGroup.emojiGroupGreeting(title: _1!, iconEmojiId: _2!, emoticons: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.EmojiGroup.emojiGroupGreeting(title: _1!, iconEmojiId: _2!, emoticons: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_emojiGroupPremium(_ reader: BufferReader) -> EmojiGroup? {
|
||||
var _1: String?
|
||||
|
|
@ -687,9 +716,12 @@ public extension Api {
|
|||
_2 = reader.readInt64()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.EmojiGroup.emojiGroupPremium(title: _1!, iconEmojiId: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.EmojiGroup.emojiGroupPremium(title: _1!, iconEmojiId: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -744,9 +776,12 @@ public extension Api {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.EmojiKeyword.emojiKeyword(keyword: _1!, emoticons: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.EmojiKeyword.emojiKeyword(keyword: _1!, emoticons: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_emojiKeywordDeleted(_ reader: BufferReader) -> EmojiKeyword? {
|
||||
var _1: String?
|
||||
|
|
@ -757,9 +792,12 @@ public extension Api {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.EmojiKeyword.emojiKeywordDeleted(keyword: _1!, emoticons: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.EmojiKeyword.emojiKeywordDeleted(keyword: _1!, emoticons: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -808,11 +846,12 @@ public extension Api {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.EmojiKeywordsDifference.emojiKeywordsDifference(langCode: _1!, fromVersion: _2!, version: _3!, keywords: _4!)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.EmojiKeywordsDifference.emojiKeywordsDifference(langCode: _1!, fromVersion: _2!, version: _3!, keywords: _4!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -843,8 +882,12 @@ public extension Api {
|
|||
var _1: String?
|
||||
_1 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.EmojiLanguage.emojiLanguage(langCode: _1!)
|
||||
if _c1 {
|
||||
return Api.EmojiLanguage.emojiLanguage(langCode: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -894,9 +937,12 @@ public extension Api {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.EmojiList.emojiList(hash: _1!, documentId: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.EmojiList.emojiList(hash: _1!, documentId: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_emojiListNotModified(_ reader: BufferReader) -> EmojiList? {
|
||||
return Api.EmojiList.emojiListNotModified
|
||||
|
|
@ -977,10 +1023,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = (Int(_1!) & Int(1 << 0) == 0) || _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.EmojiStatus.emojiStatus(flags: _1!, documentId: _2!, until: _3)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.EmojiStatus.emojiStatus(flags: _1!, documentId: _2!, until: _3)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_emojiStatusCollectible(_ reader: BufferReader) -> EmojiStatus? {
|
||||
var _1: Int32?
|
||||
|
|
@ -1016,18 +1064,12 @@ public extension Api {
|
|||
let _c9 = _9 != nil
|
||||
let _c10 = _10 != nil
|
||||
let _c11 = (Int(_1!) & Int(1 << 0) == 0) || _11 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
if !_c9 { return nil }
|
||||
if !_c10 { return nil }
|
||||
if !_c11 { return nil }
|
||||
return Api.EmojiStatus.emojiStatusCollectible(flags: _1!, collectibleId: _2!, documentId: _3!, title: _4!, slug: _5!, patternDocumentId: _6!, centerColor: _7!, edgeColor: _8!, patternColor: _9!, textColor: _10!, until: _11)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 && _c10 && _c11 {
|
||||
return Api.EmojiStatus.emojiStatusCollectible(flags: _1!, collectibleId: _2!, documentId: _3!, title: _4!, slug: _5!, patternDocumentId: _6!, centerColor: _7!, edgeColor: _8!, patternColor: _9!, textColor: _10!, until: _11)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_emojiStatusEmpty(_ reader: BufferReader) -> EmojiStatus? {
|
||||
return Api.EmojiStatus.emojiStatusEmpty
|
||||
|
|
@ -1042,10 +1084,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = (Int(_1!) & Int(1 << 0) == 0) || _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.EmojiStatus.inputEmojiStatusCollectible(flags: _1!, collectibleId: _2!, until: _3)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.EmojiStatus.inputEmojiStatusCollectible(flags: _1!, collectibleId: _2!, until: _3)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,8 +24,12 @@ public extension Api {
|
|||
var _1: String?
|
||||
_1 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.EmojiURL.emojiURL(url: _1!)
|
||||
if _c1 {
|
||||
return Api.EmojiURL.emojiURL(url: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -128,14 +132,12 @@ public extension Api {
|
|||
let _c5 = _5 != nil
|
||||
let _c6 = _6 != nil
|
||||
let _c7 = _7 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
return Api.EncryptedChat.encryptedChat(id: _1!, accessHash: _2!, date: _3!, adminId: _4!, participantId: _5!, gAOrB: _6!, keyFingerprint: _7!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 {
|
||||
return Api.EncryptedChat.encryptedChat(id: _1!, accessHash: _2!, date: _3!, adminId: _4!, participantId: _5!, gAOrB: _6!, keyFingerprint: _7!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_encryptedChatDiscarded(_ reader: BufferReader) -> EncryptedChat? {
|
||||
var _1: Int32?
|
||||
|
|
@ -144,16 +146,23 @@ public extension Api {
|
|||
_2 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.EncryptedChat.encryptedChatDiscarded(flags: _1!, id: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.EncryptedChat.encryptedChatDiscarded(flags: _1!, id: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_encryptedChatEmpty(_ reader: BufferReader) -> EncryptedChat? {
|
||||
var _1: Int32?
|
||||
_1 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.EncryptedChat.encryptedChatEmpty(id: _1!)
|
||||
if _c1 {
|
||||
return Api.EncryptedChat.encryptedChatEmpty(id: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_encryptedChatRequested(_ reader: BufferReader) -> EncryptedChat? {
|
||||
var _1: Int32?
|
||||
|
|
@ -180,15 +189,12 @@ public extension Api {
|
|||
let _c6 = _6 != nil
|
||||
let _c7 = _7 != nil
|
||||
let _c8 = _8 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
return Api.EncryptedChat.encryptedChatRequested(flags: _1!, folderId: _2, id: _3!, accessHash: _4!, date: _5!, adminId: _6!, participantId: _7!, gA: _8!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 {
|
||||
return Api.EncryptedChat.encryptedChatRequested(flags: _1!, folderId: _2, id: _3!, accessHash: _4!, date: _5!, adminId: _6!, participantId: _7!, gA: _8!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_encryptedChatWaiting(_ reader: BufferReader) -> EncryptedChat? {
|
||||
var _1: Int32?
|
||||
|
|
@ -206,12 +212,12 @@ public extension Api {
|
|||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
let _c5 = _5 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
return Api.EncryptedChat.encryptedChatWaiting(id: _1!, accessHash: _2!, date: _3!, adminId: _4!, participantId: _5!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 {
|
||||
return Api.EncryptedChat.encryptedChatWaiting(id: _1!, accessHash: _2!, date: _3!, adminId: _4!, participantId: _5!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -267,12 +273,12 @@ public extension Api {
|
|||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
let _c5 = _5 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
return Api.EncryptedFile.encryptedFile(id: _1!, accessHash: _2!, size: _3!, dcId: _4!, keyFingerprint: _5!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 {
|
||||
return Api.EncryptedFile.encryptedFile(id: _1!, accessHash: _2!, size: _3!, dcId: _4!, keyFingerprint: _5!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_encryptedFileEmpty(_ reader: BufferReader) -> EncryptedFile? {
|
||||
return Api.EncryptedFile.encryptedFileEmpty
|
||||
|
|
@ -336,12 +342,12 @@ public extension Api {
|
|||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
let _c5 = _5 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
return Api.EncryptedMessage.encryptedMessage(randomId: _1!, chatId: _2!, date: _3!, bytes: _4!, file: _5!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 {
|
||||
return Api.EncryptedMessage.encryptedMessage(randomId: _1!, chatId: _2!, date: _3!, bytes: _4!, file: _5!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_encryptedMessageService(_ reader: BufferReader) -> EncryptedMessage? {
|
||||
var _1: Int64?
|
||||
|
|
@ -356,11 +362,12 @@ public extension Api {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.EncryptedMessage.encryptedMessageService(randomId: _1!, chatId: _2!, date: _3!, bytes: _4!)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.EncryptedMessage.encryptedMessageService(randomId: _1!, chatId: _2!, date: _3!, bytes: _4!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -446,19 +453,12 @@ public extension Api {
|
|||
let _c10 = (Int(_1!) & Int(1 << 10) == 0) || _10 != nil
|
||||
let _c11 = (Int(_1!) & Int(1 << 8) == 0) || _11 != nil
|
||||
let _c12 = (Int(_1!) & Int(1 << 9) == 0) || _12 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
if !_c9 { return nil }
|
||||
if !_c10 { return nil }
|
||||
if !_c11 { return nil }
|
||||
if !_c12 { return nil }
|
||||
return Api.ExportedChatInvite.chatInviteExported(flags: _1!, link: _2!, adminId: _3!, date: _4!, startDate: _5, expireDate: _6, usageLimit: _7, usage: _8, requested: _9, subscriptionExpired: _10, title: _11, subscriptionPricing: _12)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 && _c10 && _c11 && _c12 {
|
||||
return Api.ExportedChatInvite.chatInviteExported(flags: _1!, link: _2!, adminId: _3!, date: _4!, startDate: _5, expireDate: _6, usageLimit: _7, usage: _8, requested: _9, subscriptionExpired: _10, title: _11, subscriptionPricing: _12)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_chatInvitePublicJoinRequests(_ reader: BufferReader) -> ExportedChatInvite? {
|
||||
return Api.ExportedChatInvite.chatInvitePublicJoinRequests
|
||||
|
|
@ -510,11 +510,12 @@ public extension Api {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.ExportedChatlistInvite.exportedChatlistInvite(flags: _1!, title: _2!, url: _3!, peers: _4!)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.ExportedChatlistInvite.exportedChatlistInvite(flags: _1!, title: _2!, url: _3!, peers: _4!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -549,9 +550,12 @@ public extension Api {
|
|||
_2 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.ExportedContactToken.exportedContactToken(url: _1!, expires: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.ExportedContactToken.exportedContactToken(url: _1!, expires: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -586,9 +590,12 @@ public extension Api {
|
|||
_2 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.ExportedMessageLink.exportedMessageLink(link: _1!, html: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.ExportedMessageLink.exportedMessageLink(link: _1!, html: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -619,8 +626,12 @@ public extension Api {
|
|||
var _1: String?
|
||||
_1 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.ExportedStoryLink.exportedStoryLink(link: _1!)
|
||||
if _c1 {
|
||||
return Api.ExportedStoryLink.exportedStoryLink(link: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -665,11 +676,12 @@ public extension Api {
|
|||
let _c2 = (Int(_1!) & Int(1 << 1) == 0) || _2 != nil
|
||||
let _c3 = (Int(_1!) & Int(1 << 1) == 0) || _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.FactCheck.factCheck(flags: _1!, country: _2, text: _3, hash: _4!)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.FactCheck.factCheck(flags: _1!, country: _2, text: _3, hash: _4!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -708,10 +720,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.FileHash.fileHash(offset: _1!, limit: _2!, hash: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.FileHash.fileHash(offset: _1!, limit: _2!, hash: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -756,11 +770,12 @@ public extension Api {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = (Int(_1!) & Int(1 << 3) == 0) || _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.Folder.folder(flags: _1!, id: _2!, title: _3!, photo: _4)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.Folder.folder(flags: _1!, id: _2!, title: _3!, photo: _4)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -797,9 +812,12 @@ public extension Api {
|
|||
_2 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.FolderPeer.folderPeer(peer: _1!, folderId: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.FolderPeer.folderPeer(peer: _1!, folderId: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -907,30 +925,23 @@ public extension Api {
|
|||
let _c14 = _14 != nil
|
||||
let _c15 = _15 != nil
|
||||
let _c16 = (Int(_1!) & Int(1 << 4) == 0) || _16 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
if !_c9 { return nil }
|
||||
if !_c10 { return nil }
|
||||
if !_c11 { return nil }
|
||||
if !_c12 { return nil }
|
||||
if !_c13 { return nil }
|
||||
if !_c14 { return nil }
|
||||
if !_c15 { return nil }
|
||||
if !_c16 { return nil }
|
||||
return Api.ForumTopic.forumTopic(flags: _1!, id: _2!, date: _3!, peer: _4!, title: _5!, iconColor: _6!, iconEmojiId: _7, topMessage: _8!, readInboxMaxId: _9!, readOutboxMaxId: _10!, unreadCount: _11!, unreadMentionsCount: _12!, unreadReactionsCount: _13!, fromId: _14!, notifySettings: _15!, draft: _16)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 && _c10 && _c11 && _c12 && _c13 && _c14 && _c15 && _c16 {
|
||||
return Api.ForumTopic.forumTopic(flags: _1!, id: _2!, date: _3!, peer: _4!, title: _5!, iconColor: _6!, iconEmojiId: _7, topMessage: _8!, readInboxMaxId: _9!, readOutboxMaxId: _10!, unreadCount: _11!, unreadMentionsCount: _12!, unreadReactionsCount: _13!, fromId: _14!, notifySettings: _15!, draft: _16)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_forumTopicDeleted(_ reader: BufferReader) -> ForumTopic? {
|
||||
var _1: Int32?
|
||||
_1 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.ForumTopic.forumTopicDeleted(id: _1!)
|
||||
if _c1 {
|
||||
return Api.ForumTopic.forumTopicDeleted(id: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -969,9 +980,12 @@ public extension Api {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.FoundStory.foundStory(peer: _1!, story: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.FoundStory.foundStory(peer: _1!, story: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1034,15 +1048,12 @@ public extension Api {
|
|||
let _c6 = _6 != nil
|
||||
let _c7 = _7 != nil
|
||||
let _c8 = (Int(_1!) & Int(1 << 0) == 0) || _8 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
return Api.Game.game(flags: _1!, id: _2!, accessHash: _3!, shortName: _4!, title: _5!, description: _6!, photo: _7!, document: _8)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 {
|
||||
return Api.Game.game(flags: _1!, id: _2!, accessHash: _3!, shortName: _4!, title: _5!, description: _6!, photo: _7!, document: _8)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1098,12 +1109,12 @@ public extension Api {
|
|||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
let _c5 = (Int(_1!) & Int(1 << 0) == 0) || _5 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
return Api.GeoPoint.geoPoint(flags: _1!, long: _2!, lat: _3!, accessHash: _4!, accuracyRadius: _5)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 {
|
||||
return Api.GeoPoint.geoPoint(flags: _1!, long: _2!, lat: _3!, accessHash: _4!, accuracyRadius: _5)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_geoPointEmpty(_ reader: BufferReader) -> GeoPoint? {
|
||||
return Api.GeoPoint.geoPointEmpty
|
||||
|
|
@ -1153,12 +1164,12 @@ public extension Api {
|
|||
let _c3 = (Int(_1!) & Int(1 << 0) == 0) || _3 != nil
|
||||
let _c4 = (Int(_1!) & Int(1 << 1) == 0) || _4 != nil
|
||||
let _c5 = (Int(_1!) & Int(1 << 2) == 0) || _5 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
return Api.GeoPointAddress.geoPointAddress(flags: _1!, countryIso2: _2!, state: _3, city: _4, street: _5)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 {
|
||||
return Api.GeoPointAddress.geoPointAddress(flags: _1!, countryIso2: _2!, state: _3, city: _4, street: _5)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1199,10 +1210,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = (Int(_1!) & Int(1 << 5) == 0) || _2 != nil
|
||||
let _c3 = (Int(_1!) & Int(1 << 6) == 0) || _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.GlobalPrivacySettings.globalPrivacySettings(flags: _1!, noncontactPeersPaidStars: _2, disallowedGifts: _3)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.GlobalPrivacySettings.globalPrivacySettings(flags: _1!, noncontactPeersPaidStars: _2, disallowedGifts: _3)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1298,21 +1311,12 @@ public extension Api {
|
|||
let _c12 = (Int(_1!) & Int(1 << 16) == 0) || _12 != nil
|
||||
let _c13 = (Int(_1!) & Int(1 << 20) == 0) || _13 != nil
|
||||
let _c14 = (Int(_1!) & Int(1 << 21) == 0) || _14 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
if !_c9 { return nil }
|
||||
if !_c10 { return nil }
|
||||
if !_c11 { return nil }
|
||||
if !_c12 { return nil }
|
||||
if !_c13 { return nil }
|
||||
if !_c14 { return nil }
|
||||
return Api.GroupCall.groupCall(flags: _1!, id: _2!, accessHash: _3!, participantsCount: _4!, title: _5, streamDcId: _6, recordStartDate: _7, scheduleDate: _8, unmutedVideoCount: _9, unmutedVideoLimit: _10!, version: _11!, inviteLink: _12, sendPaidMessagesStars: _13, defaultSendAs: _14)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 && _c10 && _c11 && _c12 && _c13 && _c14 {
|
||||
return Api.GroupCall.groupCall(flags: _1!, id: _2!, accessHash: _3!, participantsCount: _4!, title: _5, streamDcId: _6, recordStartDate: _7, scheduleDate: _8, unmutedVideoCount: _9, unmutedVideoLimit: _10!, version: _11!, inviteLink: _12, sendPaidMessagesStars: _13, defaultSendAs: _14)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_groupCallDiscarded(_ reader: BufferReader) -> GroupCall? {
|
||||
var _1: Int64?
|
||||
|
|
@ -1324,10 +1328,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.GroupCall.groupCallDiscarded(id: _1!, accessHash: _2!, duration: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.GroupCall.groupCallDiscarded(id: _1!, accessHash: _2!, duration: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1368,10 +1374,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = (Int(_1!) & Int(1 << 3) == 0) || _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.GroupCallDonor.groupCallDonor(flags: _1!, peerId: _2, stars: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.GroupCallDonor.groupCallDonor(flags: _1!, peerId: _2, stars: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1426,13 +1434,12 @@ public extension Api {
|
|||
let _c4 = _4 != nil
|
||||
let _c5 = _5 != nil
|
||||
let _c6 = (Int(_1!) & Int(1 << 0) == 0) || _6 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
return Api.GroupCallMessage.groupCallMessage(flags: _1!, id: _2!, fromId: _3!, date: _4!, message: _5!, paidMessageStars: _6)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 {
|
||||
return Api.GroupCallMessage.groupCallMessage(flags: _1!, id: _2!, fromId: _3!, date: _4!, message: _5!, paidMessageStars: _6)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -70,18 +70,12 @@ public extension Api {
|
|||
let _c9 = (Int(_1!) & Int(1 << 6) == 0) || _9 != nil
|
||||
let _c10 = (Int(_1!) & Int(1 << 14) == 0) || _10 != nil
|
||||
let _c11 = (Int(_1!) & Int(1 << 16) == 0) || _11 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
if !_c9 { return nil }
|
||||
if !_c10 { return nil }
|
||||
if !_c11 { return nil }
|
||||
return Api.GroupCallParticipant.groupCallParticipant(flags: _1!, peer: _2!, date: _3!, activeDate: _4, source: _5!, volume: _6, about: _7, raiseHandRating: _8, video: _9, presentation: _10, paidStarsTotal: _11)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 && _c10 && _c11 {
|
||||
return Api.GroupCallParticipant.groupCallParticipant(flags: _1!, peer: _2!, date: _3!, activeDate: _4, source: _5!, volume: _6, about: _7, raiseHandRating: _8, video: _9, presentation: _10, paidStarsTotal: _11)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -130,11 +124,12 @@ public extension Api {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = (Int(_1!) & Int(1 << 1) == 0) || _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.GroupCallParticipantVideo.groupCallParticipantVideo(flags: _1!, endpoint: _2!, sourceGroups: _3!, audioSource: _4)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.GroupCallParticipantVideo.groupCallParticipantVideo(flags: _1!, endpoint: _2!, sourceGroups: _3!, audioSource: _4)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -175,9 +170,12 @@ public extension Api {
|
|||
}
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.GroupCallParticipantVideoSourceGroup.groupCallParticipantVideoSourceGroup(semantics: _1!, sources: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.GroupCallParticipantVideoSourceGroup.groupCallParticipantVideoSourceGroup(semantics: _1!, sources: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -216,10 +214,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.GroupCallStreamChannel.groupCallStreamChannel(channel: _1!, scale: _2!, lastTimestampMs: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.GroupCallStreamChannel.groupCallStreamChannel(channel: _1!, scale: _2!, lastTimestampMs: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -258,10 +258,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.HighScore.highScore(pos: _1!, userId: _2!, score: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.HighScore.highScore(pos: _1!, userId: _2!, score: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -296,9 +298,12 @@ public extension Api {
|
|||
_2 = reader.readInt64()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.ImportedContact.importedContact(userId: _1!, clientId: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.ImportedContact.importedContact(userId: _1!, clientId: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -333,9 +338,12 @@ public extension Api {
|
|||
_2 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.InlineBotSwitchPM.inlineBotSwitchPM(text: _1!, startParam: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.InlineBotSwitchPM.inlineBotSwitchPM(text: _1!, startParam: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -370,9 +378,12 @@ public extension Api {
|
|||
_2 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.InlineBotWebView.inlineBotWebView(text: _1!, url: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.InlineBotWebView.inlineBotWebView(text: _1!, url: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -505,11 +516,12 @@ public extension Api {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.InputAppEvent.inputAppEvent(time: _1!, type: _2!, peer: _3!, data: _4!)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.InputAppEvent.inputAppEvent(time: _1!, type: _2!, peer: _3!, data: _4!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -554,9 +566,12 @@ public extension Api {
|
|||
_2 = reader.readInt64()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.InputBotApp.inputBotAppID(id: _1!, accessHash: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.InputBotApp.inputBotAppID(id: _1!, accessHash: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputBotAppShortName(_ reader: BufferReader) -> InputBotApp? {
|
||||
var _1: Api.InputUser?
|
||||
|
|
@ -567,9 +582,12 @@ public extension Api {
|
|||
_2 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.InputBotApp.inputBotAppShortName(botId: _1!, shortName: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.InputBotApp.inputBotAppShortName(botId: _1!, shortName: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -716,9 +734,12 @@ public extension Api {
|
|||
} }
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = (Int(_1!) & Int(1 << 2) == 0) || _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.InputBotInlineMessage.inputBotInlineMessageGame(flags: _1!, replyMarkup: _2)
|
||||
if _c1 && _c2 {
|
||||
return Api.InputBotInlineMessage.inputBotInlineMessageGame(flags: _1!, replyMarkup: _2)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputBotInlineMessageMediaAuto(_ reader: BufferReader) -> InputBotInlineMessage? {
|
||||
var _1: Int32?
|
||||
|
|
@ -737,11 +758,12 @@ public extension Api {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = (Int(_1!) & Int(1 << 1) == 0) || _3 != nil
|
||||
let _c4 = (Int(_1!) & Int(1 << 2) == 0) || _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.InputBotInlineMessage.inputBotInlineMessageMediaAuto(flags: _1!, message: _2!, entities: _3, replyMarkup: _4)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.InputBotInlineMessage.inputBotInlineMessageMediaAuto(flags: _1!, message: _2!, entities: _3, replyMarkup: _4)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputBotInlineMessageMediaContact(_ reader: BufferReader) -> InputBotInlineMessage? {
|
||||
var _1: Int32?
|
||||
|
|
@ -764,13 +786,12 @@ public extension Api {
|
|||
let _c4 = _4 != nil
|
||||
let _c5 = _5 != nil
|
||||
let _c6 = (Int(_1!) & Int(1 << 2) == 0) || _6 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
return Api.InputBotInlineMessage.inputBotInlineMessageMediaContact(flags: _1!, phoneNumber: _2!, firstName: _3!, lastName: _4!, vcard: _5!, replyMarkup: _6)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 {
|
||||
return Api.InputBotInlineMessage.inputBotInlineMessageMediaContact(flags: _1!, phoneNumber: _2!, firstName: _3!, lastName: _4!, vcard: _5!, replyMarkup: _6)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputBotInlineMessageMediaGeo(_ reader: BufferReader) -> InputBotInlineMessage? {
|
||||
var _1: Int32?
|
||||
|
|
@ -795,13 +816,12 @@ public extension Api {
|
|||
let _c4 = (Int(_1!) & Int(1 << 1) == 0) || _4 != nil
|
||||
let _c5 = (Int(_1!) & Int(1 << 3) == 0) || _5 != nil
|
||||
let _c6 = (Int(_1!) & Int(1 << 2) == 0) || _6 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
return Api.InputBotInlineMessage.inputBotInlineMessageMediaGeo(flags: _1!, geoPoint: _2!, heading: _3, period: _4, proximityNotificationRadius: _5, replyMarkup: _6)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 {
|
||||
return Api.InputBotInlineMessage.inputBotInlineMessageMediaGeo(flags: _1!, geoPoint: _2!, heading: _3, period: _4, proximityNotificationRadius: _5, replyMarkup: _6)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputBotInlineMessageMediaInvoice(_ reader: BufferReader) -> InputBotInlineMessage? {
|
||||
var _1: Int32?
|
||||
|
|
@ -839,16 +859,12 @@ public extension Api {
|
|||
let _c7 = _7 != nil
|
||||
let _c8 = _8 != nil
|
||||
let _c9 = (Int(_1!) & Int(1 << 2) == 0) || _9 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
if !_c9 { return nil }
|
||||
return Api.InputBotInlineMessage.inputBotInlineMessageMediaInvoice(flags: _1!, title: _2!, description: _3!, photo: _4, invoice: _5!, payload: _6!, provider: _7!, providerData: _8!, replyMarkup: _9)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 {
|
||||
return Api.InputBotInlineMessage.inputBotInlineMessageMediaInvoice(flags: _1!, title: _2!, description: _3!, photo: _4, invoice: _5!, payload: _6!, provider: _7!, providerData: _8!, replyMarkup: _9)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputBotInlineMessageMediaVenue(_ reader: BufferReader) -> InputBotInlineMessage? {
|
||||
var _1: Int32?
|
||||
|
|
@ -879,15 +895,12 @@ public extension Api {
|
|||
let _c6 = _6 != nil
|
||||
let _c7 = _7 != nil
|
||||
let _c8 = (Int(_1!) & Int(1 << 2) == 0) || _8 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
return Api.InputBotInlineMessage.inputBotInlineMessageMediaVenue(flags: _1!, geoPoint: _2!, title: _3!, address: _4!, provider: _5!, venueId: _6!, venueType: _7!, replyMarkup: _8)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 {
|
||||
return Api.InputBotInlineMessage.inputBotInlineMessageMediaVenue(flags: _1!, geoPoint: _2!, title: _3!, address: _4!, provider: _5!, venueId: _6!, venueType: _7!, replyMarkup: _8)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputBotInlineMessageMediaWebPage(_ reader: BufferReader) -> InputBotInlineMessage? {
|
||||
var _1: Int32?
|
||||
|
|
@ -909,12 +922,12 @@ public extension Api {
|
|||
let _c3 = (Int(_1!) & Int(1 << 1) == 0) || _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
let _c5 = (Int(_1!) & Int(1 << 2) == 0) || _5 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
return Api.InputBotInlineMessage.inputBotInlineMessageMediaWebPage(flags: _1!, message: _2!, entities: _3, url: _4!, replyMarkup: _5)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 {
|
||||
return Api.InputBotInlineMessage.inputBotInlineMessageMediaWebPage(flags: _1!, message: _2!, entities: _3, url: _4!, replyMarkup: _5)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputBotInlineMessageText(_ reader: BufferReader) -> InputBotInlineMessage? {
|
||||
var _1: Int32?
|
||||
|
|
@ -933,11 +946,12 @@ public extension Api {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = (Int(_1!) & Int(1 << 1) == 0) || _3 != nil
|
||||
let _c4 = (Int(_1!) & Int(1 << 2) == 0) || _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.InputBotInlineMessage.inputBotInlineMessageText(flags: _1!, message: _2!, entities: _3, replyMarkup: _4)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.InputBotInlineMessage.inputBotInlineMessageText(flags: _1!, message: _2!, entities: _3, replyMarkup: _4)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -988,10 +1002,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.InputBotInlineMessageID.inputBotInlineMessageID(dcId: _1!, id: _2!, accessHash: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.InputBotInlineMessageID.inputBotInlineMessageID(dcId: _1!, id: _2!, accessHash: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputBotInlineMessageID64(_ reader: BufferReader) -> InputBotInlineMessageID? {
|
||||
var _1: Int32?
|
||||
|
|
@ -1006,11 +1022,12 @@ public extension Api {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.InputBotInlineMessageID.inputBotInlineMessageID64(dcId: _1!, ownerId: _2!, id: _3!, accessHash: _4!)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.InputBotInlineMessageID.inputBotInlineMessageID64(dcId: _1!, ownerId: _2!, id: _3!, accessHash: _4!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1117,16 +1134,12 @@ public extension Api {
|
|||
let _c7 = (Int(_1!) & Int(1 << 4) == 0) || _7 != nil
|
||||
let _c8 = (Int(_1!) & Int(1 << 5) == 0) || _8 != nil
|
||||
let _c9 = _9 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
if !_c8 { return nil }
|
||||
if !_c9 { return nil }
|
||||
return Api.InputBotInlineResult.inputBotInlineResult(flags: _1!, id: _2!, type: _3!, title: _4, description: _5, url: _6, thumb: _7, content: _8, sendMessage: _9!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 {
|
||||
return Api.InputBotInlineResult.inputBotInlineResult(flags: _1!, id: _2!, type: _3!, title: _4, description: _5, url: _6, thumb: _7, content: _8, sendMessage: _9!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputBotInlineResultDocument(_ reader: BufferReader) -> InputBotInlineResult? {
|
||||
var _1: Int32?
|
||||
|
|
@ -1154,14 +1167,12 @@ public extension Api {
|
|||
let _c5 = (Int(_1!) & Int(1 << 2) == 0) || _5 != nil
|
||||
let _c6 = _6 != nil
|
||||
let _c7 = _7 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
if !_c7 { return nil }
|
||||
return Api.InputBotInlineResult.inputBotInlineResultDocument(flags: _1!, id: _2!, type: _3!, title: _4, description: _5, document: _6!, sendMessage: _7!)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 {
|
||||
return Api.InputBotInlineResult.inputBotInlineResultDocument(flags: _1!, id: _2!, type: _3!, title: _4, description: _5, document: _6!, sendMessage: _7!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputBotInlineResultGame(_ reader: BufferReader) -> InputBotInlineResult? {
|
||||
var _1: String?
|
||||
|
|
@ -1175,10 +1186,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.InputBotInlineResult.inputBotInlineResultGame(id: _1!, shortName: _2!, sendMessage: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.InputBotInlineResult.inputBotInlineResultGame(id: _1!, shortName: _2!, sendMessage: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputBotInlineResultPhoto(_ reader: BufferReader) -> InputBotInlineResult? {
|
||||
var _1: String?
|
||||
|
|
@ -1197,11 +1210,12 @@ public extension Api {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.InputBotInlineResult.inputBotInlineResultPhoto(id: _1!, type: _2!, photo: _3!, sendMessage: _4!)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.InputBotInlineResult.inputBotInlineResultPhoto(id: _1!, type: _2!, photo: _3!, sendMessage: _4!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1248,11 +1262,12 @@ public extension Api {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.InputBusinessAwayMessage.inputBusinessAwayMessage(flags: _1!, shortcutId: _2!, schedule: _3!, recipients: _4!)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.InputBusinessAwayMessage.inputBusinessAwayMessage(flags: _1!, shortcutId: _2!, schedule: _3!, recipients: _4!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -44,10 +44,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = (Int(_1!) & Int(1 << 4) == 0) || _2 != nil
|
||||
let _c3 = (Int(_1!) & Int(1 << 6) == 0) || _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.InputBusinessBotRecipients.inputBusinessBotRecipients(flags: _1!, users: _2, excludeUsers: _3)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.InputBusinessBotRecipients.inputBusinessBotRecipients(flags: _1!, users: _2, excludeUsers: _3)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -96,11 +98,12 @@ public extension Api {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = (Int(_1!) & Int(1 << 0) == 0) || _3 != nil
|
||||
let _c4 = (Int(_1!) & Int(1 << 1) == 0) || _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.InputBusinessChatLink.inputBusinessChatLink(flags: _1!, message: _2!, entities: _3, title: _4)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.InputBusinessChatLink.inputBusinessChatLink(flags: _1!, message: _2!, entities: _3, title: _4)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -141,10 +144,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.InputBusinessGreetingMessage.inputBusinessGreetingMessage(shortcutId: _1!, recipients: _2!, noActivityDays: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.InputBusinessGreetingMessage.inputBusinessGreetingMessage(shortcutId: _1!, recipients: _2!, noActivityDays: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -189,11 +194,12 @@ public extension Api {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = (Int(_1!) & Int(1 << 0) == 0) || _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.InputBusinessIntro.inputBusinessIntro(flags: _1!, title: _2!, description: _3!, sticker: _4)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.InputBusinessIntro.inputBusinessIntro(flags: _1!, title: _2!, description: _3!, sticker: _4)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -234,9 +240,12 @@ public extension Api {
|
|||
} }
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = (Int(_1!) & Int(1 << 4) == 0) || _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.InputBusinessRecipients.inputBusinessRecipients(flags: _1!, users: _2)
|
||||
if _c1 && _c2 {
|
||||
return Api.InputBusinessRecipients.inputBusinessRecipients(flags: _1!, users: _2)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -291,9 +300,12 @@ public extension Api {
|
|||
_2 = reader.readInt64()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.InputChannel.inputChannel(channelId: _1!, accessHash: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.InputChannel.inputChannel(channelId: _1!, accessHash: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputChannelEmpty(_ reader: BufferReader) -> InputChannel? {
|
||||
return Api.InputChannel.inputChannelEmpty
|
||||
|
|
@ -310,10 +322,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.InputChannel.inputChannelFromMessage(peer: _1!, msgId: _2!, channelId: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.InputChannel.inputChannelFromMessage(peer: _1!, msgId: _2!, channelId: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -368,8 +382,12 @@ public extension Api {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.InputPhoto
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.InputChatPhoto.inputChatPhoto(id: _1!)
|
||||
if _c1 {
|
||||
return Api.InputChatPhoto.inputChatPhoto(id: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputChatPhotoEmpty(_ reader: BufferReader) -> InputChatPhoto? {
|
||||
return Api.InputChatPhoto.inputChatPhotoEmpty
|
||||
|
|
@ -396,12 +414,12 @@ public extension Api {
|
|||
let _c3 = (Int(_1!) & Int(1 << 1) == 0) || _3 != nil
|
||||
let _c4 = (Int(_1!) & Int(1 << 2) == 0) || _4 != nil
|
||||
let _c5 = (Int(_1!) & Int(1 << 3) == 0) || _5 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
return Api.InputChatPhoto.inputChatUploadedPhoto(flags: _1!, file: _2, video: _3, videoStartTs: _4, videoEmojiMarkup: _5)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 {
|
||||
return Api.InputChatPhoto.inputChatUploadedPhoto(flags: _1!, file: _2, video: _3, videoStartTs: _4, videoEmojiMarkup: _5)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -450,8 +468,12 @@ public extension Api {
|
|||
var _1: String?
|
||||
_1 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.InputChatTheme.inputChatTheme(emoticon: _1!)
|
||||
if _c1 {
|
||||
return Api.InputChatTheme.inputChatTheme(emoticon: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputChatThemeEmpty(_ reader: BufferReader) -> InputChatTheme? {
|
||||
return Api.InputChatTheme.inputChatThemeEmpty
|
||||
|
|
@ -460,8 +482,12 @@ public extension Api {
|
|||
var _1: String?
|
||||
_1 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.InputChatTheme.inputChatThemeUniqueGift(slug: _1!)
|
||||
if _c1 {
|
||||
return Api.InputChatTheme.inputChatThemeUniqueGift(slug: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -492,8 +518,12 @@ public extension Api {
|
|||
var _1: Int32?
|
||||
_1 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.InputChatlist.inputChatlistDialogFilter(filterId: _1!)
|
||||
if _c1 {
|
||||
return Api.InputChatlist.inputChatlistDialogFilter(filterId: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -544,10 +574,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.InputCheckPasswordSRP.inputCheckPasswordSRP(srpId: _1!, A: _2!, M1: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.InputCheckPasswordSRP.inputCheckPasswordSRP(srpId: _1!, A: _2!, M1: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -582,9 +614,12 @@ public extension Api {
|
|||
_2 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.InputClientProxy.inputClientProxy(address: _1!, port: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.InputClientProxy.inputClientProxy(address: _1!, port: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -624,15 +659,23 @@ public extension Api {
|
|||
var _1: String?
|
||||
_1 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.InputCollectible.inputCollectiblePhone(phone: _1!)
|
||||
if _c1 {
|
||||
return Api.InputCollectible.inputCollectiblePhone(phone: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputCollectibleUsername(_ reader: BufferReader) -> InputCollectible? {
|
||||
var _1: String?
|
||||
_1 = parseString(reader)
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.InputCollectible.inputCollectibleUsername(username: _1!)
|
||||
if _c1 {
|
||||
return Api.InputCollectible.inputCollectibleUsername(username: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -685,13 +728,12 @@ public extension Api {
|
|||
let _c4 = _4 != nil
|
||||
let _c5 = _5 != nil
|
||||
let _c6 = (Int(_1!) & Int(1 << 0) == 0) || _6 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
if !_c5 { return nil }
|
||||
if !_c6 { return nil }
|
||||
return Api.InputContact.inputPhoneContact(flags: _1!, clientId: _2!, phone: _3!, firstName: _4!, lastName: _5!, note: _6)
|
||||
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 {
|
||||
return Api.InputContact.inputPhoneContact(flags: _1!, clientId: _2!, phone: _3!, firstName: _4!, lastName: _5!, note: _6)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -733,15 +775,23 @@ public extension Api {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.InputPeer
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.InputDialogPeer.inputDialogPeer(peer: _1!)
|
||||
if _c1 {
|
||||
return Api.InputDialogPeer.inputDialogPeer(peer: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputDialogPeerFolder(_ reader: BufferReader) -> InputDialogPeer? {
|
||||
var _1: Int32?
|
||||
_1 = reader.readInt32()
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.InputDialogPeer.inputDialogPeerFolder(folderId: _1!)
|
||||
if _c1 {
|
||||
return Api.InputDialogPeer.inputDialogPeerFolder(folderId: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -789,10 +839,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.InputDocument.inputDocument(id: _1!, accessHash: _2!, fileReference: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.InputDocument.inputDocument(id: _1!, accessHash: _2!, fileReference: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputDocumentEmpty(_ reader: BufferReader) -> InputDocument? {
|
||||
return Api.InputDocument.inputDocumentEmpty
|
||||
|
|
@ -830,9 +882,12 @@ public extension Api {
|
|||
_2 = reader.readInt64()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.InputEncryptedChat.inputEncryptedChat(chatId: _1!, accessHash: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.InputEncryptedChat.inputEncryptedChat(chatId: _1!, accessHash: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -899,9 +954,12 @@ public extension Api {
|
|||
_2 = reader.readInt64()
|
||||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
return Api.InputEncryptedFile.inputEncryptedFile(id: _1!, accessHash: _2!)
|
||||
if _c1 && _c2 {
|
||||
return Api.InputEncryptedFile.inputEncryptedFile(id: _1!, accessHash: _2!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputEncryptedFileBigUploaded(_ reader: BufferReader) -> InputEncryptedFile? {
|
||||
var _1: Int64?
|
||||
|
|
@ -913,10 +971,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.InputEncryptedFile.inputEncryptedFileBigUploaded(id: _1!, parts: _2!, keyFingerprint: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.InputEncryptedFile.inputEncryptedFileBigUploaded(id: _1!, parts: _2!, keyFingerprint: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputEncryptedFileEmpty(_ reader: BufferReader) -> InputEncryptedFile? {
|
||||
return Api.InputEncryptedFile.inputEncryptedFileEmpty
|
||||
|
|
@ -934,11 +994,12 @@ public extension Api {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.InputEncryptedFile.inputEncryptedFileUploaded(id: _1!, parts: _2!, md5Checksum: _3!, keyFingerprint: _4!)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.InputEncryptedFile.inputEncryptedFileUploaded(id: _1!, parts: _2!, md5Checksum: _3!, keyFingerprint: _4!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1001,11 +1062,12 @@ public extension Api {
|
|||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
let _c4 = _4 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
if !_c4 { return nil }
|
||||
return Api.InputFile.inputFile(id: _1!, parts: _2!, name: _3!, md5Checksum: _4!)
|
||||
if _c1 && _c2 && _c3 && _c4 {
|
||||
return Api.InputFile.inputFile(id: _1!, parts: _2!, name: _3!, md5Checksum: _4!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputFileBig(_ reader: BufferReader) -> InputFile? {
|
||||
var _1: Int64?
|
||||
|
|
@ -1017,10 +1079,12 @@ public extension Api {
|
|||
let _c1 = _1 != nil
|
||||
let _c2 = _2 != nil
|
||||
let _c3 = _3 != nil
|
||||
if !_c1 { return nil }
|
||||
if !_c2 { return nil }
|
||||
if !_c3 { return nil }
|
||||
return Api.InputFile.inputFileBig(id: _1!, parts: _2!, name: _3!)
|
||||
if _c1 && _c2 && _c3 {
|
||||
return Api.InputFile.inputFileBig(id: _1!, parts: _2!, name: _3!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
public static func parse_inputFileStoryDocument(_ reader: BufferReader) -> InputFile? {
|
||||
var _1: Api.InputDocument?
|
||||
|
|
@ -1028,8 +1092,12 @@ public extension Api {
|
|||
_1 = Api.parse(reader, signature: signature) as? Api.InputDocument
|
||||
}
|
||||
let _c1 = _1 != nil
|
||||
if !_c1 { return nil }
|
||||
return Api.InputFile.inputFileStoryDocument(id: _1!)
|
||||
if _c1 {
|
||||
return Api.InputFile.inputFileStoryDocument(id: _1!)
|
||||
}
|
||||
else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -271,6 +271,8 @@ func apiMessagePeerIds(_ message: Api.Message) -> [PeerId] {
|
|||
if let otherParticipants {
|
||||
result.append(contentsOf: otherParticipants.map(\.peerId))
|
||||
}
|
||||
case .messageActionStarGiftCraftFail:
|
||||
break
|
||||
}
|
||||
|
||||
return result
|
||||
|
|
|
|||
|
|
@ -196,11 +196,11 @@ func telegramMediaActionFromApiAction(_ action: Api.MessageAction) -> TelegramMe
|
|||
return nil
|
||||
}
|
||||
return TelegramMediaAction(action: .starGift(gift: gift, convertStars: convertStars, text: text, entities: entities, nameHidden: (flags & (1 << 0)) != 0, savedToProfile: (flags & (1 << 2)) != 0, converted: (flags & (1 << 3)) != 0, upgraded: (flags & (1 << 5)) != 0, canUpgrade: (flags & (1 << 10)) != 0, upgradeStars: upgradeStars, isRefunded: (flags & (1 << 9)) != 0, isPrepaidUpgrade: (flags & (1 << 13)) != 0, upgradeMessageId: upgradeMessageId, peerId: peer?.peerId, senderId: fromId?.peerId, savedId: savedId, prepaidUpgradeHash: prepaidUpgradeHash, giftMessageId: giftMessageId, upgradeSeparate: (flags & (1 << 16)) != 0, isAuctionAcquired: (flags & (1 << 17)) != 0, toPeerId: toId?.peerId, number: number))
|
||||
case let .messageActionStarGiftUnique(flags, apiGift, canExportAt, transferStars, fromId, peer, savedId, resaleAmount, canTransferDate, canResaleDate, dropOriginalDetailsStars):
|
||||
case let .messageActionStarGiftUnique(flags, apiGift, canExportAt, transferStars, fromId, peer, savedId, resaleAmount, canTransferDate, canResaleDate, dropOriginalDetailsStars, canCraftAt, craftChancePermille):
|
||||
guard let gift = StarGift(apiStarGift: apiGift) else {
|
||||
return nil
|
||||
}
|
||||
return TelegramMediaAction(action: .starGiftUnique(gift: gift, isUpgrade: (flags & (1 << 0)) != 0, isTransferred: (flags & (1 << 1)) != 0, savedToProfile: (flags & (1 << 2)) != 0, canExportDate: canExportAt, transferStars: transferStars, isRefunded: (flags & (1 << 5)) != 0, isPrepaidUpgrade: (flags & (1 << 11)) != 0, peerId: peer?.peerId, senderId: fromId?.peerId, savedId: savedId, resaleAmount: resaleAmount.flatMap { CurrencyAmount(apiAmount: $0) }, canTransferDate: canTransferDate, canResaleDate: canResaleDate, dropOriginalDetailsStars: dropOriginalDetailsStars, assigned: (flags & (1 << 13)) != 0, fromOffer: (flags & (1 << 14)) != 0))
|
||||
return TelegramMediaAction(action: .starGiftUnique(gift: gift, isUpgrade: (flags & (1 << 0)) != 0, isTransferred: (flags & (1 << 1)) != 0, savedToProfile: (flags & (1 << 2)) != 0, canExportDate: canExportAt, transferStars: transferStars, isRefunded: (flags & (1 << 5)) != 0, isPrepaidUpgrade: (flags & (1 << 11)) != 0, peerId: peer?.peerId, senderId: fromId?.peerId, savedId: savedId, resaleAmount: resaleAmount.flatMap { CurrencyAmount(apiAmount: $0) }, canTransferDate: canTransferDate, canResaleDate: canResaleDate, dropOriginalDetailsStars: dropOriginalDetailsStars, assigned: (flags & (1 << 13)) != 0, fromOffer: (flags & (1 << 14)) != 0, canCraftAt: canCraftAt, craftChancePermille: craftChancePermille))
|
||||
case let .messageActionPaidMessagesRefunded(count, stars):
|
||||
return TelegramMediaAction(action: .paidMessagesRefunded(count: count, stars: stars))
|
||||
case let .messageActionPaidMessagesPrice(flags, stars):
|
||||
|
|
@ -285,6 +285,8 @@ func telegramMediaActionFromApiAction(_ action: Api.MessageAction) -> TelegramMe
|
|||
return nil
|
||||
}
|
||||
return TelegramMediaAction(action: .starGiftPurchaseOfferDeclined(gift: gift, amount: CurrencyAmount(apiAmount: price), hasExpired: (flags & (1 << 0)) != 0))
|
||||
case .messageActionStarGiftCraftFail:
|
||||
return TelegramMediaAction(action: .starGiftCraftFail)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -210,7 +210,7 @@ public class BoxedMessage: NSObject {
|
|||
|
||||
public class Serialization: NSObject, MTSerialization {
|
||||
public func currentLayer() -> UInt {
|
||||
return 221
|
||||
return 222
|
||||
}
|
||||
|
||||
public func parseMessage(_ data: Data!) -> Any! {
|
||||
|
|
|
|||
|
|
@ -256,7 +256,7 @@ public enum TelegramMediaActionType: PostboxCoding, Equatable {
|
|||
case giftStars(currency: String, amount: Int64, count: Int64, cryptoCurrency: String?, cryptoAmount: Int64?, transactionId: String?)
|
||||
case prizeStars(amount: Int64, isUnclaimed: Bool, boostPeerId: PeerId?, transactionId: String?, giveawayMessageId: MessageId?)
|
||||
case starGift(gift: StarGift, convertStars: Int64?, text: String?, entities: [MessageTextEntity]?, nameHidden: Bool, savedToProfile: Bool, converted: Bool, upgraded: Bool, canUpgrade: Bool, upgradeStars: Int64?, isRefunded: Bool, isPrepaidUpgrade: Bool, upgradeMessageId: Int32?, peerId: EnginePeer.Id?, senderId: EnginePeer.Id?, savedId: Int64?, prepaidUpgradeHash: String?, giftMessageId: Int32?, upgradeSeparate: Bool, isAuctionAcquired: Bool, toPeerId: EnginePeer.Id?, number: Int32?)
|
||||
case starGiftUnique(gift: StarGift, isUpgrade: Bool, isTransferred: Bool, savedToProfile: Bool, canExportDate: Int32?, transferStars: Int64?, isRefunded: Bool, isPrepaidUpgrade: Bool, peerId: EnginePeer.Id?, senderId: EnginePeer.Id?, savedId: Int64?, resaleAmount: CurrencyAmount?, canTransferDate: Int32?, canResaleDate: Int32?, dropOriginalDetailsStars: Int64?, assigned: Bool, fromOffer: Bool)
|
||||
case starGiftUnique(gift: StarGift, isUpgrade: Bool, isTransferred: Bool, savedToProfile: Bool, canExportDate: Int32?, transferStars: Int64?, isRefunded: Bool, isPrepaidUpgrade: Bool, peerId: EnginePeer.Id?, senderId: EnginePeer.Id?, savedId: Int64?, resaleAmount: CurrencyAmount?, canTransferDate: Int32?, canResaleDate: Int32?, dropOriginalDetailsStars: Int64?, assigned: Bool, fromOffer: Bool, canCraftAt: Int32?, craftChancePermille: Int32?)
|
||||
case paidMessagesRefunded(count: Int32, stars: Int64)
|
||||
case paidMessagesPriceEdited(stars: Int64, broadcastMessagesAllowed: Bool)
|
||||
case conferenceCall(ConferenceCall)
|
||||
|
|
@ -269,6 +269,7 @@ public enum TelegramMediaActionType: PostboxCoding, Equatable {
|
|||
case suggestedBirthday(TelegramBirthday)
|
||||
case starGiftPurchaseOffer(gift: StarGift, amount: CurrencyAmount, expireDate: Int32, isAccepted: Bool, isDeclined: Bool)
|
||||
case starGiftPurchaseOfferDeclined(gift: StarGift, amount: CurrencyAmount, hasExpired: Bool)
|
||||
case starGiftCraftFail
|
||||
|
||||
public init(decoder: PostboxDecoder) {
|
||||
let rawValue: Int32 = decoder.decodeInt32ForKey("_rawValue", orElse: 0)
|
||||
|
|
@ -404,7 +405,7 @@ public enum TelegramMediaActionType: PostboxCoding, Equatable {
|
|||
} else if let stars = decoder.decodeOptionalInt64ForKey("resaleStars") {
|
||||
resaleAmount = CurrencyAmount(amount: StarsAmount(value: stars, nanos: 0), currency: .stars)
|
||||
}
|
||||
self = .starGiftUnique(gift: decoder.decodeObjectForKey("gift", decoder: { StarGift(decoder: $0) }) as! StarGift, isUpgrade: decoder.decodeBoolForKey("isUpgrade", orElse: false), isTransferred: decoder.decodeBoolForKey("isTransferred", orElse: false), savedToProfile: decoder.decodeBoolForKey("savedToProfile", orElse: false), canExportDate: decoder.decodeOptionalInt32ForKey("canExportDate"), transferStars: decoder.decodeOptionalInt64ForKey("transferStars"), isRefunded: decoder.decodeBoolForKey("isRefunded", orElse: false), isPrepaidUpgrade: decoder.decodeBoolForKey("isPrepaidUpgrade", orElse: false), peerId: decoder.decodeOptionalInt64ForKey("peerId").flatMap { EnginePeer.Id($0) }, senderId: decoder.decodeOptionalInt64ForKey("senderId").flatMap { EnginePeer.Id($0) }, savedId: decoder.decodeOptionalInt64ForKey("savedId"), resaleAmount: resaleAmount, canTransferDate: decoder.decodeOptionalInt32ForKey("canTransferDate"), canResaleDate: decoder.decodeOptionalInt32ForKey("canResaleDate"), dropOriginalDetailsStars: decoder.decodeOptionalInt64ForKey("dropOriginalDetailsStars"), assigned: decoder.decodeBoolForKey("assigned", orElse: false), fromOffer: decoder.decodeBoolForKey("fromOffer", orElse: false))
|
||||
self = .starGiftUnique(gift: decoder.decodeObjectForKey("gift", decoder: { StarGift(decoder: $0) }) as! StarGift, isUpgrade: decoder.decodeBoolForKey("isUpgrade", orElse: false), isTransferred: decoder.decodeBoolForKey("isTransferred", orElse: false), savedToProfile: decoder.decodeBoolForKey("savedToProfile", orElse: false), canExportDate: decoder.decodeOptionalInt32ForKey("canExportDate"), transferStars: decoder.decodeOptionalInt64ForKey("transferStars"), isRefunded: decoder.decodeBoolForKey("isRefunded", orElse: false), isPrepaidUpgrade: decoder.decodeBoolForKey("isPrepaidUpgrade", orElse: false), peerId: decoder.decodeOptionalInt64ForKey("peerId").flatMap { EnginePeer.Id($0) }, senderId: decoder.decodeOptionalInt64ForKey("senderId").flatMap { EnginePeer.Id($0) }, savedId: decoder.decodeOptionalInt64ForKey("savedId"), resaleAmount: resaleAmount, canTransferDate: decoder.decodeOptionalInt32ForKey("canTransferDate"), canResaleDate: decoder.decodeOptionalInt32ForKey("canResaleDate"), dropOriginalDetailsStars: decoder.decodeOptionalInt64ForKey("dropOriginalDetailsStars"), assigned: decoder.decodeBoolForKey("assigned", orElse: false), fromOffer: decoder.decodeBoolForKey("fromOffer", orElse: false), canCraftAt: decoder.decodeOptionalInt32ForKey("canCraftAt"), craftChancePermille: decoder.decodeOptionalInt32ForKey("craftChancePermille"))
|
||||
case 46:
|
||||
self = .paidMessagesRefunded(count: decoder.decodeInt32ForKey("count", orElse: 0), stars: decoder.decodeInt64ForKey("stars", orElse: 0))
|
||||
case 47:
|
||||
|
|
@ -440,6 +441,8 @@ public enum TelegramMediaActionType: PostboxCoding, Equatable {
|
|||
self = .starGiftPurchaseOffer(gift: decoder.decodeObjectForKey("gift", decoder: { StarGift(decoder: $0) }) as! StarGift, amount: decoder.decodeCodable(CurrencyAmount.self, forKey: "amount")!, expireDate: decoder.decodeInt32ForKey("expireDate", orElse: 0), isAccepted: decoder.decodeBoolForKey("isAccepted", orElse: false), isDeclined: decoder.decodeBoolForKey("isDeclined", orElse: false))
|
||||
case 57:
|
||||
self = .starGiftPurchaseOfferDeclined(gift: decoder.decodeObjectForKey("gift", decoder: { StarGift(decoder: $0) }) as! StarGift, amount: decoder.decodeCodable(CurrencyAmount.self, forKey: "amount")!, hasExpired: decoder.decodeBoolForKey("hasExpired", orElse: false))
|
||||
case 58:
|
||||
self = .starGiftCraftFail
|
||||
default:
|
||||
self = .unknown
|
||||
}
|
||||
|
|
@ -803,7 +806,7 @@ public enum TelegramMediaActionType: PostboxCoding, Equatable {
|
|||
} else {
|
||||
encoder.encodeNil(forKey: "number")
|
||||
}
|
||||
case let .starGiftUnique(gift, isUpgrade, isTransferred, savedToProfile, canExportDate, transferStars, isRefunded, isPrepaidUpgrade, peerId, senderId, savedId, resaleAmount, canTransferDate, canResaleDate, dropOriginalDetailsStars, assigned, fromOffer):
|
||||
case let .starGiftUnique(gift, isUpgrade, isTransferred, savedToProfile, canExportDate, transferStars, isRefunded, isPrepaidUpgrade, peerId, senderId, savedId, resaleAmount, canTransferDate, canResaleDate, dropOriginalDetailsStars, assigned, fromOffer, canCraftAt, craftChancePermille):
|
||||
encoder.encodeInt32(45, forKey: "_rawValue")
|
||||
encoder.encodeObject(gift, forKey: "gift")
|
||||
encoder.encodeBool(isUpgrade, forKey: "isUpgrade")
|
||||
|
|
@ -858,6 +861,17 @@ public enum TelegramMediaActionType: PostboxCoding, Equatable {
|
|||
}
|
||||
encoder.encodeBool(assigned, forKey: "assigned")
|
||||
encoder.encodeBool(fromOffer, forKey: "fromOffer")
|
||||
|
||||
if let canCraftAt {
|
||||
encoder.encodeInt32(canCraftAt, forKey: "canCraftAt")
|
||||
} else {
|
||||
encoder.encodeNil(forKey: "canCraftAt")
|
||||
}
|
||||
if let craftChancePermille {
|
||||
encoder.encodeInt32(craftChancePermille, forKey: "craftChancePermille")
|
||||
} else {
|
||||
encoder.encodeNil(forKey: "craftChancePermille")
|
||||
}
|
||||
case let .paidMessagesRefunded(count, stars):
|
||||
encoder.encodeInt32(46, forKey: "_rawValue")
|
||||
encoder.encodeInt32(count, forKey: "count")
|
||||
|
|
@ -923,6 +937,8 @@ public enum TelegramMediaActionType: PostboxCoding, Equatable {
|
|||
encoder.encodeObject(gift, forKey: "gift")
|
||||
encoder.encodeCodable(amount, forKey: "amount")
|
||||
encoder.encodeBool(hasExpired, forKey: "hasExpired")
|
||||
case let .starGiftCraftFail:
|
||||
encoder.encodeInt32(58, forKey: "_rawValue")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -965,7 +981,7 @@ public enum TelegramMediaActionType: PostboxCoding, Equatable {
|
|||
peerIds.append(toPeerId)
|
||||
}
|
||||
return peerIds
|
||||
case let .starGiftUnique(gift, _, _, _, _, _, _, _, peerId, senderId, _, _, _, _, _, _, _):
|
||||
case let .starGiftUnique(gift, _, _, _, _, _, _, _, peerId, senderId, _, _, _, _, _, _, _, _, _):
|
||||
var peerIds: [PeerId] = []
|
||||
if let peerId {
|
||||
peerIds.append(peerId)
|
||||
|
|
|
|||
|
|
@ -1423,7 +1423,7 @@ func _internal_dropStarGiftOriginalDetails(account: Account, reference: StarGift
|
|||
storeForwardInfo = StoreMessageForwardInfo(authorId: forwardInfo.author?.id, sourceId: forwardInfo.source?.id, sourceMessageId: forwardInfo.sourceMessageId, date: forwardInfo.date, authorSignature: forwardInfo.authorSignature, psaType: forwardInfo.psaType, flags: forwardInfo.flags)
|
||||
}
|
||||
var media = currentMessage.media
|
||||
if let action = media.first(where: { $0 is TelegramMediaAction }) as? TelegramMediaAction, case let .starGiftUnique(gift, isUpgrade, isTransferred, savedToProfile, canExportDate, transferStars, isRefunded, isPrepaidUpgrade, peerId, senderId, savedId, resaleAmount, canTransferDate, canResaleDate, _, assigned, fromOffer) = action.action, case let .unique(uniqueGift) = gift {
|
||||
if let action = media.first(where: { $0 is TelegramMediaAction }) as? TelegramMediaAction, case let .starGiftUnique(gift, isUpgrade, isTransferred, savedToProfile, canExportDate, transferStars, isRefunded, isPrepaidUpgrade, peerId, senderId, savedId, resaleAmount, canTransferDate, canResaleDate, _, assigned, fromOffer, canCraftAt, craftChancePermille) = action.action, case let .unique(uniqueGift) = gift {
|
||||
let updatedAttributes = uniqueGift.attributes.filter { $0.attributeType != .originalInfo }
|
||||
media = [
|
||||
TelegramMediaAction(
|
||||
|
|
@ -1444,7 +1444,9 @@ func _internal_dropStarGiftOriginalDetails(account: Account, reference: StarGift
|
|||
canResaleDate: canResaleDate,
|
||||
dropOriginalDetailsStars: nil,
|
||||
assigned: assigned,
|
||||
fromOffer: fromOffer
|
||||
fromOffer: fromOffer,
|
||||
canCraftAt: canCraftAt,
|
||||
craftChancePermille: craftChancePermille
|
||||
)
|
||||
)
|
||||
]
|
||||
|
|
@ -1550,7 +1552,7 @@ func _internal_upgradeStarGift(account: Account, formId: Int64?, reference: Star
|
|||
case let .updateNewMessage(message, _, _):
|
||||
if let message = StoreMessage(apiMessage: message, accountPeerId: account.peerId, peerIsForum: false) {
|
||||
for media in message.media {
|
||||
if let action = media as? TelegramMediaAction, case let .starGiftUnique(gift, _, _, savedToProfile, canExportDate, transferStars, _, _, peerId, _, savedId, _, canTransferDate, canResaleDate, dropOriginalDetailsStars, _, _) = action.action, case let .Id(messageId) = message.id {
|
||||
if let action = media as? TelegramMediaAction, case let .starGiftUnique(gift, _, _, savedToProfile, canExportDate, transferStars, _, _, peerId, _, savedId, _, canTransferDate, canResaleDate, dropOriginalDetailsStars, _, _, canCraftAt, craftChancePermille) = action.action, case let .Id(messageId) = message.id {
|
||||
let reference: StarGiftReference
|
||||
if let peerId, let savedId {
|
||||
reference = .peer(peerId: peerId, id: savedId)
|
||||
|
|
@ -1579,7 +1581,9 @@ func _internal_upgradeStarGift(account: Account, formId: Int64?, reference: Star
|
|||
upgradeSeparate: false,
|
||||
dropOriginalDetailsStars: dropOriginalDetailsStars,
|
||||
number: nil,
|
||||
isRefunded: false
|
||||
isRefunded: false,
|
||||
canCraftAt: canCraftAt,
|
||||
craftChancePermille: craftChancePermille
|
||||
))
|
||||
}
|
||||
}
|
||||
|
|
@ -2535,6 +2539,8 @@ public final class ProfileGiftsContext {
|
|||
case dropOriginalDetailsStars
|
||||
case number
|
||||
case isRefunded
|
||||
case canCraftAt
|
||||
case craftChancePermille
|
||||
}
|
||||
|
||||
public let gift: TelegramCore.StarGift
|
||||
|
|
@ -2559,6 +2565,8 @@ public final class ProfileGiftsContext {
|
|||
public let dropOriginalDetailsStars: Int64?
|
||||
public let number: Int32?
|
||||
public let isRefunded: Bool
|
||||
public let craftChancePermille: Int32?
|
||||
public let canCraftAt: Int32?
|
||||
|
||||
fileprivate let _fromPeerId: EnginePeer.Id?
|
||||
|
||||
|
|
@ -2588,7 +2596,9 @@ public final class ProfileGiftsContext {
|
|||
upgradeSeparate: Bool,
|
||||
dropOriginalDetailsStars: Int64?,
|
||||
number: Int32?,
|
||||
isRefunded: Bool
|
||||
isRefunded: Bool,
|
||||
canCraftAt: Int32?,
|
||||
craftChancePermille: Int32?
|
||||
) {
|
||||
self.gift = gift
|
||||
self.reference = reference
|
||||
|
|
@ -2613,6 +2623,8 @@ public final class ProfileGiftsContext {
|
|||
self.dropOriginalDetailsStars = dropOriginalDetailsStars
|
||||
self.number = number
|
||||
self.isRefunded = isRefunded
|
||||
self.canCraftAt = canCraftAt
|
||||
self.craftChancePermille = craftChancePermille
|
||||
}
|
||||
|
||||
public init(from decoder: Decoder) throws {
|
||||
|
|
@ -2647,6 +2659,10 @@ public final class ProfileGiftsContext {
|
|||
self.dropOriginalDetailsStars = try container.decodeIfPresent(Int64.self, forKey: .dropOriginalDetailsStars)
|
||||
self.number = try container.decodeIfPresent(Int32.self, forKey: .number)
|
||||
self.isRefunded = try container.decodeIfPresent(Bool.self, forKey: .isRefunded) ?? false
|
||||
|
||||
self.canCraftAt = try container.decodeIfPresent(Int32.self, forKey: .canCraftAt)
|
||||
self.craftChancePermille = try container.decodeIfPresent(Int32.self, forKey: .craftChancePermille)
|
||||
|
||||
}
|
||||
|
||||
public func encode(to encoder: Encoder) throws {
|
||||
|
|
@ -2674,7 +2690,8 @@ public final class ProfileGiftsContext {
|
|||
try container.encodeIfPresent(self.dropOriginalDetailsStars, forKey: .dropOriginalDetailsStars)
|
||||
try container.encodeIfPresent(self.number, forKey: .number)
|
||||
try container.encode(self.isRefunded, forKey: .isRefunded)
|
||||
|
||||
try container.encodeIfPresent(self.canCraftAt, forKey: .canCraftAt)
|
||||
try container.encodeIfPresent(self.craftChancePermille, forKey: .craftChancePermille)
|
||||
}
|
||||
|
||||
public func withGift(_ gift: TelegramCore.StarGift) -> StarGift {
|
||||
|
|
@ -2700,7 +2717,9 @@ public final class ProfileGiftsContext {
|
|||
upgradeSeparate: self.upgradeSeparate,
|
||||
dropOriginalDetailsStars: self.dropOriginalDetailsStars,
|
||||
number: self.number,
|
||||
isRefunded: self.isRefunded
|
||||
isRefunded: self.isRefunded,
|
||||
canCraftAt: self.canCraftAt,
|
||||
craftChancePermille: self.craftChancePermille
|
||||
)
|
||||
}
|
||||
|
||||
|
|
@ -2727,7 +2746,9 @@ public final class ProfileGiftsContext {
|
|||
upgradeSeparate: self.upgradeSeparate,
|
||||
dropOriginalDetailsStars: self.dropOriginalDetailsStars,
|
||||
number: self.number,
|
||||
isRefunded: self.isRefunded
|
||||
isRefunded: self.isRefunded,
|
||||
canCraftAt: self.canCraftAt,
|
||||
craftChancePermille: self.craftChancePermille
|
||||
)
|
||||
}
|
||||
|
||||
|
|
@ -2754,7 +2775,9 @@ public final class ProfileGiftsContext {
|
|||
upgradeSeparate: self.upgradeSeparate,
|
||||
dropOriginalDetailsStars: self.dropOriginalDetailsStars,
|
||||
number: self.number,
|
||||
isRefunded: self.isRefunded
|
||||
isRefunded: self.isRefunded,
|
||||
canCraftAt: self.canCraftAt,
|
||||
craftChancePermille: self.craftChancePermille
|
||||
)
|
||||
}
|
||||
fileprivate func withFromPeer(_ fromPeer: EnginePeer?) -> StarGift {
|
||||
|
|
@ -2780,7 +2803,9 @@ public final class ProfileGiftsContext {
|
|||
upgradeSeparate: self.upgradeSeparate,
|
||||
dropOriginalDetailsStars: self.dropOriginalDetailsStars,
|
||||
number: self.number,
|
||||
isRefunded: self.isRefunded
|
||||
isRefunded: self.isRefunded,
|
||||
canCraftAt: self.canCraftAt,
|
||||
craftChancePermille: self.craftChancePermille
|
||||
)
|
||||
}
|
||||
|
||||
|
|
@ -2807,7 +2832,9 @@ public final class ProfileGiftsContext {
|
|||
upgradeSeparate: self.upgradeSeparate,
|
||||
dropOriginalDetailsStars: self.dropOriginalDetailsStars,
|
||||
number: self.number,
|
||||
isRefunded: self.isRefunded
|
||||
isRefunded: self.isRefunded,
|
||||
canCraftAt: self.canCraftAt,
|
||||
craftChancePermille: self.craftChancePermille
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
@ -3022,10 +3049,294 @@ public final class ProfileGiftsContext {
|
|||
}
|
||||
}
|
||||
|
||||
// MARK: - CraftGiftsContext
|
||||
|
||||
private final class CraftGiftsContextImpl {
|
||||
private let queue: Queue
|
||||
private let account: Account
|
||||
private let giftId: Int64
|
||||
|
||||
private let disposable = MetaDisposable()
|
||||
private let craftDisposable = MetaDisposable()
|
||||
private var limit: Int32
|
||||
|
||||
private var gifts: [ProfileGiftsContext.State.StarGift] = []
|
||||
private var count: Int32 = 0
|
||||
private var dataState: ProfileGiftsContext.State.DataState = .ready(canLoadMore: true, nextOffset: nil)
|
||||
|
||||
var _state: CraftGiftsContext.State?
|
||||
private let stateValue = Promise<CraftGiftsContext.State>()
|
||||
var state: Signal<CraftGiftsContext.State, NoError> {
|
||||
return self.stateValue.get()
|
||||
}
|
||||
|
||||
init(
|
||||
queue: Queue,
|
||||
account: Account,
|
||||
giftId: Int64,
|
||||
limit: Int32
|
||||
) {
|
||||
self.queue = queue
|
||||
self.account = account
|
||||
self.giftId = giftId
|
||||
self.limit = limit
|
||||
|
||||
self.loadMore()
|
||||
}
|
||||
|
||||
deinit {
|
||||
self.disposable.dispose()
|
||||
self.craftDisposable.dispose()
|
||||
}
|
||||
|
||||
func craft(references: [StarGiftReference]) -> Signal<ProfileGiftsContext.State.StarGift, CraftStarGiftError> {
|
||||
return _internal_craftStarGift(account: self.account, references: references)
|
||||
}
|
||||
|
||||
func removeGifts(references: [StarGiftReference]) {
|
||||
let referencesSet = Set(references)
|
||||
self.gifts.removeAll { gift in
|
||||
guard let ref = gift.reference else { return false }
|
||||
return referencesSet.contains(ref)
|
||||
}
|
||||
self.count = max(0, self.count - Int32(references.count))
|
||||
self.pushState()
|
||||
}
|
||||
|
||||
func reload() {
|
||||
self.gifts = []
|
||||
self.dataState = .ready(canLoadMore: true, nextOffset: nil)
|
||||
self.loadMore()
|
||||
}
|
||||
|
||||
func loadMore() {
|
||||
let giftId = self.giftId
|
||||
let accountPeerId = self.account.peerId
|
||||
let network = self.account.network
|
||||
let postbox = self.account.postbox
|
||||
let limit = self.limit
|
||||
|
||||
guard case let .ready(true, initialNextOffset) = self.dataState else {
|
||||
return
|
||||
}
|
||||
|
||||
self.dataState = .loading
|
||||
self.pushState()
|
||||
|
||||
let signal: Signal<([ProfileGiftsContext.State.StarGift], Int32, String?), NoError> = network.request(Api.functions.payments.getCraftStarGifts(giftId: giftId, offset: initialNextOffset ?? "", limit: limit))
|
||||
|> map(Optional.init)
|
||||
|> `catch` { _ -> Signal<Api.payments.SavedStarGifts?, NoError> in
|
||||
return .single(nil)
|
||||
}
|
||||
|> mapToSignal { result -> Signal<([ProfileGiftsContext.State.StarGift], Int32, String?), NoError> in
|
||||
guard let result else {
|
||||
return .single(([], 0, nil))
|
||||
}
|
||||
return postbox.transaction { transaction -> ([ProfileGiftsContext.State.StarGift], Int32, String?) in
|
||||
switch result {
|
||||
case let .savedStarGifts(_, count, _, apiGifts, nextOffset, chats, users):
|
||||
let parsedPeers = AccumulatedPeers(transaction: transaction, chats: chats, users: users)
|
||||
updatePeers(transaction: transaction, accountPeerId: accountPeerId, peers: parsedPeers)
|
||||
|
||||
let gifts = apiGifts.compactMap { ProfileGiftsContext.State.StarGift(apiSavedStarGift: $0, peerId: accountPeerId, transaction: transaction) }
|
||||
return (gifts, count, nextOffset)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
self.disposable.set((signal
|
||||
|> deliverOn(self.queue)).start(next: { [weak self] (gifts, count, nextOffset) in
|
||||
guard let self else {
|
||||
return
|
||||
}
|
||||
if initialNextOffset == nil {
|
||||
self.gifts = gifts
|
||||
} else {
|
||||
self.gifts.append(contentsOf: gifts)
|
||||
}
|
||||
|
||||
let updatedCount = max(Int32(self.gifts.count), count)
|
||||
self.count = updatedCount
|
||||
self.dataState = .ready(canLoadMore: count != 0 && updatedCount > self.gifts.count && nextOffset != nil, nextOffset: nextOffset)
|
||||
|
||||
self.pushState()
|
||||
}))
|
||||
}
|
||||
|
||||
private func pushState() {
|
||||
let state = CraftGiftsContext.State(
|
||||
gifts: self.gifts,
|
||||
count: self.count,
|
||||
dataState: self.dataState
|
||||
)
|
||||
self._state = state
|
||||
self.stateValue.set(.single(state))
|
||||
}
|
||||
}
|
||||
|
||||
public final class CraftGiftsContext {
|
||||
public struct State: Equatable {
|
||||
public var gifts: [ProfileGiftsContext.State.StarGift]
|
||||
public var count: Int32
|
||||
public var dataState: ProfileGiftsContext.State.DataState
|
||||
}
|
||||
|
||||
private let queue: Queue = .mainQueue()
|
||||
private let impl: QueueLocalObject<CraftGiftsContextImpl>
|
||||
|
||||
public var state: Signal<CraftGiftsContext.State, NoError> {
|
||||
return Signal { subscriber in
|
||||
let disposable = MetaDisposable()
|
||||
|
||||
self.impl.with { impl in
|
||||
disposable.set(impl.state.start(next: { value in
|
||||
subscriber.putNext(value)
|
||||
}))
|
||||
}
|
||||
|
||||
return disposable
|
||||
}
|
||||
}
|
||||
|
||||
public let giftId: Int64
|
||||
|
||||
public init(
|
||||
account: Account,
|
||||
giftId: Int64,
|
||||
limit: Int32 = 36
|
||||
) {
|
||||
self.giftId = giftId
|
||||
|
||||
let queue = self.queue
|
||||
self.impl = QueueLocalObject(queue: queue, generate: {
|
||||
return CraftGiftsContextImpl(queue: queue, account: account, giftId: giftId, limit: limit)
|
||||
})
|
||||
}
|
||||
|
||||
public func loadMore() {
|
||||
self.impl.with { impl in
|
||||
impl.loadMore()
|
||||
}
|
||||
}
|
||||
|
||||
public func reload() {
|
||||
self.impl.with { impl in
|
||||
impl.reload()
|
||||
}
|
||||
}
|
||||
|
||||
public func removeGifts(references: [StarGiftReference]) {
|
||||
self.impl.with { impl in
|
||||
impl.removeGifts(references: references)
|
||||
}
|
||||
}
|
||||
|
||||
public func craft(references: [StarGiftReference]) -> Signal<ProfileGiftsContext.State.StarGift, CraftStarGiftError> {
|
||||
return Signal { subscriber in
|
||||
let disposable = MetaDisposable()
|
||||
self.impl.with { impl in
|
||||
disposable.set(impl.craft(references: references).start(next: { value in
|
||||
subscriber.putNext(value)
|
||||
}, error: { error in
|
||||
subscriber.putError(error)
|
||||
}, completed: {
|
||||
subscriber.putCompletion()
|
||||
}))
|
||||
}
|
||||
return disposable
|
||||
}
|
||||
}
|
||||
|
||||
public var currentState: CraftGiftsContext.State? {
|
||||
var state: CraftGiftsContext.State?
|
||||
self.impl.syncWith { impl in
|
||||
state = impl._state
|
||||
}
|
||||
return state
|
||||
}
|
||||
}
|
||||
|
||||
public enum CraftStarGiftError {
|
||||
case generic
|
||||
case tooEarly(Int32)
|
||||
case craftFailed
|
||||
}
|
||||
|
||||
func _internal_craftStarGift(account: Account, references: [StarGiftReference]) -> Signal<ProfileGiftsContext.State.StarGift, CraftStarGiftError> {
|
||||
return account.postbox.transaction { transaction -> [Api.InputSavedStarGift] in
|
||||
return references.compactMap { $0.apiStarGiftReference(transaction: transaction) }
|
||||
}
|
||||
|> castError(CraftStarGiftError.self)
|
||||
|> mapToSignal { starGifts -> Signal<ProfileGiftsContext.State.StarGift, CraftStarGiftError> in
|
||||
guard !starGifts.isEmpty else {
|
||||
return .fail(.generic)
|
||||
}
|
||||
return account.network.request(Api.functions.payments.craftStarGift(stargift: starGifts))
|
||||
|> mapError { error -> CraftStarGiftError in
|
||||
if error.errorDescription.hasPrefix("STARGIFT_CRAFT_TOO_EARLY_") {
|
||||
let timeout = String(error.errorDescription[error.errorDescription.index(error.errorDescription.startIndex, offsetBy: "STARGIFT_CRAFT_TOO_EARLY_".count)...])
|
||||
if let value = Int32(timeout) {
|
||||
return .tooEarly(value)
|
||||
}
|
||||
}
|
||||
return .generic
|
||||
}
|
||||
|> mapToSignal { updates -> Signal<ProfileGiftsContext.State.StarGift, CraftStarGiftError> in
|
||||
account.stateManager.addUpdates(updates)
|
||||
for update in updates.allUpdates {
|
||||
switch update {
|
||||
case let .updateNewMessage(message, _, _):
|
||||
if let message = StoreMessage(apiMessage: message, accountPeerId: account.peerId, peerIsForum: false) {
|
||||
for media in message.media {
|
||||
if let action = media as? TelegramMediaAction, case let .starGiftUnique(gift, _, _, savedToProfile, canExportDate, transferStars, _, _, peerId, _, savedId, _, canTransferDate, canResaleDate, dropOriginalDetailsStars, _, _, canCraftAt, craftChancePermille) = action.action, case let .Id(messageId) = message.id {
|
||||
let reference: StarGiftReference
|
||||
if let peerId, let savedId {
|
||||
reference = .peer(peerId: peerId, id: savedId)
|
||||
} else {
|
||||
reference = .message(messageId: messageId)
|
||||
}
|
||||
return .single(ProfileGiftsContext.State.StarGift(
|
||||
gift: gift,
|
||||
reference: reference,
|
||||
fromPeer: nil,
|
||||
date: message.timestamp,
|
||||
text: nil,
|
||||
entities: nil,
|
||||
nameHidden: false,
|
||||
savedToProfile: savedToProfile,
|
||||
pinnedToTop: false,
|
||||
convertStars: nil,
|
||||
canUpgrade: false,
|
||||
canExportDate: canExportDate,
|
||||
upgradeStars: nil,
|
||||
transferStars: transferStars,
|
||||
canTransferDate: canTransferDate,
|
||||
canResaleDate: canResaleDate,
|
||||
collectionIds: nil,
|
||||
prepaidUpgradeHash: nil,
|
||||
upgradeSeparate: false,
|
||||
dropOriginalDetailsStars: dropOriginalDetailsStars,
|
||||
number: nil,
|
||||
isRefunded: false,
|
||||
canCraftAt: canCraftAt,
|
||||
craftChancePermille: craftChancePermille
|
||||
))
|
||||
}
|
||||
}
|
||||
}
|
||||
default:
|
||||
break
|
||||
}
|
||||
}
|
||||
return .fail(.craftFailed)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
extension ProfileGiftsContext.State.StarGift {
|
||||
init?(apiSavedStarGift: Api.SavedStarGift, peerId: EnginePeer.Id, transaction: Transaction) {
|
||||
switch apiSavedStarGift {
|
||||
case let .savedStarGift(flags, fromId, date, apiGift, message, msgId, savedId, convertStars, upgradeStars, canExportDate, transferStars, canTransferAt, canResaleAt, collectionIds, prepaidUpgradeHash, dropOriginalDetailsStars, number):
|
||||
case let .savedStarGift(flags, fromId, date, apiGift, message, msgId, savedId, convertStars, upgradeStars, canExportDate, transferStars, canTransferAt, canResaleAt, collectionIds, prepaidUpgradeHash, dropOriginalDetailsStars, number, canCraftAt, craftChancePermille):
|
||||
guard let gift = StarGift(apiStarGift: apiGift) else {
|
||||
return nil
|
||||
}
|
||||
|
|
@ -3077,6 +3388,8 @@ extension ProfileGiftsContext.State.StarGift {
|
|||
self.dropOriginalDetailsStars = dropOriginalDetailsStars
|
||||
self.number = number
|
||||
self.isRefunded = (flags & (1 << 9)) != 0
|
||||
self.canCraftAt = canCraftAt
|
||||
self.craftChancePermille = craftChancePermille
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1644,7 +1644,7 @@ func _internal_sendStarsPaymentForm(account: Account, formId: Int64, source: Bot
|
|||
case .giftCode, .stars, .starsGift, .starsChatSubscription, .starGift, .starGiftUpgrade, .starGiftTransfer, .premiumGift, .starGiftResale, .starGiftPrepaidUpgrade, .starGiftDropOriginalDetails, .starGiftAuctionBid:
|
||||
receiptMessageId = nil
|
||||
}
|
||||
} else if case let .starGiftUnique(gift, _, _, savedToProfile, canExportDate, transferStars, isRefunded, _, peerId, _, savedId, _, canTransferDate, canResaleDate, dropOriginalDetailsStars, _, _) = action.action, case let .Id(messageId) = message.id {
|
||||
} else if case let .starGiftUnique(gift, _, _, savedToProfile, canExportDate, transferStars, isRefunded, _, peerId, _, savedId, _, canTransferDate, canResaleDate, dropOriginalDetailsStars, _, _, canCraftAt, craftChancePermille) = action.action, case let .Id(messageId) = message.id {
|
||||
let reference: StarGiftReference
|
||||
if let peerId, let savedId {
|
||||
reference = .peer(peerId: peerId, id: savedId)
|
||||
|
|
@ -1673,7 +1673,9 @@ func _internal_sendStarsPaymentForm(account: Account, formId: Int64, source: Bot
|
|||
upgradeSeparate: false,
|
||||
dropOriginalDetailsStars: dropOriginalDetailsStars,
|
||||
number: nil,
|
||||
isRefunded: isRefunded
|
||||
isRefunded: isRefunded,
|
||||
canCraftAt: canCraftAt,
|
||||
craftChancePermille: craftChancePermille
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue