mirror of
https://github.com/danog/tg-file-decoder.git
synced 2024-11-26 12:24:40 +01:00
Add a few legacy stickers
This commit is contained in:
parent
edb02aae86
commit
d9e5382659
@ -518,7 +518,7 @@ function internalDecode(string $fileId): array
|
||||
$l = \fstat($fileId)['size'] - \ftell($fileId);
|
||||
$l -= $result['version'] >= 4 ? 2 : 1;
|
||||
if ($l > 0) {
|
||||
\trigger_error("Unique file ID $orig has $l bytes of leftover data");
|
||||
\trigger_error("File ID $orig has $l bytes of leftover data");
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
@ -34,6 +34,14 @@ class IntegrationTest extends TestCase
|
||||
|
||||
public function provideFileIdsAndType(): \Generator
|
||||
{
|
||||
foreach (['CAADBAADwwADmFmqDf6xBrPTReqHFgQ', 'CAACAgQAAxkBAAIC4l9CWDGzVUcDejU0TETLWbOdfsCoAALDAAOYWaoN_rEGs9NF6ocbBA', 'CAADBAADwwADmFmqDf6xBrPTReqHAg'] as $fileId) {
|
||||
yield [
|
||||
'sticker',
|
||||
$fileId,
|
||||
'AgADwwADmFmqDQ'
|
||||
];
|
||||
}
|
||||
|
||||
$dest = \getenv('DEST');
|
||||
$token = \getenv('TOKEN');
|
||||
foreach ($this->provideChats() as $chat) {
|
||||
@ -85,7 +93,6 @@ class IntegrationTest extends TestCase
|
||||
}
|
||||
}
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
public function provideChats(): array
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user