Bump docs

This commit is contained in:
Daniil Gentili 2024-04-01 18:04:53 +02:00
parent 4a455d2505
commit b6fef5ec62
2 changed files with 6 additions and 8 deletions

1
.gitignore vendored
View File

@ -126,4 +126,3 @@ coverage
tempConv tempConv
extracted.json extracted.json
tools tools
docs

View File

@ -108,13 +108,12 @@ Click [here »](https://github.com/danog/tg-file-decoder/blob/master/docs/i
### Building custom file IDs ### Building custom file IDs
```php ```php
$fileId = new FileId; $fileId = new FileId(
type: FileIdType::STICKER,
$fileId->setType(STICKER); id: $id,
$fileId->setId($id); accessHash: $accessHash,
$fileId->setAccessHash($customHash); // and so on...
);
// You get it...
$encoded = (string) $fileId; // CAACAgQAAxkDAAJEsl44nl3yxPZ8biI8uhaA7rbQceOSAAKtAQACsTisUXvMEbVnTuQkGAQ, or something $encoded = (string) $fileId; // CAACAgQAAxkDAAJEsl44nl3yxPZ8biI8uhaA7rbQceOSAAKtAQACsTisUXvMEbVnTuQkGAQ, or something
``` ```