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
|
tempConv
|
||||||
extracted.json
|
extracted.json
|
||||||
tools
|
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
|
### 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
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user