From 49f8b8256a430fe4530c2fedb80196f3abfaa2bc Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Mon, 1 Apr 2024 18:04:56 +0200 Subject: [PATCH] Bump docs --- docs/danog/Decoder/FileId.md | 99 ++++++++++++++ docs/danog/Decoder/FileIdType.md | 126 ++++++++++++++++++ docs/danog/Decoder/PhotoSizeSource.md | 17 +++ .../PhotoSizeSourceDialogPhoto.md | 44 ++++++ .../PhotoSizeSourceDialogPhotoBig.md | 44 ++++++ .../PhotoSizeSourceDialogPhotoSmall.md | 44 ++++++ .../PhotoSizeSource/PhotoSizeSourceLegacy.md | 35 +++++ .../PhotoSizeSourceStickersetThumbnail.md | 37 +++++ ...otoSizeSourceStickersetThumbnailVersion.md | 39 ++++++ .../PhotoSizeSourceThumbnail.md | 42 ++++++ docs/danog/Decoder/UniqueFileId.md | 102 ++++++++++++++ docs/danog/Decoder/UniqueFileIdType.md | 69 ++++++++++ docs/index.md | 31 +++++ 13 files changed, 729 insertions(+) create mode 100644 docs/danog/Decoder/FileId.md create mode 100644 docs/danog/Decoder/FileIdType.md create mode 100644 docs/danog/Decoder/PhotoSizeSource.md create mode 100644 docs/danog/Decoder/PhotoSizeSource/PhotoSizeSourceDialogPhoto.md create mode 100644 docs/danog/Decoder/PhotoSizeSource/PhotoSizeSourceDialogPhotoBig.md create mode 100644 docs/danog/Decoder/PhotoSizeSource/PhotoSizeSourceDialogPhotoSmall.md create mode 100644 docs/danog/Decoder/PhotoSizeSource/PhotoSizeSourceLegacy.md create mode 100644 docs/danog/Decoder/PhotoSizeSource/PhotoSizeSourceStickersetThumbnail.md create mode 100644 docs/danog/Decoder/PhotoSizeSource/PhotoSizeSourceStickersetThumbnailVersion.md create mode 100644 docs/danog/Decoder/PhotoSizeSource/PhotoSizeSourceThumbnail.md create mode 100644 docs/danog/Decoder/UniqueFileId.md create mode 100644 docs/danog/Decoder/UniqueFileIdType.md create mode 100644 docs/index.md diff --git a/docs/danog/Decoder/FileId.md b/docs/danog/Decoder/FileId.md new file mode 100644 index 0000000..aafc467 --- /dev/null +++ b/docs/danog/Decoder/FileId.md @@ -0,0 +1,99 @@ +--- +title: "danog\\Decoder\\FileId: Represents decoded bot API file ID." +description: "" + +--- +# `danog\Decoder\FileId` +[Back to index](../../index.md) + +> Author: Daniil Gentili + + +Represents decoded bot API file ID. + + + +## Properties +* `$dcId`: `int` DC ID. +* `$type`: `\danog\Decoder\FileIdType` File type. +* `$id`: `?int` File id. +* `$accessHash`: `int` File access hash. +* `$photoSizeSource`: `?\danog\Decoder\PhotoSizeSource` Photo size source. +* `$volumeId`: `?int` Photo volume ID. +* `$localId`: `?int` Photo local ID. +* `$fileReference`: `?string` File reference. +* `$url`: `?string` File URL for weblocation. +* `$version`: `int` Bot API file ID version. +* `$subVersion`: `int` Bot API file ID subversion. + +## Method list: +* [`__construct(int $dcId, \danog\Decoder\FileIdType $type, ?int $id, int $accessHash, ?\danog\Decoder\PhotoSizeSource $photoSizeSource = NULL, ?int $volumeId = NULL, ?int $localId = NULL, ?string $fileReference = NULL, ?string $url = NULL, int $version = 4, int $subVersion = 47)`](#__construct-int-dcid-danog-decoder-fileidtype-type-int-id-int-accesshash-danog-decoder-photosizesource-photosizesource-null-int-volumeid-null-int-localid-null-string-filereference-null-string-url-null-int-version-4-int-subversion-47) +* [`fromBotAPI(string $fileId): self`](#frombotapi-string-fileid-self) +* [`getBotAPI(): string`](#getbotapi-string) +* [`getUnique(): \danog\Decoder\UniqueFileId`](#getunique-danog-decoder-uniquefileid) +* [`getUniqueBotAPI(): string`](#getuniquebotapi-string) + +## Methods: +### `__construct(int $dcId, \danog\Decoder\FileIdType $type, ?int $id, int $accessHash, ?\danog\Decoder\PhotoSizeSource $photoSizeSource = NULL, ?int $volumeId = NULL, ?int $localId = NULL, ?string $fileReference = NULL, ?string $url = NULL, int $version = 4, int $subVersion = 47)` + +Basic constructor function. + + +Parameters: + +* `$dcId`: `int` +* `$type`: `\danog\Decoder\FileIdType` +* `$id`: `?int` +* `$accessHash`: `int` +* `$photoSizeSource`: `?\danog\Decoder\PhotoSizeSource` +* `$volumeId`: `?int` +* `$localId`: `?int` +* `$fileReference`: `?string` +* `$url`: `?string` +* `$version`: `int` +* `$subVersion`: `int` + + +#### See also: +* [`\danog\Decoder\FileIdType`: Represents decoded bot API file ID type.](../../danog/Decoder/FileIdType.md) +* [`\danog\Decoder\PhotoSizeSource`: Represents source of photosize.](../../danog/Decoder/PhotoSizeSource.md) + + + + +### `fromBotAPI(string $fileId): self` + +Decode file ID from bot API file ID. + + +Parameters: + +* `$fileId`: `string` File ID + + + +### `getBotAPI(): string` + +Get bot API file ID. + + + +### `getUnique(): \danog\Decoder\UniqueFileId` + +Get unique file ID from file ID. + + +#### See also: +* [`\danog\Decoder\UniqueFileId`: Represents decoded unique bot API file ID.](../../danog/Decoder/UniqueFileId.md) + + + + +### `getUniqueBotAPI(): string` + +Get unique bot API file ID from file ID. + + + +--- +Generated by [danog/phpdoc](https://phpdoc.daniil.it) diff --git a/docs/danog/Decoder/FileIdType.md b/docs/danog/Decoder/FileIdType.md new file mode 100644 index 0000000..facaccc --- /dev/null +++ b/docs/danog/Decoder/FileIdType.md @@ -0,0 +1,126 @@ +--- +title: "danog\\Decoder\\FileIdType: Represents decoded bot API file ID type." +description: "" + +--- +# `danog\Decoder\FileIdType` +[Back to index](../../index.md) + +> Author: Daniil Gentili + + +Represents decoded bot API file ID type. + + + + +## Constants +* `danog\Decoder\FileIdType::THUMBNAIL`: Thumbnail. + +* `danog\Decoder\FileIdType::PROFILE_PHOTO`: Profile photo. + + Used for users and channels, chat photos are normal PHOTOs. + +* `danog\Decoder\FileIdType::PHOTO`: Normal photos. + +* `danog\Decoder\FileIdType::VOICE`: Voice messages. + +* `danog\Decoder\FileIdType::VIDEO`: Video. + +* `danog\Decoder\FileIdType::DOCUMENT`: Document. + +* `danog\Decoder\FileIdType::ENCRYPTED`: Secret chat document. + +* `danog\Decoder\FileIdType::TEMP`: Temporary document. + +* `danog\Decoder\FileIdType::STICKER`: Sticker. + +* `danog\Decoder\FileIdType::AUDIO`: Music. + +* `danog\Decoder\FileIdType::ANIMATION`: GIF. + +* `danog\Decoder\FileIdType::ENCRYPTED_THUMBNAIL`: Encrypted thumbnail. + +* `danog\Decoder\FileIdType::WALLPAPER`: Wallpaper. + +* `danog\Decoder\FileIdType::VIDEO_NOTE`: Round video. + +* `danog\Decoder\FileIdType::SECURE_RAW`: Passport raw file. + +* `danog\Decoder\FileIdType::SECURE`: Passport file. + +* `danog\Decoder\FileIdType::BACKGROUND`: Background. + +* `danog\Decoder\FileIdType::SIZE`: Size. + +## Properties +* `$name`: `string` +* `$value`: `int` + +## Method list: +* [`fromBotApiType(string $type): self`](#frombotapitype-string-type-self) +* [`toBotApiType(): string`](#tobotapitype-string) +* [`toUnique(): \danog\Decoder\UniqueFileIdType`](#tounique-danog-decoder-uniquefileidtype) +* [`cases(): array`](#cases-array) +* [`from(string|int $value): static`](#from-string-int-value-static) +* [`tryFrom(string|int $value): ?static`](#tryfrom-string-int-value-static) + +## Methods: +### `fromBotApiType(string $type): self` + +Obtain a FileId enum variant from a bot API type name. + + +Parameters: + +* `$type`: `string` + + + +### `toBotApiType(): string` + +Obtain a bot API type name. + + + +### `toUnique(): \danog\Decoder\UniqueFileIdType` + +Convert file ID type to unique file ID type. + + +#### See also: +* [`\danog\Decoder\UniqueFileIdType`: Represents decoded unique bot API file ID type.](../../danog/Decoder/UniqueFileIdType.md) + + + + +### `cases(): array` + + + + + +### `from(string|int $value): static` + + + + +Parameters: + +* `$value`: `string|int` + + + +### `tryFrom(string|int $value): ?static` + + + + +Parameters: + +* `$value`: `string|int` + + + +--- +Generated by [danog/phpdoc](https://phpdoc.daniil.it) diff --git a/docs/danog/Decoder/PhotoSizeSource.md b/docs/danog/Decoder/PhotoSizeSource.md new file mode 100644 index 0000000..993f815 --- /dev/null +++ b/docs/danog/Decoder/PhotoSizeSource.md @@ -0,0 +1,17 @@ +--- +title: "danog\\Decoder\\PhotoSizeSource: Represents source of photosize." +description: "" + +--- +# `danog\Decoder\PhotoSizeSource` +[Back to index](../../index.md) + +> Author: Daniil Gentili + + +Represents source of photosize. + + + +--- +Generated by [danog/phpdoc](https://phpdoc.daniil.it) diff --git a/docs/danog/Decoder/PhotoSizeSource/PhotoSizeSourceDialogPhoto.md b/docs/danog/Decoder/PhotoSizeSource/PhotoSizeSourceDialogPhoto.md new file mode 100644 index 0000000..c15a1f2 --- /dev/null +++ b/docs/danog/Decoder/PhotoSizeSource/PhotoSizeSourceDialogPhoto.md @@ -0,0 +1,44 @@ +--- +title: "danog\\Decoder\\PhotoSizeSource\\PhotoSizeSourceDialogPhoto: Represents source of photosize." +description: "" + +--- +# `danog\Decoder\PhotoSizeSource\PhotoSizeSourceDialogPhoto` +[Back to index](../../../index.md) + +> Author: Daniil Gentili + + +Represents source of photosize. + + + +## Properties +* `$dialogId`: `int` +* `$dialogAccessHash`: `int` + +## Method list: +* [`__construct(int $dialogId, int $dialogAccessHash)`](#__construct-int-dialogid-int-dialogaccesshash) +* [`isSmallDialogPhoto(): bool`](#issmalldialogphoto-bool) + +## Methods: +### `__construct(int $dialogId, int $dialogAccessHash)` + + + + +Parameters: + +* `$dialogId`: `int` +* `$dialogAccessHash`: `int` + + + +### `isSmallDialogPhoto(): bool` + +Get whether the big or small version of the photo is being used. + + + +--- +Generated by [danog/phpdoc](https://phpdoc.daniil.it) diff --git a/docs/danog/Decoder/PhotoSizeSource/PhotoSizeSourceDialogPhotoBig.md b/docs/danog/Decoder/PhotoSizeSource/PhotoSizeSourceDialogPhotoBig.md new file mode 100644 index 0000000..908509c --- /dev/null +++ b/docs/danog/Decoder/PhotoSizeSource/PhotoSizeSourceDialogPhotoBig.md @@ -0,0 +1,44 @@ +--- +title: "danog\\Decoder\\PhotoSizeSource\\PhotoSizeSourceDialogPhotoBig: Represents source of photosize." +description: "" + +--- +# `danog\Decoder\PhotoSizeSource\PhotoSizeSourceDialogPhotoBig` +[Back to index](../../../index.md) + +> Author: Daniil Gentili + + +Represents source of photosize. + + + +## Properties +* `$dialogId`: `int` +* `$dialogAccessHash`: `int` + +## Method list: +* [`isSmallDialogPhoto(): bool`](#issmalldialogphoto-bool) +* [`__construct(int $dialogId, int $dialogAccessHash)`](#__construct-int-dialogid-int-dialogaccesshash) + +## Methods: +### `isSmallDialogPhoto(): bool` + +Get whether the big or small version of the photo is being used. + + + +### `__construct(int $dialogId, int $dialogAccessHash)` + + + + +Parameters: + +* `$dialogId`: `int` +* `$dialogAccessHash`: `int` + + + +--- +Generated by [danog/phpdoc](https://phpdoc.daniil.it) diff --git a/docs/danog/Decoder/PhotoSizeSource/PhotoSizeSourceDialogPhotoSmall.md b/docs/danog/Decoder/PhotoSizeSource/PhotoSizeSourceDialogPhotoSmall.md new file mode 100644 index 0000000..a6854ed --- /dev/null +++ b/docs/danog/Decoder/PhotoSizeSource/PhotoSizeSourceDialogPhotoSmall.md @@ -0,0 +1,44 @@ +--- +title: "danog\\Decoder\\PhotoSizeSource\\PhotoSizeSourceDialogPhotoSmall: Represents source of photosize." +description: "" + +--- +# `danog\Decoder\PhotoSizeSource\PhotoSizeSourceDialogPhotoSmall` +[Back to index](../../../index.md) + +> Author: Daniil Gentili + + +Represents source of photosize. + + + +## Properties +* `$dialogId`: `int` +* `$dialogAccessHash`: `int` + +## Method list: +* [`isSmallDialogPhoto(): bool`](#issmalldialogphoto-bool) +* [`__construct(int $dialogId, int $dialogAccessHash)`](#__construct-int-dialogid-int-dialogaccesshash) + +## Methods: +### `isSmallDialogPhoto(): bool` + +Get whether the big or small version of the photo is being used. + + + +### `__construct(int $dialogId, int $dialogAccessHash)` + + + + +Parameters: + +* `$dialogId`: `int` +* `$dialogAccessHash`: `int` + + + +--- +Generated by [danog/phpdoc](https://phpdoc.daniil.it) diff --git a/docs/danog/Decoder/PhotoSizeSource/PhotoSizeSourceLegacy.md b/docs/danog/Decoder/PhotoSizeSource/PhotoSizeSourceLegacy.md new file mode 100644 index 0000000..37a7654 --- /dev/null +++ b/docs/danog/Decoder/PhotoSizeSource/PhotoSizeSourceLegacy.md @@ -0,0 +1,35 @@ +--- +title: "danog\\Decoder\\PhotoSizeSource\\PhotoSizeSourceLegacy: Represents source of photosize." +description: "" + +--- +# `danog\Decoder\PhotoSizeSource\PhotoSizeSourceLegacy` +[Back to index](../../../index.md) + +> Author: Daniil Gentili + + +Represents source of photosize. + + + +## Properties +* `$secret`: `int` + +## Method list: +* [`__construct(int $secret)`](#__construct-int-secret) + +## Methods: +### `__construct(int $secret)` + + + + +Parameters: + +* `$secret`: `int` + + + +--- +Generated by [danog/phpdoc](https://phpdoc.daniil.it) diff --git a/docs/danog/Decoder/PhotoSizeSource/PhotoSizeSourceStickersetThumbnail.md b/docs/danog/Decoder/PhotoSizeSource/PhotoSizeSourceStickersetThumbnail.md new file mode 100644 index 0000000..2c6654f --- /dev/null +++ b/docs/danog/Decoder/PhotoSizeSource/PhotoSizeSourceStickersetThumbnail.md @@ -0,0 +1,37 @@ +--- +title: "danog\\Decoder\\PhotoSizeSource\\PhotoSizeSourceStickersetThumbnail: Represents source of photosize." +description: "" + +--- +# `danog\Decoder\PhotoSizeSource\PhotoSizeSourceStickersetThumbnail` +[Back to index](../../../index.md) + +> Author: Daniil Gentili + + +Represents source of photosize. + + + +## Properties +* `$stickerSetId`: `int` Stickerset ID. +* `$stickerSetAccessHash`: `int` Stickerset access hash. + +## Method list: +* [`__construct(int $stickerSetId, int $stickerSetAccessHash)`](#__construct-int-stickersetid-int-stickersetaccesshash) + +## Methods: +### `__construct(int $stickerSetId, int $stickerSetAccessHash)` + + + + +Parameters: + +* `$stickerSetId`: `int` +* `$stickerSetAccessHash`: `int` + + + +--- +Generated by [danog/phpdoc](https://phpdoc.daniil.it) diff --git a/docs/danog/Decoder/PhotoSizeSource/PhotoSizeSourceStickersetThumbnailVersion.md b/docs/danog/Decoder/PhotoSizeSource/PhotoSizeSourceStickersetThumbnailVersion.md new file mode 100644 index 0000000..42a6897 --- /dev/null +++ b/docs/danog/Decoder/PhotoSizeSource/PhotoSizeSourceStickersetThumbnailVersion.md @@ -0,0 +1,39 @@ +--- +title: "danog\\Decoder\\PhotoSizeSource\\PhotoSizeSourceStickersetThumbnailVersion: Represents source of photosize." +description: "" + +--- +# `danog\Decoder\PhotoSizeSource\PhotoSizeSourceStickersetThumbnailVersion` +[Back to index](../../../index.md) + +> Author: Daniil Gentili + + +Represents source of photosize. + + + +## Properties +* `$stickerSetId`: `int` Stickerset ID. +* `$stickerSetAccessHash`: `int` Stickerset access hash. +* `$stickerSetVersion`: `int` Stickerset version. + +## Method list: +* [`__construct(int $stickerSetId, int $stickerSetAccessHash, int $stickerSetVersion)`](#__construct-int-stickersetid-int-stickersetaccesshash-int-stickersetversion) + +## Methods: +### `__construct(int $stickerSetId, int $stickerSetAccessHash, int $stickerSetVersion)` + + + + +Parameters: + +* `$stickerSetId`: `int` +* `$stickerSetAccessHash`: `int` +* `$stickerSetVersion`: `int` + + + +--- +Generated by [danog/phpdoc](https://phpdoc.daniil.it) diff --git a/docs/danog/Decoder/PhotoSizeSource/PhotoSizeSourceThumbnail.md b/docs/danog/Decoder/PhotoSizeSource/PhotoSizeSourceThumbnail.md new file mode 100644 index 0000000..8d8f7eb --- /dev/null +++ b/docs/danog/Decoder/PhotoSizeSource/PhotoSizeSourceThumbnail.md @@ -0,0 +1,42 @@ +--- +title: "danog\\Decoder\\PhotoSizeSource\\PhotoSizeSourceThumbnail: Represents source of photosize." +description: "" + +--- +# `danog\Decoder\PhotoSizeSource\PhotoSizeSourceThumbnail` +[Back to index](../../../index.md) + +> Author: Daniil Gentili + + +Represents source of photosize. + + + +## Properties +* `$thumbFileType`: `\danog\Decoder\FileIdType` File type of original file. +* `$thumbType`: `string` Thumbnail size. + +## Method list: +* [`__construct(\danog\Decoder\FileIdType $thumbFileType, string $thumbType)`](#__construct-danog-decoder-fileidtype-thumbfiletype-string-thumbtype) + +## Methods: +### `__construct(\danog\Decoder\FileIdType $thumbFileType, string $thumbType)` + + + + +Parameters: + +* `$thumbFileType`: `\danog\Decoder\FileIdType` +* `$thumbType`: `string` + + +#### See also: +* [`\danog\Decoder\FileIdType`: Represents decoded bot API file ID type.](../../../danog/Decoder/FileIdType.md) + + + + +--- +Generated by [danog/phpdoc](https://phpdoc.daniil.it) diff --git a/docs/danog/Decoder/UniqueFileId.md b/docs/danog/Decoder/UniqueFileId.md new file mode 100644 index 0000000..e2b7e31 --- /dev/null +++ b/docs/danog/Decoder/UniqueFileId.md @@ -0,0 +1,102 @@ +--- +title: "danog\\Decoder\\UniqueFileId: Represents decoded unique bot API file ID." +description: "" + +--- +# `danog\Decoder\UniqueFileId` +[Back to index](../../index.md) + +> Author: Daniil Gentili + + +Represents decoded unique bot API file ID. + + + +## Properties +* `$type`: `\danog\Decoder\UniqueFileIdType` File type. +* `$id`: `?int` File ID. +* `$subType`: `?int` Photo subtype. +* `$volumeId`: `?int` Photo volume ID. +* `$localId`: `?int` Photo local ID. +* `$stickerSetId`: `?int` Sticker set ID. +* `$stickerSetVersion`: `?int` Sticker set version. +* `$url`: `?string` Weblocation URL. + +## Method list: +* [`__construct(\danog\Decoder\UniqueFileIdType $type, ?int $id = NULL, ?int $subType = NULL, ?int $volumeId = NULL, ?int $localId = NULL, ?int $stickerSetId = NULL, ?int $stickerSetVersion = NULL, ?string $url = NULL)`](#__construct-danog-decoder-uniquefileidtype-type-int-id-null-int-subtype-null-int-volumeid-null-int-localid-null-int-stickersetid-null-int-stickersetversion-null-string-url-null) +* [`getUniqueBotAPI(): string`](#getuniquebotapi-string) +* [`fromUniqueBotAPI(string $fileId): self`](#fromuniquebotapi-string-fileid-self) +* [`fromBotAPI(string $fileId): self`](#frombotapi-string-fileid-self) +* [`fromFileId(\danog\Decoder\FileId $fileId): self`](#fromfileid-danog-decoder-fileid-fileid-self) + +## Methods: +### `__construct(\danog\Decoder\UniqueFileIdType $type, ?int $id = NULL, ?int $subType = NULL, ?int $volumeId = NULL, ?int $localId = NULL, ?int $stickerSetId = NULL, ?int $stickerSetVersion = NULL, ?string $url = NULL)` + +Basic constructor function. + + +Parameters: + +* `$type`: `\danog\Decoder\UniqueFileIdType` +* `$id`: `?int` +* `$subType`: `?int` +* `$volumeId`: `?int` +* `$localId`: `?int` +* `$stickerSetId`: `?int` +* `$stickerSetVersion`: `?int` +* `$url`: `?string` + + +#### See also: +* [`\danog\Decoder\UniqueFileIdType`: Represents decoded unique bot API file ID type.](../../danog/Decoder/UniqueFileIdType.md) + + + + +### `getUniqueBotAPI(): string` + +Get unique bot API file ID. + + + +### `fromUniqueBotAPI(string $fileId): self` + +Decode unique bot API file ID. + + +Parameters: + +* `$fileId`: `string` Bot API file ID + + + +### `fromBotAPI(string $fileId): self` + +Convert full bot API file ID to unique file ID. + + +Parameters: + +* `$fileId`: `string` Full bot API file ID + + + +### `fromFileId(\danog\Decoder\FileId $fileId): self` + +Turn full file ID into unique file ID. + + +Parameters: + +* `$fileId`: `\danog\Decoder\FileId` Full file ID + + +#### See also: +* [`\danog\Decoder\FileId`: Represents decoded bot API file ID.](../../danog/Decoder/FileId.md) + + + + +--- +Generated by [danog/phpdoc](https://phpdoc.daniil.it) diff --git a/docs/danog/Decoder/UniqueFileIdType.md b/docs/danog/Decoder/UniqueFileIdType.md new file mode 100644 index 0000000..3e89403 --- /dev/null +++ b/docs/danog/Decoder/UniqueFileIdType.md @@ -0,0 +1,69 @@ +--- +title: "danog\\Decoder\\UniqueFileIdType: Represents decoded unique bot API file ID type." +description: "" + +--- +# `danog\Decoder\UniqueFileIdType` +[Back to index](../../index.md) + +> Author: Daniil Gentili + + +Represents decoded unique bot API file ID type. + + + + +## Constants +* `danog\Decoder\UniqueFileIdType::WEB`: + +* `danog\Decoder\UniqueFileIdType::PHOTO`: + +* `danog\Decoder\UniqueFileIdType::DOCUMENT`: + +* `danog\Decoder\UniqueFileIdType::SECURE`: + +* `danog\Decoder\UniqueFileIdType::ENCRYPTED`: + +* `danog\Decoder\UniqueFileIdType::TEMP`: + +## Properties +* `$name`: `string` +* `$value`: `int` + +## Method list: +* [`cases(): array`](#cases-array) +* [`from(string|int $value): static`](#from-string-int-value-static) +* [`tryFrom(string|int $value): ?static`](#tryfrom-string-int-value-static) + +## Methods: +### `cases(): array` + + + + + +### `from(string|int $value): static` + + + + +Parameters: + +* `$value`: `string|int` + + + +### `tryFrom(string|int $value): ?static` + + + + +Parameters: + +* `$value`: `string|int` + + + +--- +Generated by [danog/phpdoc](https://phpdoc.daniil.it) diff --git a/docs/index.md b/docs/index.md new file mode 100644 index 0000000..1785f60 --- /dev/null +++ b/docs/index.md @@ -0,0 +1,31 @@ +--- +description: "Decode Telegram bot API file IDs" +title: "danog/tg-file-decoder" + +--- +# `danog/tg-file-decoder` + +Decode Telegram bot API file IDs + + + +## Abstract classes +* [\danog\Decoder\PhotoSizeSource: Represents source of photosize.](danog/Decoder/PhotoSizeSource.md) +* [\danog\Decoder\PhotoSizeSource\PhotoSizeSourceDialogPhoto: Represents source of photosize.](danog/Decoder/PhotoSizeSource/PhotoSizeSourceDialogPhoto.md) + +## Classes +* [\danog\Decoder\FileId: Represents decoded bot API file ID.](danog/Decoder/FileId.md) +* [\danog\Decoder\FileIdType: Represents decoded bot API file ID type.](danog/Decoder/FileIdType.md) +* [\danog\Decoder\UniqueFileId: Represents decoded unique bot API file ID.](danog/Decoder/UniqueFileId.md) +* [\danog\Decoder\UniqueFileIdType: Represents decoded unique bot API file ID type.](danog/Decoder/UniqueFileIdType.md) +* [\danog\Decoder\PhotoSizeSource\PhotoSizeSourceDialogPhotoBig: Represents source of photosize.](danog/Decoder/PhotoSizeSource/PhotoSizeSourceDialogPhotoBig.md) +* [\danog\Decoder\PhotoSizeSource\PhotoSizeSourceDialogPhotoSmall: Represents source of photosize.](danog/Decoder/PhotoSizeSource/PhotoSizeSourceDialogPhotoSmall.md) +* [\danog\Decoder\PhotoSizeSource\PhotoSizeSourceLegacy: Represents source of photosize.](danog/Decoder/PhotoSizeSource/PhotoSizeSourceLegacy.md) +* [\danog\Decoder\PhotoSizeSource\PhotoSizeSourceStickersetThumbnail: Represents source of photosize.](danog/Decoder/PhotoSizeSource/PhotoSizeSourceStickersetThumbnail.md) +* [\danog\Decoder\PhotoSizeSource\PhotoSizeSourceStickersetThumbnailVersion: Represents source of photosize.](danog/Decoder/PhotoSizeSource/PhotoSizeSourceStickersetThumbnailVersion.md) +* [\danog\Decoder\PhotoSizeSource\PhotoSizeSourceThumbnail: Represents source of photosize.](danog/Decoder/PhotoSizeSource/PhotoSizeSourceThumbnail.md) + + + +--- +Generated by [danog/phpdoc](https://phpdoc.daniil.it). \ No newline at end of file