@@ -628,14 +628,14 @@ public extension Api {
628628}
629629public extension Api {
630630 enum StarGift : TypeConstructorDescription {
631- 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 ? )
631+ 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 ? )
632632 case starGiftUnique( flags: Int32 , id: Int64 , title: String , slug: String , num: Int32 , ownerId: Api . Peer ? , ownerName: String ? , ownerAddress: String ? , attributes: [ Api . StarGiftAttribute ] , availabilityIssued: Int32 , availabilityTotal: Int32 , giftAddress: String ? , resellStars: Int64 ? )
633633
634634 public func serialize( _ buffer: Buffer , _ boxed: Swift . Bool ) {
635635 switch self {
636- 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) :
636+ 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 ) :
637637 if boxed {
638- buffer. appendInt32 ( - 1615652352 )
638+ buffer. appendInt32 ( - 970274264 )
639639 }
640640 serializeInt32 ( flags, buffer: buffer, boxed: false )
641641 serializeInt64 ( id, buffer: buffer, boxed: false )
@@ -649,6 +649,7 @@ public extension Api {
649649 if Int ( flags) & Int ( 1 << 1 ) != 0 { serializeInt32 ( lastSaleDate!, buffer: buffer, boxed: false ) }
650650 if Int ( flags) & Int ( 1 << 3 ) != 0 { serializeInt64 ( upgradeStars!, buffer: buffer, boxed: false ) }
651651 if Int ( flags) & Int ( 1 << 4 ) != 0 { serializeInt64 ( resellMinStars!, buffer: buffer, boxed: false ) }
652+ if Int ( flags) & Int ( 1 << 5 ) != 0 { serializeString ( title!, buffer: buffer, boxed: false ) }
652653 break
653654 case . starGiftUnique( let flags, let id, let title, let slug, let num, let ownerId, let ownerName, let ownerAddress, let attributes, let availabilityIssued, let availabilityTotal, let giftAddress, let resellStars) :
654655 if boxed {
@@ -677,8 +678,8 @@ public extension Api {
677678
678679 public func descriptionFields( ) -> ( String , [ ( String , Any ) ] ) {
679680 switch self {
680- 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) :
681- 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 ) ] )
681+ 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 ) :
682+ 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 ) ] )
682683 case . starGiftUnique( let flags, let id, let title, let slug, let num, let ownerId, let ownerName, let ownerAddress, let attributes, let availabilityIssued, let availabilityTotal, let giftAddress, let resellStars) :
683684 return ( " starGiftUnique " , [ ( " flags " , flags as Any ) , ( " id " , id 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 ) , ( " resellStars " , resellStars as Any ) ] )
684685 }
@@ -711,6 +712,8 @@ public extension Api {
711712 if Int ( _1!) & Int ( 1 << 3 ) != 0 { _11 = reader. readInt64 ( ) }
712713 var _12 : Int64 ?
713714 if Int ( _1!) & Int ( 1 << 4 ) != 0 { _12 = reader. readInt64 ( ) }
715+ var _13 : String ?
716+ if Int ( _1!) & Int ( 1 << 5 ) != 0 { _13 = parseString ( reader) }
714717 let _c1 = _1 != nil
715718 let _c2 = _2 != nil
716719 let _c3 = _3 != nil
@@ -723,8 +726,9 @@ public extension Api {
723726 let _c10 = ( Int ( _1!) & Int ( 1 << 1 ) == 0 ) || _10 != nil
724727 let _c11 = ( Int ( _1!) & Int ( 1 << 3 ) == 0 ) || _11 != nil
725728 let _c12 = ( Int ( _1!) & Int ( 1 << 4 ) == 0 ) || _12 != nil
726- if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 && _c10 && _c11 && _c12 {
727- 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)
729+ let _c13 = ( Int ( _1!) & Int ( 1 << 5 ) == 0 ) || _13 != nil
730+ if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 && _c10 && _c11 && _c12 && _c13 {
731+ 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)
728732 }
729733 else {
730734 return nil
0 commit comments