mirror of
https://github.com/danog/tg-file-decoder.git
synced 2024-11-26 12:24:40 +01:00
Bump docs
This commit is contained in:
parent
4a455d2505
commit
b6fef5ec62
1
.gitignore
vendored
1
.gitignore
vendored
@ -126,4 +126,3 @@ coverage
|
||||
tempConv
|
||||
extracted.json
|
||||
tools
|
||||
docs
|
||||
|
13
README.md
13
README.md
@ -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
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user