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
extracted.json
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
```php
$fileId = new FileId;
$fileId->setType(STICKER);
$fileId->setId($id);
$fileId->setAccessHash($customHash);
// You get it...
$fileId = new FileId(
type: FileIdType::STICKER,
id: $id,
accessHash: $accessHash,
// and so on...
);
$encoded = (string) $fileId; // CAACAgQAAxkDAAJEsl44nl3yxPZ8biI8uhaA7rbQceOSAAKtAQACsTisUXvMEbVnTuQkGAQ, or something
```