@@ -381,7 +381,7 @@ public extension Api {
381381 case messageActionSetChatWallPaper( flags: Int32 , wallpaper: Api . WallPaper )
382382 case messageActionSetMessagesTTL( flags: Int32 , period: Int32 , autoSettingFrom: Int64 ? )
383383 case messageActionStarGift( flags: Int32 , gift: Api . StarGift , message: Api . TextWithEntities ? , convertStars: Int64 ? , upgradeMsgId: Int32 ? , upgradeStars: Int64 ? , fromId: Api . Peer ? , peer: Api . Peer ? , savedId: Int64 ? )
384- case messageActionStarGiftUnique( flags: Int32 , gift: Api . StarGift , canExportAt: Int32 ? , transferStars: Int64 ? , fromId: Api . Peer ? , peer: Api . Peer ? , savedId: Int64 ? , resaleStars: Int64 ? )
384+ case messageActionStarGiftUnique( flags: Int32 , gift: Api . StarGift , canExportAt: Int32 ? , transferStars: Int64 ? , fromId: Api . Peer ? , peer: Api . Peer ? , savedId: Int64 ? , resaleStars: Int64 ? , canTransferAt : Int32 ? , canResellAt : Int32 ? )
385385 case messageActionSuggestProfilePhoto( photo: Api . Photo )
386386 case messageActionTopicCreate( flags: Int32 , title: String , iconColor: Int32 , iconEmojiId: Int64 ? )
387387 case messageActionTopicEdit( flags: Int32 , title: String ? , iconEmojiId: Int64 ? , closed: Api . Bool ? , hidden: Api . Bool ? )
@@ -767,9 +767,9 @@ public extension Api {
767767 if Int ( flags) & Int ( 1 << 12 ) != 0 { peer!. serialize ( buffer, true ) }
768768 if Int ( flags) & Int ( 1 << 12 ) != 0 { serializeInt64 ( savedId!, buffer: buffer, boxed: false ) }
769769 break
770- case . messageActionStarGiftUnique( let flags, let gift, let canExportAt, let transferStars, let fromId, let peer, let savedId, let resaleStars) :
770+ case . messageActionStarGiftUnique( let flags, let gift, let canExportAt, let transferStars, let fromId, let peer, let savedId, let resaleStars, let canTransferAt , let canResellAt ) :
771771 if boxed {
772- buffer. appendInt32 ( 1600878025 )
772+ buffer. appendInt32 ( 775611918 )
773773 }
774774 serializeInt32 ( flags, buffer: buffer, boxed: false )
775775 gift. serialize ( buffer, true )
@@ -779,6 +779,8 @@ public extension Api {
779779 if Int ( flags) & Int ( 1 << 7 ) != 0 { peer!. serialize ( buffer, true ) }
780780 if Int ( flags) & Int ( 1 << 7 ) != 0 { serializeInt64 ( savedId!, buffer: buffer, boxed: false ) }
781781 if Int ( flags) & Int ( 1 << 8 ) != 0 { serializeInt64 ( resaleStars!, buffer: buffer, boxed: false ) }
782+ if Int ( flags) & Int ( 1 << 9 ) != 0 { serializeInt32 ( canTransferAt!, buffer: buffer, boxed: false ) }
783+ if Int ( flags) & Int ( 1 << 10 ) != 0 { serializeInt32 ( canResellAt!, buffer: buffer, boxed: false ) }
782784 break
783785 case . messageActionSuggestProfilePhoto( let photo) :
784786 if boxed {
@@ -913,8 +915,8 @@ public extension Api {
913915 return ( " messageActionSetMessagesTTL " , [ ( " flags " , flags as Any ) , ( " period " , period as Any ) , ( " autoSettingFrom " , autoSettingFrom as Any ) ] )
914916 case . messageActionStarGift( let flags, let gift, let message, let convertStars, let upgradeMsgId, let upgradeStars, let fromId, let peer, let savedId) :
915917 return ( " messageActionStarGift " , [ ( " flags " , flags as Any ) , ( " gift " , gift as Any ) , ( " message " , message as Any ) , ( " convertStars " , convertStars as Any ) , ( " upgradeMsgId " , upgradeMsgId as Any ) , ( " upgradeStars " , upgradeStars as Any ) , ( " fromId " , fromId as Any ) , ( " peer " , peer as Any ) , ( " savedId " , savedId as Any ) ] )
916- case . messageActionStarGiftUnique( let flags, let gift, let canExportAt, let transferStars, let fromId, let peer, let savedId, let resaleStars) :
917- return ( " messageActionStarGiftUnique " , [ ( " flags " , flags as Any ) , ( " gift " , gift as Any ) , ( " canExportAt " , canExportAt as Any ) , ( " transferStars " , transferStars as Any ) , ( " fromId " , fromId as Any ) , ( " peer " , peer as Any ) , ( " savedId " , savedId as Any ) , ( " resaleStars " , resaleStars as Any ) ] )
918+ case . messageActionStarGiftUnique( let flags, let gift, let canExportAt, let transferStars, let fromId, let peer, let savedId, let resaleStars, let canTransferAt , let canResellAt ) :
919+ return ( " messageActionStarGiftUnique " , [ ( " flags " , flags as Any ) , ( " gift " , gift as Any ) , ( " canExportAt " , canExportAt as Any ) , ( " transferStars " , transferStars as Any ) , ( " fromId " , fromId as Any ) , ( " peer " , peer as Any ) , ( " savedId " , savedId as Any ) , ( " resaleStars " , resaleStars as Any ) , ( " canTransferAt " , canTransferAt as Any ) , ( " canResellAt " , canResellAt as Any ) ] )
918920 case . messageActionSuggestProfilePhoto( let photo) :
919921 return ( " messageActionSuggestProfilePhoto " , [ ( " photo " , photo as Any ) ] )
920922 case . messageActionTopicCreate( let flags, let title, let iconColor, let iconEmojiId) :
@@ -1675,6 +1677,10 @@ public extension Api {
16751677 if Int ( _1!) & Int ( 1 << 7 ) != 0 { _7 = reader. readInt64 ( ) }
16761678 var _8 : Int64 ?
16771679 if Int ( _1!) & Int ( 1 << 8 ) != 0 { _8 = reader. readInt64 ( ) }
1680+ var _9 : Int32 ?
1681+ if Int ( _1!) & Int ( 1 << 9 ) != 0 { _9 = reader. readInt32 ( ) }
1682+ var _10 : Int32 ?
1683+ if Int ( _1!) & Int ( 1 << 10 ) != 0 { _10 = reader. readInt32 ( ) }
16781684 let _c1 = _1 != nil
16791685 let _c2 = _2 != nil
16801686 let _c3 = ( Int ( _1!) & Int ( 1 << 3 ) == 0 ) || _3 != nil
@@ -1683,8 +1689,10 @@ public extension Api {
16831689 let _c6 = ( Int ( _1!) & Int ( 1 << 7 ) == 0 ) || _6 != nil
16841690 let _c7 = ( Int ( _1!) & Int ( 1 << 7 ) == 0 ) || _7 != nil
16851691 let _c8 = ( Int ( _1!) & Int ( 1 << 8 ) == 0 ) || _8 != nil
1686- if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 {
1687- return Api . MessageAction. messageActionStarGiftUnique ( flags: _1!, gift: _2!, canExportAt: _3, transferStars: _4, fromId: _5, peer: _6, savedId: _7, resaleStars: _8)
1692+ let _c9 = ( Int ( _1!) & Int ( 1 << 9 ) == 0 ) || _9 != nil
1693+ let _c10 = ( Int ( _1!) & Int ( 1 << 10 ) == 0 ) || _10 != nil
1694+ if _c1 && _c2 && _c3 && _c4 && _c5 && _c6 && _c7 && _c8 && _c9 && _c10 {
1695+ return Api . MessageAction. messageActionStarGiftUnique ( flags: _1!, gift: _2!, canExportAt: _3, transferStars: _4, fromId: _5, peer: _6, savedId: _7, resaleStars: _8, canTransferAt: _9, canResellAt: _10)
16881696 }
16891697 else {
16901698 return nil
0 commit comments