@@ -330,6 +330,14 @@ public static function generate(int $layer, string $inputSchema, string $outputF
330330 'fileSourceAvailableReactions '
331331 );
332332
333+ $ locations ['updateMessagePoll ' ][] = new GetMessageOp (
334+ new GetInputPeerOp (new Path ([['updateMessagePoll ' , 'peer ' , Path::FLAG_IF_ABSENT_ABORT ]])),
335+ new CopyOp ([['updateMessagePoll ' , 'msg_id ' , Path::FLAG_IF_ABSENT_ABORT ]]),
336+ null ,
337+ null ,
338+ 'fileSourceMessage ' ,
339+ );
340+
333341 $ locations ['photo ' ][] = new CallOp (
334342 'photos.getUserPhotos ' ,
335343 [
@@ -448,7 +456,7 @@ public static function generate(int $layer, string $inputSchema, string $outputF
448456 $ outgoingList = $ TL ->tl ->getMethods ()->by_id ;
449457 foreach ($ TL ->tl ->getConstructors ()->by_id as $ k => $ constructor ) {
450458 if (str_starts_with ($ constructor ['predicate ' ], 'input ' )
451- && ctype_upper (substr ($ constructor ['predicate ' ], strlen ('input ' ), 1 ))
459+ && ctype_upper (substr ($ constructor ['predicate ' ], \ strlen ('input ' ), 1 ))
452460 ) {
453461 $ outgoingList [$ k ] = $ constructor ;
454462 } else {
@@ -692,6 +700,9 @@ static function (array $stack) use ($locations, $TL, $tmp, &$incomingTraversalPa
692700 || $ top === 'messages.getRecentStickers '
693701 || $ top === 'updateNewStickerSet '
694702 // The above are covered by the GetInputStickerSet document context
703+
704+ || $ top === 'updateMessagePoll '
705+ // Tmp
695706 ) {
696707 return ;
697708 }
0 commit comments