@@ -289,7 +289,7 @@ public extension Api {
289289public extension Api {
290290 enum StarGift : TypeConstructorDescription {
291291 case starGift( flags: Int32 , id: Int64 , sticker: Api . Document , stars: Int64 , availabilityRemains: Int32 ? , availabilityTotal: Int32 ? , availabilityResale: Int64 ? , convertStars: Int64 , firstSaleDate: Int32 ? , lastSaleDate: Int32 ? , upgradeStars: Int64 ? , resellMinStars: Int64 ? , title: String ? , releasedBy: Api . Peer ? , perUserTotal: Int32 ? , perUserRemains: Int32 ? , lockedUntilDate: Int32 ? )
292- case starGiftUnique( flags: Int32 , id: Int64 , giftId: Int64 , title: String , slug: String , num: Int32 , ownerId: Api . Peer ? , ownerName: String ? , ownerAddress: String ? , attributes: [ Api . StarGiftAttribute ] , availabilityIssued: Int32 , availabilityTotal: Int32 , giftAddress: String ? , resellAmount: [ Api . StarsAmount ] ? , releasedBy: Api . Peer ? , valueAmount: Int64 ? , valueCurrency: String ? )
292+ case starGiftUnique( flags: Int32 , id: Int64 , giftId: Int64 , title: String , slug: String , num: Int32 , ownerId: Api . Peer ? , ownerName: String ? , ownerAddress: String ? , attributes: [ Api . StarGiftAttribute ] , availabilityIssued: Int32 , availabilityTotal: Int32 , giftAddress: String ? , resellAmount: [ Api . StarsAmount ] ? , releasedBy: Api . Peer ? , valueAmount: Int64 ? , valueCurrency: String ? , themePeer : Api . Peer ? )
293293
294294 public func serialize( _ buffer: Buffer , _ boxed: Swift . Bool ) {
295295 switch self {
@@ -315,9 +315,9 @@ public extension Api {
315315 if Int ( flags) & Int ( 1 << 8 ) != 0 { serializeInt32 ( perUserRemains!, buffer: buffer, boxed: false ) }
316316 if Int ( flags) & Int ( 1 << 9 ) != 0 { serializeInt32 ( lockedUntilDate!, buffer: buffer, boxed: false ) }
317317 break
318- case . starGiftUnique( let flags, let id, let giftId, let title, let slug, let num, let ownerId, let ownerName, let ownerAddress, let attributes, let availabilityIssued, let availabilityTotal, let giftAddress, let resellAmount, let releasedBy, let valueAmount, let valueCurrency) :
318+ case . starGiftUnique( let flags, let id, let giftId, let title, let slug, let num, let ownerId, let ownerName, let ownerAddress, let attributes, let availabilityIssued, let availabilityTotal, let giftAddress, let resellAmount, let releasedBy, let valueAmount, let valueCurrency, let themePeer ) :
319319 if boxed {
320- buffer. appendInt32 ( 648369470 )
320+ buffer. appendInt32 ( 468707429 )
321321 }
322322 serializeInt32 ( flags, buffer: buffer, boxed: false )
323323 serializeInt64 ( id, buffer: buffer, boxed: false )
@@ -344,6 +344,7 @@ public extension Api {
344344 if Int ( flags) & Int ( 1 << 5 ) != 0 { releasedBy!. serialize ( buffer, true ) }
345345 if Int ( flags) & Int ( 1 << 8 ) != 0 { serializeInt64 ( valueAmount!, buffer: buffer, boxed: false ) }
346346 if Int ( flags) & Int ( 1 << 8 ) != 0 { serializeString ( valueCurrency!, buffer: buffer, boxed: false ) }
347+ if Int ( flags) & Int ( 1 << 10 ) != 0 { themePeer!. serialize ( buffer, true ) }
347348 break
348349 }
349350 }
@@ -352,8 +353,8 @@ public extension Api {
352353 switch self {
353354 case . starGift( let flags, let id, let sticker, let stars, let availabilityRemains, let availabilityTotal, let availabilityResale, let convertStars, let firstSaleDate, let lastSaleDate, let upgradeStars, let resellMinStars, let title, let releasedBy, let perUserTotal, let perUserRemains, let lockedUntilDate) :
354355 return ( " starGift " , [ ( " flags " , flags as Any ) , ( " id " , id as Any ) , ( " sticker " , sticker as Any ) , ( " stars " , stars as Any ) , ( " availabilityRemains " , availabilityRemains as Any ) , ( " availabilityTotal " , availabilityTotal as Any ) , ( " availabilityResale " , availabilityResale as Any ) , ( " convertStars " , convertStars as Any ) , ( " firstSaleDate " , firstSaleDate as Any ) , ( " lastSaleDate " , lastSaleDate as Any ) , ( " upgradeStars " , upgradeStars as Any ) , ( " resellMinStars " , resellMinStars as Any ) , ( " title " , title as Any ) , ( " releasedBy " , releasedBy as Any ) , ( " perUserTotal " , perUserTotal as Any ) , ( " perUserRemains " , perUserRemains as Any ) , ( " lockedUntilDate " , lockedUntilDate as Any ) ] )
355- case . starGiftUnique( let flags, let id, let giftId, let title, let slug, let num, let ownerId, let ownerName, let ownerAddress, let attributes, let availabilityIssued, let availabilityTotal, let giftAddress, let resellAmount, let releasedBy, let valueAmount, let valueCurrency) :
356- return ( " starGiftUnique " , [ ( " flags " , flags as Any ) , ( " id " , id as Any ) , ( " giftId " , giftId as Any ) , ( " title " , title as Any ) , ( " slug " , slug as Any ) , ( " num " , num as Any ) , ( " ownerId " , ownerId as Any ) , ( " ownerName " , ownerName as Any ) , ( " ownerAddress " , ownerAddress as Any ) , ( " attributes " , attributes as Any ) , ( " availabilityIssued " , availabilityIssued as Any ) , ( " availabilityTotal " , availabilityTotal as Any ) , ( " giftAddress " , giftAddress as Any ) , ( " resellAmount " , resellAmount as Any ) , ( " releasedBy " , releasedBy as Any ) , ( " valueAmount " , valueAmount as Any ) , ( " valueCurrency " , valueCurrency as Any ) ] )
356+ case . starGiftUnique( let flags, let id, let giftId, let title, let slug, let num, let ownerId, let ownerName, let ownerAddress, let attributes, let availabilityIssued, let availabilityTotal, let giftAddress, let resellAmount, let releasedBy, let valueAmount, let valueCurrency, let themePeer ) :
357+ return ( " starGiftUnique " , [ ( " flags " , flags as Any ) , ( " id " , id as Any ) , ( " giftId " , giftId as Any ) , ( " title " , title as Any ) , ( " slug " , slug as Any ) , ( " num " , num as Any ) , ( " ownerId " , ownerId as Any ) , ( " ownerName " , ownerName as Any ) , ( " ownerAddress " , ownerAddress as Any ) , ( " attributes " , attributes as Any ) , ( " availabilityIssued " , availabilityIssued as Any ) , ( " availabilityTotal " , availabilityTotal as Any ) , ( " giftAddress " , giftAddress as Any ) , ( " resellAmount " , resellAmount as Any ) , ( " releasedBy " , releasedBy as Any ) , ( " valueAmount " , valueAmount as Any ) , ( " valueCurrency " , valueCurrency as Any ) , ( " themePeer " , themePeer as Any ) ] )
357358 }
358359 }
359360
@@ -463,6 +464,10 @@ public extension Api {
463464 if Int ( _1!) & Int ( 1 << 8 ) != 0 { _16 = reader. readInt64 ( ) }
464465 var _17 : String ?
465466 if Int ( _1!) & Int ( 1 << 8 ) != 0 { _17 = parseString ( reader) }
467+ var _18 : Api . Peer ?
468+ if Int ( _1!) & Int ( 1 << 10 ) != 0 { if let signature = reader. readInt32 ( ) {
469+ _18 = Api . parse ( reader, signature: signature) as? Api . Peer
470+ } }
466471 let _c1 = _1 != nil
467472 let _c2 = _2 != nil
468473 let _c3 = _3 != nil
@@ -480,8 +485,9 @@ public extension Api {
480485 let _c15 = ( Int ( _1!) & Int ( 1 << 5 ) == 0 ) || _15 != nil
481486 let _c16 = ( Int ( _1!) & Int ( 1 << 8 ) == 0 ) || _16 != nil
482487 let _c17 = ( Int ( _1!) & Int ( 1 << 8 ) == 0 ) || _17 != nil
483- if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 && _c10 && _c11 && _c12 && _c13 && _c14 && _c15 && _c16 && _c17 {
484- 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)
488+ let _c18 = ( Int ( _1!) & Int ( 1 << 10 ) == 0 ) || _18 != nil
489+ if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 && _c10 && _c11 && _c12 && _c13 && _c14 && _c15 && _c16 && _c17 && _c18 {
490+ 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, themePeer: _18)
485491 }
486492 else {
487493 return nil
0 commit comments