@@ -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 ? , auctionSlug: String ? , giftsPerRound: 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 ? , themePeer: Api . Peer ? , peerColor: Api . PeerColor ? , hostId: Api . Peer ? )
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 ? , peerColor: Api . PeerColor ? , hostId: Api . Peer ? , offerMinStars : Int32 ? )
293293
294294 public func serialize( _ buffer: Buffer , _ boxed: Swift . Bool ) {
295295 switch self {
@@ -317,9 +317,9 @@ public extension Api {
317317 if Int ( flags) & Int ( 1 << 11 ) != 0 { serializeString ( auctionSlug!, buffer: buffer, boxed: false ) }
318318 if Int ( flags) & Int ( 1 << 11 ) != 0 { serializeInt32 ( giftsPerRound!, buffer: buffer, boxed: false ) }
319319 break
320- 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, let peerColor, let hostId) :
320+ 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, let peerColor, let hostId, let offerMinStars ) :
321321 if boxed {
322- buffer. appendInt32 ( - 1329630181 )
322+ buffer. appendInt32 ( - 1624264554 )
323323 }
324324 serializeInt32 ( flags, buffer: buffer, boxed: false )
325325 serializeInt64 ( id, buffer: buffer, boxed: false )
@@ -349,6 +349,7 @@ public extension Api {
349349 if Int ( flags) & Int ( 1 << 10 ) != 0 { themePeer!. serialize ( buffer, true ) }
350350 if Int ( flags) & Int ( 1 << 11 ) != 0 { peerColor!. serialize ( buffer, true ) }
351351 if Int ( flags) & Int ( 1 << 12 ) != 0 { hostId!. serialize ( buffer, true ) }
352+ if Int ( flags) & Int ( 1 << 13 ) != 0 { serializeInt32 ( offerMinStars!, buffer: buffer, boxed: false ) }
352353 break
353354 }
354355 }
@@ -357,8 +358,8 @@ public extension Api {
357358 switch self {
358359 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, let auctionSlug, let giftsPerRound) :
359360 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 ) , ( " auctionSlug " , auctionSlug as Any ) , ( " giftsPerRound " , giftsPerRound as Any ) ] )
360- 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, let peerColor, let hostId) :
361- 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 ) , ( " peerColor " , peerColor as Any ) , ( " hostId " , hostId as Any ) ] )
361+ 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, let peerColor, let hostId, let offerMinStars ) :
362+ 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 ) , ( " peerColor " , peerColor as Any ) , ( " hostId " , hostId as Any ) , ( " offerMinStars " , offerMinStars as Any ) ] )
362363 }
363364 }
364365
@@ -486,6 +487,8 @@ public extension Api {
486487 if Int ( _1!) & Int ( 1 << 12 ) != 0 { if let signature = reader. readInt32 ( ) {
487488 _20 = Api . parse ( reader, signature: signature) as? Api . Peer
488489 } }
490+ var _21 : Int32 ?
491+ if Int ( _1!) & Int ( 1 << 13 ) != 0 { _21 = reader. readInt32 ( ) }
489492 let _c1 = _1 != nil
490493 let _c2 = _2 != nil
491494 let _c3 = _3 != nil
@@ -506,8 +509,9 @@ public extension Api {
506509 let _c18 = ( Int ( _1!) & Int ( 1 << 10 ) == 0 ) || _18 != nil
507510 let _c19 = ( Int ( _1!) & Int ( 1 << 11 ) == 0 ) || _19 != nil
508511 let _c20 = ( Int ( _1!) & Int ( 1 << 12 ) == 0 ) || _20 != nil
509- if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 && _c10 && _c11 && _c12 && _c13 && _c14 && _c15 && _c16 && _c17 && _c18 && _c19 && _c20 {
510- 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, peerColor: _19, hostId: _20)
512+ let _c21 = ( Int ( _1!) & Int ( 1 << 13 ) == 0 ) || _21 != nil
513+ if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 && _c10 && _c11 && _c12 && _c13 && _c14 && _c15 && _c16 && _c17 && _c18 && _c19 && _c20 && _c21 {
514+ 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, peerColor: _19, hostId: _20, offerMinStars: _21)
511515 }
512516 else {
513517 return nil
0 commit comments