Skip to content

Commit d26f424

Browse files
committed
Bump filerefmap
1 parent 3f92cf3 commit d26f424

4 files changed

Lines changed: 14 additions & 3 deletions

File tree

src/file_ref_map.dat

1.45 KB
Binary file not shown.

src/file_ref_map.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

tools/FileRefExtractor/FileRefGenerator.php

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)