diff --git a/.gitignore b/.gitignore index 2838b93..9a9b74b 100644 --- a/.gitignore +++ b/.gitignore @@ -126,4 +126,3 @@ coverage tempConv extracted.json tools -docs diff --git a/README.md b/README.md index af5fdb5..772a419 100644 --- a/README.md +++ b/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 ```