@@ -2124,14 +2124,14 @@ public extension Api {
2124
2124
2125
2125
}
2126
2126
public enum ChatFull: TypeConstructorDescription {
2127
- case channelFull(flags: Int32, id: Int32, about: String, participantsCount: Int32?, adminsCount: Int32?, kickedCount: Int32?, bannedCount: Int32?, onlineCount: Int32?, readInboxMaxId: Int32, readOutboxMaxId: Int32, unreadCount: Int32, chatPhoto: Api.Photo, notifySettings: Api.PeerNotifySettings, exportedInvite: Api.ExportedChatInvite, botInfo: [Api.BotInfo], migratedFromChatId: Int32?, migratedFromMaxId: Int32?, pinnedMsgId: Int32?, stickerset: Api.StickerSet?, availableMinId: Int32?, folderId: Int32?, linkedChatId: Int32?, location: Api.ChannelLocation?, slowmodeSeconds: Int32?, slowmodeNextSendDate: Int32?, statsDc: Int32?, pts: Int32, call: Api.InputGroupCall?)
2128
- case chatFull(flags: Int32, id: Int32, about: String, participants: Api.ChatParticipants, chatPhoto: Api.Photo?, notifySettings: Api.PeerNotifySettings, exportedInvite: Api.ExportedChatInvite, botInfo: [Api.BotInfo]?, pinnedMsgId: Int32?, folderId: Int32?, call: Api.InputGroupCall?)
2127
+ case channelFull(flags: Int32, id: Int32, about: String, participantsCount: Int32?, adminsCount: Int32?, kickedCount: Int32?, bannedCount: Int32?, onlineCount: Int32?, readInboxMaxId: Int32, readOutboxMaxId: Int32, unreadCount: Int32, chatPhoto: Api.Photo, notifySettings: Api.PeerNotifySettings, exportedInvite: Api.ExportedChatInvite? , botInfo: [Api.BotInfo], migratedFromChatId: Int32?, migratedFromMaxId: Int32?, pinnedMsgId: Int32?, stickerset: Api.StickerSet?, availableMinId: Int32?, folderId: Int32?, linkedChatId: Int32?, location: Api.ChannelLocation?, slowmodeSeconds: Int32?, slowmodeNextSendDate: Int32?, statsDc: Int32?, pts: Int32, call: Api.InputGroupCall?)
2128
+ case chatFull(flags: Int32, id: Int32, about: String, participants: Api.ChatParticipants, chatPhoto: Api.Photo?, notifySettings: Api.PeerNotifySettings, exportedInvite: Api.ExportedChatInvite? , botInfo: [Api.BotInfo]?, pinnedMsgId: Int32?, folderId: Int32?, call: Api.InputGroupCall?)
2129
2129
2130
2130
public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) {
2131
2131
switch self {
2132
2132
case .channelFull(let flags, let id, let about, let participantsCount, let adminsCount, let kickedCount, let bannedCount, let onlineCount, let readInboxMaxId, let readOutboxMaxId, let unreadCount, let chatPhoto, let notifySettings, let exportedInvite, let botInfo, let migratedFromChatId, let migratedFromMaxId, let pinnedMsgId, let stickerset, let availableMinId, let folderId, let linkedChatId, let location, let slowmodeSeconds, let slowmodeNextSendDate, let statsDc, let pts, let call):
2133
2133
if boxed {
2134
- buffer.appendInt32(-281384243 )
2134
+ buffer.appendInt32(2055070967 )
2135
2135
}
2136
2136
serializeInt32(flags, buffer: buffer, boxed: false)
2137
2137
serializeInt32(id, buffer: buffer, boxed: false)
@@ -2146,7 +2146,7 @@ public extension Api {
2146
2146
serializeInt32(unreadCount, buffer: buffer, boxed: false)
2147
2147
chatPhoto.serialize(buffer, true)
2148
2148
notifySettings.serialize(buffer, true)
2149
- exportedInvite.serialize(buffer, true)
2149
+ if Int(flags) & Int(1 << 23) != 0 { exportedInvite! .serialize(buffer, true)}
2150
2150
buffer.appendInt32(481674261)
2151
2151
buffer.appendInt32(Int32(botInfo.count))
2152
2152
for item in botInfo {
@@ -2168,15 +2168,15 @@ public extension Api {
2168
2168
break
2169
2169
case .chatFull(let flags, let id, let about, let participants, let chatPhoto, let notifySettings, let exportedInvite, let botInfo, let pinnedMsgId, let folderId, let call):
2170
2170
if boxed {
2171
- buffer.appendInt32(231260545 )
2171
+ buffer.appendInt32(-213431562 )
2172
2172
}
2173
2173
serializeInt32(flags, buffer: buffer, boxed: false)
2174
2174
serializeInt32(id, buffer: buffer, boxed: false)
2175
2175
serializeString(about, buffer: buffer, boxed: false)
2176
2176
participants.serialize(buffer, true)
2177
2177
if Int(flags) & Int(1 << 2) != 0 {chatPhoto!.serialize(buffer, true)}
2178
2178
notifySettings.serialize(buffer, true)
2179
- exportedInvite.serialize(buffer, true)
2179
+ if Int(flags) & Int(1 << 13) != 0 { exportedInvite! .serialize(buffer, true)}
2180
2180
if Int(flags) & Int(1 << 3) != 0 {buffer.appendInt32(481674261)
2181
2181
buffer.appendInt32(Int32(botInfo!.count))
2182
2182
for item in botInfo! {
@@ -2230,9 +2230,9 @@ public extension Api {
2230
2230
_13 = Api.parse(reader, signature: signature) as? Api.PeerNotifySettings
2231
2231
}
2232
2232
var _14: Api.ExportedChatInvite?
2233
- if let signature = reader.readInt32() {
2233
+ if Int(_1!) & Int(1 << 23) != 0 {if let signature = reader.readInt32() {
2234
2234
_14 = Api.parse(reader, signature: signature) as? Api.ExportedChatInvite
2235
- }
2235
+ } }
2236
2236
var _15: [Api.BotInfo]?
2237
2237
if let _ = reader.readInt32() {
2238
2238
_15 = Api.parseVector(reader, elementSignature: 0, elementType: Api.BotInfo.self)
@@ -2282,7 +2282,7 @@ public extension Api {
2282
2282
let _c11 = _11 != nil
2283
2283
let _c12 = _12 != nil
2284
2284
let _c13 = _13 != nil
2285
- let _c14 = _14 != nil
2285
+ let _c14 = (Int(_1!) & Int(1 << 23) == 0) || _14 != nil
2286
2286
let _c15 = _15 != nil
2287
2287
let _c16 = (Int(_1!) & Int(1 << 4) == 0) || _16 != nil
2288
2288
let _c17 = (Int(_1!) & Int(1 << 4) == 0) || _17 != nil
@@ -2298,7 +2298,7 @@ public extension Api {
2298
2298
let _c27 = _27 != nil
2299
2299
let _c28 = (Int(_1!) & Int(1 << 21) == 0) || _28 != nil
2300
2300
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 {
2301
- return Api.ChatFull.channelFull(flags: _1!, id: _2!, about: _3!, participantsCount: _4, adminsCount: _5, kickedCount: _6, bannedCount: _7, onlineCount: _8, readInboxMaxId: _9!, readOutboxMaxId: _10!, unreadCount: _11!, chatPhoto: _12!, notifySettings: _13!, exportedInvite: _14! , botInfo: _15!, migratedFromChatId: _16, migratedFromMaxId: _17, pinnedMsgId: _18, stickerset: _19, availableMinId: _20, folderId: _21, linkedChatId: _22, location: _23, slowmodeSeconds: _24, slowmodeNextSendDate: _25, statsDc: _26, pts: _27!, call: _28)
2301
+ return Api.ChatFull.channelFull(flags: _1!, id: _2!, about: _3!, participantsCount: _4, adminsCount: _5, kickedCount: _6, bannedCount: _7, onlineCount: _8, readInboxMaxId: _9!, readOutboxMaxId: _10!, unreadCount: _11!, chatPhoto: _12!, notifySettings: _13!, exportedInvite: _14, botInfo: _15!, migratedFromChatId: _16, migratedFromMaxId: _17, pinnedMsgId: _18, stickerset: _19, availableMinId: _20, folderId: _21, linkedChatId: _22, location: _23, slowmodeSeconds: _24, slowmodeNextSendDate: _25, statsDc: _26, pts: _27!, call: _28)
2302
2302
}
2303
2303
else {
2304
2304
return nil
@@ -2324,9 +2324,9 @@ public extension Api {
2324
2324
_6 = Api.parse(reader, signature: signature) as? Api.PeerNotifySettings
2325
2325
}
2326
2326
var _7: Api.ExportedChatInvite?
2327
- if let signature = reader.readInt32() {
2327
+ if Int(_1!) & Int(1 << 13) != 0 {if let signature = reader.readInt32() {
2328
2328
_7 = Api.parse(reader, signature: signature) as? Api.ExportedChatInvite
2329
- }
2329
+ } }
2330
2330
var _8: [Api.BotInfo]?
2331
2331
if Int(_1!) & Int(1 << 3) != 0 {if let _ = reader.readInt32() {
2332
2332
_8 = Api.parseVector(reader, elementSignature: 0, elementType: Api.BotInfo.self)
@@ -2345,13 +2345,13 @@ public extension Api {
2345
2345
let _c4 = _4 != nil
2346
2346
let _c5 = (Int(_1!) & Int(1 << 2) == 0) || _5 != nil
2347
2347
let _c6 = _6 != nil
2348
- let _c7 = _7 != nil
2348
+ let _c7 = (Int(_1!) & Int(1 << 13) == 0) || _7 != nil
2349
2349
let _c8 = (Int(_1!) & Int(1 << 3) == 0) || _8 != nil
2350
2350
let _c9 = (Int(_1!) & Int(1 << 6) == 0) || _9 != nil
2351
2351
let _c10 = (Int(_1!) & Int(1 << 11) == 0) || _10 != nil
2352
2352
let _c11 = (Int(_1!) & Int(1 << 12) == 0) || _11 != nil
2353
2353
if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 && _c10 && _c11 {
2354
- 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)
2354
+ 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)
2355
2355
}
2356
2356
else {
2357
2357
return nil
@@ -20882,44 +20882,60 @@ public extension Api {
20882
20882
20883
20883
}
20884
20884
public enum ExportedChatInvite: TypeConstructorDescription {
20885
- case chatInviteEmpty
20886
- case chatInviteExported(link: String)
20885
+ case chatInviteExported(flags: Int32, link: String, adminId: Int32, date: Int32, startDate: Int32?, expireDate: Int32?, usageLimit: Int32?, usage: Int32?)
20887
20886
20888
20887
public func serialize(_ buffer: Buffer, _ boxed: Swift.Bool) {
20889
20888
switch self {
20890
- case .chatInviteEmpty :
20889
+ case .chatInviteExported(let flags, let link, let adminId, let date, let startDate, let expireDate, let usageLimit, let usage) :
20891
20890
if boxed {
20892
- buffer.appendInt32(1776236393)
20893
- }
20894
-
20895
- break
20896
- case .chatInviteExported(let link):
20897
- if boxed {
20898
- buffer.appendInt32(-64092740)
20891
+ buffer.appendInt32(1847917725)
20899
20892
}
20893
+ serializeInt32(flags, buffer: buffer, boxed: false)
20900
20894
serializeString(link, buffer: buffer, boxed: false)
20895
+ serializeInt32(adminId, buffer: buffer, boxed: false)
20896
+ serializeInt32(date, buffer: buffer, boxed: false)
20897
+ if Int(flags) & Int(1 << 4) != 0 {serializeInt32(startDate!, buffer: buffer, boxed: false)}
20898
+ if Int(flags) & Int(1 << 1) != 0 {serializeInt32(expireDate!, buffer: buffer, boxed: false)}
20899
+ if Int(flags) & Int(1 << 2) != 0 {serializeInt32(usageLimit!, buffer: buffer, boxed: false)}
20900
+ if Int(flags) & Int(1 << 3) != 0 {serializeInt32(usage!, buffer: buffer, boxed: false)}
20901
20901
break
20902
20902
}
20903
20903
}
20904
20904
20905
20905
public func descriptionFields() -> (String, [(String, Any)]) {
20906
20906
switch self {
20907
- case .chatInviteEmpty:
20908
- return ("chatInviteEmpty", [])
20909
- case .chatInviteExported(let link):
20910
- return ("chatInviteExported", [("link", link)])
20907
+ case .chatInviteExported(let flags, let link, let adminId, let date, let startDate, let expireDate, let usageLimit, let usage):
20908
+ return ("chatInviteExported", [("flags", flags), ("link", link), ("adminId", adminId), ("date", date), ("startDate", startDate), ("expireDate", expireDate), ("usageLimit", usageLimit), ("usage", usage)])
20911
20909
}
20912
20910
}
20913
20911
20914
- public static func parse_chatInviteEmpty(_ reader: BufferReader) -> ExportedChatInvite? {
20915
- return Api.ExportedChatInvite.chatInviteEmpty
20916
- }
20917
20912
public static func parse_chatInviteExported(_ reader: BufferReader) -> ExportedChatInvite? {
20918
- var _1: String?
20919
- _1 = parseString(reader)
20913
+ var _1: Int32?
20914
+ _1 = reader.readInt32()
20915
+ var _2: String?
20916
+ _2 = parseString(reader)
20917
+ var _3: Int32?
20918
+ _3 = reader.readInt32()
20919
+ var _4: Int32?
20920
+ _4 = reader.readInt32()
20921
+ var _5: Int32?
20922
+ if Int(_1!) & Int(1 << 4) != 0 {_5 = reader.readInt32() }
20923
+ var _6: Int32?
20924
+ if Int(_1!) & Int(1 << 1) != 0 {_6 = reader.readInt32() }
20925
+ var _7: Int32?
20926
+ if Int(_1!) & Int(1 << 2) != 0 {_7 = reader.readInt32() }
20927
+ var _8: Int32?
20928
+ if Int(_1!) & Int(1 << 3) != 0 {_8 = reader.readInt32() }
20920
20929
let _c1 = _1 != nil
20921
- if _c1 {
20922
- return Api.ExportedChatInvite.chatInviteExported(link: _1!)
20930
+ let _c2 = _2 != nil
20931
+ let _c3 = _3 != nil
20932
+ let _c4 = _4 != nil
20933
+ let _c5 = (Int(_1!) & Int(1 << 4) == 0) || _5 != nil
20934
+ let _c6 = (Int(_1!) & Int(1 << 1) == 0) || _6 != nil
20935
+ let _c7 = (Int(_1!) & Int(1 << 2) == 0) || _7 != nil
20936
+ let _c8 = (Int(_1!) & Int(1 << 3) == 0) || _8 != nil
20937
+ if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 {
20938
+ return Api.ExportedChatInvite.chatInviteExported(flags: _1!, link: _2!, adminId: _3!, date: _4!, startDate: _5, expireDate: _6, usageLimit: _7, usage: _8)
20923
20939
}
20924
20940
else {
20925
20941
return nil
0 commit comments