@@ -858,28 +858,31 @@ public extension Api {
858858}
859859public extension Api {
860860 enum StarsSubscription : TypeConstructorDescription {
861- case starsSubscription( flags: Int32 , id: String , peer: Api . Peer , untilDate: Int32 , pricing: Api . StarsSubscriptionPricing , chatInviteHash: String ? )
861+ case starsSubscription( flags: Int32 , id: String , peer: Api . Peer , untilDate: Int32 , pricing: Api . StarsSubscriptionPricing , chatInviteHash: String ? , title : String ? , photo : Api . WebDocument ? , invoiceSlug : String ? )
862862
863863 public func serialize( _ buffer: Buffer , _ boxed: Swift . Bool ) {
864864 switch self {
865- case . starsSubscription( let flags, let id, let peer, let untilDate, let pricing, let chatInviteHash) :
865+ case . starsSubscription( let flags, let id, let peer, let untilDate, let pricing, let chatInviteHash, let title , let photo , let invoiceSlug ) :
866866 if boxed {
867- buffer. appendInt32 ( 1401868056 )
867+ buffer. appendInt32 ( 779004698 )
868868 }
869869 serializeInt32 ( flags, buffer: buffer, boxed: false )
870870 serializeString ( id, buffer: buffer, boxed: false )
871871 peer. serialize ( buffer, true )
872872 serializeInt32 ( untilDate, buffer: buffer, boxed: false )
873873 pricing. serialize ( buffer, true )
874874 if Int ( flags) & Int ( 1 << 3 ) != 0 { serializeString ( chatInviteHash!, buffer: buffer, boxed: false ) }
875+ if Int ( flags) & Int ( 1 << 4 ) != 0 { serializeString ( title!, buffer: buffer, boxed: false ) }
876+ if Int ( flags) & Int ( 1 << 5 ) != 0 { photo!. serialize ( buffer, true ) }
877+ if Int ( flags) & Int ( 1 << 6 ) != 0 { serializeString ( invoiceSlug!, buffer: buffer, boxed: false ) }
875878 break
876879 }
877880 }
878881
879882 public func descriptionFields( ) -> ( String , [ ( String , Any ) ] ) {
880883 switch self {
881- case . starsSubscription( let flags, let id, let peer, let untilDate, let pricing, let chatInviteHash) :
882- return ( " starsSubscription " , [ ( " flags " , flags as Any ) , ( " id " , id as Any ) , ( " peer " , peer as Any ) , ( " untilDate " , untilDate as Any ) , ( " pricing " , pricing as Any ) , ( " chatInviteHash " , chatInviteHash as Any ) ] )
884+ case . starsSubscription( let flags, let id, let peer, let untilDate, let pricing, let chatInviteHash, let title , let photo , let invoiceSlug ) :
885+ return ( " starsSubscription " , [ ( " flags " , flags as Any ) , ( " id " , id as Any ) , ( " peer " , peer as Any ) , ( " untilDate " , untilDate as Any ) , ( " pricing " , pricing as Any ) , ( " chatInviteHash " , chatInviteHash as Any ) , ( " title " , title as Any ) , ( " photo " , photo as Any ) , ( " invoiceSlug " , invoiceSlug as Any ) ] )
883886 }
884887 }
885888
@@ -900,14 +903,25 @@ public extension Api {
900903 }
901904 var _6 : String ?
902905 if Int ( _1!) & Int ( 1 << 3 ) != 0 { _6 = parseString ( reader) }
906+ var _7 : String ?
907+ if Int ( _1!) & Int ( 1 << 4 ) != 0 { _7 = parseString ( reader) }
908+ var _8 : Api . WebDocument ?
909+ if Int ( _1!) & Int ( 1 << 5 ) != 0 { if let signature = reader. readInt32 ( ) {
910+ _8 = Api . parse ( reader, signature: signature) as? Api . WebDocument
911+ } }
912+ var _9 : String ?
913+ if Int ( _1!) & Int ( 1 << 6 ) != 0 { _9 = parseString ( reader) }
903914 let _c1 = _1 != nil
904915 let _c2 = _2 != nil
905916 let _c3 = _3 != nil
906917 let _c4 = _4 != nil
907918 let _c5 = _5 != nil
908919 let _c6 = ( Int ( _1!) & Int ( 1 << 3 ) == 0 ) || _6 != nil
909- if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 {
910- return Api . StarsSubscription. starsSubscription ( flags: _1!, id: _2!, peer: _3!, untilDate: _4!, pricing: _5!, chatInviteHash: _6)
920+ let _c7 = ( Int ( _1!) & Int ( 1 << 4 ) == 0 ) || _7 != nil
921+ let _c8 = ( Int ( _1!) & Int ( 1 << 5 ) == 0 ) || _8 != nil
922+ let _c9 = ( Int ( _1!) & Int ( 1 << 6 ) == 0 ) || _9 != nil
923+ if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 {
924+ return Api . StarsSubscription. starsSubscription ( flags: _1!, id: _2!, peer: _3!, untilDate: _4!, pricing: _5!, chatInviteHash: _6, title: _7, photo: _8, invoiceSlug: _9)
911925 }
912926 else {
913927 return nil
0 commit comments