From b6fef5ec627db76233f2fcd7003e5c401abc2386 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Mon, 1 Apr 2024 18:04:53 +0200 Subject: [PATCH] Bump docs --- .gitignore | 1 - README.md | 13 ++++++------- 2 files changed, 6 insertions(+), 8 deletions(-) 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 ```