diff --git a/docs b/docs index c39338b2da..a6959a7fe2 160000 --- a/docs +++ b/docs @@ -1 +1 @@ -Subproject commit c39338b2dab1bd347b5f1b2e30de8fc06518544a +Subproject commit a6959a7fe20409d539ea8fafeafe780681f943b6 diff --git a/src/AnnotationsBuilder.php b/src/AnnotationsBuilder.php index a96798db92..415814196d 100644 --- a/src/AnnotationsBuilder.php +++ b/src/AnnotationsBuilder.php @@ -110,6 +110,7 @@ private function prepareTLType(string $type): string 'Bool' => 'bool', 'true' => 'bool', 'InputMessage' => 'array|int', + 'InputCheckPasswordSRP' => 'string|array', 'DataJSON' => 'mixed', 'JSONValue' => 'mixed', default => $this->special[$type] ?? 'array' @@ -128,22 +129,32 @@ private function prepareTLPsalmType(string $type, bool $input, int $depth = -2, 'Bool' => 'bool', 'true' => 'bool', 'Updates' => 'array', + 'InputCheckPasswordSRP' => 'string|array', 'DataJSON' => 'mixed', 'JSONValue' => 'mixed', default => $this->special[$type] ?? '' }; if ($type === 'channels.AdminLogResults') { - $depth = 1; + $depth = 3; } if ($type === 'messages.Messages') { - $depth = 1; + $depth = 3; } if ($type === 'messages.Dialogs') { - $depth = 2; + $depth = 3; } if ($type === 'MessageMedia') { $depth = 2; } + if ($type === 'DecryptedMessage' || $type === 'messages.BotResults' || $type === 'InputBotInlineResult') { + $depth = 2; + } + if ($type === 'WebPage') { + $depth = 3; + } + if ($type === 'Document' || $type === 'Photo') { + $depth = 3; + } if ($depth > 3) { $base = 'array'; } diff --git a/src/DocsBuilder.php b/src/DocsBuilder.php index 5bec7ae973..134cd6414f 100644 --- a/src/DocsBuilder.php +++ b/src/DocsBuilder.php @@ -39,6 +39,7 @@ final class DocsBuilder 'InputMedia' => ['InputMedia'], 'InputMessage' => ['InputMessage'], 'KeyboardButton' => ['KeyboardButton'], + 'InputCheckPasswordSRP' => ['InputCheckPasswordSRP'] ]; use Methods; use Constructors; diff --git a/src/Namespace/Account.php b/src/Namespace/Account.php index 2ec7dda448..b93eda9d54 100644 --- a/src/Namespace/Account.php +++ b/src/Namespace/Account.php @@ -73,7 +73,7 @@ public function updateStatus(bool $offline): bool; * Returns a list of available [wallpapers](https://core.telegram.org/api/wallpapers). * * @param list|array $hash [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) - * @return array{_: 'account.wallPapersNotModified'}|array{_: 'account.wallPapers', hash: list, wallpapers: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int, attributes: list}, id: int, creator: bool, default: bool, pattern: bool, dark: bool, access_hash: int, slug: string, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}|array{_: 'wallPaperNoFile', id: int, default: bool, dark: bool, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}>} @see https://docs.madelineproto.xyz/API_docs/types/account.WallPapers.html + * @return array{_: 'account.wallPapersNotModified'}|array{_: 'account.wallPapers', hash: list, wallpapers: list, video_thumbs: list, dc_id: array, attributes: list}, id: int, creator: bool, default: bool, pattern: bool, dark: bool, access_hash: int, slug: string, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}|array{_: 'wallPaperNoFile', id: int, default: bool, dark: bool, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}>} @see https://docs.madelineproto.xyz/API_docs/types/account.WallPapers.html */ public function getWallPapers(array $hash = []): array; @@ -124,9 +124,9 @@ public function setPrivacy(array $key, array $rules = []): array; * Can also be used to delete the account of a user that provided the login code, but forgot the 2FA password and no recovery method is configured, see [here »](https://core.telegram.org/api/srp#password-recovery) for more info on password recovery, and [here »](https://core.telegram.org/api/account-deletion) for more info on account deletion. * * @param string $reason Why is the account being deleted, can be empty - * @param array{_: 'inputCheckPasswordEmpty'}|array{_: 'inputCheckPasswordSRP', srp_id?: int, A?: string, M1?: string}|array $password [2FA password](https://core.telegram.org/api/srp): this field can be omitted even for accounts with 2FA enabled: in this case account account deletion will be delayed by 7 days [as specified in the docs »](https://core.telegram.org/api/account-deletion) @see https://docs.madelineproto.xyz/API_docs/types/InputCheckPasswordSRP.html + * @param string|array $password [2FA password](https://core.telegram.org/api/srp): this field can be omitted even for accounts with 2FA enabled: in this case account account deletion will be delayed by 7 days [as specified in the docs »](https://core.telegram.org/api/account-deletion) @see https://docs.madelineproto.xyz/API_docs/types/InputCheckPasswordSRP.html */ - public function deleteAccount(string $reason = '', array $password = []): bool; + public function deleteAccount(string $reason = '', string|array $password = []): bool; /** * Get days to live of account. @@ -209,11 +209,11 @@ public function confirmPhone(string $phone_code_hash = '', string $phone_code = /** * Get temporary payment password. * - * @param array{_: 'inputCheckPasswordEmpty'}|array{_: 'inputCheckPasswordSRP', srp_id?: int, A?: string, M1?: string} $password SRP password parameters @see https://docs.madelineproto.xyz/API_docs/types/InputCheckPasswordSRP.html + * @param string|array $password SRP password parameters @see https://docs.madelineproto.xyz/API_docs/types/InputCheckPasswordSRP.html * @param int $period Time during which the temporary password will be valid, in seconds; should be between 60 and 86400 * @return array{_: 'account.tmpPassword', tmp_password: string, valid_until: int} @see https://docs.madelineproto.xyz/API_docs/types/account.TmpPassword.html */ - public function getTmpPassword(array $password, int $period = 0): array; + public function getTmpPassword(string|array $password, int $period = 0): array; /** * Get web [login widget](https://core.telegram.org/widgets/login) authorizations. @@ -389,7 +389,7 @@ public function getNotifyExceptions(bool $compare_sound = false, array|int|strin * Get info about a certain [wallpaper](https://core.telegram.org/api/wallpapers). * * @param array{_: 'inputWallPaper', id?: int, access_hash?: int}|array{_: 'inputWallPaperSlug', slug?: string}|array{_: 'inputWallPaperNoFile', id?: int} $wallpaper The [wallpaper](https://core.telegram.org/api/wallpapers) to get info about @see https://docs.madelineproto.xyz/API_docs/types/InputWallPaper.html - * @return array{_: 'wallPaper', document: array{_: 'documentEmpty', id: int}|array{_: 'document', id: int, access_hash: int, file_reference: string, date: int, mime_type: string, size: int, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int, attributes: list}, id: int, creator: bool, default: bool, pattern: bool, dark: bool, access_hash: int, slug: string, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}|array{_: 'wallPaperNoFile', id: int, default: bool, dark: bool, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}} @see https://docs.madelineproto.xyz/API_docs/types/WallPaper.html + * @return array{_: 'wallPaper', document: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, id: int, creator: bool, default: bool, pattern: bool, dark: bool, access_hash: int, slug: string, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}|array{_: 'wallPaperNoFile', id: int, default: bool, dark: bool, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}} @see https://docs.madelineproto.xyz/API_docs/types/WallPaper.html */ public function getWallPaper(array $wallpaper): array; @@ -399,7 +399,7 @@ public function getWallPaper(array $wallpaper): array; * @param mixed $file A file name or a file URL. You can also use amphp async streams, amphp HTTP response objects, and [much more](https://docs.madelineproto.xyz/docs/FILES.html#downloading-files)! * @param array{_: 'wallPaperSettings', blur?: bool, motion?: bool, background_color?: int, second_background_color?: int, third_background_color?: int, fourth_background_color?: int, intensity?: int, rotation?: int} $settings Wallpaper settings @see https://docs.madelineproto.xyz/API_docs/types/WallPaperSettings.html * @param string $mime_type MIME type of uploaded wallpaper - * @return array{_: 'wallPaper', document: array{_: 'documentEmpty', id: int}|array{_: 'document', id: int, access_hash: int, file_reference: string, date: int, mime_type: string, size: int, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int, attributes: list}, id: int, creator: bool, default: bool, pattern: bool, dark: bool, access_hash: int, slug: string, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}|array{_: 'wallPaperNoFile', id: int, default: bool, dark: bool, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}} @see https://docs.madelineproto.xyz/API_docs/types/WallPaper.html + * @return array{_: 'wallPaper', document: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, id: int, creator: bool, default: bool, pattern: bool, dark: bool, access_hash: int, slug: string, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}|array{_: 'wallPaperNoFile', id: int, default: bool, dark: bool, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}} @see https://docs.madelineproto.xyz/API_docs/types/WallPaper.html */ public function uploadWallPaper(mixed $file, array $settings, bool $for_chat = false, string $mime_type = ''): array; @@ -449,7 +449,7 @@ public function saveAutoDownloadSettings(array $settings, bool $low = false, boo * @param mixed $thumb A file name or a file URL. You can also use amphp async streams, amphp HTTP response objects, and [much more](https://docs.madelineproto.xyz/docs/FILES.html#downloading-files)! * @param string $file_name File name * @param string $mime_type MIME type, must be `application/x-tgtheme-{format}`, where `format` depends on the client - * @return array{_: 'documentEmpty', id: int}|array{_: 'document', id: int, access_hash: int, file_reference: string, date: int, mime_type: string, size: int, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int, attributes: list} @see https://docs.madelineproto.xyz/API_docs/types/Document.html + * @return array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list} @see https://docs.madelineproto.xyz/API_docs/types/Document.html */ public function uploadTheme(mixed $file, mixed $thumb = [], string $file_name = '', string $mime_type = ''): array; @@ -460,7 +460,7 @@ public function uploadTheme(mixed $file, mixed $thumb = [], string $file_name = * @param string $title Theme name * @param array|array $document Theme file @see https://docs.madelineproto.xyz/API_docs/types/InputDocument.html * @param list, wallpaper?: array{_: 'inputWallPaper', id?: int, access_hash?: int}|array{_: 'inputWallPaperSlug', slug?: string}|array{_: 'inputWallPaperNoFile', id?: int}, wallpaper_settings?: array{_: 'wallPaperSettings', blur?: bool, motion?: bool, background_color?: int, second_background_color?: int, third_background_color?: int, fourth_background_color?: int, intensity?: int, rotation?: int}}>|array $settings Array of Theme settings, multiple values can be provided for the different base themes (day/night mode, etc). @see https://docs.madelineproto.xyz/API_docs/types/InputThemeSettings.html - * @return array{_: 'theme', creator: bool, default: bool, for_chat: bool, id: int, access_hash: int, slug: string, title: string, document?: array{_: 'documentEmpty', id: int}|array{_: 'document', id: int, access_hash: int, file_reference: string, date: int, mime_type: string, size: int, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int, attributes: list}, settings: list, wallpaper?: array{_: 'wallPaper', document: array{_: 'documentEmpty', id: int}|array{_: 'document', id: int, access_hash: int, file_reference: string, date: int, mime_type: string, size: int, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: array, local_id: array, secret: array}|array{_: 'fileLocation', dc_id: array, volume_id: array, local_id: array, secret: array}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: array, local_id: array, secret: array}|array{_: 'fileLocation', dc_id: array, volume_id: array, local_id: array, secret: array}, type: string, w: int, h: int, bytes: string}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: array, access_hash: array}|array{_: 'inputStickerSetShortName', short_name: array}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: array}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int, attributes: list}, id: int, creator: bool, default: bool, pattern: bool, dark: bool, access_hash: int, slug: string, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}|array{_: 'wallPaperNoFile', id: int, default: bool, dark: bool, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}}>, emoticon: string, installs_count: int} @see https://docs.madelineproto.xyz/API_docs/types/Theme.html + * @return array{_: 'theme', creator: bool, default: bool, for_chat: bool, id: int, access_hash: int, slug: string, title: string, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, settings: list, wallpaper?: array{_: 'wallPaper', document: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, id: int, creator: bool, default: bool, pattern: bool, dark: bool, access_hash: int, slug: string, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}|array{_: 'wallPaperNoFile', id: int, default: bool, dark: bool, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}}>, emoticon: string, installs_count: int} @see https://docs.madelineproto.xyz/API_docs/types/Theme.html */ public function createTheme(string $slug = '', string $title = '', array $document = [], array $settings = []): array; @@ -473,7 +473,7 @@ public function createTheme(string $slug = '', string $title = '', array $docume * @param string $title Theme name * @param array|array $document Theme file @see https://docs.madelineproto.xyz/API_docs/types/InputDocument.html * @param list, wallpaper?: array{_: 'inputWallPaper', id?: int, access_hash?: int}|array{_: 'inputWallPaperSlug', slug?: string}|array{_: 'inputWallPaperNoFile', id?: int}, wallpaper_settings?: array{_: 'wallPaperSettings', blur?: bool, motion?: bool, background_color?: int, second_background_color?: int, third_background_color?: int, fourth_background_color?: int, intensity?: int, rotation?: int}}>|array $settings Array of Theme settings @see https://docs.madelineproto.xyz/API_docs/types/InputThemeSettings.html - * @return array{_: 'theme', creator: bool, default: bool, for_chat: bool, id: int, access_hash: int, slug: string, title: string, document?: array{_: 'documentEmpty', id: int}|array{_: 'document', id: int, access_hash: int, file_reference: string, date: int, mime_type: string, size: int, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int, attributes: list}, settings: list, wallpaper?: array{_: 'wallPaper', document: array{_: 'documentEmpty', id: int}|array{_: 'document', id: int, access_hash: int, file_reference: string, date: int, mime_type: string, size: int, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: array, local_id: array, secret: array}|array{_: 'fileLocation', dc_id: array, volume_id: array, local_id: array, secret: array}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: array, local_id: array, secret: array}|array{_: 'fileLocation', dc_id: array, volume_id: array, local_id: array, secret: array}, type: string, w: int, h: int, bytes: string}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: array, access_hash: array}|array{_: 'inputStickerSetShortName', short_name: array}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: array}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int, attributes: list}, id: int, creator: bool, default: bool, pattern: bool, dark: bool, access_hash: int, slug: string, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}|array{_: 'wallPaperNoFile', id: int, default: bool, dark: bool, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}}>, emoticon: string, installs_count: int} @see https://docs.madelineproto.xyz/API_docs/types/Theme.html + * @return array{_: 'theme', creator: bool, default: bool, for_chat: bool, id: int, access_hash: int, slug: string, title: string, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, settings: list, wallpaper?: array{_: 'wallPaper', document: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, id: int, creator: bool, default: bool, pattern: bool, dark: bool, access_hash: int, slug: string, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}|array{_: 'wallPaperNoFile', id: int, default: bool, dark: bool, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}}>, emoticon: string, installs_count: int} @see https://docs.madelineproto.xyz/API_docs/types/Theme.html */ public function updateTheme(array $theme, string $format = '', string $slug = '', string $title = '', array $document = [], array $settings = []): array; @@ -500,7 +500,7 @@ public function installTheme(bool $dark = false, array $theme = [], string $form * * @param array{_: 'inputTheme', id?: int, access_hash?: int}|array{_: 'inputThemeSlug', slug?: string} $theme Theme @see https://docs.madelineproto.xyz/API_docs/types/InputTheme.html * @param string $format Theme format, a string that identifies the theming engines supported by the client - * @return array{_: 'theme', creator: bool, default: bool, for_chat: bool, id: int, access_hash: int, slug: string, title: string, document?: array{_: 'documentEmpty', id: int}|array{_: 'document', id: int, access_hash: int, file_reference: string, date: int, mime_type: string, size: int, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int, attributes: list}, settings: list, wallpaper?: array{_: 'wallPaper', document: array{_: 'documentEmpty', id: int}|array{_: 'document', id: int, access_hash: int, file_reference: string, date: int, mime_type: string, size: int, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: array, local_id: array, secret: array}|array{_: 'fileLocation', dc_id: array, volume_id: array, local_id: array, secret: array}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: array, local_id: array, secret: array}|array{_: 'fileLocation', dc_id: array, volume_id: array, local_id: array, secret: array}, type: string, w: int, h: int, bytes: string}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: array, access_hash: array}|array{_: 'inputStickerSetShortName', short_name: array}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: array}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int, attributes: list}, id: int, creator: bool, default: bool, pattern: bool, dark: bool, access_hash: int, slug: string, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}|array{_: 'wallPaperNoFile', id: int, default: bool, dark: bool, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}}>, emoticon: string, installs_count: int} @see https://docs.madelineproto.xyz/API_docs/types/Theme.html + * @return array{_: 'theme', creator: bool, default: bool, for_chat: bool, id: int, access_hash: int, slug: string, title: string, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, settings: list, wallpaper?: array{_: 'wallPaper', document: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, id: int, creator: bool, default: bool, pattern: bool, dark: bool, access_hash: int, slug: string, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}|array{_: 'wallPaperNoFile', id: int, default: bool, dark: bool, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}}>, emoticon: string, installs_count: int} @see https://docs.madelineproto.xyz/API_docs/types/Theme.html */ public function getTheme(array $theme, string $format = ''): array; @@ -509,7 +509,7 @@ public function getTheme(array $theme, string $format = ''): array; * * @param string $format Theme format, a string that identifies the theming engines supported by the client * @param list|array $hash [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) - * @return array{_: 'account.themesNotModified'}|array{_: 'account.themes', hash: list, themes: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int, attributes: list}, settings: list, wallpaper?: array{_: 'wallPaper', document: array{_: 'documentEmpty', id: int}|array{_: 'document', id: int, access_hash: int, file_reference: string, date: int, mime_type: string, size: int, thumbs: list}|array{_: 'photoPathSize', type: array, bytes: array}|array{_: 'photoSize', location: array, type: array, w: array, h: array, size: array}|array{_: 'photoCachedSize', location: array, type: array, w: array, h: array, bytes: array}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array, sticker_id: array, background_colors: list}>, dc_id: int, attributes: list}, id: int, creator: bool, default: bool, pattern: bool, dark: bool, access_hash: int, slug: string, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}|array{_: 'wallPaperNoFile', id: int, default: bool, dark: bool, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}}>, emoticon: string, installs_count: int}>} @see https://docs.madelineproto.xyz/API_docs/types/account.Themes.html + * @return array{_: 'account.themesNotModified'}|array{_: 'account.themes', hash: list, themes: list, video_thumbs: list, dc_id: array, attributes: list}, settings: list, wallpaper?: array{_: 'wallPaper', document: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, id: int, creator: bool, default: bool, pattern: bool, dark: bool, access_hash: int, slug: string, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}|array{_: 'wallPaperNoFile', id: int, default: bool, dark: bool, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}}>, emoticon: string, installs_count: int}>} @see https://docs.madelineproto.xyz/API_docs/types/account.Themes.html */ public function getThemes(string $format = '', array $hash = []): array; @@ -531,7 +531,7 @@ public function getContentSettings(): array; * Get info about multiple [wallpapers](https://core.telegram.org/api/wallpapers). * * @param list|array $wallpapers Array of [Wallpapers](https://core.telegram.org/api/wallpapers) to fetch info about @see https://docs.madelineproto.xyz/API_docs/types/InputWallPaper.html - * @return list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int, attributes: list}, id: int, creator: bool, default: bool, pattern: bool, dark: bool, access_hash: int, slug: string, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}|array{_: 'wallPaperNoFile', id: int, default: bool, dark: bool, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}> Array of @see https://docs.madelineproto.xyz/API_docs/types/WallPaper.html + * @return list, video_thumbs: list, dc_id: array, attributes: list}, id: int, creator: bool, default: bool, pattern: bool, dark: bool, access_hash: int, slug: string, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}|array{_: 'wallPaperNoFile', id: int, default: bool, dark: bool, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}> Array of @see https://docs.madelineproto.xyz/API_docs/types/WallPaper.html */ public function getMultiWallPapers(array $wallpapers = []): array; @@ -577,7 +577,7 @@ public function declinePasswordReset(): bool; * Get all available chat themes. * * @param list|array $hash [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) - * @return array{_: 'account.themesNotModified'}|array{_: 'account.themes', hash: list, themes: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int, attributes: list}, settings: list, wallpaper?: array{_: 'wallPaper', document: array{_: 'documentEmpty', id: int}|array{_: 'document', id: int, access_hash: int, file_reference: string, date: int, mime_type: string, size: int, thumbs: list}|array{_: 'photoPathSize', type: array, bytes: array}|array{_: 'photoSize', location: array, type: array, w: array, h: array, size: array}|array{_: 'photoCachedSize', location: array, type: array, w: array, h: array, bytes: array}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array, sticker_id: array, background_colors: list}>, dc_id: int, attributes: list}, id: int, creator: bool, default: bool, pattern: bool, dark: bool, access_hash: int, slug: string, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}|array{_: 'wallPaperNoFile', id: int, default: bool, dark: bool, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}}>, emoticon: string, installs_count: int}>} @see https://docs.madelineproto.xyz/API_docs/types/account.Themes.html + * @return array{_: 'account.themesNotModified'}|array{_: 'account.themes', hash: list, themes: list, video_thumbs: list, dc_id: array, attributes: list}, settings: list, wallpaper?: array{_: 'wallPaper', document: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, id: int, creator: bool, default: bool, pattern: bool, dark: bool, access_hash: int, slug: string, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}|array{_: 'wallPaperNoFile', id: int, default: bool, dark: bool, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}}>, emoticon: string, installs_count: int}>} @see https://docs.madelineproto.xyz/API_docs/types/account.Themes.html */ public function getChatThemes(array $hash = []): array; @@ -601,7 +601,7 @@ public function changeAuthorizationSettings(array $hash = [], bool $encrypted_re * Fetch saved notification sounds. * * @param list|array $hash [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) - * @return array{_: 'account.savedRingtonesNotModified'}|array{_: 'account.savedRingtones', hash: list, ringtones: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int, attributes: list}>} @see https://docs.madelineproto.xyz/API_docs/types/account.SavedRingtones.html + * @return array{_: 'account.savedRingtonesNotModified'}|array{_: 'account.savedRingtones', hash: list, ringtones: list, video_thumbs: list, dc_id: array, attributes: list}>} @see https://docs.madelineproto.xyz/API_docs/types/account.SavedRingtones.html */ public function getSavedRingtones(array $hash = []): array; @@ -613,7 +613,7 @@ public function getSavedRingtones(array $hash = []): array; * * @param array $id Notification sound uploaded using [account.uploadRingtone](https://docs.madelineproto.xyz/API_docs/methods/account.uploadRingtone.html) @see https://docs.madelineproto.xyz/API_docs/types/InputDocument.html * @param bool $unsave Whether to add or delete the notification sound - * @return array{_: 'account.savedRingtone'}|array{_: 'account.savedRingtoneConverted', document: array{_: 'documentEmpty', id: int}|array{_: 'document', id: int, access_hash: int, file_reference: string, date: int, mime_type: string, size: int, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int, attributes: list}} @see https://docs.madelineproto.xyz/API_docs/types/account.SavedRingtone.html + * @return array{_: 'account.savedRingtone'}|array{_: 'account.savedRingtoneConverted', document: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}} @see https://docs.madelineproto.xyz/API_docs/types/account.SavedRingtone.html */ public function saveRingtone(array $id, bool $unsave): array; @@ -623,7 +623,7 @@ public function saveRingtone(array $id, bool $unsave): array; * @param mixed $file A file name or a file URL. You can also use amphp async streams, amphp HTTP response objects, and [much more](https://docs.madelineproto.xyz/docs/FILES.html#downloading-files)! * @param string $file_name File name * @param string $mime_type MIME type of file - * @return array{_: 'documentEmpty', id: int}|array{_: 'document', id: int, access_hash: int, file_reference: string, date: int, mime_type: string, size: int, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int, attributes: list} @see https://docs.madelineproto.xyz/API_docs/types/Document.html + * @return array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list} @see https://docs.madelineproto.xyz/API_docs/types/Document.html */ public function uploadRingtone(mixed $file, string $file_name = '', string $mime_type = ''): array; diff --git a/src/Namespace/Channels.php b/src/Namespace/Channels.php index 38afb4aabc..d15ba954ff 100644 --- a/src/Namespace/Channels.php +++ b/src/Namespace/Channels.php @@ -197,7 +197,7 @@ public function editBanned(array|int|string $channel, array|int|string $particip * @param int $max_id Maximum ID of message to return (see [pagination](https://core.telegram.org/api/offsets)) * @param int $min_id Minimum ID of message to return (see [pagination](https://core.telegram.org/api/offsets)) * @param int $limit Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets) - * @return array{_: 'channels.adminLogResults', events: list, new_value: list}|array{_: 'channelAdminLogEventActionToggleForum', new_value: array}|array{_: 'channelAdminLogEventActionCreateTopic', topic: array}|array{_: 'channelAdminLogEventActionEditTopic', prev_topic: array, new_topic: array}|array{_: 'channelAdminLogEventActionDeleteTopic', topic: array}|array{_: 'channelAdminLogEventActionPinTopic', prev_topic?: array, new_topic?: array}|array{_: 'channelAdminLogEventActionToggleAntiSpam', new_value: array}, id: int, date: int, user_id: int}>, chats: list, users: list} @see https://docs.madelineproto.xyz/API_docs/types/channels.AdminLogResults.html + * @return array{_: 'channels.adminLogResults', events: list, chats: list, users: list} @see https://docs.madelineproto.xyz/API_docs/types/channels.AdminLogResults.html */ public function getAdminLog(array|int|string $channel, string $q = '', array $events_filter = [], array $admins = [], int $max_id = 0, int $min_id = 0, int $limit = 0): array; @@ -267,10 +267,10 @@ public function setDiscussionGroup(array|int|string $broadcast, array|int|string * * @param array|int|string $channel Channel @see https://docs.madelineproto.xyz/API_docs/types/InputChannel.html * @param array|int|string $user_id New channel owner @see https://docs.madelineproto.xyz/API_docs/types/InputUser.html - * @param array{_: 'inputCheckPasswordEmpty'}|array{_: 'inputCheckPasswordSRP', srp_id?: int, A?: string, M1?: string} $password [2FA password](https://core.telegram.org/api/srp) of account @see https://docs.madelineproto.xyz/API_docs/types/InputCheckPasswordSRP.html + * @param string|array $password [2FA password](https://core.telegram.org/api/srp) of account @see https://docs.madelineproto.xyz/API_docs/types/InputCheckPasswordSRP.html * @return array @see https://docs.madelineproto.xyz/API_docs/types/Updates.html */ - public function editCreator(array|int|string $channel, array|int|string $user_id, array $password): array; + public function editCreator(array|int|string $channel, array|int|string $user_id, string|array $password): array; /** * Edit location of geogroup. @@ -316,7 +316,7 @@ public function viewSponsoredMessage(array|int|string $channel): bool; * Get a list of sponsored messages. * * @param array|int|string $channel Peer @see https://docs.madelineproto.xyz/API_docs/types/InputChannel.html - * @return array{_: 'messages.sponsoredMessages', posts_between: int, messages: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: array, local_id: array, secret: array}|array{_: 'fileLocation', dc_id: array, volume_id: array, local_id: array, secret: array}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: array, local_id: array, secret: array}|array{_: 'fileLocation', dc_id: array, volume_id: array, local_id: array, secret: array}, type: string, w: int, h: int, bytes: string}>, video_sizes: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: array, access_hash: array}|array{_: 'inputStickerSetShortName', short_name: array}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: array}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int}, channel: bool, broadcast: bool, public: bool, megagroup: bool, request_needed: bool, title: string, about: string, participants_count: int, participants: list}|array{_: 'chatInvitePeek', chat: array|int|string, expires: int}, chat_invite_hash: string, channel_post: int, start_param: string, message: string, entities: list, sponsor_info: string, additional_info: string}>, chats: list, users: list}|array{_: 'messages.sponsoredMessagesEmpty'} @see https://docs.madelineproto.xyz/API_docs/types/messages.SponsoredMessages.html + * @return array{_: 'messages.sponsoredMessages', posts_between: int, messages: list, video_sizes: list, dc_id: array}, channel: bool, broadcast: bool, public: bool, megagroup: bool, request_needed: bool, title: string, about: string, participants_count: int, participants: list}|array{_: 'chatInvitePeek', chat: array|int|string, expires: int}, chat_invite_hash: string, channel_post: int, start_param: string, message: string, entities: list, sponsor_info: string, additional_info: string}>, chats: list, users: list}|array{_: 'messages.sponsoredMessagesEmpty'} @see https://docs.madelineproto.xyz/API_docs/types/messages.SponsoredMessages.html */ public function getSponsoredMessages(array|int|string $channel): array; @@ -398,7 +398,7 @@ public function createForumTopic(array|int|string $channel, string $title = '', * * * @param array|int|string $channel @see https://docs.madelineproto.xyz/API_docs/types/InputChannel.html - * @return array{_: 'messages.forumTopics', order_by_create_date: bool, count: int, topics: list, date: int}}>, messages: list, video_sizes: list, dc_id: array}, ttl_seconds: int}|array{_: 'messageMediaGeo', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}}|array{_: 'messageMediaContact', phone_number: string, first_name: string, last_name: string, vcard: string, user_id: int}|array{_: 'messageMediaUnsupported'}|array{_: 'messageMediaDocument', nopremium: bool, spoiler: bool, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, ttl_seconds: int}|array{_: 'messageMediaWebPage', webpage: array{_: 'webPageEmpty', id: array}|array{_: 'webPagePending', id: array, date: array}|array{_: 'webPage', id: array, url: array, display_url: array, hash: array, type: array, site_name: array, title: array, description: array, photo?: array, embed_url: array, embed_type: array, embed_width: array, embed_height: array, duration: array, author: array, document?: array, cached_page?: array, attributes: list}|array{_: 'webPageNotModified', cached_page_views: array}}|array{_: 'messageMediaVenue', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, title: string, address: string, provider: string, venue_id: string, venue_type: string}|array{_: 'messageMediaGame', game: array{_: 'game', photo: array, id: array, access_hash: array, short_name: array, title: array, description: array, document?: array}}|array{_: 'messageMediaInvoice', shipping_address_requested: bool, test: bool, title: string, description: string, photo?: array{_: 'webDocument', url: array, access_hash: array, size: array, mime_type: array, attributes: list}|array{_: 'webDocumentNoProxy', url: array, size: array, mime_type: array, attributes: list}, receipt_msg_id: int, currency: string, total_amount: int, start_param: string, extended_media?: array{_: 'messageExtendedMediaPreview', w: array, h: array, thumb?: array, video_duration: array}}|array{_: 'messageMediaGeoLive', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, heading: int, period: int, proximity_notification_radius: int}|array{_: 'messageMediaPoll', poll: array{_: 'poll', id: array, closed: array, public_voters: array, multiple_choice: array, quiz: array, question: array, answers: list, close_period: array, close_date: array}, results: array{_: 'pollResults', min: array, results: list, total_voters: array, recent_voters: list, solution: array, solution_entities: list}}|array{_: 'messageMediaDice', value: int, emoticon: string}, reply_markup?: array, entities: list, views: int, forwards: int, replies?: array{_: 'messageReplies', comments: bool, replies: int, replies_pts: int, recent_repliers: list, channel_id: int, max_id: int, read_max_id: int}, edit_date: int, post_author: string, grouped_id: int, reactions?: array{_: 'messageReactions', min: bool, can_see_list: bool, results: list, recent_reactions: list}, restriction_reason: list, ttl_period: int}|array{_: 'messageService', peer_id: array|int|string, action: array{_: 'messageActionEmpty'}|array{_: 'messageActionChatCreate', title: string, users: list}|array{_: 'messageActionChatEditTitle', title: string}|array{_: 'messageActionChatEditPhoto', photo: array{_: 'photoEmpty', id: int}|array{_: 'photo', has_stickers: bool, id: int, access_hash: int, file_reference: string, date: int, sizes: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: array, local_id: array, secret: array}|array{_: 'fileLocation', dc_id: array, volume_id: array, local_id: array, secret: array}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: array, local_id: array, secret: array}|array{_: 'fileLocation', dc_id: array, volume_id: array, local_id: array, secret: array}, type: string, w: int, h: int, bytes: string}>, video_sizes: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: array, access_hash: array}|array{_: 'inputStickerSetShortName', short_name: array}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: array}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int}}|array{_: 'messageActionChatDeletePhoto'}|array{_: 'messageActionChatAddUser', users: list}|array{_: 'messageActionChatDeleteUser', user_id: int}|array{_: 'messageActionChatJoinedByLink', inviter_id: int}|array{_: 'messageActionChannelCreate', title: string}|array{_: 'messageActionChatMigrateTo', channel_id: int}|array{_: 'messageActionChannelMigrateFrom', chat_id: array|int|string, title: string}|array{_: 'messageActionPinMessage'}|array{_: 'messageActionHistoryClear'}|array{_: 'messageActionGameScore', game_id: int, score: int}|array{_: 'messageActionPaymentSentMe', charge: array{_: 'paymentCharge', id: string, provider_charge_id: string}, recurring_init: bool, recurring_used: bool, currency: string, total_amount: int, payload: string, info?: array{_: 'paymentRequestedInfo', name: string, phone: string, email: string, shipping_address?: array{_: 'postAddress', street_line1: string, street_line2: string, city: string, state: string, country_iso2: string, post_code: string}}, shipping_option_id: string}|array{_: 'messageActionPaymentSent', recurring_init: bool, recurring_used: bool, currency: string, total_amount: int, invoice_slug: string}|array{_: 'messageActionPhoneCall', video: bool, call_id: int, reason?: array{_: 'phoneCallDiscardReasonMissed'}|array{_: 'phoneCallDiscardReasonDisconnect'}|array{_: 'phoneCallDiscardReasonHangup'}|array{_: 'phoneCallDiscardReasonBusy'}, duration: int}|array{_: 'messageActionScreenshotTaken'}|array{_: 'messageActionCustomAction', message: string}|array{_: 'messageActionBotAllowed', attach_menu: bool, domain: string, app?: array{_: 'botAppNotModified'}|array{_: 'botApp', photo: array{_: 'photoEmpty', id: int}|array{_: 'photo', has_stickers: bool, id: int, access_hash: int, file_reference: string, date: int, sizes: list}|array{_: 'photoPathSize', type: array, bytes: array}|array{_: 'photoSize', location: array, type: array, w: array, h: array, size: array}|array{_: 'photoCachedSize', location: array, type: array, w: array, h: array, bytes: array}>, video_sizes: list}|array{_: 'videoSizeStickerMarkup', stickerset: array, sticker_id: array, background_colors: list}>, dc_id: int}, id: int, access_hash: int, short_name: string, title: string, description: string, document?: array{_: 'documentEmpty', id: int}|array{_: 'document', id: int, access_hash: int, file_reference: string, date: int, mime_type: string, size: int, thumbs: list}|array{_: 'photoPathSize', type: array, bytes: array}|array{_: 'photoSize', location: array, type: array, w: array, h: array, size: array}|array{_: 'photoCachedSize', location: array, type: array, w: array, h: array, bytes: array}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array, sticker_id: array, background_colors: list}>, dc_id: int, attributes: list}, hash: list}}|array{_: 'messageActionSecureValuesSentMe', credentials: array{_: 'secureCredentialsEncrypted', data: string, hash: string, secret: string}, values: list, files: list, plain_data?: array{_: 'securePlainPhone', phone: string}|array{_: 'securePlainEmail', email: string}, hash: string}>}|array{_: 'messageActionSecureValuesSent', types: list}|array{_: 'messageActionContactSignUp'}|array{_: 'messageActionGeoProximityReached', from_id: array|int|string, to_id: array|int|string, distance: int}|array{_: 'messageActionGroupCall', call: array{_: 'inputGroupCall', id: int, access_hash: int}, duration: int}|array{_: 'messageActionInviteToGroupCall', call: array{_: 'inputGroupCall', id: int, access_hash: int}, users: list}|array{_: 'messageActionSetMessagesTTL', period: int, auto_setting_from: int}|array{_: 'messageActionGroupCallScheduled', call: array{_: 'inputGroupCall', id: int, access_hash: int}, schedule_date: int}|array{_: 'messageActionSetChatTheme', emoticon: string}|array{_: 'messageActionChatJoinedByRequest'}|array{_: 'messageActionWebViewDataSentMe', text: string, data: string}|array{_: 'messageActionWebViewDataSent', text: string}|array{_: 'messageActionGiftPremium', currency: string, amount: int, months: int, crypto_currency: string, crypto_amount: int}|array{_: 'messageActionTopicCreate', title: string, icon_color: int, icon_emoji_id: int}|array{_: 'messageActionTopicEdit', title: string, icon_emoji_id: int, closed?: bool, hidden?: bool}|array{_: 'messageActionSuggestProfilePhoto', photo: array{_: 'photoEmpty', id: int}|array{_: 'photo', has_stickers: bool, id: int, access_hash: int, file_reference: string, date: int, sizes: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: array, local_id: array, secret: array}|array{_: 'fileLocation', dc_id: array, volume_id: array, local_id: array, secret: array}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: array, local_id: array, secret: array}|array{_: 'fileLocation', dc_id: array, volume_id: array, local_id: array, secret: array}, type: string, w: int, h: int, bytes: string}>, video_sizes: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: array, access_hash: array}|array{_: 'inputStickerSetShortName', short_name: array}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: array}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int}}|array{_: 'messageActionRequestedPeer', peer: array|int|string, button_id: int}|array{_: 'messageActionSetChatWallPaper', wallpaper: array{_: 'wallPaper', document: array{_: 'documentEmpty', id: int}|array{_: 'document', id: int, access_hash: int, file_reference: string, date: int, mime_type: string, size: int, thumbs: list}|array{_: 'photoPathSize', type: array, bytes: array}|array{_: 'photoSize', location: array, type: array, w: array, h: array, size: array}|array{_: 'photoCachedSize', location: array, type: array, w: array, h: array, bytes: array}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array, sticker_id: array, background_colors: list}>, dc_id: int, attributes: list}, id: int, creator: bool, default: bool, pattern: bool, dark: bool, access_hash: int, slug: string, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}|array{_: 'wallPaperNoFile', id: int, default: bool, dark: bool, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}}|array{_: 'messageActionSetSameChatWallPaper', wallpaper: array{_: 'wallPaper', document: array{_: 'documentEmpty', id: int}|array{_: 'document', id: int, access_hash: int, file_reference: string, date: int, mime_type: string, size: int, thumbs: list}|array{_: 'photoPathSize', type: array, bytes: array}|array{_: 'photoSize', location: array, type: array, w: array, h: array, size: array}|array{_: 'photoCachedSize', location: array, type: array, w: array, h: array, bytes: array}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array, sticker_id: array, background_colors: list}>, dc_id: int, attributes: list}, id: int, creator: bool, default: bool, pattern: bool, dark: bool, access_hash: int, slug: string, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}|array{_: 'wallPaperNoFile', id: int, default: bool, dark: bool, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}}, out: bool, mentioned: bool, media_unread: bool, silent: bool, post: bool, legacy: bool, id: int, from_id?: array|int|string, reply_to?: array{_: 'messageReplyHeader', reply_to_scheduled: bool, forum_topic: bool, reply_to_msg_id: int, reply_to_peer_id?: array|int|string, reply_to_top_id: int}, date: int, ttl_period: int}>, chats: list, users: list, pts: int} @see https://docs.madelineproto.xyz/API_docs/types/messages.ForumTopics.html + * @return array{_: 'messages.forumTopics', order_by_create_date: bool, count: int, topics: list, date: int}}>, messages: list, video_sizes: list, dc_id: array}, ttl_seconds: int}|array{_: 'messageMediaGeo', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}}|array{_: 'messageMediaContact', phone_number: string, first_name: string, last_name: string, vcard: string, user_id: int}|array{_: 'messageMediaUnsupported'}|array{_: 'messageMediaDocument', nopremium: bool, spoiler: bool, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, ttl_seconds: int}|array{_: 'messageMediaWebPage', webpage: array{_: 'webPageEmpty', id: array}|array{_: 'webPagePending', id: array, date: array}|array{_: 'webPage', id: array, url: array, display_url: array, hash: array, type: array, site_name: array, title: array, description: array, photo?: array{_: 'photoEmpty', id: array}|array{_: 'photo', has_stickers: array, id: array, access_hash: array, file_reference: array, date: array, sizes: list, video_sizes: list, dc_id: array}, embed_url: array, embed_type: array, embed_width: array, embed_height: array, duration: array, author: array, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, cached_page?: array, attributes: list}|array{_: 'webPageNotModified', cached_page_views: array}}|array{_: 'messageMediaVenue', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, title: string, address: string, provider: string, venue_id: string, venue_type: string}|array{_: 'messageMediaGame', game: array{_: 'game', photo: array{_: 'photoEmpty', id: array}|array{_: 'photo', has_stickers: array, id: array, access_hash: array, file_reference: array, date: array, sizes: list, video_sizes: list, dc_id: array}, id: array, access_hash: array, short_name: array, title: array, description: array, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}}}|array{_: 'messageMediaInvoice', shipping_address_requested: bool, test: bool, title: string, description: string, photo?: array{_: 'webDocument', url: array, access_hash: array, size: array, mime_type: array, attributes: list}|array{_: 'webDocumentNoProxy', url: array, size: array, mime_type: array, attributes: list}, receipt_msg_id: int, currency: string, total_amount: int, start_param: string, extended_media?: array{_: 'messageExtendedMediaPreview', w: array, h: array, thumb?: array, video_duration: array}}|array{_: 'messageMediaGeoLive', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, heading: int, period: int, proximity_notification_radius: int}|array{_: 'messageMediaPoll', poll: array{_: 'poll', id: array, closed: array, public_voters: array, multiple_choice: array, quiz: array, question: array, answers: list, close_period: array, close_date: array}, results: array{_: 'pollResults', min: array, results: list, total_voters: array, recent_voters: list, solution: array, solution_entities: list}}|array{_: 'messageMediaDice', value: int, emoticon: string}, reply_markup?: array, entities: list, views: int, forwards: int, replies?: array{_: 'messageReplies', comments: bool, replies: int, replies_pts: int, recent_repliers: list, channel_id: int, max_id: int, read_max_id: int}, edit_date: int, post_author: string, grouped_id: int, reactions?: array{_: 'messageReactions', min: bool, can_see_list: bool, results: list, recent_reactions: list}, restriction_reason: list, ttl_period: int}|array{_: 'messageService', peer_id: array|int|string, action: array{_: 'messageActionEmpty'}|array{_: 'messageActionChatCreate', title: string, users: list}|array{_: 'messageActionChatEditTitle', title: string}|array{_: 'messageActionChatEditPhoto', photo: array{_: 'photoEmpty', id: array}|array{_: 'photo', has_stickers: array, id: array, access_hash: array, file_reference: array, date: array, sizes: list, video_sizes: list, dc_id: array}}|array{_: 'messageActionChatDeletePhoto'}|array{_: 'messageActionChatAddUser', users: list}|array{_: 'messageActionChatDeleteUser', user_id: int}|array{_: 'messageActionChatJoinedByLink', inviter_id: int}|array{_: 'messageActionChannelCreate', title: string}|array{_: 'messageActionChatMigrateTo', channel_id: int}|array{_: 'messageActionChannelMigrateFrom', chat_id: array|int|string, title: string}|array{_: 'messageActionPinMessage'}|array{_: 'messageActionHistoryClear'}|array{_: 'messageActionGameScore', game_id: int, score: int}|array{_: 'messageActionPaymentSentMe', charge: array{_: 'paymentCharge', id: string, provider_charge_id: string}, recurring_init: bool, recurring_used: bool, currency: string, total_amount: int, payload: string, info?: array{_: 'paymentRequestedInfo', name: string, phone: string, email: string, shipping_address?: array{_: 'postAddress', street_line1: string, street_line2: string, city: string, state: string, country_iso2: string, post_code: string}}, shipping_option_id: string}|array{_: 'messageActionPaymentSent', recurring_init: bool, recurring_used: bool, currency: string, total_amount: int, invoice_slug: string}|array{_: 'messageActionPhoneCall', video: bool, call_id: int, reason?: array{_: 'phoneCallDiscardReasonMissed'}|array{_: 'phoneCallDiscardReasonDisconnect'}|array{_: 'phoneCallDiscardReasonHangup'}|array{_: 'phoneCallDiscardReasonBusy'}, duration: int}|array{_: 'messageActionScreenshotTaken'}|array{_: 'messageActionCustomAction', message: string}|array{_: 'messageActionBotAllowed', attach_menu: bool, domain: string, app?: array{_: 'botAppNotModified'}|array{_: 'botApp', photo: array{_: 'photoEmpty', id: array}|array{_: 'photo', has_stickers: array, id: array, access_hash: array, file_reference: array, date: array, sizes: list, video_sizes: list, dc_id: array}, id: int, access_hash: int, short_name: string, title: string, description: string, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, hash: list}}|array{_: 'messageActionSecureValuesSentMe', credentials: array{_: 'secureCredentialsEncrypted', data: string, hash: string, secret: string}, values: list, files: list, plain_data?: array{_: 'securePlainPhone', phone: string}|array{_: 'securePlainEmail', email: string}, hash: string}>}|array{_: 'messageActionSecureValuesSent', types: list}|array{_: 'messageActionContactSignUp'}|array{_: 'messageActionGeoProximityReached', from_id: array|int|string, to_id: array|int|string, distance: int}|array{_: 'messageActionGroupCall', call: array{_: 'inputGroupCall', id: int, access_hash: int}, duration: int}|array{_: 'messageActionInviteToGroupCall', call: array{_: 'inputGroupCall', id: int, access_hash: int}, users: list}|array{_: 'messageActionSetMessagesTTL', period: int, auto_setting_from: int}|array{_: 'messageActionGroupCallScheduled', call: array{_: 'inputGroupCall', id: int, access_hash: int}, schedule_date: int}|array{_: 'messageActionSetChatTheme', emoticon: string}|array{_: 'messageActionChatJoinedByRequest'}|array{_: 'messageActionWebViewDataSentMe', text: string, data: string}|array{_: 'messageActionWebViewDataSent', text: string}|array{_: 'messageActionGiftPremium', currency: string, amount: int, months: int, crypto_currency: string, crypto_amount: int}|array{_: 'messageActionTopicCreate', title: string, icon_color: int, icon_emoji_id: int}|array{_: 'messageActionTopicEdit', title: string, icon_emoji_id: int, closed?: bool, hidden?: bool}|array{_: 'messageActionSuggestProfilePhoto', photo: array{_: 'photoEmpty', id: array}|array{_: 'photo', has_stickers: array, id: array, access_hash: array, file_reference: array, date: array, sizes: list, video_sizes: list, dc_id: array}}|array{_: 'messageActionRequestedPeer', peer: array|int|string, button_id: int}|array{_: 'messageActionSetChatWallPaper', wallpaper: array{_: 'wallPaper', document: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, id: int, creator: bool, default: bool, pattern: bool, dark: bool, access_hash: int, slug: string, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}|array{_: 'wallPaperNoFile', id: int, default: bool, dark: bool, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}}|array{_: 'messageActionSetSameChatWallPaper', wallpaper: array{_: 'wallPaper', document: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, id: int, creator: bool, default: bool, pattern: bool, dark: bool, access_hash: int, slug: string, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}|array{_: 'wallPaperNoFile', id: int, default: bool, dark: bool, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}}, out: bool, mentioned: bool, media_unread: bool, silent: bool, post: bool, legacy: bool, id: int, from_id?: array|int|string, reply_to?: array{_: 'messageReplyHeader', reply_to_scheduled: bool, forum_topic: bool, reply_to_msg_id: int, reply_to_peer_id?: array|int|string, reply_to_top_id: int}, date: int, ttl_period: int}>, chats: list, users: list, pts: int} @see https://docs.madelineproto.xyz/API_docs/types/messages.ForumTopics.html */ public function getForumTopics(array|int|string $channel, string $q = '', int $offset_date = 0, int $offset_id = 0, int $offset_topic = 0, int $limit = 0): array; @@ -407,7 +407,7 @@ public function getForumTopics(array|int|string $channel, string $q = '', int $o * * @param array|int|string $channel @see https://docs.madelineproto.xyz/API_docs/types/InputChannel.html * @param list|array $topics - * @return array{_: 'messages.forumTopics', order_by_create_date: bool, count: int, topics: list, date: int}}>, messages: list, video_sizes: list, dc_id: array}, ttl_seconds: int}|array{_: 'messageMediaGeo', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}}|array{_: 'messageMediaContact', phone_number: string, first_name: string, last_name: string, vcard: string, user_id: int}|array{_: 'messageMediaUnsupported'}|array{_: 'messageMediaDocument', nopremium: bool, spoiler: bool, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, ttl_seconds: int}|array{_: 'messageMediaWebPage', webpage: array{_: 'webPageEmpty', id: array}|array{_: 'webPagePending', id: array, date: array}|array{_: 'webPage', id: array, url: array, display_url: array, hash: array, type: array, site_name: array, title: array, description: array, photo?: array, embed_url: array, embed_type: array, embed_width: array, embed_height: array, duration: array, author: array, document?: array, cached_page?: array, attributes: list}|array{_: 'webPageNotModified', cached_page_views: array}}|array{_: 'messageMediaVenue', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, title: string, address: string, provider: string, venue_id: string, venue_type: string}|array{_: 'messageMediaGame', game: array{_: 'game', photo: array, id: array, access_hash: array, short_name: array, title: array, description: array, document?: array}}|array{_: 'messageMediaInvoice', shipping_address_requested: bool, test: bool, title: string, description: string, photo?: array{_: 'webDocument', url: array, access_hash: array, size: array, mime_type: array, attributes: list}|array{_: 'webDocumentNoProxy', url: array, size: array, mime_type: array, attributes: list}, receipt_msg_id: int, currency: string, total_amount: int, start_param: string, extended_media?: array{_: 'messageExtendedMediaPreview', w: array, h: array, thumb?: array, video_duration: array}}|array{_: 'messageMediaGeoLive', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, heading: int, period: int, proximity_notification_radius: int}|array{_: 'messageMediaPoll', poll: array{_: 'poll', id: array, closed: array, public_voters: array, multiple_choice: array, quiz: array, question: array, answers: list, close_period: array, close_date: array}, results: array{_: 'pollResults', min: array, results: list, total_voters: array, recent_voters: list, solution: array, solution_entities: list}}|array{_: 'messageMediaDice', value: int, emoticon: string}, reply_markup?: array, entities: list, views: int, forwards: int, replies?: array{_: 'messageReplies', comments: bool, replies: int, replies_pts: int, recent_repliers: list, channel_id: int, max_id: int, read_max_id: int}, edit_date: int, post_author: string, grouped_id: int, reactions?: array{_: 'messageReactions', min: bool, can_see_list: bool, results: list, recent_reactions: list}, restriction_reason: list, ttl_period: int}|array{_: 'messageService', peer_id: array|int|string, action: array{_: 'messageActionEmpty'}|array{_: 'messageActionChatCreate', title: string, users: list}|array{_: 'messageActionChatEditTitle', title: string}|array{_: 'messageActionChatEditPhoto', photo: array{_: 'photoEmpty', id: int}|array{_: 'photo', has_stickers: bool, id: int, access_hash: int, file_reference: string, date: int, sizes: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: array, local_id: array, secret: array}|array{_: 'fileLocation', dc_id: array, volume_id: array, local_id: array, secret: array}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: array, local_id: array, secret: array}|array{_: 'fileLocation', dc_id: array, volume_id: array, local_id: array, secret: array}, type: string, w: int, h: int, bytes: string}>, video_sizes: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: array, access_hash: array}|array{_: 'inputStickerSetShortName', short_name: array}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: array}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int}}|array{_: 'messageActionChatDeletePhoto'}|array{_: 'messageActionChatAddUser', users: list}|array{_: 'messageActionChatDeleteUser', user_id: int}|array{_: 'messageActionChatJoinedByLink', inviter_id: int}|array{_: 'messageActionChannelCreate', title: string}|array{_: 'messageActionChatMigrateTo', channel_id: int}|array{_: 'messageActionChannelMigrateFrom', chat_id: array|int|string, title: string}|array{_: 'messageActionPinMessage'}|array{_: 'messageActionHistoryClear'}|array{_: 'messageActionGameScore', game_id: int, score: int}|array{_: 'messageActionPaymentSentMe', charge: array{_: 'paymentCharge', id: string, provider_charge_id: string}, recurring_init: bool, recurring_used: bool, currency: string, total_amount: int, payload: string, info?: array{_: 'paymentRequestedInfo', name: string, phone: string, email: string, shipping_address?: array{_: 'postAddress', street_line1: string, street_line2: string, city: string, state: string, country_iso2: string, post_code: string}}, shipping_option_id: string}|array{_: 'messageActionPaymentSent', recurring_init: bool, recurring_used: bool, currency: string, total_amount: int, invoice_slug: string}|array{_: 'messageActionPhoneCall', video: bool, call_id: int, reason?: array{_: 'phoneCallDiscardReasonMissed'}|array{_: 'phoneCallDiscardReasonDisconnect'}|array{_: 'phoneCallDiscardReasonHangup'}|array{_: 'phoneCallDiscardReasonBusy'}, duration: int}|array{_: 'messageActionScreenshotTaken'}|array{_: 'messageActionCustomAction', message: string}|array{_: 'messageActionBotAllowed', attach_menu: bool, domain: string, app?: array{_: 'botAppNotModified'}|array{_: 'botApp', photo: array{_: 'photoEmpty', id: int}|array{_: 'photo', has_stickers: bool, id: int, access_hash: int, file_reference: string, date: int, sizes: list}|array{_: 'photoPathSize', type: array, bytes: array}|array{_: 'photoSize', location: array, type: array, w: array, h: array, size: array}|array{_: 'photoCachedSize', location: array, type: array, w: array, h: array, bytes: array}>, video_sizes: list}|array{_: 'videoSizeStickerMarkup', stickerset: array, sticker_id: array, background_colors: list}>, dc_id: int}, id: int, access_hash: int, short_name: string, title: string, description: string, document?: array{_: 'documentEmpty', id: int}|array{_: 'document', id: int, access_hash: int, file_reference: string, date: int, mime_type: string, size: int, thumbs: list}|array{_: 'photoPathSize', type: array, bytes: array}|array{_: 'photoSize', location: array, type: array, w: array, h: array, size: array}|array{_: 'photoCachedSize', location: array, type: array, w: array, h: array, bytes: array}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array, sticker_id: array, background_colors: list}>, dc_id: int, attributes: list}, hash: list}}|array{_: 'messageActionSecureValuesSentMe', credentials: array{_: 'secureCredentialsEncrypted', data: string, hash: string, secret: string}, values: list, files: list, plain_data?: array{_: 'securePlainPhone', phone: string}|array{_: 'securePlainEmail', email: string}, hash: string}>}|array{_: 'messageActionSecureValuesSent', types: list}|array{_: 'messageActionContactSignUp'}|array{_: 'messageActionGeoProximityReached', from_id: array|int|string, to_id: array|int|string, distance: int}|array{_: 'messageActionGroupCall', call: array{_: 'inputGroupCall', id: int, access_hash: int}, duration: int}|array{_: 'messageActionInviteToGroupCall', call: array{_: 'inputGroupCall', id: int, access_hash: int}, users: list}|array{_: 'messageActionSetMessagesTTL', period: int, auto_setting_from: int}|array{_: 'messageActionGroupCallScheduled', call: array{_: 'inputGroupCall', id: int, access_hash: int}, schedule_date: int}|array{_: 'messageActionSetChatTheme', emoticon: string}|array{_: 'messageActionChatJoinedByRequest'}|array{_: 'messageActionWebViewDataSentMe', text: string, data: string}|array{_: 'messageActionWebViewDataSent', text: string}|array{_: 'messageActionGiftPremium', currency: string, amount: int, months: int, crypto_currency: string, crypto_amount: int}|array{_: 'messageActionTopicCreate', title: string, icon_color: int, icon_emoji_id: int}|array{_: 'messageActionTopicEdit', title: string, icon_emoji_id: int, closed?: bool, hidden?: bool}|array{_: 'messageActionSuggestProfilePhoto', photo: array{_: 'photoEmpty', id: int}|array{_: 'photo', has_stickers: bool, id: int, access_hash: int, file_reference: string, date: int, sizes: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: array, local_id: array, secret: array}|array{_: 'fileLocation', dc_id: array, volume_id: array, local_id: array, secret: array}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: array, local_id: array, secret: array}|array{_: 'fileLocation', dc_id: array, volume_id: array, local_id: array, secret: array}, type: string, w: int, h: int, bytes: string}>, video_sizes: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: array, access_hash: array}|array{_: 'inputStickerSetShortName', short_name: array}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: array}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int}}|array{_: 'messageActionRequestedPeer', peer: array|int|string, button_id: int}|array{_: 'messageActionSetChatWallPaper', wallpaper: array{_: 'wallPaper', document: array{_: 'documentEmpty', id: int}|array{_: 'document', id: int, access_hash: int, file_reference: string, date: int, mime_type: string, size: int, thumbs: list}|array{_: 'photoPathSize', type: array, bytes: array}|array{_: 'photoSize', location: array, type: array, w: array, h: array, size: array}|array{_: 'photoCachedSize', location: array, type: array, w: array, h: array, bytes: array}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array, sticker_id: array, background_colors: list}>, dc_id: int, attributes: list}, id: int, creator: bool, default: bool, pattern: bool, dark: bool, access_hash: int, slug: string, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}|array{_: 'wallPaperNoFile', id: int, default: bool, dark: bool, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}}|array{_: 'messageActionSetSameChatWallPaper', wallpaper: array{_: 'wallPaper', document: array{_: 'documentEmpty', id: int}|array{_: 'document', id: int, access_hash: int, file_reference: string, date: int, mime_type: string, size: int, thumbs: list}|array{_: 'photoPathSize', type: array, bytes: array}|array{_: 'photoSize', location: array, type: array, w: array, h: array, size: array}|array{_: 'photoCachedSize', location: array, type: array, w: array, h: array, bytes: array}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array, sticker_id: array, background_colors: list}>, dc_id: int, attributes: list}, id: int, creator: bool, default: bool, pattern: bool, dark: bool, access_hash: int, slug: string, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}|array{_: 'wallPaperNoFile', id: int, default: bool, dark: bool, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}}, out: bool, mentioned: bool, media_unread: bool, silent: bool, post: bool, legacy: bool, id: int, from_id?: array|int|string, reply_to?: array{_: 'messageReplyHeader', reply_to_scheduled: bool, forum_topic: bool, reply_to_msg_id: int, reply_to_peer_id?: array|int|string, reply_to_top_id: int}, date: int, ttl_period: int}>, chats: list, users: list, pts: int} @see https://docs.madelineproto.xyz/API_docs/types/messages.ForumTopics.html + * @return array{_: 'messages.forumTopics', order_by_create_date: bool, count: int, topics: list, date: int}}>, messages: list, video_sizes: list, dc_id: array}, ttl_seconds: int}|array{_: 'messageMediaGeo', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}}|array{_: 'messageMediaContact', phone_number: string, first_name: string, last_name: string, vcard: string, user_id: int}|array{_: 'messageMediaUnsupported'}|array{_: 'messageMediaDocument', nopremium: bool, spoiler: bool, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, ttl_seconds: int}|array{_: 'messageMediaWebPage', webpage: array{_: 'webPageEmpty', id: array}|array{_: 'webPagePending', id: array, date: array}|array{_: 'webPage', id: array, url: array, display_url: array, hash: array, type: array, site_name: array, title: array, description: array, photo?: array{_: 'photoEmpty', id: array}|array{_: 'photo', has_stickers: array, id: array, access_hash: array, file_reference: array, date: array, sizes: list, video_sizes: list, dc_id: array}, embed_url: array, embed_type: array, embed_width: array, embed_height: array, duration: array, author: array, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, cached_page?: array, attributes: list}|array{_: 'webPageNotModified', cached_page_views: array}}|array{_: 'messageMediaVenue', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, title: string, address: string, provider: string, venue_id: string, venue_type: string}|array{_: 'messageMediaGame', game: array{_: 'game', photo: array{_: 'photoEmpty', id: array}|array{_: 'photo', has_stickers: array, id: array, access_hash: array, file_reference: array, date: array, sizes: list, video_sizes: list, dc_id: array}, id: array, access_hash: array, short_name: array, title: array, description: array, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}}}|array{_: 'messageMediaInvoice', shipping_address_requested: bool, test: bool, title: string, description: string, photo?: array{_: 'webDocument', url: array, access_hash: array, size: array, mime_type: array, attributes: list}|array{_: 'webDocumentNoProxy', url: array, size: array, mime_type: array, attributes: list}, receipt_msg_id: int, currency: string, total_amount: int, start_param: string, extended_media?: array{_: 'messageExtendedMediaPreview', w: array, h: array, thumb?: array, video_duration: array}}|array{_: 'messageMediaGeoLive', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, heading: int, period: int, proximity_notification_radius: int}|array{_: 'messageMediaPoll', poll: array{_: 'poll', id: array, closed: array, public_voters: array, multiple_choice: array, quiz: array, question: array, answers: list, close_period: array, close_date: array}, results: array{_: 'pollResults', min: array, results: list, total_voters: array, recent_voters: list, solution: array, solution_entities: list}}|array{_: 'messageMediaDice', value: int, emoticon: string}, reply_markup?: array, entities: list, views: int, forwards: int, replies?: array{_: 'messageReplies', comments: bool, replies: int, replies_pts: int, recent_repliers: list, channel_id: int, max_id: int, read_max_id: int}, edit_date: int, post_author: string, grouped_id: int, reactions?: array{_: 'messageReactions', min: bool, can_see_list: bool, results: list, recent_reactions: list}, restriction_reason: list, ttl_period: int}|array{_: 'messageService', peer_id: array|int|string, action: array{_: 'messageActionEmpty'}|array{_: 'messageActionChatCreate', title: string, users: list}|array{_: 'messageActionChatEditTitle', title: string}|array{_: 'messageActionChatEditPhoto', photo: array{_: 'photoEmpty', id: array}|array{_: 'photo', has_stickers: array, id: array, access_hash: array, file_reference: array, date: array, sizes: list, video_sizes: list, dc_id: array}}|array{_: 'messageActionChatDeletePhoto'}|array{_: 'messageActionChatAddUser', users: list}|array{_: 'messageActionChatDeleteUser', user_id: int}|array{_: 'messageActionChatJoinedByLink', inviter_id: int}|array{_: 'messageActionChannelCreate', title: string}|array{_: 'messageActionChatMigrateTo', channel_id: int}|array{_: 'messageActionChannelMigrateFrom', chat_id: array|int|string, title: string}|array{_: 'messageActionPinMessage'}|array{_: 'messageActionHistoryClear'}|array{_: 'messageActionGameScore', game_id: int, score: int}|array{_: 'messageActionPaymentSentMe', charge: array{_: 'paymentCharge', id: string, provider_charge_id: string}, recurring_init: bool, recurring_used: bool, currency: string, total_amount: int, payload: string, info?: array{_: 'paymentRequestedInfo', name: string, phone: string, email: string, shipping_address?: array{_: 'postAddress', street_line1: string, street_line2: string, city: string, state: string, country_iso2: string, post_code: string}}, shipping_option_id: string}|array{_: 'messageActionPaymentSent', recurring_init: bool, recurring_used: bool, currency: string, total_amount: int, invoice_slug: string}|array{_: 'messageActionPhoneCall', video: bool, call_id: int, reason?: array{_: 'phoneCallDiscardReasonMissed'}|array{_: 'phoneCallDiscardReasonDisconnect'}|array{_: 'phoneCallDiscardReasonHangup'}|array{_: 'phoneCallDiscardReasonBusy'}, duration: int}|array{_: 'messageActionScreenshotTaken'}|array{_: 'messageActionCustomAction', message: string}|array{_: 'messageActionBotAllowed', attach_menu: bool, domain: string, app?: array{_: 'botAppNotModified'}|array{_: 'botApp', photo: array{_: 'photoEmpty', id: array}|array{_: 'photo', has_stickers: array, id: array, access_hash: array, file_reference: array, date: array, sizes: list, video_sizes: list, dc_id: array}, id: int, access_hash: int, short_name: string, title: string, description: string, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, hash: list}}|array{_: 'messageActionSecureValuesSentMe', credentials: array{_: 'secureCredentialsEncrypted', data: string, hash: string, secret: string}, values: list, files: list, plain_data?: array{_: 'securePlainPhone', phone: string}|array{_: 'securePlainEmail', email: string}, hash: string}>}|array{_: 'messageActionSecureValuesSent', types: list}|array{_: 'messageActionContactSignUp'}|array{_: 'messageActionGeoProximityReached', from_id: array|int|string, to_id: array|int|string, distance: int}|array{_: 'messageActionGroupCall', call: array{_: 'inputGroupCall', id: int, access_hash: int}, duration: int}|array{_: 'messageActionInviteToGroupCall', call: array{_: 'inputGroupCall', id: int, access_hash: int}, users: list}|array{_: 'messageActionSetMessagesTTL', period: int, auto_setting_from: int}|array{_: 'messageActionGroupCallScheduled', call: array{_: 'inputGroupCall', id: int, access_hash: int}, schedule_date: int}|array{_: 'messageActionSetChatTheme', emoticon: string}|array{_: 'messageActionChatJoinedByRequest'}|array{_: 'messageActionWebViewDataSentMe', text: string, data: string}|array{_: 'messageActionWebViewDataSent', text: string}|array{_: 'messageActionGiftPremium', currency: string, amount: int, months: int, crypto_currency: string, crypto_amount: int}|array{_: 'messageActionTopicCreate', title: string, icon_color: int, icon_emoji_id: int}|array{_: 'messageActionTopicEdit', title: string, icon_emoji_id: int, closed?: bool, hidden?: bool}|array{_: 'messageActionSuggestProfilePhoto', photo: array{_: 'photoEmpty', id: array}|array{_: 'photo', has_stickers: array, id: array, access_hash: array, file_reference: array, date: array, sizes: list, video_sizes: list, dc_id: array}}|array{_: 'messageActionRequestedPeer', peer: array|int|string, button_id: int}|array{_: 'messageActionSetChatWallPaper', wallpaper: array{_: 'wallPaper', document: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, id: int, creator: bool, default: bool, pattern: bool, dark: bool, access_hash: int, slug: string, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}|array{_: 'wallPaperNoFile', id: int, default: bool, dark: bool, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}}|array{_: 'messageActionSetSameChatWallPaper', wallpaper: array{_: 'wallPaper', document: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, id: int, creator: bool, default: bool, pattern: bool, dark: bool, access_hash: int, slug: string, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}|array{_: 'wallPaperNoFile', id: int, default: bool, dark: bool, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}}, out: bool, mentioned: bool, media_unread: bool, silent: bool, post: bool, legacy: bool, id: int, from_id?: array|int|string, reply_to?: array{_: 'messageReplyHeader', reply_to_scheduled: bool, forum_topic: bool, reply_to_msg_id: int, reply_to_peer_id?: array|int|string, reply_to_top_id: int}, date: int, ttl_period: int}>, chats: list, users: list, pts: int} @see https://docs.madelineproto.xyz/API_docs/types/messages.ForumTopics.html */ public function getForumTopicsByID(array|int|string $channel, array $topics = []): array; diff --git a/src/Namespace/Help.php b/src/Namespace/Help.php index e9d7cdda49..daf8a86a1e 100644 --- a/src/Namespace/Help.php +++ b/src/Namespace/Help.php @@ -27,7 +27,7 @@ public function getNearestDc(): array; * Returns information on update availability for the current application. * * @param string $source Source - * @return array{_: 'help.appUpdate', can_not_skip: bool, id: int, version: string, text: string, entities: list, document?: array{_: 'documentEmpty', id: int}|array{_: 'document', id: int, access_hash: int, file_reference: string, date: int, mime_type: string, size: int, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int, attributes: list}, url: string, sticker?: array{_: 'documentEmpty', id: int}|array{_: 'document', id: int, access_hash: int, file_reference: string, date: int, mime_type: string, size: int, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int, attributes: list}}|array{_: 'help.noAppUpdate'} @see https://docs.madelineproto.xyz/API_docs/types/help.AppUpdate.html + * @return array{_: 'help.appUpdate', can_not_skip: bool, id: int, version: string, text: string, entities: list, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, url: string, sticker?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}}|array{_: 'help.noAppUpdate'} @see https://docs.madelineproto.xyz/API_docs/types/help.AppUpdate.html */ public function getAppUpdate(string $source = ''): array; @@ -76,7 +76,7 @@ public function getCdnConfig(): array; * If, after downloading the application, the user creates a new account (instead of logging into an existing one), the referral parameter should be imported using this method, which returns the [t.me](https://t.me) pages the user recently opened, before installing Telegram. * * @param string $referer Referrer - * @return array{_: 'help.recentMeUrls', urls: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: array, local_id: array, secret: array}|array{_: 'fileLocation', dc_id: array, volume_id: array, local_id: array, secret: array}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: array, local_id: array, secret: array}|array{_: 'fileLocation', dc_id: array, volume_id: array, local_id: array, secret: array}, type: string, w: int, h: int, bytes: string}>, video_sizes: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: array, access_hash: array}|array{_: 'inputStickerSetShortName', short_name: array}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: array}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int}, channel: bool, broadcast: bool, public: bool, megagroup: bool, request_needed: bool, title: string, about: string, participants_count: int, participants: list}|array{_: 'chatInvitePeek', chat: array|int|string, expires: int}, url: string}|array{_: 'recentMeUrlStickerSet', set: array{_: 'stickerSetCovered', set: array{_: 'stickerSet', archived: bool, official: bool, masks: bool, animated: bool, videos: bool, emojis: bool, installed_date: int, id: int, access_hash: int, title: string, short_name: string, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: array, local_id: array, secret: array}|array{_: 'fileLocation', dc_id: array, volume_id: array, local_id: array, secret: array}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: array, local_id: array, secret: array}|array{_: 'fileLocation', dc_id: array, volume_id: array, local_id: array, secret: array}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}, cover: array{_: 'documentEmpty', id: int}|array{_: 'document', id: int, access_hash: int, file_reference: string, date: int, mime_type: string, size: int, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: array, local_id: array, secret: array}|array{_: 'fileLocation', dc_id: array, volume_id: array, local_id: array, secret: array}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: array, local_id: array, secret: array}|array{_: 'fileLocation', dc_id: array, volume_id: array, local_id: array, secret: array}, type: string, w: int, h: int, bytes: string}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: array, access_hash: array}|array{_: 'inputStickerSetShortName', short_name: array}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: array}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int, attributes: list}}|array{_: 'stickerSetMultiCovered', set: array{_: 'stickerSet', archived: bool, official: bool, masks: bool, animated: bool, videos: bool, emojis: bool, installed_date: int, id: int, access_hash: int, title: string, short_name: string, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: array, local_id: array, secret: array}|array{_: 'fileLocation', dc_id: array, volume_id: array, local_id: array, secret: array}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: array, local_id: array, secret: array}|array{_: 'fileLocation', dc_id: array, volume_id: array, local_id: array, secret: array}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}, covers: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: array, local_id: array, secret: array}|array{_: 'fileLocation', dc_id: array, volume_id: array, local_id: array, secret: array}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: array, local_id: array, secret: array}|array{_: 'fileLocation', dc_id: array, volume_id: array, local_id: array, secret: array}, type: string, w: int, h: int, bytes: string}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: array, access_hash: array}|array{_: 'inputStickerSetShortName', short_name: array}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: array}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int, attributes: list}>}|array{_: 'stickerSetFullCovered', set: array{_: 'stickerSet', archived: bool, official: bool, masks: bool, animated: bool, videos: bool, emojis: bool, installed_date: int, id: int, access_hash: int, title: string, short_name: string, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: array, local_id: array, secret: array}|array{_: 'fileLocation', dc_id: array, volume_id: array, local_id: array, secret: array}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: array, local_id: array, secret: array}|array{_: 'fileLocation', dc_id: array, volume_id: array, local_id: array, secret: array}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}, packs: list}>, keywords: list}>, documents: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: array, local_id: array, secret: array}|array{_: 'fileLocation', dc_id: array, volume_id: array, local_id: array, secret: array}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: array, local_id: array, secret: array}|array{_: 'fileLocation', dc_id: array, volume_id: array, local_id: array, secret: array}, type: string, w: int, h: int, bytes: string}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: array, access_hash: array}|array{_: 'inputStickerSetShortName', short_name: array}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: array}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int, attributes: list}>}|array{_: 'stickerSetNoCovered', set: array{_: 'stickerSet', archived: bool, official: bool, masks: bool, animated: bool, videos: bool, emojis: bool, installed_date: int, id: int, access_hash: int, title: string, short_name: string, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: array, local_id: array, secret: array}|array{_: 'fileLocation', dc_id: array, volume_id: array, local_id: array, secret: array}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: array, local_id: array, secret: array}|array{_: 'fileLocation', dc_id: array, volume_id: array, local_id: array, secret: array}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}}, url: string}>, chats: list, users: list} @see https://docs.madelineproto.xyz/API_docs/types/help.RecentMeUrls.html + * @return array{_: 'help.recentMeUrls', urls: list, video_sizes: list, dc_id: array}, channel: bool, broadcast: bool, public: bool, megagroup: bool, request_needed: bool, title: string, about: string, participants_count: int, participants: list}|array{_: 'chatInvitePeek', chat: array|int|string, expires: int}, url: string}|array{_: 'recentMeUrlStickerSet', set: array{_: 'stickerSetCovered', set: array{_: 'stickerSet', archived: bool, official: bool, masks: bool, animated: bool, videos: bool, emojis: bool, installed_date: int, id: int, access_hash: int, title: string, short_name: string, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: array, local_id: array, secret: array}|array{_: 'fileLocation', dc_id: array, volume_id: array, local_id: array, secret: array}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: array, local_id: array, secret: array}|array{_: 'fileLocation', dc_id: array, volume_id: array, local_id: array, secret: array}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}, cover: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}}|array{_: 'stickerSetMultiCovered', set: array{_: 'stickerSet', archived: bool, official: bool, masks: bool, animated: bool, videos: bool, emojis: bool, installed_date: int, id: int, access_hash: int, title: string, short_name: string, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: array, local_id: array, secret: array}|array{_: 'fileLocation', dc_id: array, volume_id: array, local_id: array, secret: array}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: array, local_id: array, secret: array}|array{_: 'fileLocation', dc_id: array, volume_id: array, local_id: array, secret: array}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}, covers: list, video_thumbs: list, dc_id: array, attributes: list}>}|array{_: 'stickerSetFullCovered', set: array{_: 'stickerSet', archived: bool, official: bool, masks: bool, animated: bool, videos: bool, emojis: bool, installed_date: int, id: int, access_hash: int, title: string, short_name: string, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: array, local_id: array, secret: array}|array{_: 'fileLocation', dc_id: array, volume_id: array, local_id: array, secret: array}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: array, local_id: array, secret: array}|array{_: 'fileLocation', dc_id: array, volume_id: array, local_id: array, secret: array}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}, packs: list}>, keywords: list}>, documents: list, video_thumbs: list, dc_id: array, attributes: list}>}|array{_: 'stickerSetNoCovered', set: array{_: 'stickerSet', archived: bool, official: bool, masks: bool, animated: bool, videos: bool, emojis: bool, installed_date: int, id: int, access_hash: int, title: string, short_name: string, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: array, local_id: array, secret: array}|array{_: 'fileLocation', dc_id: array, volume_id: array, local_id: array, secret: array}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: array, local_id: array, secret: array}|array{_: 'fileLocation', dc_id: array, volume_id: array, local_id: array, secret: array}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}}, url: string}>, chats: list, users: list} @see https://docs.madelineproto.xyz/API_docs/types/help.RecentMeUrls.html */ public function getRecentMeUrls(string $referer = ''): array; @@ -182,7 +182,7 @@ public function getCountriesList(string $lang_code = '', int $hash = 0): array; /** * Get Telegram Premium promotion information. * - * @return array{_: 'help.premiumPromo', status_text: string, status_entities: list, video_sections: list, videos: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int, attributes: list}>, period_options: list, users: list} @see https://docs.madelineproto.xyz/API_docs/types/help.PremiumPromo.html + * @return array{_: 'help.premiumPromo', status_text: string, status_entities: list, video_sections: list, videos: list, video_thumbs: list, dc_id: array, attributes: list}>, period_options: list, users: list} @see https://docs.madelineproto.xyz/API_docs/types/help.PremiumPromo.html */ public function getPremiumPromo(): array; } diff --git a/src/Namespace/Messages.php b/src/Namespace/Messages.php index 1895d94456..da7443cda6 100644 --- a/src/Namespace/Messages.php +++ b/src/Namespace/Messages.php @@ -1,4 +1,4 @@ -|array $hash [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) - * @return array{_: 'messages.dialogs', dialogs: list, messages: list, video_sizes: list, dc_id: array}, ttl_seconds: int}|array{_: 'messageMediaGeo', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}}|array{_: 'messageMediaContact', phone_number: string, first_name: string, last_name: string, vcard: string, user_id: int}|array{_: 'messageMediaUnsupported'}|array{_: 'messageMediaDocument', nopremium: bool, spoiler: bool, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, ttl_seconds: int}|array{_: 'messageMediaWebPage', webpage: array{_: 'webPageEmpty', id: array}|array{_: 'webPagePending', id: array, date: array}|array{_: 'webPage', id: array, url: array, display_url: array, hash: array, type: array, site_name: array, title: array, description: array, photo?: array, embed_url: array, embed_type: array, embed_width: array, embed_height: array, duration: array, author: array, document?: array, cached_page?: array, attributes: list}|array{_: 'webPageNotModified', cached_page_views: array}}|array{_: 'messageMediaVenue', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, title: string, address: string, provider: string, venue_id: string, venue_type: string}|array{_: 'messageMediaGame', game: array{_: 'game', photo: array, id: array, access_hash: array, short_name: array, title: array, description: array, document?: array}}|array{_: 'messageMediaInvoice', shipping_address_requested: bool, test: bool, title: string, description: string, photo?: array{_: 'webDocument', url: array, access_hash: array, size: array, mime_type: array, attributes: list}|array{_: 'webDocumentNoProxy', url: array, size: array, mime_type: array, attributes: list}, receipt_msg_id: int, currency: string, total_amount: int, start_param: string, extended_media?: array{_: 'messageExtendedMediaPreview', w: array, h: array, thumb?: array, video_duration: array}}|array{_: 'messageMediaGeoLive', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, heading: int, period: int, proximity_notification_radius: int}|array{_: 'messageMediaPoll', poll: array{_: 'poll', id: array, closed: array, public_voters: array, multiple_choice: array, quiz: array, question: array, answers: list, close_period: array, close_date: array}, results: array{_: 'pollResults', min: array, results: list, total_voters: array, recent_voters: list, solution: array, solution_entities: list}}|array{_: 'messageMediaDice', value: int, emoticon: string}, reply_markup?: array, entities: list, views: array, forwards: array, replies?: array, edit_date: array, post_author: array, grouped_id: array, reactions?: array, restriction_reason: list, ttl_period: array}|array{_: 'messageService', peer_id: array, action: array, out: array, mentioned: array, media_unread: array, silent: array, post: array, legacy: array, id: array, from_id?: array, reply_to?: array, date: array, ttl_period: array}>, chats: list, users: list}|array{_: 'messages.dialogsSlice', count: int, dialogs: list, messages: list, video_sizes: list, dc_id: array}, ttl_seconds: int}|array{_: 'messageMediaGeo', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}}|array{_: 'messageMediaContact', phone_number: string, first_name: string, last_name: string, vcard: string, user_id: int}|array{_: 'messageMediaUnsupported'}|array{_: 'messageMediaDocument', nopremium: bool, spoiler: bool, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, ttl_seconds: int}|array{_: 'messageMediaWebPage', webpage: array{_: 'webPageEmpty', id: array}|array{_: 'webPagePending', id: array, date: array}|array{_: 'webPage', id: array, url: array, display_url: array, hash: array, type: array, site_name: array, title: array, description: array, photo?: array, embed_url: array, embed_type: array, embed_width: array, embed_height: array, duration: array, author: array, document?: array, cached_page?: array, attributes: list}|array{_: 'webPageNotModified', cached_page_views: array}}|array{_: 'messageMediaVenue', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, title: string, address: string, provider: string, venue_id: string, venue_type: string}|array{_: 'messageMediaGame', game: array{_: 'game', photo: array, id: array, access_hash: array, short_name: array, title: array, description: array, document?: array}}|array{_: 'messageMediaInvoice', shipping_address_requested: bool, test: bool, title: string, description: string, photo?: array{_: 'webDocument', url: array, access_hash: array, size: array, mime_type: array, attributes: list}|array{_: 'webDocumentNoProxy', url: array, size: array, mime_type: array, attributes: list}, receipt_msg_id: int, currency: string, total_amount: int, start_param: string, extended_media?: array{_: 'messageExtendedMediaPreview', w: array, h: array, thumb?: array, video_duration: array}}|array{_: 'messageMediaGeoLive', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, heading: int, period: int, proximity_notification_radius: int}|array{_: 'messageMediaPoll', poll: array{_: 'poll', id: array, closed: array, public_voters: array, multiple_choice: array, quiz: array, question: array, answers: list, close_period: array, close_date: array}, results: array{_: 'pollResults', min: array, results: list, total_voters: array, recent_voters: list, solution: array, solution_entities: list}}|array{_: 'messageMediaDice', value: int, emoticon: string}, reply_markup?: array, entities: list, views: array, forwards: array, replies?: array, edit_date: array, post_author: array, grouped_id: array, reactions?: array, restriction_reason: list, ttl_period: array}|array{_: 'messageService', peer_id: array, action: array, out: array, mentioned: array, media_unread: array, silent: array, post: array, legacy: array, id: array, from_id?: array, reply_to?: array, date: array, ttl_period: array}>, chats: list, users: list}|array{_: 'messages.dialogsNotModified', count: int} @see https://docs.madelineproto.xyz/API_docs/types/messages.Dialogs.html + * @return array{_: 'messages.dialogs', dialogs: list, messages: list, chats: list, users: list}|array{_: 'messages.dialogsSlice', count: array, dialogs: list, messages: list, chats: list, users: list}|array{_: 'messages.dialogsNotModified', count: array} @see https://docs.madelineproto.xyz/API_docs/types/messages.Dialogs.html */ public function getDialogs(array|int|string $offset_peer, bool $exclude_pinned = false, int $folder_id = 0, int $offset_date = 0, int $offset_id = 0, int $limit = 0, array $hash = []): array; /** - * Returns found messages + * Returns found messages. * * @param array|int|string $peer User or chat, histories with which are searched, or [(inputPeerEmpty)](https://docs.madelineproto.xyz/API_docs/constructors/inputPeerEmpty.html) constructor for global search @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html * @param array{_: 'inputMessagesFilterEmpty'}|array{_: 'inputMessagesFilterPhotos'}|array{_: 'inputMessagesFilterVideo'}|array{_: 'inputMessagesFilterPhotoVideo'}|array{_: 'inputMessagesFilterDocument'}|array{_: 'inputMessagesFilterUrl'}|array{_: 'inputMessagesFilterGif'}|array{_: 'inputMessagesFilterVoice'}|array{_: 'inputMessagesFilterMusic'}|array{_: 'inputMessagesFilterChatPhotos'}|array{_: 'inputMessagesFilterPhoneCalls', missed?: bool}|array{_: 'inputMessagesFilterRoundVoice'}|array{_: 'inputMessagesFilterRoundVideo'}|array{_: 'inputMessagesFilterMyMentions'}|array{_: 'inputMessagesFilterGeo'}|array{_: 'inputMessagesFilterContacts'}|array{_: 'inputMessagesFilterPinned'} $filter Filter to return only specified message types @see https://docs.madelineproto.xyz/API_docs/types/MessagesFilter.html @@ -39,7 +39,7 @@ public function getDialogs(array|int|string $offset_peer, bool $exclude_pinned = * @param int $max_id [Maximum message ID to return](https://core.telegram.org/api/offsets) * @param int $min_id [Minimum message ID to return](https://core.telegram.org/api/offsets) * @param list|array $hash [Hash](https://core.telegram.org/api/offsets) - * @return array{_: 'messages.messages', messages: list, video_sizes: list, dc_id: array}, ttl_seconds: int}|array{_: 'messageMediaGeo', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}}|array{_: 'messageMediaContact', phone_number: string, first_name: string, last_name: string, vcard: string, user_id: int}|array{_: 'messageMediaUnsupported'}|array{_: 'messageMediaDocument', nopremium: bool, spoiler: bool, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, ttl_seconds: int}|array{_: 'messageMediaWebPage', webpage: array{_: 'webPageEmpty', id: array}|array{_: 'webPagePending', id: array, date: array}|array{_: 'webPage', id: array, url: array, display_url: array, hash: array, type: array, site_name: array, title: array, description: array, photo?: array, embed_url: array, embed_type: array, embed_width: array, embed_height: array, duration: array, author: array, document?: array, cached_page?: array, attributes: list}|array{_: 'webPageNotModified', cached_page_views: array}}|array{_: 'messageMediaVenue', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, title: string, address: string, provider: string, venue_id: string, venue_type: string}|array{_: 'messageMediaGame', game: array{_: 'game', photo: array, id: array, access_hash: array, short_name: array, title: array, description: array, document?: array}}|array{_: 'messageMediaInvoice', shipping_address_requested: bool, test: bool, title: string, description: string, photo?: array{_: 'webDocument', url: array, access_hash: array, size: array, mime_type: array, attributes: list}|array{_: 'webDocumentNoProxy', url: array, size: array, mime_type: array, attributes: list}, receipt_msg_id: int, currency: string, total_amount: int, start_param: string, extended_media?: array{_: 'messageExtendedMediaPreview', w: array, h: array, thumb?: array, video_duration: array}}|array{_: 'messageMediaGeoLive', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, heading: int, period: int, proximity_notification_radius: int}|array{_: 'messageMediaPoll', poll: array{_: 'poll', id: array, closed: array, public_voters: array, multiple_choice: array, quiz: array, question: array, answers: list, close_period: array, close_date: array}, results: array{_: 'pollResults', min: array, results: list, total_voters: array, recent_voters: list, solution: array, solution_entities: list}}|array{_: 'messageMediaDice', value: int, emoticon: string}, reply_markup?: array, entities: list, views: int, forwards: int, replies?: array{_: 'messageReplies', comments: array, replies: array, replies_pts: array, recent_repliers: list, channel_id: array, max_id: array, read_max_id: array}, edit_date: int, post_author: string, grouped_id: int, reactions?: array{_: 'messageReactions', min: array, can_see_list: array, results: list, recent_reactions: list}, restriction_reason: list, ttl_period: int}|array{_: 'messageService', peer_id: array|int|string, action: array{_: 'messageActionEmpty'}|array{_: 'messageActionChatCreate', title: array, users: list}|array{_: 'messageActionChatEditTitle', title: array}|array{_: 'messageActionChatEditPhoto', photo: array}|array{_: 'messageActionChatDeletePhoto'}|array{_: 'messageActionChatAddUser', users: list}|array{_: 'messageActionChatDeleteUser', user_id: array}|array{_: 'messageActionChatJoinedByLink', inviter_id: array}|array{_: 'messageActionChannelCreate', title: array}|array{_: 'messageActionChatMigrateTo', channel_id: array}|array{_: 'messageActionChannelMigrateFrom', chat_id: array, title: array}|array{_: 'messageActionPinMessage'}|array{_: 'messageActionHistoryClear'}|array{_: 'messageActionGameScore', game_id: array, score: array}|array{_: 'messageActionPaymentSentMe', charge: array, recurring_init: array, recurring_used: array, currency: array, total_amount: array, payload: array, info?: array, shipping_option_id: array}|array{_: 'messageActionPaymentSent', recurring_init: array, recurring_used: array, currency: array, total_amount: array, invoice_slug: array}|array{_: 'messageActionPhoneCall', video: array, call_id: array, reason?: array, duration: array}|array{_: 'messageActionScreenshotTaken'}|array{_: 'messageActionCustomAction', message: array}|array{_: 'messageActionBotAllowed', attach_menu: array, domain: array, app?: array}|array{_: 'messageActionSecureValuesSentMe', credentials: array, values: list}|array{_: 'messageActionSecureValuesSent', types: list}|array{_: 'messageActionContactSignUp'}|array{_: 'messageActionGeoProximityReached', from_id: array, to_id: array, distance: array}|array{_: 'messageActionGroupCall', call: array, duration: array}|array{_: 'messageActionInviteToGroupCall', call: array, users: list}|array{_: 'messageActionSetMessagesTTL', period: array, auto_setting_from: array}|array{_: 'messageActionGroupCallScheduled', call: array, schedule_date: array}|array{_: 'messageActionSetChatTheme', emoticon: array}|array{_: 'messageActionChatJoinedByRequest'}|array{_: 'messageActionWebViewDataSentMe', text: array, data: array}|array{_: 'messageActionWebViewDataSent', text: array}|array{_: 'messageActionGiftPremium', currency: array, amount: array, months: array, crypto_currency: array, crypto_amount: array}|array{_: 'messageActionTopicCreate', title: array, icon_color: array, icon_emoji_id: array}|array{_: 'messageActionTopicEdit', title: array, icon_emoji_id: array, closed?: array, hidden?: array}|array{_: 'messageActionSuggestProfilePhoto', photo: array}|array{_: 'messageActionRequestedPeer', peer: array, button_id: array}|array{_: 'messageActionSetChatWallPaper', wallpaper: array}|array{_: 'messageActionSetSameChatWallPaper', wallpaper: array}, out: bool, mentioned: bool, media_unread: bool, silent: bool, post: bool, legacy: bool, id: int, from_id?: array|int|string, reply_to?: array{_: 'messageReplyHeader', reply_to_scheduled: array, forum_topic: array, reply_to_msg_id: array, reply_to_peer_id?: array, reply_to_top_id: array}, date: int, ttl_period: int}>, chats: list, users: list}|array{_: 'messages.messagesSlice', inexact: bool, count: int, next_rate: int, offset_id_offset: int, messages: list, video_sizes: list, dc_id: array}, ttl_seconds: int}|array{_: 'messageMediaGeo', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}}|array{_: 'messageMediaContact', phone_number: string, first_name: string, last_name: string, vcard: string, user_id: int}|array{_: 'messageMediaUnsupported'}|array{_: 'messageMediaDocument', nopremium: bool, spoiler: bool, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, ttl_seconds: int}|array{_: 'messageMediaWebPage', webpage: array{_: 'webPageEmpty', id: array}|array{_: 'webPagePending', id: array, date: array}|array{_: 'webPage', id: array, url: array, display_url: array, hash: array, type: array, site_name: array, title: array, description: array, photo?: array, embed_url: array, embed_type: array, embed_width: array, embed_height: array, duration: array, author: array, document?: array, cached_page?: array, attributes: list}|array{_: 'webPageNotModified', cached_page_views: array}}|array{_: 'messageMediaVenue', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, title: string, address: string, provider: string, venue_id: string, venue_type: string}|array{_: 'messageMediaGame', game: array{_: 'game', photo: array, id: array, access_hash: array, short_name: array, title: array, description: array, document?: array}}|array{_: 'messageMediaInvoice', shipping_address_requested: bool, test: bool, title: string, description: string, photo?: array{_: 'webDocument', url: array, access_hash: array, size: array, mime_type: array, attributes: list}|array{_: 'webDocumentNoProxy', url: array, size: array, mime_type: array, attributes: list}, receipt_msg_id: int, currency: string, total_amount: int, start_param: string, extended_media?: array{_: 'messageExtendedMediaPreview', w: array, h: array, thumb?: array, video_duration: array}}|array{_: 'messageMediaGeoLive', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, heading: int, period: int, proximity_notification_radius: int}|array{_: 'messageMediaPoll', poll: array{_: 'poll', id: array, closed: array, public_voters: array, multiple_choice: array, quiz: array, question: array, answers: list, close_period: array, close_date: array}, results: array{_: 'pollResults', min: array, results: list, total_voters: array, recent_voters: list, solution: array, solution_entities: list}}|array{_: 'messageMediaDice', value: int, emoticon: string}, reply_markup?: array, entities: list, views: int, forwards: int, replies?: array{_: 'messageReplies', comments: array, replies: array, replies_pts: array, recent_repliers: list, channel_id: array, max_id: array, read_max_id: array}, edit_date: int, post_author: string, grouped_id: int, reactions?: array{_: 'messageReactions', min: array, can_see_list: array, results: list, recent_reactions: list}, restriction_reason: list, ttl_period: int}|array{_: 'messageService', peer_id: array|int|string, action: array{_: 'messageActionEmpty'}|array{_: 'messageActionChatCreate', title: array, users: list}|array{_: 'messageActionChatEditTitle', title: array}|array{_: 'messageActionChatEditPhoto', photo: array}|array{_: 'messageActionChatDeletePhoto'}|array{_: 'messageActionChatAddUser', users: list}|array{_: 'messageActionChatDeleteUser', user_id: array}|array{_: 'messageActionChatJoinedByLink', inviter_id: array}|array{_: 'messageActionChannelCreate', title: array}|array{_: 'messageActionChatMigrateTo', channel_id: array}|array{_: 'messageActionChannelMigrateFrom', chat_id: array, title: array}|array{_: 'messageActionPinMessage'}|array{_: 'messageActionHistoryClear'}|array{_: 'messageActionGameScore', game_id: array, score: array}|array{_: 'messageActionPaymentSentMe', charge: array, recurring_init: array, recurring_used: array, currency: array, total_amount: array, payload: array, info?: array, shipping_option_id: array}|array{_: 'messageActionPaymentSent', recurring_init: array, recurring_used: array, currency: array, total_amount: array, invoice_slug: array}|array{_: 'messageActionPhoneCall', video: array, call_id: array, reason?: array, duration: array}|array{_: 'messageActionScreenshotTaken'}|array{_: 'messageActionCustomAction', message: array}|array{_: 'messageActionBotAllowed', attach_menu: array, domain: array, app?: array}|array{_: 'messageActionSecureValuesSentMe', credentials: array, values: list}|array{_: 'messageActionSecureValuesSent', types: list}|array{_: 'messageActionContactSignUp'}|array{_: 'messageActionGeoProximityReached', from_id: array, to_id: array, distance: array}|array{_: 'messageActionGroupCall', call: array, duration: array}|array{_: 'messageActionInviteToGroupCall', call: array, users: list}|array{_: 'messageActionSetMessagesTTL', period: array, auto_setting_from: array}|array{_: 'messageActionGroupCallScheduled', call: array, schedule_date: array}|array{_: 'messageActionSetChatTheme', emoticon: array}|array{_: 'messageActionChatJoinedByRequest'}|array{_: 'messageActionWebViewDataSentMe', text: array, data: array}|array{_: 'messageActionWebViewDataSent', text: array}|array{_: 'messageActionGiftPremium', currency: array, amount: array, months: array, crypto_currency: array, crypto_amount: array}|array{_: 'messageActionTopicCreate', title: array, icon_color: array, icon_emoji_id: array}|array{_: 'messageActionTopicEdit', title: array, icon_emoji_id: array, closed?: array, hidden?: array}|array{_: 'messageActionSuggestProfilePhoto', photo: array}|array{_: 'messageActionRequestedPeer', peer: array, button_id: array}|array{_: 'messageActionSetChatWallPaper', wallpaper: array}|array{_: 'messageActionSetSameChatWallPaper', wallpaper: array}, out: bool, mentioned: bool, media_unread: bool, silent: bool, post: bool, legacy: bool, id: int, from_id?: array|int|string, reply_to?: array{_: 'messageReplyHeader', reply_to_scheduled: array, forum_topic: array, reply_to_msg_id: array, reply_to_peer_id?: array, reply_to_top_id: array}, date: int, ttl_period: int}>, chats: list, users: list}|array{_: 'messages.channelMessages', inexact: bool, pts: int, count: int, offset_id_offset: int, messages: list, video_sizes: list, dc_id: array}, ttl_seconds: int}|array{_: 'messageMediaGeo', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}}|array{_: 'messageMediaContact', phone_number: string, first_name: string, last_name: string, vcard: string, user_id: int}|array{_: 'messageMediaUnsupported'}|array{_: 'messageMediaDocument', nopremium: bool, spoiler: bool, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, ttl_seconds: int}|array{_: 'messageMediaWebPage', webpage: array{_: 'webPageEmpty', id: array}|array{_: 'webPagePending', id: array, date: array}|array{_: 'webPage', id: array, url: array, display_url: array, hash: array, type: array, site_name: array, title: array, description: array, photo?: array, embed_url: array, embed_type: array, embed_width: array, embed_height: array, duration: array, author: array, document?: array, cached_page?: array, attributes: list}|array{_: 'webPageNotModified', cached_page_views: array}}|array{_: 'messageMediaVenue', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, title: string, address: string, provider: string, venue_id: string, venue_type: string}|array{_: 'messageMediaGame', game: array{_: 'game', photo: array, id: array, access_hash: array, short_name: array, title: array, description: array, document?: array}}|array{_: 'messageMediaInvoice', shipping_address_requested: bool, test: bool, title: string, description: string, photo?: array{_: 'webDocument', url: array, access_hash: array, size: array, mime_type: array, attributes: list}|array{_: 'webDocumentNoProxy', url: array, size: array, mime_type: array, attributes: list}, receipt_msg_id: int, currency: string, total_amount: int, start_param: string, extended_media?: array{_: 'messageExtendedMediaPreview', w: array, h: array, thumb?: array, video_duration: array}}|array{_: 'messageMediaGeoLive', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, heading: int, period: int, proximity_notification_radius: int}|array{_: 'messageMediaPoll', poll: array{_: 'poll', id: array, closed: array, public_voters: array, multiple_choice: array, quiz: array, question: array, answers: list, close_period: array, close_date: array}, results: array{_: 'pollResults', min: array, results: list, total_voters: array, recent_voters: list, solution: array, solution_entities: list}}|array{_: 'messageMediaDice', value: int, emoticon: string}, reply_markup?: array, entities: list, views: int, forwards: int, replies?: array{_: 'messageReplies', comments: array, replies: array, replies_pts: array, recent_repliers: list, channel_id: array, max_id: array, read_max_id: array}, edit_date: int, post_author: string, grouped_id: int, reactions?: array{_: 'messageReactions', min: array, can_see_list: array, results: list, recent_reactions: list}, restriction_reason: list, ttl_period: int}|array{_: 'messageService', peer_id: array|int|string, action: array{_: 'messageActionEmpty'}|array{_: 'messageActionChatCreate', title: array, users: list}|array{_: 'messageActionChatEditTitle', title: array}|array{_: 'messageActionChatEditPhoto', photo: array}|array{_: 'messageActionChatDeletePhoto'}|array{_: 'messageActionChatAddUser', users: list}|array{_: 'messageActionChatDeleteUser', user_id: array}|array{_: 'messageActionChatJoinedByLink', inviter_id: array}|array{_: 'messageActionChannelCreate', title: array}|array{_: 'messageActionChatMigrateTo', channel_id: array}|array{_: 'messageActionChannelMigrateFrom', chat_id: array, title: array}|array{_: 'messageActionPinMessage'}|array{_: 'messageActionHistoryClear'}|array{_: 'messageActionGameScore', game_id: array, score: array}|array{_: 'messageActionPaymentSentMe', charge: array, recurring_init: array, recurring_used: array, currency: array, total_amount: array, payload: array, info?: array, shipping_option_id: array}|array{_: 'messageActionPaymentSent', recurring_init: array, recurring_used: array, currency: array, total_amount: array, invoice_slug: array}|array{_: 'messageActionPhoneCall', video: array, call_id: array, reason?: array, duration: array}|array{_: 'messageActionScreenshotTaken'}|array{_: 'messageActionCustomAction', message: array}|array{_: 'messageActionBotAllowed', attach_menu: array, domain: array, app?: array}|array{_: 'messageActionSecureValuesSentMe', credentials: array, values: list}|array{_: 'messageActionSecureValuesSent', types: list}|array{_: 'messageActionContactSignUp'}|array{_: 'messageActionGeoProximityReached', from_id: array, to_id: array, distance: array}|array{_: 'messageActionGroupCall', call: array, duration: array}|array{_: 'messageActionInviteToGroupCall', call: array, users: list}|array{_: 'messageActionSetMessagesTTL', period: array, auto_setting_from: array}|array{_: 'messageActionGroupCallScheduled', call: array, schedule_date: array}|array{_: 'messageActionSetChatTheme', emoticon: array}|array{_: 'messageActionChatJoinedByRequest'}|array{_: 'messageActionWebViewDataSentMe', text: array, data: array}|array{_: 'messageActionWebViewDataSent', text: array}|array{_: 'messageActionGiftPremium', currency: array, amount: array, months: array, crypto_currency: array, crypto_amount: array}|array{_: 'messageActionTopicCreate', title: array, icon_color: array, icon_emoji_id: array}|array{_: 'messageActionTopicEdit', title: array, icon_emoji_id: array, closed?: array, hidden?: array}|array{_: 'messageActionSuggestProfilePhoto', photo: array}|array{_: 'messageActionRequestedPeer', peer: array, button_id: array}|array{_: 'messageActionSetChatWallPaper', wallpaper: array}|array{_: 'messageActionSetSameChatWallPaper', wallpaper: array}, out: bool, mentioned: bool, media_unread: bool, silent: bool, post: bool, legacy: bool, id: int, from_id?: array|int|string, reply_to?: array{_: 'messageReplyHeader', reply_to_scheduled: array, forum_topic: array, reply_to_msg_id: array, reply_to_peer_id?: array, reply_to_top_id: array}, date: int, ttl_period: int}>, topics: list, date: array}}>, chats: list, users: list}|array{_: 'messages.messagesNotModified', count: int} @see https://docs.madelineproto.xyz/API_docs/types/messages.Messages.html + * @return array{_: 'messages.messages', messages: list, chats: list, users: list}|array{_: 'messages.messagesSlice', inexact: array, count: array, next_rate: array, offset_id_offset: array, messages: list, chats: list, users: list}|array{_: 'messages.channelMessages', inexact: array, pts: array, count: array, offset_id_offset: array, messages: list, topics: list, chats: list, users: list}|array{_: 'messages.messagesNotModified', count: array} @see https://docs.madelineproto.xyz/API_docs/types/messages.Messages.html */ public function search(array|int|string $peer, array $filter, string $q = '', array|int|string $from_id = [], int $top_msg_id = 0, int $min_date = 0, int $max_date = 0, int $offset_id = 0, int $add_offset = 0, int $limit = 0, int $max_id = 0, int $min_id = 0, array $hash = []): array; @@ -88,12 +88,11 @@ public function receivedMessages(int $max_id = 0): array; * @param array|int|string $peer Target user or group @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html * @param array{_: 'sendMessageTypingAction'}|array{_: 'sendMessageCancelAction'}|array{_: 'sendMessageRecordVideoAction'}|array{_: 'sendMessageUploadVideoAction', progress?: int}|array{_: 'sendMessageRecordAudioAction'}|array{_: 'sendMessageUploadAudioAction', progress?: int}|array{_: 'sendMessageUploadPhotoAction', progress?: int}|array{_: 'sendMessageUploadDocumentAction', progress?: int}|array{_: 'sendMessageGeoLocationAction'}|array{_: 'sendMessageChooseContactAction'}|array{_: 'sendMessageGamePlayAction'}|array{_: 'sendMessageRecordRoundAction'}|array{_: 'sendMessageUploadRoundAction', progress?: int}|array{_: 'speakingInGroupCallAction'}|array{_: 'sendMessageHistoryImportAction', progress?: int}|array{_: 'sendMessageChooseStickerAction'}|array{_: 'sendMessageEmojiInteraction', interaction: mixed, emoticon?: string, msg_id?: int}|array{_: 'sendMessageEmojiInteractionSeen', emoticon?: string}|array{_: 'sendMessageUploadVideoAction'}|array{_: 'sendMessageUploadAudioAction'}|array{_: 'sendMessageUploadPhotoAction'}|array{_: 'sendMessageUploadDocumentAction'}|array{_: 'sendMessageUploadRoundAction'} $action Type of action @see https://docs.madelineproto.xyz/API_docs/types/SendMessageAction.html * @param int $top_msg_id [Thread ID](https://core.telegram.org/api/threads) - * @return bool */ public function setTyping(array|int|string $peer, array $action, int $top_msg_id = 0): bool; /** - * Sends a message to a chat + * Sends a message to a chat. * * @param array|int|string $peer The destination where the message will be sent @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html * @param bool $no_webpage Set this flag to disable generation of the webpage preview @@ -101,9 +100,7 @@ public function setTyping(array|int|string $peer, array $action, int $top_msg_id * @param bool $background Send this message as background message * @param bool $clear_draft Clear the draft field * @param bool $noforwards Only for bots, disallows forwarding and saving of the messages, even if the destination chat doesn't have [content protection](https://telegram.org/blog/protected-content-delete-by-date-and-more) enabled - * @param bool $update_stickersets_order * @param int $reply_to_msg_id The message ID to which this message will reply to - * @param int $top_msg_id * @param string $message The message * @param array|array $reply_markup Reply markup for sending bot buttons @see https://docs.madelineproto.xyz/API_docs/types/ReplyMarkup.html * @param list|array $entities Array of Message [entities](https://core.telegram.org/api/entities) for sending styled text @see https://docs.madelineproto.xyz/API_docs/types/MessageEntity.html @@ -115,7 +112,7 @@ public function setTyping(array|int|string $peer, array $action, int $top_msg_id public function sendMessage(array|int|string $peer, bool $no_webpage = false, bool $silent = false, bool $background = false, bool $clear_draft = false, bool $noforwards = false, bool $update_stickersets_order = false, int $reply_to_msg_id = 0, int $top_msg_id = 0, string $message = '', array $reply_markup = [], array $entities = [], string $parse_mode = '', int $schedule_date = 0, array|int|string $send_as = []): array; /** - * Send a media + * Send a media. * * @param array|int|string $peer Destination @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html * @param array $media Attached media @see https://docs.madelineproto.xyz/API_docs/types/InputMedia.html @@ -123,9 +120,7 @@ public function sendMessage(array|int|string $peer, bool $no_webpage = false, bo * @param bool $background Send message in background * @param bool $clear_draft Clear the draft * @param bool $noforwards Only for bots, disallows forwarding and saving of the messages, even if the destination chat doesn't have [content protection](https://telegram.org/blog/protected-content-delete-by-date-and-more) enabled - * @param bool $update_stickersets_order * @param int $reply_to_msg_id Message ID to which this message should reply to - * @param int $top_msg_id * @param string $message Caption * @param array|array $reply_markup Reply markup for bot keyboards @see https://docs.madelineproto.xyz/API_docs/types/ReplyMarkup.html * @param list|array $entities Array of Message [entities](https://core.telegram.org/api/entities) for styled text @see https://docs.madelineproto.xyz/API_docs/types/MessageEntity.html @@ -148,7 +143,6 @@ public function sendMedia(array|int|string $peer, array $media, bool $silent = f * @param bool $drop_media_captions Whether to strip captions from media * @param bool $noforwards Only for bots, disallows further re-forwarding and saving of the messages, even if the destination chat doesn't have [content protection](https://telegram.org/blog/protected-content-delete-by-date-and-more) enabled * @param list|array $id IDs of messages - * @param int $top_msg_id * @param int $schedule_date Scheduled message date for scheduled messages * @param array|int|string $send_as Forward the messages as the specified peer @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html * @return array @see https://docs.madelineproto.xyz/API_docs/types/Updates.html @@ -156,15 +150,14 @@ public function sendMedia(array|int|string $peer, array $media, bool $silent = f public function forwardMessages(array|int|string $from_peer, array|int|string $to_peer, bool $silent = false, bool $background = false, bool $with_my_score = false, bool $drop_author = false, bool $drop_media_captions = false, bool $noforwards = false, array $id = [], int $top_msg_id = 0, int $schedule_date = 0, array|int|string $send_as = []): array; /** - * Report a new incoming chat for spam, if the [peer settings](https://docs.madelineproto.xyz/API_docs/constructors/peerSettings.html) of the chat allow us to do that + * Report a new incoming chat for spam, if the [peer settings](https://docs.madelineproto.xyz/API_docs/constructors/peerSettings.html) of the chat allow us to do that. * * @param array|int|string $peer Peer to report @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html - * @return bool */ public function reportSpam(array|int|string $peer): bool; /** - * Get peer settings + * Get peer settings. * * @param array|int|string $peer The peer @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html * @return array{_: 'messages.peerSettings', settings: array{_: 'peerSettings', report_spam: bool, add_contact: bool, block_contact: bool, share_contact: bool, need_contacts_exception: bool, report_geo: bool, autoarchived: bool, invite_members: bool, request_chat_broadcast: bool, geo_distance: int, request_chat_title: string, request_chat_date: int}, chats: list, users: list} @see https://docs.madelineproto.xyz/API_docs/types/messages.PeerSettings.html @@ -172,13 +165,12 @@ public function reportSpam(array|int|string $peer): bool; public function getPeerSettings(array|int|string $peer): array; /** - * Report a message in a chat for violation of telegram's Terms of Service + * Report a message in a chat for violation of telegram's Terms of Service. * * @param array|int|string $peer Peer @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html * @param array{_: 'inputReportReasonSpam'}|array{_: 'inputReportReasonViolence'}|array{_: 'inputReportReasonPornography'}|array{_: 'inputReportReasonChildAbuse'}|array{_: 'inputReportReasonOther'}|array{_: 'inputReportReasonCopyright'}|array{_: 'inputReportReasonGeoIrrelevant'}|array{_: 'inputReportReasonFake'}|array{_: 'inputReportReasonIllegalDrugs'}|array{_: 'inputReportReasonPersonalDetails'} $reason Why are these messages being reported @see https://docs.madelineproto.xyz/API_docs/types/ReportReason.html * @param list|array $id IDs of messages to report * @param string $message Comment for report moderation - * @return bool */ public function report(array|int|string $peer, array $reason, array $id = [], string $message = ''): bool; @@ -200,7 +192,7 @@ public function getChats(array $id = []): array; public function editChatTitle(array|int|string $chat_id, string $title = ''): array; /** - * Changes chat photo and sends a service message on it + * Changes chat photo and sends a service message on it. * * @param array|int|string $chat_id Chat ID @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html * @param array{_: 'inputChatPhotoEmpty'}|array{_: 'inputChatUploadedPhoto', file?: mixed, video?: mixed, video_start_ts?: float, video_emoji_markup?: array{_: 'videoSize', type?: string, w?: int, h?: int, size?: int, video_start_ts?: float}|array{_: 'videoSizeEmojiMarkup', emoji_id?: int, background_colors?: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id?: int, access_hash?: int}|array{_: 'inputStickerSetShortName', short_name?: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon?: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id?: int, background_colors?: list}}|array{_: 'inputChatPhoto', id: array} $photo Photo to be set @see https://docs.madelineproto.xyz/API_docs/types/InputChatPhoto.html @@ -233,7 +225,6 @@ public function deleteChatUser(array|int|string $chat_id, array|int|string $user * * @param list|array $users Array of List of user IDs to be invited @see https://docs.madelineproto.xyz/API_docs/types/InputUser.html * @param string $title Chat name - * @param int $ttl_period * @return array @see https://docs.madelineproto.xyz/API_docs/types/Updates.html */ public function createChat(array $users = [], string $title = '', int $ttl_period = 0): array; @@ -243,7 +234,6 @@ public function createChat(array $users = [], string $title = '', int $ttl_perio * * @param array $peer Secret chat ID @see https://docs.madelineproto.xyz/API_docs/types/InputEncryptedChat.html * @param bool $typing Typing.
**Possible values**:
[(boolTrue)](https://docs.madelineproto.xyz/API_docs/constructors/boolTrue.html), if the user started typing and more than **5 seconds** have passed since the last request
[(boolFalse)](https://docs.madelineproto.xyz/API_docs/constructors/boolFalse.html), if the user stopped typing - * @return bool */ public function setEncryptedTyping(array $peer, bool $typing): bool; @@ -252,7 +242,6 @@ public function setEncryptedTyping(array $peer, bool $typing): bool; * * @param array $peer Secret chat ID @see https://docs.madelineproto.xyz/API_docs/types/InputEncryptedChat.html * @param int $max_date Maximum date value for received messages in history - * @return bool */ public function readEncryptedHistory(array $peer, int $max_date = 0): bool; @@ -260,17 +249,17 @@ public function readEncryptedHistory(array $peer, int $max_date = 0): bool; * Sends a text message to a secret chat. * * @param array $peer Secret chat ID @see https://docs.madelineproto.xyz/API_docs/types/InputEncryptedChat.html - * @param array{_: 'decryptedMessage', media: array{_: 'decryptedMessageMediaEmpty'}|array{_: 'decryptedMessageMediaPhoto', thumb?: string, thumb_w?: int, thumb_h?: int, w?: int, h?: int, size?: int}|array{_: 'decryptedMessageMediaVideo', thumb?: string, thumb_w?: int, thumb_h?: int, duration?: int, w?: int, h?: int, size?: int}|array{_: 'decryptedMessageMediaGeoPoint', lat: float, long: float}|array{_: 'decryptedMessageMediaContact', phone_number?: string, first_name?: string, last_name?: string, user_id?: int}|array{_: 'decryptedMessageMediaDocument', thumb?: string, thumb_w?: int, thumb_h?: int, file_name?: string, mime_type?: string, size?: int}|array{_: 'decryptedMessageMediaAudio', duration?: int, size?: int}|array{_: 'decryptedMessageMediaVideo', thumb?: string, thumb_w?: int, thumb_h?: int, duration?: int, mime_type?: string, w?: int, h?: int, size?: int}|array{_: 'decryptedMessageMediaAudio', duration?: int, mime_type?: string, size?: int}|array{_: 'decryptedMessageMediaExternalDocument', thumb: array{_: 'photoSizeEmpty', type?: string}|array{_: 'photoSize', type?: string, w?: int, h?: int, size?: int}|array{_: 'photoCachedSize', type?: string, w?: int, h?: int, bytes?: string}|array{_: 'photoStrippedSize', type?: string, bytes?: string}|array{_: 'photoSizeProgressive', type?: string, w?: int, h?: int, sizes?: list}|array{_: 'photoPathSize', type?: string, bytes?: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id?: int, local_id?: int, secret?: int}|array{_: 'fileLocation', dc_id?: int, volume_id?: int, local_id?: int, secret?: int}, type?: string, w?: int, h?: int, size?: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id?: int, local_id?: int, secret?: int}|array{_: 'fileLocation', dc_id?: int, volume_id?: int, local_id?: int, secret?: int}, type?: string, w?: int, h?: int, bytes?: string}, id?: int, access_hash?: int, date?: int, mime_type?: string, size?: int, dc_id?: int, attributes?: list}|array{_: 'decryptedMessageMediaPhoto', thumb?: string, thumb_w?: int, thumb_h?: int, w?: int, h?: int, size?: int, caption?: string}|array{_: 'decryptedMessageMediaVideo', thumb?: string, thumb_w?: int, thumb_h?: int, duration?: int, mime_type?: string, w?: int, h?: int, size?: int, caption?: string}|array{_: 'decryptedMessageMediaDocument', thumb?: string, thumb_w?: int, thumb_h?: int, mime_type?: string, size?: int, attributes?: list, caption?: string}|array{_: 'decryptedMessageMediaVenue', lat: float, long: float, title?: string, address?: string, provider?: string, venue_id?: string}|array{_: 'decryptedMessageMediaWebPage', url?: string}|array{_: 'decryptedMessageMediaDocument', thumb?: string, thumb_w?: int, thumb_h?: int, mime_type?: string, size?: int, attributes?: list, caption?: string}, message?: string}|array{_: 'decryptedMessageService', action: array{_: 'decryptedMessageActionSetMessageTTL', ttl_seconds?: int}|array{_: 'decryptedMessageActionReadMessages', random_ids?: list}|array{_: 'decryptedMessageActionDeleteMessages', random_ids?: list}|array{_: 'decryptedMessageActionScreenshotMessages', random_ids?: list}|array{_: 'decryptedMessageActionFlushHistory'}|array{_: 'decryptedMessageActionResend', start_seq_no?: int, end_seq_no?: int}|array{_: 'decryptedMessageActionNotifyLayer', layer?: int}|array{_: 'decryptedMessageActionTyping', action: array{_: 'sendMessageTypingAction'}|array{_: 'sendMessageCancelAction'}|array{_: 'sendMessageRecordVideoAction'}|array{_: 'sendMessageUploadVideoAction', progress?: int}|array{_: 'sendMessageRecordAudioAction'}|array{_: 'sendMessageUploadAudioAction', progress?: int}|array{_: 'sendMessageUploadPhotoAction', progress?: int}|array{_: 'sendMessageUploadDocumentAction', progress?: int}|array{_: 'sendMessageGeoLocationAction'}|array{_: 'sendMessageChooseContactAction'}|array{_: 'sendMessageGamePlayAction'}|array{_: 'sendMessageRecordRoundAction'}|array{_: 'sendMessageUploadRoundAction', progress?: int}|array{_: 'speakingInGroupCallAction'}|array{_: 'sendMessageHistoryImportAction', progress?: int}|array{_: 'sendMessageChooseStickerAction'}|array{_: 'sendMessageEmojiInteraction', interaction: mixed, emoticon?: string, msg_id?: int}|array{_: 'sendMessageEmojiInteractionSeen', emoticon?: string}|array{_: 'sendMessageUploadVideoAction'}|array{_: 'sendMessageUploadAudioAction'}|array{_: 'sendMessageUploadPhotoAction'}|array{_: 'sendMessageUploadDocumentAction'}|array{_: 'sendMessageUploadRoundAction'}}|array{_: 'decryptedMessageActionRequestKey', exchange_id?: int, g_a?: string}|array{_: 'decryptedMessageActionAcceptKey', exchange_id?: int, g_b?: string, key_fingerprint?: int}|array{_: 'decryptedMessageActionAbortKey', exchange_id?: int}|array{_: 'decryptedMessageActionCommitKey', exchange_id?: int, key_fingerprint?: int}|array{_: 'decryptedMessageActionNoop'}}|array{_: 'decryptedMessage', media: array{_: 'decryptedMessageMediaEmpty'}|array{_: 'decryptedMessageMediaPhoto', thumb?: string, thumb_w?: int, thumb_h?: int, w?: int, h?: int, size?: int}|array{_: 'decryptedMessageMediaVideo', thumb?: string, thumb_w?: int, thumb_h?: int, duration?: int, w?: int, h?: int, size?: int}|array{_: 'decryptedMessageMediaGeoPoint', lat: float, long: float}|array{_: 'decryptedMessageMediaContact', phone_number?: string, first_name?: string, last_name?: string, user_id?: int}|array{_: 'decryptedMessageMediaDocument', thumb?: string, thumb_w?: int, thumb_h?: int, file_name?: string, mime_type?: string, size?: int}|array{_: 'decryptedMessageMediaAudio', duration?: int, size?: int}|array{_: 'decryptedMessageMediaVideo', thumb?: string, thumb_w?: int, thumb_h?: int, duration?: int, mime_type?: string, w?: int, h?: int, size?: int}|array{_: 'decryptedMessageMediaAudio', duration?: int, mime_type?: string, size?: int}|array{_: 'decryptedMessageMediaExternalDocument', thumb: array{_: 'photoSizeEmpty', type?: string}|array{_: 'photoSize', type?: string, w?: int, h?: int, size?: int}|array{_: 'photoCachedSize', type?: string, w?: int, h?: int, bytes?: string}|array{_: 'photoStrippedSize', type?: string, bytes?: string}|array{_: 'photoSizeProgressive', type?: string, w?: int, h?: int, sizes?: list}|array{_: 'photoPathSize', type?: string, bytes?: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id?: int, local_id?: int, secret?: int}|array{_: 'fileLocation', dc_id?: int, volume_id?: int, local_id?: int, secret?: int}, type?: string, w?: int, h?: int, size?: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id?: int, local_id?: int, secret?: int}|array{_: 'fileLocation', dc_id?: int, volume_id?: int, local_id?: int, secret?: int}, type?: string, w?: int, h?: int, bytes?: string}, id?: int, access_hash?: int, date?: int, mime_type?: string, size?: int, dc_id?: int, attributes?: list}|array{_: 'decryptedMessageMediaPhoto', thumb?: string, thumb_w?: int, thumb_h?: int, w?: int, h?: int, size?: int, caption?: string}|array{_: 'decryptedMessageMediaVideo', thumb?: string, thumb_w?: int, thumb_h?: int, duration?: int, mime_type?: string, w?: int, h?: int, size?: int, caption?: string}|array{_: 'decryptedMessageMediaDocument', thumb?: string, thumb_w?: int, thumb_h?: int, mime_type?: string, size?: int, attributes?: list, caption?: string}|array{_: 'decryptedMessageMediaVenue', lat: float, long: float, title?: string, address?: string, provider?: string, venue_id?: string}|array{_: 'decryptedMessageMediaWebPage', url?: string}|array{_: 'decryptedMessageMediaDocument', thumb?: string, thumb_w?: int, thumb_h?: int, mime_type?: string, size?: int, attributes?: list, caption?: string}, ttl?: int, message?: string}|array{_: 'decryptedMessageService', action: array{_: 'decryptedMessageActionSetMessageTTL', ttl_seconds?: int}|array{_: 'decryptedMessageActionReadMessages', random_ids?: list}|array{_: 'decryptedMessageActionDeleteMessages', random_ids?: list}|array{_: 'decryptedMessageActionScreenshotMessages', random_ids?: list}|array{_: 'decryptedMessageActionFlushHistory'}|array{_: 'decryptedMessageActionResend', start_seq_no?: int, end_seq_no?: int}|array{_: 'decryptedMessageActionNotifyLayer', layer?: int}|array{_: 'decryptedMessageActionTyping', action: array{_: 'sendMessageTypingAction'}|array{_: 'sendMessageCancelAction'}|array{_: 'sendMessageRecordVideoAction'}|array{_: 'sendMessageUploadVideoAction', progress?: int}|array{_: 'sendMessageRecordAudioAction'}|array{_: 'sendMessageUploadAudioAction', progress?: int}|array{_: 'sendMessageUploadPhotoAction', progress?: int}|array{_: 'sendMessageUploadDocumentAction', progress?: int}|array{_: 'sendMessageGeoLocationAction'}|array{_: 'sendMessageChooseContactAction'}|array{_: 'sendMessageGamePlayAction'}|array{_: 'sendMessageRecordRoundAction'}|array{_: 'sendMessageUploadRoundAction', progress?: int}|array{_: 'speakingInGroupCallAction'}|array{_: 'sendMessageHistoryImportAction', progress?: int}|array{_: 'sendMessageChooseStickerAction'}|array{_: 'sendMessageEmojiInteraction', interaction: mixed, emoticon?: string, msg_id?: int}|array{_: 'sendMessageEmojiInteractionSeen', emoticon?: string}|array{_: 'sendMessageUploadVideoAction'}|array{_: 'sendMessageUploadAudioAction'}|array{_: 'sendMessageUploadPhotoAction'}|array{_: 'sendMessageUploadDocumentAction'}|array{_: 'sendMessageUploadRoundAction'}}|array{_: 'decryptedMessageActionRequestKey', exchange_id?: int, g_a?: string}|array{_: 'decryptedMessageActionAcceptKey', exchange_id?: int, g_b?: string, key_fingerprint?: int}|array{_: 'decryptedMessageActionAbortKey', exchange_id?: int}|array{_: 'decryptedMessageActionCommitKey', exchange_id?: int, key_fingerprint?: int}|array{_: 'decryptedMessageActionNoop'}}|array{_: 'decryptedMessage', ttl?: int, message?: string, media?: array{_: 'decryptedMessageMediaEmpty'}|array{_: 'decryptedMessageMediaPhoto', thumb?: string, thumb_w?: int, thumb_h?: int, w?: int, h?: int, size?: int}|array{_: 'decryptedMessageMediaVideo', thumb?: string, thumb_w?: int, thumb_h?: int, duration?: int, w?: int, h?: int, size?: int}|array{_: 'decryptedMessageMediaGeoPoint', lat: float, long: float}|array{_: 'decryptedMessageMediaContact', phone_number?: string, first_name?: string, last_name?: string, user_id?: int}|array{_: 'decryptedMessageMediaDocument', thumb?: string, thumb_w?: int, thumb_h?: int, file_name?: string, mime_type?: string, size?: int}|array{_: 'decryptedMessageMediaAudio', duration?: int, size?: int}|array{_: 'decryptedMessageMediaVideo', thumb?: string, thumb_w?: int, thumb_h?: int, duration?: int, mime_type?: string, w?: int, h?: int, size?: int}|array{_: 'decryptedMessageMediaAudio', duration?: int, mime_type?: string, size?: int}|array{_: 'decryptedMessageMediaExternalDocument', thumb: array{_: 'photoSizeEmpty', type?: string}|array{_: 'photoSize', type?: string, w?: int, h?: int, size?: int}|array{_: 'photoCachedSize', type?: string, w?: int, h?: int, bytes?: string}|array{_: 'photoStrippedSize', type?: string, bytes?: string}|array{_: 'photoSizeProgressive', type?: string, w?: int, h?: int, sizes?: list}|array{_: 'photoPathSize', type?: string, bytes?: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id?: int, local_id?: int, secret?: int}|array{_: 'fileLocation', dc_id?: int, volume_id?: int, local_id?: int, secret?: int}, type?: string, w?: int, h?: int, size?: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id?: int, local_id?: int, secret?: int}|array{_: 'fileLocation', dc_id?: int, volume_id?: int, local_id?: int, secret?: int}, type?: string, w?: int, h?: int, bytes?: string}, id?: int, access_hash?: int, date?: int, mime_type?: string, size?: int, dc_id?: int, attributes?: list}|array{_: 'decryptedMessageMediaPhoto', thumb?: string, thumb_w?: int, thumb_h?: int, w?: int, h?: int, size?: int, caption?: string}|array{_: 'decryptedMessageMediaVideo', thumb?: string, thumb_w?: int, thumb_h?: int, duration?: int, mime_type?: string, w?: int, h?: int, size?: int, caption?: string}|array{_: 'decryptedMessageMediaDocument', thumb?: string, thumb_w?: int, thumb_h?: int, mime_type?: string, size?: int, attributes?: list, caption?: string}|array{_: 'decryptedMessageMediaVenue', lat: float, long: float, title?: string, address?: string, provider?: string, venue_id?: string}|array{_: 'decryptedMessageMediaWebPage', url?: string}|array{_: 'decryptedMessageMediaDocument', thumb?: string, thumb_w?: int, thumb_h?: int, mime_type?: string, size?: int, attributes?: list, caption?: string}, entities?: list, via_bot_name?: string, reply_to_random_id?: int}|array{_: 'decryptedMessage', no_webpage?: bool, silent?: bool, ttl?: int, message?: string, media?: array{_: 'decryptedMessageMediaEmpty'}|array{_: 'decryptedMessageMediaPhoto', thumb?: string, thumb_w?: int, thumb_h?: int, w?: int, h?: int, size?: int}|array{_: 'decryptedMessageMediaVideo', thumb?: string, thumb_w?: int, thumb_h?: int, duration?: int, w?: int, h?: int, size?: int}|array{_: 'decryptedMessageMediaGeoPoint', lat: float, long: float}|array{_: 'decryptedMessageMediaContact', phone_number?: string, first_name?: string, last_name?: string, user_id?: int}|array{_: 'decryptedMessageMediaDocument', thumb?: string, thumb_w?: int, thumb_h?: int, file_name?: string, mime_type?: string, size?: int}|array{_: 'decryptedMessageMediaAudio', duration?: int, size?: int}|array{_: 'decryptedMessageMediaVideo', thumb?: string, thumb_w?: int, thumb_h?: int, duration?: int, mime_type?: string, w?: int, h?: int, size?: int}|array{_: 'decryptedMessageMediaAudio', duration?: int, mime_type?: string, size?: int}|array{_: 'decryptedMessageMediaExternalDocument', thumb: array{_: 'photoSizeEmpty', type?: string}|array{_: 'photoSize', type?: string, w?: int, h?: int, size?: int}|array{_: 'photoCachedSize', type?: string, w?: int, h?: int, bytes?: string}|array{_: 'photoStrippedSize', type?: string, bytes?: string}|array{_: 'photoSizeProgressive', type?: string, w?: int, h?: int, sizes?: list}|array{_: 'photoPathSize', type?: string, bytes?: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id?: int, local_id?: int, secret?: int}|array{_: 'fileLocation', dc_id?: int, volume_id?: int, local_id?: int, secret?: int}, type?: string, w?: int, h?: int, size?: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id?: int, local_id?: int, secret?: int}|array{_: 'fileLocation', dc_id?: int, volume_id?: int, local_id?: int, secret?: int}, type?: string, w?: int, h?: int, bytes?: string}, id?: int, access_hash?: int, date?: int, mime_type?: string, size?: int, dc_id?: int, attributes?: list}|array{_: 'decryptedMessageMediaPhoto', thumb?: string, thumb_w?: int, thumb_h?: int, w?: int, h?: int, size?: int, caption?: string}|array{_: 'decryptedMessageMediaVideo', thumb?: string, thumb_w?: int, thumb_h?: int, duration?: int, mime_type?: string, w?: int, h?: int, size?: int, caption?: string}|array{_: 'decryptedMessageMediaDocument', thumb?: string, thumb_w?: int, thumb_h?: int, mime_type?: string, size?: int, attributes?: list, caption?: string}|array{_: 'decryptedMessageMediaVenue', lat: float, long: float, title?: string, address?: string, provider?: string, venue_id?: string}|array{_: 'decryptedMessageMediaWebPage', url?: string}|array{_: 'decryptedMessageMediaDocument', thumb?: string, thumb_w?: int, thumb_h?: int, mime_type?: string, size?: int, attributes?: list, caption?: string}, entities?: list, via_bot_name?: string, reply_to_random_id?: int, grouped_id?: int} $message TL-serialization of [DecryptedMessage](https://docs.madelineproto.xyz/API_docs/types/DecryptedMessage.html) type, encrypted with a key that was created during chat initialization @see https://docs.madelineproto.xyz/API_docs/types/DecryptedMessage.html + * @param array{_: 'decryptedMessage', media: array{_: 'decryptedMessageMediaEmpty'}|array{_: 'decryptedMessageMediaPhoto', thumb?: array, thumb_w?: array, thumb_h?: array, w?: array, h?: array, size?: array}|array{_: 'decryptedMessageMediaVideo', thumb?: array, thumb_w?: array, thumb_h?: array, duration?: array, w?: array, h?: array, size?: array}|array{_: 'decryptedMessageMediaGeoPoint', lat: array, long: array}|array{_: 'decryptedMessageMediaContact', phone_number?: array, first_name?: array, last_name?: array, user_id?: array}|array{_: 'decryptedMessageMediaDocument', thumb?: array, thumb_w?: array, thumb_h?: array, file_name?: array, mime_type?: array, size?: array}|array{_: 'decryptedMessageMediaAudio', duration?: array, size?: array}|array{_: 'decryptedMessageMediaVideo', thumb?: array, thumb_w?: array, thumb_h?: array, duration?: array, mime_type?: array, w?: array, h?: array, size?: array}|array{_: 'decryptedMessageMediaAudio', duration?: array, mime_type?: array, size?: array}|array{_: 'decryptedMessageMediaExternalDocument', thumb: array, id?: array, access_hash?: array, date?: array, mime_type?: array, size?: array, dc_id?: array, attributes?: list}|array{_: 'decryptedMessageMediaPhoto', thumb?: array, thumb_w?: array, thumb_h?: array, w?: array, h?: array, size?: array, caption?: array}|array{_: 'decryptedMessageMediaVideo', thumb?: array, thumb_w?: array, thumb_h?: array, duration?: array, mime_type?: array, w?: array, h?: array, size?: array, caption?: array}|array{_: 'decryptedMessageMediaDocument', thumb?: array, thumb_w?: array, thumb_h?: array, mime_type?: array, size?: array, attributes?: list, caption?: array}|array{_: 'decryptedMessageMediaVenue', lat: array, long: array, title?: array, address?: array, provider?: array, venue_id?: array}|array{_: 'decryptedMessageMediaWebPage', url?: array}|array{_: 'decryptedMessageMediaDocument', thumb?: array, thumb_w?: array, thumb_h?: array, mime_type?: array, size?: array, attributes?: list, caption?: array}, message?: string}|array{_: 'decryptedMessageService', action: array{_: 'decryptedMessageActionSetMessageTTL', ttl_seconds?: array}|array{_: 'decryptedMessageActionReadMessages', random_ids?: list}|array{_: 'decryptedMessageActionDeleteMessages', random_ids?: list}|array{_: 'decryptedMessageActionScreenshotMessages', random_ids?: list}|array{_: 'decryptedMessageActionFlushHistory'}|array{_: 'decryptedMessageActionResend', start_seq_no?: array, end_seq_no?: array}|array{_: 'decryptedMessageActionNotifyLayer', layer?: array}|array{_: 'decryptedMessageActionTyping', action: array}|array{_: 'decryptedMessageActionRequestKey', exchange_id?: array, g_a?: array}|array{_: 'decryptedMessageActionAcceptKey', exchange_id?: array, g_b?: array, key_fingerprint?: array}|array{_: 'decryptedMessageActionAbortKey', exchange_id?: array}|array{_: 'decryptedMessageActionCommitKey', exchange_id?: array, key_fingerprint?: array}|array{_: 'decryptedMessageActionNoop'}}|array{_: 'decryptedMessage', media: array{_: 'decryptedMessageMediaEmpty'}|array{_: 'decryptedMessageMediaPhoto', thumb?: array, thumb_w?: array, thumb_h?: array, w?: array, h?: array, size?: array}|array{_: 'decryptedMessageMediaVideo', thumb?: array, thumb_w?: array, thumb_h?: array, duration?: array, w?: array, h?: array, size?: array}|array{_: 'decryptedMessageMediaGeoPoint', lat: array, long: array}|array{_: 'decryptedMessageMediaContact', phone_number?: array, first_name?: array, last_name?: array, user_id?: array}|array{_: 'decryptedMessageMediaDocument', thumb?: array, thumb_w?: array, thumb_h?: array, file_name?: array, mime_type?: array, size?: array}|array{_: 'decryptedMessageMediaAudio', duration?: array, size?: array}|array{_: 'decryptedMessageMediaVideo', thumb?: array, thumb_w?: array, thumb_h?: array, duration?: array, mime_type?: array, w?: array, h?: array, size?: array}|array{_: 'decryptedMessageMediaAudio', duration?: array, mime_type?: array, size?: array}|array{_: 'decryptedMessageMediaExternalDocument', thumb: array, id?: array, access_hash?: array, date?: array, mime_type?: array, size?: array, dc_id?: array, attributes?: list}|array{_: 'decryptedMessageMediaPhoto', thumb?: array, thumb_w?: array, thumb_h?: array, w?: array, h?: array, size?: array, caption?: array}|array{_: 'decryptedMessageMediaVideo', thumb?: array, thumb_w?: array, thumb_h?: array, duration?: array, mime_type?: array, w?: array, h?: array, size?: array, caption?: array}|array{_: 'decryptedMessageMediaDocument', thumb?: array, thumb_w?: array, thumb_h?: array, mime_type?: array, size?: array, attributes?: list, caption?: array}|array{_: 'decryptedMessageMediaVenue', lat: array, long: array, title?: array, address?: array, provider?: array, venue_id?: array}|array{_: 'decryptedMessageMediaWebPage', url?: array}|array{_: 'decryptedMessageMediaDocument', thumb?: array, thumb_w?: array, thumb_h?: array, mime_type?: array, size?: array, attributes?: list, caption?: array}, ttl?: int, message?: string}|array{_: 'decryptedMessageService', action: array{_: 'decryptedMessageActionSetMessageTTL', ttl_seconds?: array}|array{_: 'decryptedMessageActionReadMessages', random_ids?: list}|array{_: 'decryptedMessageActionDeleteMessages', random_ids?: list}|array{_: 'decryptedMessageActionScreenshotMessages', random_ids?: list}|array{_: 'decryptedMessageActionFlushHistory'}|array{_: 'decryptedMessageActionResend', start_seq_no?: array, end_seq_no?: array}|array{_: 'decryptedMessageActionNotifyLayer', layer?: array}|array{_: 'decryptedMessageActionTyping', action: array}|array{_: 'decryptedMessageActionRequestKey', exchange_id?: array, g_a?: array}|array{_: 'decryptedMessageActionAcceptKey', exchange_id?: array, g_b?: array, key_fingerprint?: array}|array{_: 'decryptedMessageActionAbortKey', exchange_id?: array}|array{_: 'decryptedMessageActionCommitKey', exchange_id?: array, key_fingerprint?: array}|array{_: 'decryptedMessageActionNoop'}}|array{_: 'decryptedMessage', ttl?: int, message?: string, media?: array{_: 'decryptedMessageMediaEmpty'}|array{_: 'decryptedMessageMediaPhoto', thumb?: array, thumb_w?: array, thumb_h?: array, w?: array, h?: array, size?: array}|array{_: 'decryptedMessageMediaVideo', thumb?: array, thumb_w?: array, thumb_h?: array, duration?: array, w?: array, h?: array, size?: array}|array{_: 'decryptedMessageMediaGeoPoint', lat: array, long: array}|array{_: 'decryptedMessageMediaContact', phone_number?: array, first_name?: array, last_name?: array, user_id?: array}|array{_: 'decryptedMessageMediaDocument', thumb?: array, thumb_w?: array, thumb_h?: array, file_name?: array, mime_type?: array, size?: array}|array{_: 'decryptedMessageMediaAudio', duration?: array, size?: array}|array{_: 'decryptedMessageMediaVideo', thumb?: array, thumb_w?: array, thumb_h?: array, duration?: array, mime_type?: array, w?: array, h?: array, size?: array}|array{_: 'decryptedMessageMediaAudio', duration?: array, mime_type?: array, size?: array}|array{_: 'decryptedMessageMediaExternalDocument', thumb: array, id?: array, access_hash?: array, date?: array, mime_type?: array, size?: array, dc_id?: array, attributes?: list}|array{_: 'decryptedMessageMediaPhoto', thumb?: array, thumb_w?: array, thumb_h?: array, w?: array, h?: array, size?: array, caption?: array}|array{_: 'decryptedMessageMediaVideo', thumb?: array, thumb_w?: array, thumb_h?: array, duration?: array, mime_type?: array, w?: array, h?: array, size?: array, caption?: array}|array{_: 'decryptedMessageMediaDocument', thumb?: array, thumb_w?: array, thumb_h?: array, mime_type?: array, size?: array, attributes?: list, caption?: array}|array{_: 'decryptedMessageMediaVenue', lat: array, long: array, title?: array, address?: array, provider?: array, venue_id?: array}|array{_: 'decryptedMessageMediaWebPage', url?: array}|array{_: 'decryptedMessageMediaDocument', thumb?: array, thumb_w?: array, thumb_h?: array, mime_type?: array, size?: array, attributes?: list, caption?: array}, entities?: list, via_bot_name?: string, reply_to_random_id?: int}|array{_: 'decryptedMessage', no_webpage?: bool, silent?: bool, ttl?: int, message?: string, media?: array{_: 'decryptedMessageMediaEmpty'}|array{_: 'decryptedMessageMediaPhoto', thumb?: array, thumb_w?: array, thumb_h?: array, w?: array, h?: array, size?: array}|array{_: 'decryptedMessageMediaVideo', thumb?: array, thumb_w?: array, thumb_h?: array, duration?: array, w?: array, h?: array, size?: array}|array{_: 'decryptedMessageMediaGeoPoint', lat: array, long: array}|array{_: 'decryptedMessageMediaContact', phone_number?: array, first_name?: array, last_name?: array, user_id?: array}|array{_: 'decryptedMessageMediaDocument', thumb?: array, thumb_w?: array, thumb_h?: array, file_name?: array, mime_type?: array, size?: array}|array{_: 'decryptedMessageMediaAudio', duration?: array, size?: array}|array{_: 'decryptedMessageMediaVideo', thumb?: array, thumb_w?: array, thumb_h?: array, duration?: array, mime_type?: array, w?: array, h?: array, size?: array}|array{_: 'decryptedMessageMediaAudio', duration?: array, mime_type?: array, size?: array}|array{_: 'decryptedMessageMediaExternalDocument', thumb: array, id?: array, access_hash?: array, date?: array, mime_type?: array, size?: array, dc_id?: array, attributes?: list}|array{_: 'decryptedMessageMediaPhoto', thumb?: array, thumb_w?: array, thumb_h?: array, w?: array, h?: array, size?: array, caption?: array}|array{_: 'decryptedMessageMediaVideo', thumb?: array, thumb_w?: array, thumb_h?: array, duration?: array, mime_type?: array, w?: array, h?: array, size?: array, caption?: array}|array{_: 'decryptedMessageMediaDocument', thumb?: array, thumb_w?: array, thumb_h?: array, mime_type?: array, size?: array, attributes?: list, caption?: array}|array{_: 'decryptedMessageMediaVenue', lat: array, long: array, title?: array, address?: array, provider?: array, venue_id?: array}|array{_: 'decryptedMessageMediaWebPage', url?: array}|array{_: 'decryptedMessageMediaDocument', thumb?: array, thumb_w?: array, thumb_h?: array, mime_type?: array, size?: array, attributes?: list, caption?: array}, entities?: list, via_bot_name?: string, reply_to_random_id?: int, grouped_id?: int} $message TL-serialization of [DecryptedMessage](https://docs.madelineproto.xyz/API_docs/types/DecryptedMessage.html) type, encrypted with a key that was created during chat initialization @see https://docs.madelineproto.xyz/API_docs/types/DecryptedMessage.html * @param bool $silent Send encrypted message without a notification * @return array{_: 'messages.sentEncryptedMessage', date: int}|array{_: 'messages.sentEncryptedFile', file: array{_: 'encryptedFileEmpty'}|array{_: 'encryptedFile', id: int, access_hash: int, size: int, dc_id: int, key_fingerprint: int}, date: int} @see https://docs.madelineproto.xyz/API_docs/types/messages.SentEncryptedMessage.html */ public function sendEncrypted(array $peer, array $message, bool $silent = false): array; /** - * Sends a message with a file attachment to a secret chat + * Sends a message with a file attachment to a secret chat. * * @param array $peer Secret chat ID @see https://docs.madelineproto.xyz/API_docs/types/InputEncryptedChat.html - * @param array{_: 'decryptedMessage', media: array{_: 'decryptedMessageMediaEmpty'}|array{_: 'decryptedMessageMediaPhoto', thumb?: string, thumb_w?: int, thumb_h?: int, w?: int, h?: int, size?: int}|array{_: 'decryptedMessageMediaVideo', thumb?: string, thumb_w?: int, thumb_h?: int, duration?: int, w?: int, h?: int, size?: int}|array{_: 'decryptedMessageMediaGeoPoint', lat: float, long: float}|array{_: 'decryptedMessageMediaContact', phone_number?: string, first_name?: string, last_name?: string, user_id?: int}|array{_: 'decryptedMessageMediaDocument', thumb?: string, thumb_w?: int, thumb_h?: int, file_name?: string, mime_type?: string, size?: int}|array{_: 'decryptedMessageMediaAudio', duration?: int, size?: int}|array{_: 'decryptedMessageMediaVideo', thumb?: string, thumb_w?: int, thumb_h?: int, duration?: int, mime_type?: string, w?: int, h?: int, size?: int}|array{_: 'decryptedMessageMediaAudio', duration?: int, mime_type?: string, size?: int}|array{_: 'decryptedMessageMediaExternalDocument', thumb: array{_: 'photoSizeEmpty', type?: string}|array{_: 'photoSize', type?: string, w?: int, h?: int, size?: int}|array{_: 'photoCachedSize', type?: string, w?: int, h?: int, bytes?: string}|array{_: 'photoStrippedSize', type?: string, bytes?: string}|array{_: 'photoSizeProgressive', type?: string, w?: int, h?: int, sizes?: list}|array{_: 'photoPathSize', type?: string, bytes?: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id?: int, local_id?: int, secret?: int}|array{_: 'fileLocation', dc_id?: int, volume_id?: int, local_id?: int, secret?: int}, type?: string, w?: int, h?: int, size?: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id?: int, local_id?: int, secret?: int}|array{_: 'fileLocation', dc_id?: int, volume_id?: int, local_id?: int, secret?: int}, type?: string, w?: int, h?: int, bytes?: string}, id?: int, access_hash?: int, date?: int, mime_type?: string, size?: int, dc_id?: int, attributes?: list}|array{_: 'decryptedMessageMediaPhoto', thumb?: string, thumb_w?: int, thumb_h?: int, w?: int, h?: int, size?: int, caption?: string}|array{_: 'decryptedMessageMediaVideo', thumb?: string, thumb_w?: int, thumb_h?: int, duration?: int, mime_type?: string, w?: int, h?: int, size?: int, caption?: string}|array{_: 'decryptedMessageMediaDocument', thumb?: string, thumb_w?: int, thumb_h?: int, mime_type?: string, size?: int, attributes?: list, caption?: string}|array{_: 'decryptedMessageMediaVenue', lat: float, long: float, title?: string, address?: string, provider?: string, venue_id?: string}|array{_: 'decryptedMessageMediaWebPage', url?: string}|array{_: 'decryptedMessageMediaDocument', thumb?: string, thumb_w?: int, thumb_h?: int, mime_type?: string, size?: int, attributes?: list, caption?: string}, message?: string}|array{_: 'decryptedMessageService', action: array{_: 'decryptedMessageActionSetMessageTTL', ttl_seconds?: int}|array{_: 'decryptedMessageActionReadMessages', random_ids?: list}|array{_: 'decryptedMessageActionDeleteMessages', random_ids?: list}|array{_: 'decryptedMessageActionScreenshotMessages', random_ids?: list}|array{_: 'decryptedMessageActionFlushHistory'}|array{_: 'decryptedMessageActionResend', start_seq_no?: int, end_seq_no?: int}|array{_: 'decryptedMessageActionNotifyLayer', layer?: int}|array{_: 'decryptedMessageActionTyping', action: array{_: 'sendMessageTypingAction'}|array{_: 'sendMessageCancelAction'}|array{_: 'sendMessageRecordVideoAction'}|array{_: 'sendMessageUploadVideoAction', progress?: int}|array{_: 'sendMessageRecordAudioAction'}|array{_: 'sendMessageUploadAudioAction', progress?: int}|array{_: 'sendMessageUploadPhotoAction', progress?: int}|array{_: 'sendMessageUploadDocumentAction', progress?: int}|array{_: 'sendMessageGeoLocationAction'}|array{_: 'sendMessageChooseContactAction'}|array{_: 'sendMessageGamePlayAction'}|array{_: 'sendMessageRecordRoundAction'}|array{_: 'sendMessageUploadRoundAction', progress?: int}|array{_: 'speakingInGroupCallAction'}|array{_: 'sendMessageHistoryImportAction', progress?: int}|array{_: 'sendMessageChooseStickerAction'}|array{_: 'sendMessageEmojiInteraction', interaction: mixed, emoticon?: string, msg_id?: int}|array{_: 'sendMessageEmojiInteractionSeen', emoticon?: string}|array{_: 'sendMessageUploadVideoAction'}|array{_: 'sendMessageUploadAudioAction'}|array{_: 'sendMessageUploadPhotoAction'}|array{_: 'sendMessageUploadDocumentAction'}|array{_: 'sendMessageUploadRoundAction'}}|array{_: 'decryptedMessageActionRequestKey', exchange_id?: int, g_a?: string}|array{_: 'decryptedMessageActionAcceptKey', exchange_id?: int, g_b?: string, key_fingerprint?: int}|array{_: 'decryptedMessageActionAbortKey', exchange_id?: int}|array{_: 'decryptedMessageActionCommitKey', exchange_id?: int, key_fingerprint?: int}|array{_: 'decryptedMessageActionNoop'}}|array{_: 'decryptedMessage', media: array{_: 'decryptedMessageMediaEmpty'}|array{_: 'decryptedMessageMediaPhoto', thumb?: string, thumb_w?: int, thumb_h?: int, w?: int, h?: int, size?: int}|array{_: 'decryptedMessageMediaVideo', thumb?: string, thumb_w?: int, thumb_h?: int, duration?: int, w?: int, h?: int, size?: int}|array{_: 'decryptedMessageMediaGeoPoint', lat: float, long: float}|array{_: 'decryptedMessageMediaContact', phone_number?: string, first_name?: string, last_name?: string, user_id?: int}|array{_: 'decryptedMessageMediaDocument', thumb?: string, thumb_w?: int, thumb_h?: int, file_name?: string, mime_type?: string, size?: int}|array{_: 'decryptedMessageMediaAudio', duration?: int, size?: int}|array{_: 'decryptedMessageMediaVideo', thumb?: string, thumb_w?: int, thumb_h?: int, duration?: int, mime_type?: string, w?: int, h?: int, size?: int}|array{_: 'decryptedMessageMediaAudio', duration?: int, mime_type?: string, size?: int}|array{_: 'decryptedMessageMediaExternalDocument', thumb: array{_: 'photoSizeEmpty', type?: string}|array{_: 'photoSize', type?: string, w?: int, h?: int, size?: int}|array{_: 'photoCachedSize', type?: string, w?: int, h?: int, bytes?: string}|array{_: 'photoStrippedSize', type?: string, bytes?: string}|array{_: 'photoSizeProgressive', type?: string, w?: int, h?: int, sizes?: list}|array{_: 'photoPathSize', type?: string, bytes?: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id?: int, local_id?: int, secret?: int}|array{_: 'fileLocation', dc_id?: int, volume_id?: int, local_id?: int, secret?: int}, type?: string, w?: int, h?: int, size?: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id?: int, local_id?: int, secret?: int}|array{_: 'fileLocation', dc_id?: int, volume_id?: int, local_id?: int, secret?: int}, type?: string, w?: int, h?: int, bytes?: string}, id?: int, access_hash?: int, date?: int, mime_type?: string, size?: int, dc_id?: int, attributes?: list}|array{_: 'decryptedMessageMediaPhoto', thumb?: string, thumb_w?: int, thumb_h?: int, w?: int, h?: int, size?: int, caption?: string}|array{_: 'decryptedMessageMediaVideo', thumb?: string, thumb_w?: int, thumb_h?: int, duration?: int, mime_type?: string, w?: int, h?: int, size?: int, caption?: string}|array{_: 'decryptedMessageMediaDocument', thumb?: string, thumb_w?: int, thumb_h?: int, mime_type?: string, size?: int, attributes?: list, caption?: string}|array{_: 'decryptedMessageMediaVenue', lat: float, long: float, title?: string, address?: string, provider?: string, venue_id?: string}|array{_: 'decryptedMessageMediaWebPage', url?: string}|array{_: 'decryptedMessageMediaDocument', thumb?: string, thumb_w?: int, thumb_h?: int, mime_type?: string, size?: int, attributes?: list, caption?: string}, ttl?: int, message?: string}|array{_: 'decryptedMessageService', action: array{_: 'decryptedMessageActionSetMessageTTL', ttl_seconds?: int}|array{_: 'decryptedMessageActionReadMessages', random_ids?: list}|array{_: 'decryptedMessageActionDeleteMessages', random_ids?: list}|array{_: 'decryptedMessageActionScreenshotMessages', random_ids?: list}|array{_: 'decryptedMessageActionFlushHistory'}|array{_: 'decryptedMessageActionResend', start_seq_no?: int, end_seq_no?: int}|array{_: 'decryptedMessageActionNotifyLayer', layer?: int}|array{_: 'decryptedMessageActionTyping', action: array{_: 'sendMessageTypingAction'}|array{_: 'sendMessageCancelAction'}|array{_: 'sendMessageRecordVideoAction'}|array{_: 'sendMessageUploadVideoAction', progress?: int}|array{_: 'sendMessageRecordAudioAction'}|array{_: 'sendMessageUploadAudioAction', progress?: int}|array{_: 'sendMessageUploadPhotoAction', progress?: int}|array{_: 'sendMessageUploadDocumentAction', progress?: int}|array{_: 'sendMessageGeoLocationAction'}|array{_: 'sendMessageChooseContactAction'}|array{_: 'sendMessageGamePlayAction'}|array{_: 'sendMessageRecordRoundAction'}|array{_: 'sendMessageUploadRoundAction', progress?: int}|array{_: 'speakingInGroupCallAction'}|array{_: 'sendMessageHistoryImportAction', progress?: int}|array{_: 'sendMessageChooseStickerAction'}|array{_: 'sendMessageEmojiInteraction', interaction: mixed, emoticon?: string, msg_id?: int}|array{_: 'sendMessageEmojiInteractionSeen', emoticon?: string}|array{_: 'sendMessageUploadVideoAction'}|array{_: 'sendMessageUploadAudioAction'}|array{_: 'sendMessageUploadPhotoAction'}|array{_: 'sendMessageUploadDocumentAction'}|array{_: 'sendMessageUploadRoundAction'}}|array{_: 'decryptedMessageActionRequestKey', exchange_id?: int, g_a?: string}|array{_: 'decryptedMessageActionAcceptKey', exchange_id?: int, g_b?: string, key_fingerprint?: int}|array{_: 'decryptedMessageActionAbortKey', exchange_id?: int}|array{_: 'decryptedMessageActionCommitKey', exchange_id?: int, key_fingerprint?: int}|array{_: 'decryptedMessageActionNoop'}}|array{_: 'decryptedMessage', ttl?: int, message?: string, media?: array{_: 'decryptedMessageMediaEmpty'}|array{_: 'decryptedMessageMediaPhoto', thumb?: string, thumb_w?: int, thumb_h?: int, w?: int, h?: int, size?: int}|array{_: 'decryptedMessageMediaVideo', thumb?: string, thumb_w?: int, thumb_h?: int, duration?: int, w?: int, h?: int, size?: int}|array{_: 'decryptedMessageMediaGeoPoint', lat: float, long: float}|array{_: 'decryptedMessageMediaContact', phone_number?: string, first_name?: string, last_name?: string, user_id?: int}|array{_: 'decryptedMessageMediaDocument', thumb?: string, thumb_w?: int, thumb_h?: int, file_name?: string, mime_type?: string, size?: int}|array{_: 'decryptedMessageMediaAudio', duration?: int, size?: int}|array{_: 'decryptedMessageMediaVideo', thumb?: string, thumb_w?: int, thumb_h?: int, duration?: int, mime_type?: string, w?: int, h?: int, size?: int}|array{_: 'decryptedMessageMediaAudio', duration?: int, mime_type?: string, size?: int}|array{_: 'decryptedMessageMediaExternalDocument', thumb: array{_: 'photoSizeEmpty', type?: string}|array{_: 'photoSize', type?: string, w?: int, h?: int, size?: int}|array{_: 'photoCachedSize', type?: string, w?: int, h?: int, bytes?: string}|array{_: 'photoStrippedSize', type?: string, bytes?: string}|array{_: 'photoSizeProgressive', type?: string, w?: int, h?: int, sizes?: list}|array{_: 'photoPathSize', type?: string, bytes?: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id?: int, local_id?: int, secret?: int}|array{_: 'fileLocation', dc_id?: int, volume_id?: int, local_id?: int, secret?: int}, type?: string, w?: int, h?: int, size?: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id?: int, local_id?: int, secret?: int}|array{_: 'fileLocation', dc_id?: int, volume_id?: int, local_id?: int, secret?: int}, type?: string, w?: int, h?: int, bytes?: string}, id?: int, access_hash?: int, date?: int, mime_type?: string, size?: int, dc_id?: int, attributes?: list}|array{_: 'decryptedMessageMediaPhoto', thumb?: string, thumb_w?: int, thumb_h?: int, w?: int, h?: int, size?: int, caption?: string}|array{_: 'decryptedMessageMediaVideo', thumb?: string, thumb_w?: int, thumb_h?: int, duration?: int, mime_type?: string, w?: int, h?: int, size?: int, caption?: string}|array{_: 'decryptedMessageMediaDocument', thumb?: string, thumb_w?: int, thumb_h?: int, mime_type?: string, size?: int, attributes?: list, caption?: string}|array{_: 'decryptedMessageMediaVenue', lat: float, long: float, title?: string, address?: string, provider?: string, venue_id?: string}|array{_: 'decryptedMessageMediaWebPage', url?: string}|array{_: 'decryptedMessageMediaDocument', thumb?: string, thumb_w?: int, thumb_h?: int, mime_type?: string, size?: int, attributes?: list, caption?: string}, entities?: list, via_bot_name?: string, reply_to_random_id?: int}|array{_: 'decryptedMessage', no_webpage?: bool, silent?: bool, ttl?: int, message?: string, media?: array{_: 'decryptedMessageMediaEmpty'}|array{_: 'decryptedMessageMediaPhoto', thumb?: string, thumb_w?: int, thumb_h?: int, w?: int, h?: int, size?: int}|array{_: 'decryptedMessageMediaVideo', thumb?: string, thumb_w?: int, thumb_h?: int, duration?: int, w?: int, h?: int, size?: int}|array{_: 'decryptedMessageMediaGeoPoint', lat: float, long: float}|array{_: 'decryptedMessageMediaContact', phone_number?: string, first_name?: string, last_name?: string, user_id?: int}|array{_: 'decryptedMessageMediaDocument', thumb?: string, thumb_w?: int, thumb_h?: int, file_name?: string, mime_type?: string, size?: int}|array{_: 'decryptedMessageMediaAudio', duration?: int, size?: int}|array{_: 'decryptedMessageMediaVideo', thumb?: string, thumb_w?: int, thumb_h?: int, duration?: int, mime_type?: string, w?: int, h?: int, size?: int}|array{_: 'decryptedMessageMediaAudio', duration?: int, mime_type?: string, size?: int}|array{_: 'decryptedMessageMediaExternalDocument', thumb: array{_: 'photoSizeEmpty', type?: string}|array{_: 'photoSize', type?: string, w?: int, h?: int, size?: int}|array{_: 'photoCachedSize', type?: string, w?: int, h?: int, bytes?: string}|array{_: 'photoStrippedSize', type?: string, bytes?: string}|array{_: 'photoSizeProgressive', type?: string, w?: int, h?: int, sizes?: list}|array{_: 'photoPathSize', type?: string, bytes?: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id?: int, local_id?: int, secret?: int}|array{_: 'fileLocation', dc_id?: int, volume_id?: int, local_id?: int, secret?: int}, type?: string, w?: int, h?: int, size?: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id?: int, local_id?: int, secret?: int}|array{_: 'fileLocation', dc_id?: int, volume_id?: int, local_id?: int, secret?: int}, type?: string, w?: int, h?: int, bytes?: string}, id?: int, access_hash?: int, date?: int, mime_type?: string, size?: int, dc_id?: int, attributes?: list}|array{_: 'decryptedMessageMediaPhoto', thumb?: string, thumb_w?: int, thumb_h?: int, w?: int, h?: int, size?: int, caption?: string}|array{_: 'decryptedMessageMediaVideo', thumb?: string, thumb_w?: int, thumb_h?: int, duration?: int, mime_type?: string, w?: int, h?: int, size?: int, caption?: string}|array{_: 'decryptedMessageMediaDocument', thumb?: string, thumb_w?: int, thumb_h?: int, mime_type?: string, size?: int, attributes?: list, caption?: string}|array{_: 'decryptedMessageMediaVenue', lat: float, long: float, title?: string, address?: string, provider?: string, venue_id?: string}|array{_: 'decryptedMessageMediaWebPage', url?: string}|array{_: 'decryptedMessageMediaDocument', thumb?: string, thumb_w?: int, thumb_h?: int, mime_type?: string, size?: int, attributes?: list, caption?: string}, entities?: list, via_bot_name?: string, reply_to_random_id?: int, grouped_id?: int} $message TL-serialization of [DecryptedMessage](https://docs.madelineproto.xyz/API_docs/types/DecryptedMessage.html) type, encrypted with a key generated during chat initialization @see https://docs.madelineproto.xyz/API_docs/types/DecryptedMessage.html + * @param array{_: 'decryptedMessage', media: array{_: 'decryptedMessageMediaEmpty'}|array{_: 'decryptedMessageMediaPhoto', thumb?: array, thumb_w?: array, thumb_h?: array, w?: array, h?: array, size?: array}|array{_: 'decryptedMessageMediaVideo', thumb?: array, thumb_w?: array, thumb_h?: array, duration?: array, w?: array, h?: array, size?: array}|array{_: 'decryptedMessageMediaGeoPoint', lat: array, long: array}|array{_: 'decryptedMessageMediaContact', phone_number?: array, first_name?: array, last_name?: array, user_id?: array}|array{_: 'decryptedMessageMediaDocument', thumb?: array, thumb_w?: array, thumb_h?: array, file_name?: array, mime_type?: array, size?: array}|array{_: 'decryptedMessageMediaAudio', duration?: array, size?: array}|array{_: 'decryptedMessageMediaVideo', thumb?: array, thumb_w?: array, thumb_h?: array, duration?: array, mime_type?: array, w?: array, h?: array, size?: array}|array{_: 'decryptedMessageMediaAudio', duration?: array, mime_type?: array, size?: array}|array{_: 'decryptedMessageMediaExternalDocument', thumb: array, id?: array, access_hash?: array, date?: array, mime_type?: array, size?: array, dc_id?: array, attributes?: list}|array{_: 'decryptedMessageMediaPhoto', thumb?: array, thumb_w?: array, thumb_h?: array, w?: array, h?: array, size?: array, caption?: array}|array{_: 'decryptedMessageMediaVideo', thumb?: array, thumb_w?: array, thumb_h?: array, duration?: array, mime_type?: array, w?: array, h?: array, size?: array, caption?: array}|array{_: 'decryptedMessageMediaDocument', thumb?: array, thumb_w?: array, thumb_h?: array, mime_type?: array, size?: array, attributes?: list, caption?: array}|array{_: 'decryptedMessageMediaVenue', lat: array, long: array, title?: array, address?: array, provider?: array, venue_id?: array}|array{_: 'decryptedMessageMediaWebPage', url?: array}|array{_: 'decryptedMessageMediaDocument', thumb?: array, thumb_w?: array, thumb_h?: array, mime_type?: array, size?: array, attributes?: list, caption?: array}, message?: string}|array{_: 'decryptedMessageService', action: array{_: 'decryptedMessageActionSetMessageTTL', ttl_seconds?: array}|array{_: 'decryptedMessageActionReadMessages', random_ids?: list}|array{_: 'decryptedMessageActionDeleteMessages', random_ids?: list}|array{_: 'decryptedMessageActionScreenshotMessages', random_ids?: list}|array{_: 'decryptedMessageActionFlushHistory'}|array{_: 'decryptedMessageActionResend', start_seq_no?: array, end_seq_no?: array}|array{_: 'decryptedMessageActionNotifyLayer', layer?: array}|array{_: 'decryptedMessageActionTyping', action: array}|array{_: 'decryptedMessageActionRequestKey', exchange_id?: array, g_a?: array}|array{_: 'decryptedMessageActionAcceptKey', exchange_id?: array, g_b?: array, key_fingerprint?: array}|array{_: 'decryptedMessageActionAbortKey', exchange_id?: array}|array{_: 'decryptedMessageActionCommitKey', exchange_id?: array, key_fingerprint?: array}|array{_: 'decryptedMessageActionNoop'}}|array{_: 'decryptedMessage', media: array{_: 'decryptedMessageMediaEmpty'}|array{_: 'decryptedMessageMediaPhoto', thumb?: array, thumb_w?: array, thumb_h?: array, w?: array, h?: array, size?: array}|array{_: 'decryptedMessageMediaVideo', thumb?: array, thumb_w?: array, thumb_h?: array, duration?: array, w?: array, h?: array, size?: array}|array{_: 'decryptedMessageMediaGeoPoint', lat: array, long: array}|array{_: 'decryptedMessageMediaContact', phone_number?: array, first_name?: array, last_name?: array, user_id?: array}|array{_: 'decryptedMessageMediaDocument', thumb?: array, thumb_w?: array, thumb_h?: array, file_name?: array, mime_type?: array, size?: array}|array{_: 'decryptedMessageMediaAudio', duration?: array, size?: array}|array{_: 'decryptedMessageMediaVideo', thumb?: array, thumb_w?: array, thumb_h?: array, duration?: array, mime_type?: array, w?: array, h?: array, size?: array}|array{_: 'decryptedMessageMediaAudio', duration?: array, mime_type?: array, size?: array}|array{_: 'decryptedMessageMediaExternalDocument', thumb: array, id?: array, access_hash?: array, date?: array, mime_type?: array, size?: array, dc_id?: array, attributes?: list}|array{_: 'decryptedMessageMediaPhoto', thumb?: array, thumb_w?: array, thumb_h?: array, w?: array, h?: array, size?: array, caption?: array}|array{_: 'decryptedMessageMediaVideo', thumb?: array, thumb_w?: array, thumb_h?: array, duration?: array, mime_type?: array, w?: array, h?: array, size?: array, caption?: array}|array{_: 'decryptedMessageMediaDocument', thumb?: array, thumb_w?: array, thumb_h?: array, mime_type?: array, size?: array, attributes?: list, caption?: array}|array{_: 'decryptedMessageMediaVenue', lat: array, long: array, title?: array, address?: array, provider?: array, venue_id?: array}|array{_: 'decryptedMessageMediaWebPage', url?: array}|array{_: 'decryptedMessageMediaDocument', thumb?: array, thumb_w?: array, thumb_h?: array, mime_type?: array, size?: array, attributes?: list, caption?: array}, ttl?: int, message?: string}|array{_: 'decryptedMessageService', action: array{_: 'decryptedMessageActionSetMessageTTL', ttl_seconds?: array}|array{_: 'decryptedMessageActionReadMessages', random_ids?: list}|array{_: 'decryptedMessageActionDeleteMessages', random_ids?: list}|array{_: 'decryptedMessageActionScreenshotMessages', random_ids?: list}|array{_: 'decryptedMessageActionFlushHistory'}|array{_: 'decryptedMessageActionResend', start_seq_no?: array, end_seq_no?: array}|array{_: 'decryptedMessageActionNotifyLayer', layer?: array}|array{_: 'decryptedMessageActionTyping', action: array}|array{_: 'decryptedMessageActionRequestKey', exchange_id?: array, g_a?: array}|array{_: 'decryptedMessageActionAcceptKey', exchange_id?: array, g_b?: array, key_fingerprint?: array}|array{_: 'decryptedMessageActionAbortKey', exchange_id?: array}|array{_: 'decryptedMessageActionCommitKey', exchange_id?: array, key_fingerprint?: array}|array{_: 'decryptedMessageActionNoop'}}|array{_: 'decryptedMessage', ttl?: int, message?: string, media?: array{_: 'decryptedMessageMediaEmpty'}|array{_: 'decryptedMessageMediaPhoto', thumb?: array, thumb_w?: array, thumb_h?: array, w?: array, h?: array, size?: array}|array{_: 'decryptedMessageMediaVideo', thumb?: array, thumb_w?: array, thumb_h?: array, duration?: array, w?: array, h?: array, size?: array}|array{_: 'decryptedMessageMediaGeoPoint', lat: array, long: array}|array{_: 'decryptedMessageMediaContact', phone_number?: array, first_name?: array, last_name?: array, user_id?: array}|array{_: 'decryptedMessageMediaDocument', thumb?: array, thumb_w?: array, thumb_h?: array, file_name?: array, mime_type?: array, size?: array}|array{_: 'decryptedMessageMediaAudio', duration?: array, size?: array}|array{_: 'decryptedMessageMediaVideo', thumb?: array, thumb_w?: array, thumb_h?: array, duration?: array, mime_type?: array, w?: array, h?: array, size?: array}|array{_: 'decryptedMessageMediaAudio', duration?: array, mime_type?: array, size?: array}|array{_: 'decryptedMessageMediaExternalDocument', thumb: array, id?: array, access_hash?: array, date?: array, mime_type?: array, size?: array, dc_id?: array, attributes?: list}|array{_: 'decryptedMessageMediaPhoto', thumb?: array, thumb_w?: array, thumb_h?: array, w?: array, h?: array, size?: array, caption?: array}|array{_: 'decryptedMessageMediaVideo', thumb?: array, thumb_w?: array, thumb_h?: array, duration?: array, mime_type?: array, w?: array, h?: array, size?: array, caption?: array}|array{_: 'decryptedMessageMediaDocument', thumb?: array, thumb_w?: array, thumb_h?: array, mime_type?: array, size?: array, attributes?: list, caption?: array}|array{_: 'decryptedMessageMediaVenue', lat: array, long: array, title?: array, address?: array, provider?: array, venue_id?: array}|array{_: 'decryptedMessageMediaWebPage', url?: array}|array{_: 'decryptedMessageMediaDocument', thumb?: array, thumb_w?: array, thumb_h?: array, mime_type?: array, size?: array, attributes?: list, caption?: array}, entities?: list, via_bot_name?: string, reply_to_random_id?: int}|array{_: 'decryptedMessage', no_webpage?: bool, silent?: bool, ttl?: int, message?: string, media?: array{_: 'decryptedMessageMediaEmpty'}|array{_: 'decryptedMessageMediaPhoto', thumb?: array, thumb_w?: array, thumb_h?: array, w?: array, h?: array, size?: array}|array{_: 'decryptedMessageMediaVideo', thumb?: array, thumb_w?: array, thumb_h?: array, duration?: array, w?: array, h?: array, size?: array}|array{_: 'decryptedMessageMediaGeoPoint', lat: array, long: array}|array{_: 'decryptedMessageMediaContact', phone_number?: array, first_name?: array, last_name?: array, user_id?: array}|array{_: 'decryptedMessageMediaDocument', thumb?: array, thumb_w?: array, thumb_h?: array, file_name?: array, mime_type?: array, size?: array}|array{_: 'decryptedMessageMediaAudio', duration?: array, size?: array}|array{_: 'decryptedMessageMediaVideo', thumb?: array, thumb_w?: array, thumb_h?: array, duration?: array, mime_type?: array, w?: array, h?: array, size?: array}|array{_: 'decryptedMessageMediaAudio', duration?: array, mime_type?: array, size?: array}|array{_: 'decryptedMessageMediaExternalDocument', thumb: array, id?: array, access_hash?: array, date?: array, mime_type?: array, size?: array, dc_id?: array, attributes?: list}|array{_: 'decryptedMessageMediaPhoto', thumb?: array, thumb_w?: array, thumb_h?: array, w?: array, h?: array, size?: array, caption?: array}|array{_: 'decryptedMessageMediaVideo', thumb?: array, thumb_w?: array, thumb_h?: array, duration?: array, mime_type?: array, w?: array, h?: array, size?: array, caption?: array}|array{_: 'decryptedMessageMediaDocument', thumb?: array, thumb_w?: array, thumb_h?: array, mime_type?: array, size?: array, attributes?: list, caption?: array}|array{_: 'decryptedMessageMediaVenue', lat: array, long: array, title?: array, address?: array, provider?: array, venue_id?: array}|array{_: 'decryptedMessageMediaWebPage', url?: array}|array{_: 'decryptedMessageMediaDocument', thumb?: array, thumb_w?: array, thumb_h?: array, mime_type?: array, size?: array, attributes?: list, caption?: array}, entities?: list, via_bot_name?: string, reply_to_random_id?: int, grouped_id?: int} $message TL-serialization of [DecryptedMessage](https://docs.madelineproto.xyz/API_docs/types/DecryptedMessage.html) type, encrypted with a key generated during chat initialization @see https://docs.madelineproto.xyz/API_docs/types/DecryptedMessage.html * @param mixed $file File attachment for the secret chat @see https://docs.madelineproto.xyz/API_docs/types/InputEncryptedFile.html * @param bool $silent Whether to send the file without triggering a notification * @return array{_: 'messages.sentEncryptedMessage', date: int}|array{_: 'messages.sentEncryptedFile', file: array{_: 'encryptedFileEmpty'}|array{_: 'encryptedFile', id: int, access_hash: int, size: int, dc_id: int, key_fingerprint: int}, date: int} @see https://docs.madelineproto.xyz/API_docs/types/messages.SentEncryptedMessage.html @@ -281,16 +270,15 @@ public function sendEncryptedFile(array $peer, array $message, mixed $file, bool * Sends a service message to a secret chat. * * @param array $peer Secret chat ID @see https://docs.madelineproto.xyz/API_docs/types/InputEncryptedChat.html - * @param array{_: 'decryptedMessage', media: array{_: 'decryptedMessageMediaEmpty'}|array{_: 'decryptedMessageMediaPhoto', thumb?: string, thumb_w?: int, thumb_h?: int, w?: int, h?: int, size?: int}|array{_: 'decryptedMessageMediaVideo', thumb?: string, thumb_w?: int, thumb_h?: int, duration?: int, w?: int, h?: int, size?: int}|array{_: 'decryptedMessageMediaGeoPoint', lat: float, long: float}|array{_: 'decryptedMessageMediaContact', phone_number?: string, first_name?: string, last_name?: string, user_id?: int}|array{_: 'decryptedMessageMediaDocument', thumb?: string, thumb_w?: int, thumb_h?: int, file_name?: string, mime_type?: string, size?: int}|array{_: 'decryptedMessageMediaAudio', duration?: int, size?: int}|array{_: 'decryptedMessageMediaVideo', thumb?: string, thumb_w?: int, thumb_h?: int, duration?: int, mime_type?: string, w?: int, h?: int, size?: int}|array{_: 'decryptedMessageMediaAudio', duration?: int, mime_type?: string, size?: int}|array{_: 'decryptedMessageMediaExternalDocument', thumb: array{_: 'photoSizeEmpty', type?: string}|array{_: 'photoSize', type?: string, w?: int, h?: int, size?: int}|array{_: 'photoCachedSize', type?: string, w?: int, h?: int, bytes?: string}|array{_: 'photoStrippedSize', type?: string, bytes?: string}|array{_: 'photoSizeProgressive', type?: string, w?: int, h?: int, sizes?: list}|array{_: 'photoPathSize', type?: string, bytes?: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id?: int, local_id?: int, secret?: int}|array{_: 'fileLocation', dc_id?: int, volume_id?: int, local_id?: int, secret?: int}, type?: string, w?: int, h?: int, size?: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id?: int, local_id?: int, secret?: int}|array{_: 'fileLocation', dc_id?: int, volume_id?: int, local_id?: int, secret?: int}, type?: string, w?: int, h?: int, bytes?: string}, id?: int, access_hash?: int, date?: int, mime_type?: string, size?: int, dc_id?: int, attributes?: list}|array{_: 'decryptedMessageMediaPhoto', thumb?: string, thumb_w?: int, thumb_h?: int, w?: int, h?: int, size?: int, caption?: string}|array{_: 'decryptedMessageMediaVideo', thumb?: string, thumb_w?: int, thumb_h?: int, duration?: int, mime_type?: string, w?: int, h?: int, size?: int, caption?: string}|array{_: 'decryptedMessageMediaDocument', thumb?: string, thumb_w?: int, thumb_h?: int, mime_type?: string, size?: int, attributes?: list, caption?: string}|array{_: 'decryptedMessageMediaVenue', lat: float, long: float, title?: string, address?: string, provider?: string, venue_id?: string}|array{_: 'decryptedMessageMediaWebPage', url?: string}|array{_: 'decryptedMessageMediaDocument', thumb?: string, thumb_w?: int, thumb_h?: int, mime_type?: string, size?: int, attributes?: list, caption?: string}, message?: string}|array{_: 'decryptedMessageService', action: array{_: 'decryptedMessageActionSetMessageTTL', ttl_seconds?: int}|array{_: 'decryptedMessageActionReadMessages', random_ids?: list}|array{_: 'decryptedMessageActionDeleteMessages', random_ids?: list}|array{_: 'decryptedMessageActionScreenshotMessages', random_ids?: list}|array{_: 'decryptedMessageActionFlushHistory'}|array{_: 'decryptedMessageActionResend', start_seq_no?: int, end_seq_no?: int}|array{_: 'decryptedMessageActionNotifyLayer', layer?: int}|array{_: 'decryptedMessageActionTyping', action: array{_: 'sendMessageTypingAction'}|array{_: 'sendMessageCancelAction'}|array{_: 'sendMessageRecordVideoAction'}|array{_: 'sendMessageUploadVideoAction', progress?: int}|array{_: 'sendMessageRecordAudioAction'}|array{_: 'sendMessageUploadAudioAction', progress?: int}|array{_: 'sendMessageUploadPhotoAction', progress?: int}|array{_: 'sendMessageUploadDocumentAction', progress?: int}|array{_: 'sendMessageGeoLocationAction'}|array{_: 'sendMessageChooseContactAction'}|array{_: 'sendMessageGamePlayAction'}|array{_: 'sendMessageRecordRoundAction'}|array{_: 'sendMessageUploadRoundAction', progress?: int}|array{_: 'speakingInGroupCallAction'}|array{_: 'sendMessageHistoryImportAction', progress?: int}|array{_: 'sendMessageChooseStickerAction'}|array{_: 'sendMessageEmojiInteraction', interaction: mixed, emoticon?: string, msg_id?: int}|array{_: 'sendMessageEmojiInteractionSeen', emoticon?: string}|array{_: 'sendMessageUploadVideoAction'}|array{_: 'sendMessageUploadAudioAction'}|array{_: 'sendMessageUploadPhotoAction'}|array{_: 'sendMessageUploadDocumentAction'}|array{_: 'sendMessageUploadRoundAction'}}|array{_: 'decryptedMessageActionRequestKey', exchange_id?: int, g_a?: string}|array{_: 'decryptedMessageActionAcceptKey', exchange_id?: int, g_b?: string, key_fingerprint?: int}|array{_: 'decryptedMessageActionAbortKey', exchange_id?: int}|array{_: 'decryptedMessageActionCommitKey', exchange_id?: int, key_fingerprint?: int}|array{_: 'decryptedMessageActionNoop'}}|array{_: 'decryptedMessage', media: array{_: 'decryptedMessageMediaEmpty'}|array{_: 'decryptedMessageMediaPhoto', thumb?: string, thumb_w?: int, thumb_h?: int, w?: int, h?: int, size?: int}|array{_: 'decryptedMessageMediaVideo', thumb?: string, thumb_w?: int, thumb_h?: int, duration?: int, w?: int, h?: int, size?: int}|array{_: 'decryptedMessageMediaGeoPoint', lat: float, long: float}|array{_: 'decryptedMessageMediaContact', phone_number?: string, first_name?: string, last_name?: string, user_id?: int}|array{_: 'decryptedMessageMediaDocument', thumb?: string, thumb_w?: int, thumb_h?: int, file_name?: string, mime_type?: string, size?: int}|array{_: 'decryptedMessageMediaAudio', duration?: int, size?: int}|array{_: 'decryptedMessageMediaVideo', thumb?: string, thumb_w?: int, thumb_h?: int, duration?: int, mime_type?: string, w?: int, h?: int, size?: int}|array{_: 'decryptedMessageMediaAudio', duration?: int, mime_type?: string, size?: int}|array{_: 'decryptedMessageMediaExternalDocument', thumb: array{_: 'photoSizeEmpty', type?: string}|array{_: 'photoSize', type?: string, w?: int, h?: int, size?: int}|array{_: 'photoCachedSize', type?: string, w?: int, h?: int, bytes?: string}|array{_: 'photoStrippedSize', type?: string, bytes?: string}|array{_: 'photoSizeProgressive', type?: string, w?: int, h?: int, sizes?: list}|array{_: 'photoPathSize', type?: string, bytes?: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id?: int, local_id?: int, secret?: int}|array{_: 'fileLocation', dc_id?: int, volume_id?: int, local_id?: int, secret?: int}, type?: string, w?: int, h?: int, size?: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id?: int, local_id?: int, secret?: int}|array{_: 'fileLocation', dc_id?: int, volume_id?: int, local_id?: int, secret?: int}, type?: string, w?: int, h?: int, bytes?: string}, id?: int, access_hash?: int, date?: int, mime_type?: string, size?: int, dc_id?: int, attributes?: list}|array{_: 'decryptedMessageMediaPhoto', thumb?: string, thumb_w?: int, thumb_h?: int, w?: int, h?: int, size?: int, caption?: string}|array{_: 'decryptedMessageMediaVideo', thumb?: string, thumb_w?: int, thumb_h?: int, duration?: int, mime_type?: string, w?: int, h?: int, size?: int, caption?: string}|array{_: 'decryptedMessageMediaDocument', thumb?: string, thumb_w?: int, thumb_h?: int, mime_type?: string, size?: int, attributes?: list, caption?: string}|array{_: 'decryptedMessageMediaVenue', lat: float, long: float, title?: string, address?: string, provider?: string, venue_id?: string}|array{_: 'decryptedMessageMediaWebPage', url?: string}|array{_: 'decryptedMessageMediaDocument', thumb?: string, thumb_w?: int, thumb_h?: int, mime_type?: string, size?: int, attributes?: list, caption?: string}, ttl?: int, message?: string}|array{_: 'decryptedMessageService', action: array{_: 'decryptedMessageActionSetMessageTTL', ttl_seconds?: int}|array{_: 'decryptedMessageActionReadMessages', random_ids?: list}|array{_: 'decryptedMessageActionDeleteMessages', random_ids?: list}|array{_: 'decryptedMessageActionScreenshotMessages', random_ids?: list}|array{_: 'decryptedMessageActionFlushHistory'}|array{_: 'decryptedMessageActionResend', start_seq_no?: int, end_seq_no?: int}|array{_: 'decryptedMessageActionNotifyLayer', layer?: int}|array{_: 'decryptedMessageActionTyping', action: array{_: 'sendMessageTypingAction'}|array{_: 'sendMessageCancelAction'}|array{_: 'sendMessageRecordVideoAction'}|array{_: 'sendMessageUploadVideoAction', progress?: int}|array{_: 'sendMessageRecordAudioAction'}|array{_: 'sendMessageUploadAudioAction', progress?: int}|array{_: 'sendMessageUploadPhotoAction', progress?: int}|array{_: 'sendMessageUploadDocumentAction', progress?: int}|array{_: 'sendMessageGeoLocationAction'}|array{_: 'sendMessageChooseContactAction'}|array{_: 'sendMessageGamePlayAction'}|array{_: 'sendMessageRecordRoundAction'}|array{_: 'sendMessageUploadRoundAction', progress?: int}|array{_: 'speakingInGroupCallAction'}|array{_: 'sendMessageHistoryImportAction', progress?: int}|array{_: 'sendMessageChooseStickerAction'}|array{_: 'sendMessageEmojiInteraction', interaction: mixed, emoticon?: string, msg_id?: int}|array{_: 'sendMessageEmojiInteractionSeen', emoticon?: string}|array{_: 'sendMessageUploadVideoAction'}|array{_: 'sendMessageUploadAudioAction'}|array{_: 'sendMessageUploadPhotoAction'}|array{_: 'sendMessageUploadDocumentAction'}|array{_: 'sendMessageUploadRoundAction'}}|array{_: 'decryptedMessageActionRequestKey', exchange_id?: int, g_a?: string}|array{_: 'decryptedMessageActionAcceptKey', exchange_id?: int, g_b?: string, key_fingerprint?: int}|array{_: 'decryptedMessageActionAbortKey', exchange_id?: int}|array{_: 'decryptedMessageActionCommitKey', exchange_id?: int, key_fingerprint?: int}|array{_: 'decryptedMessageActionNoop'}}|array{_: 'decryptedMessage', ttl?: int, message?: string, media?: array{_: 'decryptedMessageMediaEmpty'}|array{_: 'decryptedMessageMediaPhoto', thumb?: string, thumb_w?: int, thumb_h?: int, w?: int, h?: int, size?: int}|array{_: 'decryptedMessageMediaVideo', thumb?: string, thumb_w?: int, thumb_h?: int, duration?: int, w?: int, h?: int, size?: int}|array{_: 'decryptedMessageMediaGeoPoint', lat: float, long: float}|array{_: 'decryptedMessageMediaContact', phone_number?: string, first_name?: string, last_name?: string, user_id?: int}|array{_: 'decryptedMessageMediaDocument', thumb?: string, thumb_w?: int, thumb_h?: int, file_name?: string, mime_type?: string, size?: int}|array{_: 'decryptedMessageMediaAudio', duration?: int, size?: int}|array{_: 'decryptedMessageMediaVideo', thumb?: string, thumb_w?: int, thumb_h?: int, duration?: int, mime_type?: string, w?: int, h?: int, size?: int}|array{_: 'decryptedMessageMediaAudio', duration?: int, mime_type?: string, size?: int}|array{_: 'decryptedMessageMediaExternalDocument', thumb: array{_: 'photoSizeEmpty', type?: string}|array{_: 'photoSize', type?: string, w?: int, h?: int, size?: int}|array{_: 'photoCachedSize', type?: string, w?: int, h?: int, bytes?: string}|array{_: 'photoStrippedSize', type?: string, bytes?: string}|array{_: 'photoSizeProgressive', type?: string, w?: int, h?: int, sizes?: list}|array{_: 'photoPathSize', type?: string, bytes?: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id?: int, local_id?: int, secret?: int}|array{_: 'fileLocation', dc_id?: int, volume_id?: int, local_id?: int, secret?: int}, type?: string, w?: int, h?: int, size?: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id?: int, local_id?: int, secret?: int}|array{_: 'fileLocation', dc_id?: int, volume_id?: int, local_id?: int, secret?: int}, type?: string, w?: int, h?: int, bytes?: string}, id?: int, access_hash?: int, date?: int, mime_type?: string, size?: int, dc_id?: int, attributes?: list}|array{_: 'decryptedMessageMediaPhoto', thumb?: string, thumb_w?: int, thumb_h?: int, w?: int, h?: int, size?: int, caption?: string}|array{_: 'decryptedMessageMediaVideo', thumb?: string, thumb_w?: int, thumb_h?: int, duration?: int, mime_type?: string, w?: int, h?: int, size?: int, caption?: string}|array{_: 'decryptedMessageMediaDocument', thumb?: string, thumb_w?: int, thumb_h?: int, mime_type?: string, size?: int, attributes?: list, caption?: string}|array{_: 'decryptedMessageMediaVenue', lat: float, long: float, title?: string, address?: string, provider?: string, venue_id?: string}|array{_: 'decryptedMessageMediaWebPage', url?: string}|array{_: 'decryptedMessageMediaDocument', thumb?: string, thumb_w?: int, thumb_h?: int, mime_type?: string, size?: int, attributes?: list, caption?: string}, entities?: list, via_bot_name?: string, reply_to_random_id?: int}|array{_: 'decryptedMessage', no_webpage?: bool, silent?: bool, ttl?: int, message?: string, media?: array{_: 'decryptedMessageMediaEmpty'}|array{_: 'decryptedMessageMediaPhoto', thumb?: string, thumb_w?: int, thumb_h?: int, w?: int, h?: int, size?: int}|array{_: 'decryptedMessageMediaVideo', thumb?: string, thumb_w?: int, thumb_h?: int, duration?: int, w?: int, h?: int, size?: int}|array{_: 'decryptedMessageMediaGeoPoint', lat: float, long: float}|array{_: 'decryptedMessageMediaContact', phone_number?: string, first_name?: string, last_name?: string, user_id?: int}|array{_: 'decryptedMessageMediaDocument', thumb?: string, thumb_w?: int, thumb_h?: int, file_name?: string, mime_type?: string, size?: int}|array{_: 'decryptedMessageMediaAudio', duration?: int, size?: int}|array{_: 'decryptedMessageMediaVideo', thumb?: string, thumb_w?: int, thumb_h?: int, duration?: int, mime_type?: string, w?: int, h?: int, size?: int}|array{_: 'decryptedMessageMediaAudio', duration?: int, mime_type?: string, size?: int}|array{_: 'decryptedMessageMediaExternalDocument', thumb: array{_: 'photoSizeEmpty', type?: string}|array{_: 'photoSize', type?: string, w?: int, h?: int, size?: int}|array{_: 'photoCachedSize', type?: string, w?: int, h?: int, bytes?: string}|array{_: 'photoStrippedSize', type?: string, bytes?: string}|array{_: 'photoSizeProgressive', type?: string, w?: int, h?: int, sizes?: list}|array{_: 'photoPathSize', type?: string, bytes?: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id?: int, local_id?: int, secret?: int}|array{_: 'fileLocation', dc_id?: int, volume_id?: int, local_id?: int, secret?: int}, type?: string, w?: int, h?: int, size?: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id?: int, local_id?: int, secret?: int}|array{_: 'fileLocation', dc_id?: int, volume_id?: int, local_id?: int, secret?: int}, type?: string, w?: int, h?: int, bytes?: string}, id?: int, access_hash?: int, date?: int, mime_type?: string, size?: int, dc_id?: int, attributes?: list}|array{_: 'decryptedMessageMediaPhoto', thumb?: string, thumb_w?: int, thumb_h?: int, w?: int, h?: int, size?: int, caption?: string}|array{_: 'decryptedMessageMediaVideo', thumb?: string, thumb_w?: int, thumb_h?: int, duration?: int, mime_type?: string, w?: int, h?: int, size?: int, caption?: string}|array{_: 'decryptedMessageMediaDocument', thumb?: string, thumb_w?: int, thumb_h?: int, mime_type?: string, size?: int, attributes?: list, caption?: string}|array{_: 'decryptedMessageMediaVenue', lat: float, long: float, title?: string, address?: string, provider?: string, venue_id?: string}|array{_: 'decryptedMessageMediaWebPage', url?: string}|array{_: 'decryptedMessageMediaDocument', thumb?: string, thumb_w?: int, thumb_h?: int, mime_type?: string, size?: int, attributes?: list, caption?: string}, entities?: list, via_bot_name?: string, reply_to_random_id?: int, grouped_id?: int} $message TL-serialization of [DecryptedMessage](https://docs.madelineproto.xyz/API_docs/types/DecryptedMessage.html) type, encrypted with a key generated during chat initialization @see https://docs.madelineproto.xyz/API_docs/types/DecryptedMessage.html + * @param array{_: 'decryptedMessage', media: array{_: 'decryptedMessageMediaEmpty'}|array{_: 'decryptedMessageMediaPhoto', thumb?: array, thumb_w?: array, thumb_h?: array, w?: array, h?: array, size?: array}|array{_: 'decryptedMessageMediaVideo', thumb?: array, thumb_w?: array, thumb_h?: array, duration?: array, w?: array, h?: array, size?: array}|array{_: 'decryptedMessageMediaGeoPoint', lat: array, long: array}|array{_: 'decryptedMessageMediaContact', phone_number?: array, first_name?: array, last_name?: array, user_id?: array}|array{_: 'decryptedMessageMediaDocument', thumb?: array, thumb_w?: array, thumb_h?: array, file_name?: array, mime_type?: array, size?: array}|array{_: 'decryptedMessageMediaAudio', duration?: array, size?: array}|array{_: 'decryptedMessageMediaVideo', thumb?: array, thumb_w?: array, thumb_h?: array, duration?: array, mime_type?: array, w?: array, h?: array, size?: array}|array{_: 'decryptedMessageMediaAudio', duration?: array, mime_type?: array, size?: array}|array{_: 'decryptedMessageMediaExternalDocument', thumb: array, id?: array, access_hash?: array, date?: array, mime_type?: array, size?: array, dc_id?: array, attributes?: list}|array{_: 'decryptedMessageMediaPhoto', thumb?: array, thumb_w?: array, thumb_h?: array, w?: array, h?: array, size?: array, caption?: array}|array{_: 'decryptedMessageMediaVideo', thumb?: array, thumb_w?: array, thumb_h?: array, duration?: array, mime_type?: array, w?: array, h?: array, size?: array, caption?: array}|array{_: 'decryptedMessageMediaDocument', thumb?: array, thumb_w?: array, thumb_h?: array, mime_type?: array, size?: array, attributes?: list, caption?: array}|array{_: 'decryptedMessageMediaVenue', lat: array, long: array, title?: array, address?: array, provider?: array, venue_id?: array}|array{_: 'decryptedMessageMediaWebPage', url?: array}|array{_: 'decryptedMessageMediaDocument', thumb?: array, thumb_w?: array, thumb_h?: array, mime_type?: array, size?: array, attributes?: list, caption?: array}, message?: string}|array{_: 'decryptedMessageService', action: array{_: 'decryptedMessageActionSetMessageTTL', ttl_seconds?: array}|array{_: 'decryptedMessageActionReadMessages', random_ids?: list}|array{_: 'decryptedMessageActionDeleteMessages', random_ids?: list}|array{_: 'decryptedMessageActionScreenshotMessages', random_ids?: list}|array{_: 'decryptedMessageActionFlushHistory'}|array{_: 'decryptedMessageActionResend', start_seq_no?: array, end_seq_no?: array}|array{_: 'decryptedMessageActionNotifyLayer', layer?: array}|array{_: 'decryptedMessageActionTyping', action: array}|array{_: 'decryptedMessageActionRequestKey', exchange_id?: array, g_a?: array}|array{_: 'decryptedMessageActionAcceptKey', exchange_id?: array, g_b?: array, key_fingerprint?: array}|array{_: 'decryptedMessageActionAbortKey', exchange_id?: array}|array{_: 'decryptedMessageActionCommitKey', exchange_id?: array, key_fingerprint?: array}|array{_: 'decryptedMessageActionNoop'}}|array{_: 'decryptedMessage', media: array{_: 'decryptedMessageMediaEmpty'}|array{_: 'decryptedMessageMediaPhoto', thumb?: array, thumb_w?: array, thumb_h?: array, w?: array, h?: array, size?: array}|array{_: 'decryptedMessageMediaVideo', thumb?: array, thumb_w?: array, thumb_h?: array, duration?: array, w?: array, h?: array, size?: array}|array{_: 'decryptedMessageMediaGeoPoint', lat: array, long: array}|array{_: 'decryptedMessageMediaContact', phone_number?: array, first_name?: array, last_name?: array, user_id?: array}|array{_: 'decryptedMessageMediaDocument', thumb?: array, thumb_w?: array, thumb_h?: array, file_name?: array, mime_type?: array, size?: array}|array{_: 'decryptedMessageMediaAudio', duration?: array, size?: array}|array{_: 'decryptedMessageMediaVideo', thumb?: array, thumb_w?: array, thumb_h?: array, duration?: array, mime_type?: array, w?: array, h?: array, size?: array}|array{_: 'decryptedMessageMediaAudio', duration?: array, mime_type?: array, size?: array}|array{_: 'decryptedMessageMediaExternalDocument', thumb: array, id?: array, access_hash?: array, date?: array, mime_type?: array, size?: array, dc_id?: array, attributes?: list}|array{_: 'decryptedMessageMediaPhoto', thumb?: array, thumb_w?: array, thumb_h?: array, w?: array, h?: array, size?: array, caption?: array}|array{_: 'decryptedMessageMediaVideo', thumb?: array, thumb_w?: array, thumb_h?: array, duration?: array, mime_type?: array, w?: array, h?: array, size?: array, caption?: array}|array{_: 'decryptedMessageMediaDocument', thumb?: array, thumb_w?: array, thumb_h?: array, mime_type?: array, size?: array, attributes?: list, caption?: array}|array{_: 'decryptedMessageMediaVenue', lat: array, long: array, title?: array, address?: array, provider?: array, venue_id?: array}|array{_: 'decryptedMessageMediaWebPage', url?: array}|array{_: 'decryptedMessageMediaDocument', thumb?: array, thumb_w?: array, thumb_h?: array, mime_type?: array, size?: array, attributes?: list, caption?: array}, ttl?: int, message?: string}|array{_: 'decryptedMessageService', action: array{_: 'decryptedMessageActionSetMessageTTL', ttl_seconds?: array}|array{_: 'decryptedMessageActionReadMessages', random_ids?: list}|array{_: 'decryptedMessageActionDeleteMessages', random_ids?: list}|array{_: 'decryptedMessageActionScreenshotMessages', random_ids?: list}|array{_: 'decryptedMessageActionFlushHistory'}|array{_: 'decryptedMessageActionResend', start_seq_no?: array, end_seq_no?: array}|array{_: 'decryptedMessageActionNotifyLayer', layer?: array}|array{_: 'decryptedMessageActionTyping', action: array}|array{_: 'decryptedMessageActionRequestKey', exchange_id?: array, g_a?: array}|array{_: 'decryptedMessageActionAcceptKey', exchange_id?: array, g_b?: array, key_fingerprint?: array}|array{_: 'decryptedMessageActionAbortKey', exchange_id?: array}|array{_: 'decryptedMessageActionCommitKey', exchange_id?: array, key_fingerprint?: array}|array{_: 'decryptedMessageActionNoop'}}|array{_: 'decryptedMessage', ttl?: int, message?: string, media?: array{_: 'decryptedMessageMediaEmpty'}|array{_: 'decryptedMessageMediaPhoto', thumb?: array, thumb_w?: array, thumb_h?: array, w?: array, h?: array, size?: array}|array{_: 'decryptedMessageMediaVideo', thumb?: array, thumb_w?: array, thumb_h?: array, duration?: array, w?: array, h?: array, size?: array}|array{_: 'decryptedMessageMediaGeoPoint', lat: array, long: array}|array{_: 'decryptedMessageMediaContact', phone_number?: array, first_name?: array, last_name?: array, user_id?: array}|array{_: 'decryptedMessageMediaDocument', thumb?: array, thumb_w?: array, thumb_h?: array, file_name?: array, mime_type?: array, size?: array}|array{_: 'decryptedMessageMediaAudio', duration?: array, size?: array}|array{_: 'decryptedMessageMediaVideo', thumb?: array, thumb_w?: array, thumb_h?: array, duration?: array, mime_type?: array, w?: array, h?: array, size?: array}|array{_: 'decryptedMessageMediaAudio', duration?: array, mime_type?: array, size?: array}|array{_: 'decryptedMessageMediaExternalDocument', thumb: array, id?: array, access_hash?: array, date?: array, mime_type?: array, size?: array, dc_id?: array, attributes?: list}|array{_: 'decryptedMessageMediaPhoto', thumb?: array, thumb_w?: array, thumb_h?: array, w?: array, h?: array, size?: array, caption?: array}|array{_: 'decryptedMessageMediaVideo', thumb?: array, thumb_w?: array, thumb_h?: array, duration?: array, mime_type?: array, w?: array, h?: array, size?: array, caption?: array}|array{_: 'decryptedMessageMediaDocument', thumb?: array, thumb_w?: array, thumb_h?: array, mime_type?: array, size?: array, attributes?: list, caption?: array}|array{_: 'decryptedMessageMediaVenue', lat: array, long: array, title?: array, address?: array, provider?: array, venue_id?: array}|array{_: 'decryptedMessageMediaWebPage', url?: array}|array{_: 'decryptedMessageMediaDocument', thumb?: array, thumb_w?: array, thumb_h?: array, mime_type?: array, size?: array, attributes?: list, caption?: array}, entities?: list, via_bot_name?: string, reply_to_random_id?: int}|array{_: 'decryptedMessage', no_webpage?: bool, silent?: bool, ttl?: int, message?: string, media?: array{_: 'decryptedMessageMediaEmpty'}|array{_: 'decryptedMessageMediaPhoto', thumb?: array, thumb_w?: array, thumb_h?: array, w?: array, h?: array, size?: array}|array{_: 'decryptedMessageMediaVideo', thumb?: array, thumb_w?: array, thumb_h?: array, duration?: array, w?: array, h?: array, size?: array}|array{_: 'decryptedMessageMediaGeoPoint', lat: array, long: array}|array{_: 'decryptedMessageMediaContact', phone_number?: array, first_name?: array, last_name?: array, user_id?: array}|array{_: 'decryptedMessageMediaDocument', thumb?: array, thumb_w?: array, thumb_h?: array, file_name?: array, mime_type?: array, size?: array}|array{_: 'decryptedMessageMediaAudio', duration?: array, size?: array}|array{_: 'decryptedMessageMediaVideo', thumb?: array, thumb_w?: array, thumb_h?: array, duration?: array, mime_type?: array, w?: array, h?: array, size?: array}|array{_: 'decryptedMessageMediaAudio', duration?: array, mime_type?: array, size?: array}|array{_: 'decryptedMessageMediaExternalDocument', thumb: array, id?: array, access_hash?: array, date?: array, mime_type?: array, size?: array, dc_id?: array, attributes?: list}|array{_: 'decryptedMessageMediaPhoto', thumb?: array, thumb_w?: array, thumb_h?: array, w?: array, h?: array, size?: array, caption?: array}|array{_: 'decryptedMessageMediaVideo', thumb?: array, thumb_w?: array, thumb_h?: array, duration?: array, mime_type?: array, w?: array, h?: array, size?: array, caption?: array}|array{_: 'decryptedMessageMediaDocument', thumb?: array, thumb_w?: array, thumb_h?: array, mime_type?: array, size?: array, attributes?: list, caption?: array}|array{_: 'decryptedMessageMediaVenue', lat: array, long: array, title?: array, address?: array, provider?: array, venue_id?: array}|array{_: 'decryptedMessageMediaWebPage', url?: array}|array{_: 'decryptedMessageMediaDocument', thumb?: array, thumb_w?: array, thumb_h?: array, mime_type?: array, size?: array, attributes?: list, caption?: array}, entities?: list, via_bot_name?: string, reply_to_random_id?: int, grouped_id?: int} $message TL-serialization of [DecryptedMessage](https://docs.madelineproto.xyz/API_docs/types/DecryptedMessage.html) type, encrypted with a key generated during chat initialization @see https://docs.madelineproto.xyz/API_docs/types/DecryptedMessage.html * @return array{_: 'messages.sentEncryptedMessage', date: int}|array{_: 'messages.sentEncryptedFile', file: array{_: 'encryptedFileEmpty'}|array{_: 'encryptedFile', id: int, access_hash: int, size: int, dc_id: int, key_fingerprint: int}, date: int} @see https://docs.madelineproto.xyz/API_docs/types/messages.SentEncryptedMessage.html */ public function sendEncryptedService(array $peer, array $message): array; /** - * Report a secret chat for spam + * Report a secret chat for spam. * * @param array $peer The secret chat to report @see https://docs.madelineproto.xyz/API_docs/types/InputEncryptedChat.html - * @return bool */ public function reportEncryptedSpam(array $peer): bool; @@ -303,16 +291,16 @@ public function reportEncryptedSpam(array $peer): bool; public function readMessageContents(array $id = []): array; /** - * Get stickers by emoji + * Get stickers by emoji. * * @param string $emoticon The emoji * @param list|array $hash [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) - * @return array{_: 'messages.stickersNotModified'}|array{_: 'messages.stickers', hash: list, stickers: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int, attributes: list}>} @see https://docs.madelineproto.xyz/API_docs/types/messages.Stickers.html + * @return array{_: 'messages.stickersNotModified'}|array{_: 'messages.stickers', hash: list, stickers: list, video_thumbs: list, dc_id: array, attributes: list}>} @see https://docs.madelineproto.xyz/API_docs/types/messages.Stickers.html */ public function getStickers(string $emoticon = '', array $hash = []): array; /** - * Get all installed stickers + * Get all installed stickers. * * @param list|array $hash [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) * @return array{_: 'messages.allStickersNotModified'}|array{_: 'messages.allStickers', hash: list, sets: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}>} @see https://docs.madelineproto.xyz/API_docs/types/messages.AllStickers.html @@ -320,17 +308,17 @@ public function getStickers(string $emoticon = '', array $hash = []): array; public function getAllStickers(array $hash = []): array; /** - * Get preview of webpage + * Get preview of webpage. * * @param string $message Message from which to extract the preview * @param list|array $entities Array of [Message entities for styled text](https://core.telegram.org/api/entities) @see https://docs.madelineproto.xyz/API_docs/types/MessageEntity.html * @param ''|'HTML'|'html'|'Markdown'|'markdown' $parse_mode Whether to parse HTML or Markdown markup in the message - * @return array{_: 'messageMediaEmpty'}|array{_: 'messageMediaPhoto', spoiler: bool, photo?: array{_: 'photoEmpty', id: array}|array{_: 'photo', has_stickers: array, id: array, access_hash: array, file_reference: array, date: array, sizes: list, video_sizes: list, dc_id: array}, ttl_seconds: int}|array{_: 'messageMediaGeo', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}}|array{_: 'messageMediaContact', phone_number: string, first_name: string, last_name: string, vcard: string, user_id: int}|array{_: 'messageMediaUnsupported'}|array{_: 'messageMediaDocument', nopremium: bool, spoiler: bool, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, ttl_seconds: int}|array{_: 'messageMediaWebPage', webpage: array{_: 'webPageEmpty', id: array}|array{_: 'webPagePending', id: array, date: array}|array{_: 'webPage', id: array, url: array, display_url: array, hash: array, type: array, site_name: array, title: array, description: array, photo?: array, embed_url: array, embed_type: array, embed_width: array, embed_height: array, duration: array, author: array, document?: array, cached_page?: array, attributes: list}|array{_: 'webPageNotModified', cached_page_views: array}}|array{_: 'messageMediaVenue', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, title: string, address: string, provider: string, venue_id: string, venue_type: string}|array{_: 'messageMediaGame', game: array{_: 'game', photo: array, id: array, access_hash: array, short_name: array, title: array, description: array, document?: array}}|array{_: 'messageMediaInvoice', shipping_address_requested: bool, test: bool, title: string, description: string, photo?: array{_: 'webDocument', url: array, access_hash: array, size: array, mime_type: array, attributes: list}|array{_: 'webDocumentNoProxy', url: array, size: array, mime_type: array, attributes: list}, receipt_msg_id: int, currency: string, total_amount: int, start_param: string, extended_media?: array{_: 'messageExtendedMediaPreview', w: array, h: array, thumb?: array, video_duration: array}|array{_: 'messageExtendedMedia', media: array{_: 'messageMediaEmpty'}|array{_: 'messageMediaPhoto', spoiler: bool, photo?: array{_: 'photoEmpty', id: array}|array{_: 'photo', has_stickers: array, id: array, access_hash: array, file_reference: array, date: array, sizes: list, video_sizes: list, dc_id: array}, ttl_seconds: int}|array{_: 'messageMediaGeo', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}}|array{_: 'messageMediaContact', phone_number: string, first_name: string, last_name: string, vcard: string, user_id: int}|array{_: 'messageMediaUnsupported'}|array{_: 'messageMediaDocument', nopremium: bool, spoiler: bool, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, ttl_seconds: int}|array{_: 'messageMediaWebPage', webpage: array{_: 'webPageEmpty', id: array}|array{_: 'webPagePending', id: array, date: array}|array{_: 'webPage', id: array, url: array, display_url: array, hash: array, type: array, site_name: array, title: array, description: array, photo?: array, embed_url: array, embed_type: array, embed_width: array, embed_height: array, duration: array, author: array, document?: array, cached_page?: array, attributes: list}|array{_: 'webPageNotModified', cached_page_views: array}}|array{_: 'messageMediaVenue', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, title: string, address: string, provider: string, venue_id: string, venue_type: string}|array{_: 'messageMediaGame', game: array{_: 'game', photo: array, id: array, access_hash: array, short_name: array, title: array, description: array, document?: array}}|array{_: 'messageMediaGeoLive', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, heading: int, period: int, proximity_notification_radius: int}|array{_: 'messageMediaPoll', poll: array{_: 'poll', id: array, closed: array, public_voters: array, multiple_choice: array, quiz: array, question: array, answers: list, close_period: array, close_date: array}, results: array{_: 'pollResults', min: array, results: list, total_voters: array, recent_voters: list, solution: array, solution_entities: list}}|array{_: 'messageMediaDice', value: int, emoticon: string}}}|array{_: 'messageMediaGeoLive', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, heading: int, period: int, proximity_notification_radius: int}|array{_: 'messageMediaPoll', poll: array{_: 'poll', id: array, closed: array, public_voters: array, multiple_choice: array, quiz: array, question: array, answers: list, close_period: array, close_date: array}, results: array{_: 'pollResults', min: array, results: list, total_voters: array, recent_voters: list, solution: array, solution_entities: list}}|array{_: 'messageMediaDice', value: int, emoticon: string} @see https://docs.madelineproto.xyz/API_docs/types/MessageMedia.html + * @return array{_: 'messageMediaEmpty'}|array{_: 'messageMediaPhoto', spoiler: bool, photo?: array{_: 'photoEmpty', id: array}|array{_: 'photo', has_stickers: array, id: array, access_hash: array, file_reference: array, date: array, sizes: list, video_sizes: list, dc_id: array}, ttl_seconds: int}|array{_: 'messageMediaGeo', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}}|array{_: 'messageMediaContact', phone_number: string, first_name: string, last_name: string, vcard: string, user_id: int}|array{_: 'messageMediaUnsupported'}|array{_: 'messageMediaDocument', nopremium: bool, spoiler: bool, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, ttl_seconds: int}|array{_: 'messageMediaWebPage', webpage: array{_: 'webPageEmpty', id: array}|array{_: 'webPagePending', id: array, date: array}|array{_: 'webPage', id: array, url: array, display_url: array, hash: array, type: array, site_name: array, title: array, description: array, photo?: array{_: 'photoEmpty', id: array}|array{_: 'photo', has_stickers: array, id: array, access_hash: array, file_reference: array, date: array, sizes: list, video_sizes: list, dc_id: array}, embed_url: array, embed_type: array, embed_width: array, embed_height: array, duration: array, author: array, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, cached_page?: array, attributes: list}|array{_: 'webPageNotModified', cached_page_views: array}}|array{_: 'messageMediaVenue', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, title: string, address: string, provider: string, venue_id: string, venue_type: string}|array{_: 'messageMediaGame', game: array{_: 'game', photo: array{_: 'photoEmpty', id: array}|array{_: 'photo', has_stickers: array, id: array, access_hash: array, file_reference: array, date: array, sizes: list, video_sizes: list, dc_id: array}, id: array, access_hash: array, short_name: array, title: array, description: array, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}}}|array{_: 'messageMediaInvoice', shipping_address_requested: bool, test: bool, title: string, description: string, photo?: array{_: 'webDocument', url: array, access_hash: array, size: array, mime_type: array, attributes: list}|array{_: 'webDocumentNoProxy', url: array, size: array, mime_type: array, attributes: list}, receipt_msg_id: int, currency: string, total_amount: int, start_param: string, extended_media?: array{_: 'messageExtendedMediaPreview', w: array, h: array, thumb?: array, video_duration: array}|array{_: 'messageExtendedMedia', media: array{_: 'messageMediaEmpty'}|array{_: 'messageMediaPhoto', spoiler: bool, photo?: array{_: 'photoEmpty', id: array}|array{_: 'photo', has_stickers: array, id: array, access_hash: array, file_reference: array, date: array, sizes: list, video_sizes: list, dc_id: array}, ttl_seconds: int}|array{_: 'messageMediaGeo', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}}|array{_: 'messageMediaContact', phone_number: string, first_name: string, last_name: string, vcard: string, user_id: int}|array{_: 'messageMediaUnsupported'}|array{_: 'messageMediaDocument', nopremium: bool, spoiler: bool, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, ttl_seconds: int}|array{_: 'messageMediaWebPage', webpage: array{_: 'webPageEmpty', id: array}|array{_: 'webPagePending', id: array, date: array}|array{_: 'webPage', id: array, url: array, display_url: array, hash: array, type: array, site_name: array, title: array, description: array, photo?: array{_: 'photoEmpty', id: array}|array{_: 'photo', has_stickers: array, id: array, access_hash: array, file_reference: array, date: array, sizes: list, video_sizes: list, dc_id: array}, embed_url: array, embed_type: array, embed_width: array, embed_height: array, duration: array, author: array, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, cached_page?: array, attributes: list}|array{_: 'webPageNotModified', cached_page_views: array}}|array{_: 'messageMediaVenue', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, title: string, address: string, provider: string, venue_id: string, venue_type: string}|array{_: 'messageMediaGame', game: array{_: 'game', photo: array{_: 'photoEmpty', id: array}|array{_: 'photo', has_stickers: array, id: array, access_hash: array, file_reference: array, date: array, sizes: list, video_sizes: list, dc_id: array}, id: array, access_hash: array, short_name: array, title: array, description: array, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}}}|array{_: 'messageMediaGeoLive', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, heading: int, period: int, proximity_notification_radius: int}|array{_: 'messageMediaPoll', poll: array{_: 'poll', id: array, closed: array, public_voters: array, multiple_choice: array, quiz: array, question: array, answers: list, close_period: array, close_date: array}, results: array{_: 'pollResults', min: array, results: list, total_voters: array, recent_voters: list, solution: array, solution_entities: list}}|array{_: 'messageMediaDice', value: int, emoticon: string}}}|array{_: 'messageMediaGeoLive', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, heading: int, period: int, proximity_notification_radius: int}|array{_: 'messageMediaPoll', poll: array{_: 'poll', id: array, closed: array, public_voters: array, multiple_choice: array, quiz: array, question: array, answers: list, close_period: array, close_date: array}, results: array{_: 'pollResults', min: array, results: list, total_voters: array, recent_voters: list, solution: array, solution_entities: list}}|array{_: 'messageMediaDice', value: int, emoticon: string} @see https://docs.madelineproto.xyz/API_docs/types/MessageMedia.html */ public function getWebPagePreview(string $message = '', array $entities = [], string $parse_mode = ''): array; /** - * Export an invite link for a chat + * Export an invite link for a chat. * * @param array|int|string $peer Chat @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html * @param bool $legacy_revoke_permanent Legacy flag, reproducing legacy behavior of this method: if set, revokes all previous links before creating a new one. Kept for bot API BC, should not be used by modern clients. @@ -343,15 +331,15 @@ public function getWebPagePreview(string $message = '', array $entities = [], st public function exportChatInvite(array|int|string $peer, bool $legacy_revoke_permanent = false, bool $request_needed = false, int $expire_date = 0, int $usage_limit = 0, string $title = ''): array; /** - * Check the validity of a chat invite link and get basic info about it + * Check the validity of a chat invite link and get basic info about it. * * @param string $hash Invite hash from [chat invite deep link »](https://core.telegram.org/api/links#chat-invite-links). - * @return array{_: 'chatInviteAlready', chat: array|int|string}|array{_: 'chatInvite', photo: array{_: 'photoEmpty', id: int}|array{_: 'photo', has_stickers: bool, id: int, access_hash: int, file_reference: string, date: int, sizes: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_sizes: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int}, channel: bool, broadcast: bool, public: bool, megagroup: bool, request_needed: bool, title: string, about: string, participants_count: int, participants: list}|array{_: 'chatInvitePeek', chat: array|int|string, expires: int} @see https://docs.madelineproto.xyz/API_docs/types/ChatInvite.html + * @return array{_: 'chatInviteAlready', chat: array|int|string}|array{_: 'chatInvite', photo: array{_: 'photoEmpty', id: array}|array{_: 'photo', has_stickers: array, id: array, access_hash: array, file_reference: array, date: array, sizes: list, video_sizes: list, dc_id: array}, channel: bool, broadcast: bool, public: bool, megagroup: bool, request_needed: bool, title: string, about: string, participants_count: int, participants: list}|array{_: 'chatInvitePeek', chat: array|int|string, expires: int} @see https://docs.madelineproto.xyz/API_docs/types/ChatInvite.html */ public function checkChatInvite(string $hash = ''): array; /** - * Import a chat invite and join a private chat/supergroup/channel + * Import a chat invite and join a private chat/supergroup/channel. * * @param string $hash `hash` from a [chat invite deep link](https://core.telegram.org/api/links#chat-invite-links) * @return array @see https://docs.madelineproto.xyz/API_docs/types/Updates.html @@ -359,33 +347,31 @@ public function checkChatInvite(string $hash = ''): array; public function importChatInvite(string $hash = ''): array; /** - * Get info about a stickerset + * Get info about a stickerset. * * @param array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id?: int, access_hash?: int}|array{_: 'inputStickerSetShortName', short_name?: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon?: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'} $stickerset Stickerset @see https://docs.madelineproto.xyz/API_docs/types/InputStickerSet.html - * @param int $hash - * @return array{_: 'messages.stickerSet', set: array{_: 'stickerSet', archived: bool, official: bool, masks: bool, animated: bool, videos: bool, emojis: bool, installed_date: int, id: int, access_hash: int, title: string, short_name: string, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}, packs: list}>, keywords: list}>, documents: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int, attributes: list}>}|array{_: 'messages.stickerSetNotModified'} @see https://docs.madelineproto.xyz/API_docs/types/messages.StickerSet.html + * @return array{_: 'messages.stickerSet', set: array{_: 'stickerSet', archived: bool, official: bool, masks: bool, animated: bool, videos: bool, emojis: bool, installed_date: int, id: int, access_hash: int, title: string, short_name: string, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}, packs: list}>, keywords: list}>, documents: list, video_thumbs: list, dc_id: array, attributes: list}>}|array{_: 'messages.stickerSetNotModified'} @see https://docs.madelineproto.xyz/API_docs/types/messages.StickerSet.html */ public function getStickerSet(array $stickerset, int $hash = 0): array; /** - * Install a stickerset + * Install a stickerset. * * @param array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id?: int, access_hash?: int}|array{_: 'inputStickerSetShortName', short_name?: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon?: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'} $stickerset Stickerset to install @see https://docs.madelineproto.xyz/API_docs/types/InputStickerSet.html * @param bool $archived Whether to archive stickerset - * @return array{_: 'messages.stickerSetInstallResultSuccess'}|array{_: 'messages.stickerSetInstallResultArchive', sets: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}, cover: array{_: 'documentEmpty', id: int}|array{_: 'document', id: int, access_hash: int, file_reference: string, date: int, mime_type: string, size: int, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int, attributes: list}}|array{_: 'stickerSetMultiCovered', set: array{_: 'stickerSet', archived: bool, official: bool, masks: bool, animated: bool, videos: bool, emojis: bool, installed_date: int, id: int, access_hash: int, title: string, short_name: string, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}, covers: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int, attributes: list}>}|array{_: 'stickerSetFullCovered', set: array{_: 'stickerSet', archived: bool, official: bool, masks: bool, animated: bool, videos: bool, emojis: bool, installed_date: int, id: int, access_hash: int, title: string, short_name: string, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}, packs: list}>, keywords: list}>, documents: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int, attributes: list}>}|array{_: 'stickerSetNoCovered', set: array{_: 'stickerSet', archived: bool, official: bool, masks: bool, animated: bool, videos: bool, emojis: bool, installed_date: int, id: int, access_hash: int, title: string, short_name: string, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}}>} @see https://docs.madelineproto.xyz/API_docs/types/messages.StickerSetInstallResult.html + * @return array{_: 'messages.stickerSetInstallResultSuccess'}|array{_: 'messages.stickerSetInstallResultArchive', sets: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}, cover: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}}|array{_: 'stickerSetMultiCovered', set: array{_: 'stickerSet', archived: bool, official: bool, masks: bool, animated: bool, videos: bool, emojis: bool, installed_date: int, id: int, access_hash: int, title: string, short_name: string, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}, covers: list, video_thumbs: list, dc_id: array, attributes: list}>}|array{_: 'stickerSetFullCovered', set: array{_: 'stickerSet', archived: bool, official: bool, masks: bool, animated: bool, videos: bool, emojis: bool, installed_date: int, id: int, access_hash: int, title: string, short_name: string, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}, packs: list}>, keywords: list}>, documents: list, video_thumbs: list, dc_id: array, attributes: list}>}|array{_: 'stickerSetNoCovered', set: array{_: 'stickerSet', archived: bool, official: bool, masks: bool, animated: bool, videos: bool, emojis: bool, installed_date: int, id: int, access_hash: int, title: string, short_name: string, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}}>} @see https://docs.madelineproto.xyz/API_docs/types/messages.StickerSetInstallResult.html */ public function installStickerSet(array $stickerset, bool $archived): array; /** - * Uninstall a stickerset + * Uninstall a stickerset. * * @param array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id?: int, access_hash?: int}|array{_: 'inputStickerSetShortName', short_name?: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon?: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'} $stickerset The stickerset to uninstall @see https://docs.madelineproto.xyz/API_docs/types/InputStickerSet.html - * @return bool */ public function uninstallStickerSet(array $stickerset): bool; /** - * Start a conversation with a bot using a [deep linking parameter](https://core.telegram.org/api/links#bot-links) + * Start a conversation with a bot using a [deep linking parameter](https://core.telegram.org/api/links#bot-links). * * @param array|int|string $bot The bot @see https://docs.madelineproto.xyz/API_docs/types/InputUser.html * @param array|int|string $peer The chat where to start the bot, can be the bot's private chat or a group @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html @@ -395,7 +381,7 @@ public function uninstallStickerSet(array $stickerset): bool; public function startBot(array|int|string $bot, array|int|string $peer, string $start_param = ''): array; /** - * Get and increase the view counter of a message sent or forwarded from a [channel](https://core.telegram.org/api/channel) + * Get and increase the view counter of a message sent or forwarded from a [channel](https://core.telegram.org/api/channel). * * @param array|int|string $peer Peer where the message was found @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html * @param bool $increment Whether to mark the message as viewed and increment the view counter @@ -410,12 +396,11 @@ public function getMessagesViews(array|int|string $peer, bool $increment, array * @param array|int|string $chat_id The ID of the group @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html * @param array|int|string $user_id The user to make admin @see https://docs.madelineproto.xyz/API_docs/types/InputUser.html * @param bool $is_admin Whether to make them admin - * @return bool */ public function editChatAdmin(array|int|string $chat_id, array|int|string $user_id, bool $is_admin): bool; /** - * Turn a [basic group into a supergroup](https://core.telegram.org/api/channel#migration) + * Turn a [basic group into a supergroup](https://core.telegram.org/api/channel#migration). * * @param array|int|string $chat_id [Basic group](https://core.telegram.org/api/channel#basic-groups) to migrate @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html * @return array @see https://docs.madelineproto.xyz/API_docs/types/Updates.html @@ -423,7 +408,7 @@ public function editChatAdmin(array|int|string $chat_id, array|int|string $user_ public function migrateChat(array|int|string $chat_id): array; /** - * Search for messages and peers globally + * Search for messages and peers globally. * * @param array{_: 'inputMessagesFilterEmpty'}|array{_: 'inputMessagesFilterPhotos'}|array{_: 'inputMessagesFilterVideo'}|array{_: 'inputMessagesFilterPhotoVideo'}|array{_: 'inputMessagesFilterDocument'}|array{_: 'inputMessagesFilterUrl'}|array{_: 'inputMessagesFilterGif'}|array{_: 'inputMessagesFilterVoice'}|array{_: 'inputMessagesFilterMusic'}|array{_: 'inputMessagesFilterChatPhotos'}|array{_: 'inputMessagesFilterPhoneCalls', missed?: bool}|array{_: 'inputMessagesFilterRoundVoice'}|array{_: 'inputMessagesFilterRoundVideo'}|array{_: 'inputMessagesFilterMyMentions'}|array{_: 'inputMessagesFilterGeo'}|array{_: 'inputMessagesFilterContacts'}|array{_: 'inputMessagesFilterPinned'} $filter Global search filter @see https://docs.madelineproto.xyz/API_docs/types/MessagesFilter.html * @param array|int|string $offset_peer [Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets) @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html @@ -434,71 +419,68 @@ public function migrateChat(array|int|string $chat_id): array; * @param int $offset_rate Initially 0, then set to the [`next_rate` parameter of messages.messagesSlice](https://docs.madelineproto.xyz/API_docs/constructors/messages.messagesSlice.html) * @param int $offset_id [Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets) * @param int $limit [Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets) - * @return array{_: 'messages.messages', messages: list, video_sizes: list, dc_id: array}, ttl_seconds: int}|array{_: 'messageMediaGeo', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}}|array{_: 'messageMediaContact', phone_number: string, first_name: string, last_name: string, vcard: string, user_id: int}|array{_: 'messageMediaUnsupported'}|array{_: 'messageMediaDocument', nopremium: bool, spoiler: bool, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, ttl_seconds: int}|array{_: 'messageMediaWebPage', webpage: array{_: 'webPageEmpty', id: array}|array{_: 'webPagePending', id: array, date: array}|array{_: 'webPage', id: array, url: array, display_url: array, hash: array, type: array, site_name: array, title: array, description: array, photo?: array, embed_url: array, embed_type: array, embed_width: array, embed_height: array, duration: array, author: array, document?: array, cached_page?: array, attributes: list}|array{_: 'webPageNotModified', cached_page_views: array}}|array{_: 'messageMediaVenue', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, title: string, address: string, provider: string, venue_id: string, venue_type: string}|array{_: 'messageMediaGame', game: array{_: 'game', photo: array, id: array, access_hash: array, short_name: array, title: array, description: array, document?: array}}|array{_: 'messageMediaInvoice', shipping_address_requested: bool, test: bool, title: string, description: string, photo?: array{_: 'webDocument', url: array, access_hash: array, size: array, mime_type: array, attributes: list}|array{_: 'webDocumentNoProxy', url: array, size: array, mime_type: array, attributes: list}, receipt_msg_id: int, currency: string, total_amount: int, start_param: string, extended_media?: array{_: 'messageExtendedMediaPreview', w: array, h: array, thumb?: array, video_duration: array}}|array{_: 'messageMediaGeoLive', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, heading: int, period: int, proximity_notification_radius: int}|array{_: 'messageMediaPoll', poll: array{_: 'poll', id: array, closed: array, public_voters: array, multiple_choice: array, quiz: array, question: array, answers: list, close_period: array, close_date: array}, results: array{_: 'pollResults', min: array, results: list, total_voters: array, recent_voters: list, solution: array, solution_entities: list}}|array{_: 'messageMediaDice', value: int, emoticon: string}, reply_markup?: array, entities: list, views: int, forwards: int, replies?: array{_: 'messageReplies', comments: array, replies: array, replies_pts: array, recent_repliers: list, channel_id: array, max_id: array, read_max_id: array}, edit_date: int, post_author: string, grouped_id: int, reactions?: array{_: 'messageReactions', min: array, can_see_list: array, results: list, recent_reactions: list}, restriction_reason: list, ttl_period: int}|array{_: 'messageService', peer_id: array|int|string, action: array{_: 'messageActionEmpty'}|array{_: 'messageActionChatCreate', title: array, users: list}|array{_: 'messageActionChatEditTitle', title: array}|array{_: 'messageActionChatEditPhoto', photo: array}|array{_: 'messageActionChatDeletePhoto'}|array{_: 'messageActionChatAddUser', users: list}|array{_: 'messageActionChatDeleteUser', user_id: array}|array{_: 'messageActionChatJoinedByLink', inviter_id: array}|array{_: 'messageActionChannelCreate', title: array}|array{_: 'messageActionChatMigrateTo', channel_id: array}|array{_: 'messageActionChannelMigrateFrom', chat_id: array, title: array}|array{_: 'messageActionPinMessage'}|array{_: 'messageActionHistoryClear'}|array{_: 'messageActionGameScore', game_id: array, score: array}|array{_: 'messageActionPaymentSentMe', charge: array, recurring_init: array, recurring_used: array, currency: array, total_amount: array, payload: array, info?: array, shipping_option_id: array}|array{_: 'messageActionPaymentSent', recurring_init: array, recurring_used: array, currency: array, total_amount: array, invoice_slug: array}|array{_: 'messageActionPhoneCall', video: array, call_id: array, reason?: array, duration: array}|array{_: 'messageActionScreenshotTaken'}|array{_: 'messageActionCustomAction', message: array}|array{_: 'messageActionBotAllowed', attach_menu: array, domain: array, app?: array}|array{_: 'messageActionSecureValuesSentMe', credentials: array, values: list}|array{_: 'messageActionSecureValuesSent', types: list}|array{_: 'messageActionContactSignUp'}|array{_: 'messageActionGeoProximityReached', from_id: array, to_id: array, distance: array}|array{_: 'messageActionGroupCall', call: array, duration: array}|array{_: 'messageActionInviteToGroupCall', call: array, users: list}|array{_: 'messageActionSetMessagesTTL', period: array, auto_setting_from: array}|array{_: 'messageActionGroupCallScheduled', call: array, schedule_date: array}|array{_: 'messageActionSetChatTheme', emoticon: array}|array{_: 'messageActionChatJoinedByRequest'}|array{_: 'messageActionWebViewDataSentMe', text: array, data: array}|array{_: 'messageActionWebViewDataSent', text: array}|array{_: 'messageActionGiftPremium', currency: array, amount: array, months: array, crypto_currency: array, crypto_amount: array}|array{_: 'messageActionTopicCreate', title: array, icon_color: array, icon_emoji_id: array}|array{_: 'messageActionTopicEdit', title: array, icon_emoji_id: array, closed?: array, hidden?: array}|array{_: 'messageActionSuggestProfilePhoto', photo: array}|array{_: 'messageActionRequestedPeer', peer: array, button_id: array}|array{_: 'messageActionSetChatWallPaper', wallpaper: array}|array{_: 'messageActionSetSameChatWallPaper', wallpaper: array}, out: bool, mentioned: bool, media_unread: bool, silent: bool, post: bool, legacy: bool, id: int, from_id?: array|int|string, reply_to?: array{_: 'messageReplyHeader', reply_to_scheduled: array, forum_topic: array, reply_to_msg_id: array, reply_to_peer_id?: array, reply_to_top_id: array}, date: int, ttl_period: int}>, chats: list, users: list}|array{_: 'messages.messagesSlice', inexact: bool, count: int, next_rate: int, offset_id_offset: int, messages: list, video_sizes: list, dc_id: array}, ttl_seconds: int}|array{_: 'messageMediaGeo', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}}|array{_: 'messageMediaContact', phone_number: string, first_name: string, last_name: string, vcard: string, user_id: int}|array{_: 'messageMediaUnsupported'}|array{_: 'messageMediaDocument', nopremium: bool, spoiler: bool, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, ttl_seconds: int}|array{_: 'messageMediaWebPage', webpage: array{_: 'webPageEmpty', id: array}|array{_: 'webPagePending', id: array, date: array}|array{_: 'webPage', id: array, url: array, display_url: array, hash: array, type: array, site_name: array, title: array, description: array, photo?: array, embed_url: array, embed_type: array, embed_width: array, embed_height: array, duration: array, author: array, document?: array, cached_page?: array, attributes: list}|array{_: 'webPageNotModified', cached_page_views: array}}|array{_: 'messageMediaVenue', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, title: string, address: string, provider: string, venue_id: string, venue_type: string}|array{_: 'messageMediaGame', game: array{_: 'game', photo: array, id: array, access_hash: array, short_name: array, title: array, description: array, document?: array}}|array{_: 'messageMediaInvoice', shipping_address_requested: bool, test: bool, title: string, description: string, photo?: array{_: 'webDocument', url: array, access_hash: array, size: array, mime_type: array, attributes: list}|array{_: 'webDocumentNoProxy', url: array, size: array, mime_type: array, attributes: list}, receipt_msg_id: int, currency: string, total_amount: int, start_param: string, extended_media?: array{_: 'messageExtendedMediaPreview', w: array, h: array, thumb?: array, video_duration: array}}|array{_: 'messageMediaGeoLive', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, heading: int, period: int, proximity_notification_radius: int}|array{_: 'messageMediaPoll', poll: array{_: 'poll', id: array, closed: array, public_voters: array, multiple_choice: array, quiz: array, question: array, answers: list, close_period: array, close_date: array}, results: array{_: 'pollResults', min: array, results: list, total_voters: array, recent_voters: list, solution: array, solution_entities: list}}|array{_: 'messageMediaDice', value: int, emoticon: string}, reply_markup?: array, entities: list, views: int, forwards: int, replies?: array{_: 'messageReplies', comments: array, replies: array, replies_pts: array, recent_repliers: list, channel_id: array, max_id: array, read_max_id: array}, edit_date: int, post_author: string, grouped_id: int, reactions?: array{_: 'messageReactions', min: array, can_see_list: array, results: list, recent_reactions: list}, restriction_reason: list, ttl_period: int}|array{_: 'messageService', peer_id: array|int|string, action: array{_: 'messageActionEmpty'}|array{_: 'messageActionChatCreate', title: array, users: list}|array{_: 'messageActionChatEditTitle', title: array}|array{_: 'messageActionChatEditPhoto', photo: array}|array{_: 'messageActionChatDeletePhoto'}|array{_: 'messageActionChatAddUser', users: list}|array{_: 'messageActionChatDeleteUser', user_id: array}|array{_: 'messageActionChatJoinedByLink', inviter_id: array}|array{_: 'messageActionChannelCreate', title: array}|array{_: 'messageActionChatMigrateTo', channel_id: array}|array{_: 'messageActionChannelMigrateFrom', chat_id: array, title: array}|array{_: 'messageActionPinMessage'}|array{_: 'messageActionHistoryClear'}|array{_: 'messageActionGameScore', game_id: array, score: array}|array{_: 'messageActionPaymentSentMe', charge: array, recurring_init: array, recurring_used: array, currency: array, total_amount: array, payload: array, info?: array, shipping_option_id: array}|array{_: 'messageActionPaymentSent', recurring_init: array, recurring_used: array, currency: array, total_amount: array, invoice_slug: array}|array{_: 'messageActionPhoneCall', video: array, call_id: array, reason?: array, duration: array}|array{_: 'messageActionScreenshotTaken'}|array{_: 'messageActionCustomAction', message: array}|array{_: 'messageActionBotAllowed', attach_menu: array, domain: array, app?: array}|array{_: 'messageActionSecureValuesSentMe', credentials: array, values: list}|array{_: 'messageActionSecureValuesSent', types: list}|array{_: 'messageActionContactSignUp'}|array{_: 'messageActionGeoProximityReached', from_id: array, to_id: array, distance: array}|array{_: 'messageActionGroupCall', call: array, duration: array}|array{_: 'messageActionInviteToGroupCall', call: array, users: list}|array{_: 'messageActionSetMessagesTTL', period: array, auto_setting_from: array}|array{_: 'messageActionGroupCallScheduled', call: array, schedule_date: array}|array{_: 'messageActionSetChatTheme', emoticon: array}|array{_: 'messageActionChatJoinedByRequest'}|array{_: 'messageActionWebViewDataSentMe', text: array, data: array}|array{_: 'messageActionWebViewDataSent', text: array}|array{_: 'messageActionGiftPremium', currency: array, amount: array, months: array, crypto_currency: array, crypto_amount: array}|array{_: 'messageActionTopicCreate', title: array, icon_color: array, icon_emoji_id: array}|array{_: 'messageActionTopicEdit', title: array, icon_emoji_id: array, closed?: array, hidden?: array}|array{_: 'messageActionSuggestProfilePhoto', photo: array}|array{_: 'messageActionRequestedPeer', peer: array, button_id: array}|array{_: 'messageActionSetChatWallPaper', wallpaper: array}|array{_: 'messageActionSetSameChatWallPaper', wallpaper: array}, out: bool, mentioned: bool, media_unread: bool, silent: bool, post: bool, legacy: bool, id: int, from_id?: array|int|string, reply_to?: array{_: 'messageReplyHeader', reply_to_scheduled: array, forum_topic: array, reply_to_msg_id: array, reply_to_peer_id?: array, reply_to_top_id: array}, date: int, ttl_period: int}>, chats: list, users: list}|array{_: 'messages.channelMessages', inexact: bool, pts: int, count: int, offset_id_offset: int, messages: list, video_sizes: list, dc_id: array}, ttl_seconds: int}|array{_: 'messageMediaGeo', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}}|array{_: 'messageMediaContact', phone_number: string, first_name: string, last_name: string, vcard: string, user_id: int}|array{_: 'messageMediaUnsupported'}|array{_: 'messageMediaDocument', nopremium: bool, spoiler: bool, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, ttl_seconds: int}|array{_: 'messageMediaWebPage', webpage: array{_: 'webPageEmpty', id: array}|array{_: 'webPagePending', id: array, date: array}|array{_: 'webPage', id: array, url: array, display_url: array, hash: array, type: array, site_name: array, title: array, description: array, photo?: array, embed_url: array, embed_type: array, embed_width: array, embed_height: array, duration: array, author: array, document?: array, cached_page?: array, attributes: list}|array{_: 'webPageNotModified', cached_page_views: array}}|array{_: 'messageMediaVenue', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, title: string, address: string, provider: string, venue_id: string, venue_type: string}|array{_: 'messageMediaGame', game: array{_: 'game', photo: array, id: array, access_hash: array, short_name: array, title: array, description: array, document?: array}}|array{_: 'messageMediaInvoice', shipping_address_requested: bool, test: bool, title: string, description: string, photo?: array{_: 'webDocument', url: array, access_hash: array, size: array, mime_type: array, attributes: list}|array{_: 'webDocumentNoProxy', url: array, size: array, mime_type: array, attributes: list}, receipt_msg_id: int, currency: string, total_amount: int, start_param: string, extended_media?: array{_: 'messageExtendedMediaPreview', w: array, h: array, thumb?: array, video_duration: array}}|array{_: 'messageMediaGeoLive', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, heading: int, period: int, proximity_notification_radius: int}|array{_: 'messageMediaPoll', poll: array{_: 'poll', id: array, closed: array, public_voters: array, multiple_choice: array, quiz: array, question: array, answers: list, close_period: array, close_date: array}, results: array{_: 'pollResults', min: array, results: list, total_voters: array, recent_voters: list, solution: array, solution_entities: list}}|array{_: 'messageMediaDice', value: int, emoticon: string}, reply_markup?: array, entities: list, views: int, forwards: int, replies?: array{_: 'messageReplies', comments: array, replies: array, replies_pts: array, recent_repliers: list, channel_id: array, max_id: array, read_max_id: array}, edit_date: int, post_author: string, grouped_id: int, reactions?: array{_: 'messageReactions', min: array, can_see_list: array, results: list, recent_reactions: list}, restriction_reason: list, ttl_period: int}|array{_: 'messageService', peer_id: array|int|string, action: array{_: 'messageActionEmpty'}|array{_: 'messageActionChatCreate', title: array, users: list}|array{_: 'messageActionChatEditTitle', title: array}|array{_: 'messageActionChatEditPhoto', photo: array}|array{_: 'messageActionChatDeletePhoto'}|array{_: 'messageActionChatAddUser', users: list}|array{_: 'messageActionChatDeleteUser', user_id: array}|array{_: 'messageActionChatJoinedByLink', inviter_id: array}|array{_: 'messageActionChannelCreate', title: array}|array{_: 'messageActionChatMigrateTo', channel_id: array}|array{_: 'messageActionChannelMigrateFrom', chat_id: array, title: array}|array{_: 'messageActionPinMessage'}|array{_: 'messageActionHistoryClear'}|array{_: 'messageActionGameScore', game_id: array, score: array}|array{_: 'messageActionPaymentSentMe', charge: array, recurring_init: array, recurring_used: array, currency: array, total_amount: array, payload: array, info?: array, shipping_option_id: array}|array{_: 'messageActionPaymentSent', recurring_init: array, recurring_used: array, currency: array, total_amount: array, invoice_slug: array}|array{_: 'messageActionPhoneCall', video: array, call_id: array, reason?: array, duration: array}|array{_: 'messageActionScreenshotTaken'}|array{_: 'messageActionCustomAction', message: array}|array{_: 'messageActionBotAllowed', attach_menu: array, domain: array, app?: array}|array{_: 'messageActionSecureValuesSentMe', credentials: array, values: list}|array{_: 'messageActionSecureValuesSent', types: list}|array{_: 'messageActionContactSignUp'}|array{_: 'messageActionGeoProximityReached', from_id: array, to_id: array, distance: array}|array{_: 'messageActionGroupCall', call: array, duration: array}|array{_: 'messageActionInviteToGroupCall', call: array, users: list}|array{_: 'messageActionSetMessagesTTL', period: array, auto_setting_from: array}|array{_: 'messageActionGroupCallScheduled', call: array, schedule_date: array}|array{_: 'messageActionSetChatTheme', emoticon: array}|array{_: 'messageActionChatJoinedByRequest'}|array{_: 'messageActionWebViewDataSentMe', text: array, data: array}|array{_: 'messageActionWebViewDataSent', text: array}|array{_: 'messageActionGiftPremium', currency: array, amount: array, months: array, crypto_currency: array, crypto_amount: array}|array{_: 'messageActionTopicCreate', title: array, icon_color: array, icon_emoji_id: array}|array{_: 'messageActionTopicEdit', title: array, icon_emoji_id: array, closed?: array, hidden?: array}|array{_: 'messageActionSuggestProfilePhoto', photo: array}|array{_: 'messageActionRequestedPeer', peer: array, button_id: array}|array{_: 'messageActionSetChatWallPaper', wallpaper: array}|array{_: 'messageActionSetSameChatWallPaper', wallpaper: array}, out: bool, mentioned: bool, media_unread: bool, silent: bool, post: bool, legacy: bool, id: int, from_id?: array|int|string, reply_to?: array{_: 'messageReplyHeader', reply_to_scheduled: array, forum_topic: array, reply_to_msg_id: array, reply_to_peer_id?: array, reply_to_top_id: array}, date: int, ttl_period: int}>, topics: list, date: array}}>, chats: list, users: list}|array{_: 'messages.messagesNotModified', count: int} @see https://docs.madelineproto.xyz/API_docs/types/messages.Messages.html + * @return array{_: 'messages.messages', messages: list, chats: list, users: list}|array{_: 'messages.messagesSlice', inexact: array, count: array, next_rate: array, offset_id_offset: array, messages: list, chats: list, users: list}|array{_: 'messages.channelMessages', inexact: array, pts: array, count: array, offset_id_offset: array, messages: list, topics: list, chats: list, users: list}|array{_: 'messages.messagesNotModified', count: array} @see https://docs.madelineproto.xyz/API_docs/types/messages.Messages.html */ public function searchGlobal(array $filter, array|int|string $offset_peer, int $folder_id = 0, string $q = '', int $min_date = 0, int $max_date = 0, int $offset_rate = 0, int $offset_id = 0, int $limit = 0): array; /** - * Reorder installed stickersets + * Reorder installed stickersets. * * @param bool $masks Reorder mask stickersets * @param bool $emojis Reorder [custom emoji stickersets](https://core.telegram.org/api/custom-emoji) * @param list|array $order New stickerset order by stickerset IDs - * @return bool */ public function reorderStickerSets(bool $masks = false, bool $emojis = false, array $order = []): bool; /** - * Get a document by its SHA256 hash, mainly used for gifs + * Get a document by its SHA256 hash, mainly used for gifs. * * @param string $sha256 SHA256 of file * @param int $size Size of the file in bytes * @param string $mime_type Mime type - * @return array{_: 'documentEmpty', id: int}|array{_: 'document', id: int, access_hash: int, file_reference: string, date: int, mime_type: string, size: int, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int, attributes: list} @see https://docs.madelineproto.xyz/API_docs/types/Document.html + * @return array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list} @see https://docs.madelineproto.xyz/API_docs/types/Document.html */ public function getDocumentByHash(string $sha256 = '', int $size = 0, string $mime_type = ''): array; /** - * Get saved GIFs + * Get saved GIFs. * * @param list|array $hash [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) - * @return array{_: 'messages.savedGifsNotModified'}|array{_: 'messages.savedGifs', hash: list, gifs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int, attributes: list}>} @see https://docs.madelineproto.xyz/API_docs/types/messages.SavedGifs.html + * @return array{_: 'messages.savedGifsNotModified'}|array{_: 'messages.savedGifs', hash: list, gifs: list, video_thumbs: list, dc_id: array, attributes: list}>} @see https://docs.madelineproto.xyz/API_docs/types/messages.SavedGifs.html */ public function getSavedGifs(array $hash = []): array; /** - * Add GIF to saved gifs list + * Add GIF to saved gifs list. * * @param array $id GIF to save @see https://docs.madelineproto.xyz/API_docs/types/InputDocument.html * @param bool $unsave Whether to remove GIF from saved gifs list - * @return bool */ public function saveGif(array $id, bool $unsave): bool; /** - * Query an inline bot + * Query an inline bot. * * @param array|int|string $bot The bot to query @see https://docs.madelineproto.xyz/API_docs/types/InputUser.html * @param array|int|string $peer The currently opened chat @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html * @param array{_: 'inputGeoPointEmpty'}|array{_: 'inputGeoPoint', lat: float, long: float, accuracy_radius?: int}|array $geo_point The geolocation, if requested @see https://docs.madelineproto.xyz/API_docs/types/InputGeoPoint.html * @param string $query The query * @param string $offset The offset within the results, will be passed directly as-is to the bot. - * @return array{_: 'messages.botResults', gallery: bool, query_id: int, next_offset: string, switch_pm?: array{_: 'inlineBotSwitchPM', text: string, start_param: string}, switch_webview?: array{_: 'inlineBotWebView', text: string, url: string}, results: list, reply_markup?: array}|array{_: 'botInlineMessageText', no_webpage: bool, message: string, entities: list, reply_markup?: array}|array{_: 'botInlineMessageMediaGeo', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: float, lat: float, access_hash: int, accuracy_radius: int}, heading: int, period: int, proximity_notification_radius: int, reply_markup?: array}|array{_: 'botInlineMessageMediaVenue', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: float, lat: float, access_hash: int, accuracy_radius: int}, title: string, address: string, provider: string, venue_id: string, venue_type: string, reply_markup?: array}|array{_: 'botInlineMessageMediaContact', phone_number: string, first_name: string, last_name: string, vcard: string, reply_markup?: array}|array{_: 'botInlineMessageMediaInvoice', shipping_address_requested: bool, test: bool, title: string, description: string, photo?: array{_: 'webDocument', url: string, access_hash: int, size: int, mime_type: string, attributes: list}|array{_: 'webDocumentNoProxy', url: string, size: int, mime_type: string, attributes: list}, currency: string, total_amount: int, reply_markup?: array}, id: string, type: string, title: string, description: string, url: string, thumb?: array{_: 'webDocument', url: string, access_hash: int, size: int, mime_type: string, attributes: list}|array{_: 'webDocumentNoProxy', url: string, size: int, mime_type: string, attributes: list}, content?: array{_: 'webDocument', url: string, access_hash: int, size: int, mime_type: string, attributes: list}|array{_: 'webDocumentNoProxy', url: string, size: int, mime_type: string, attributes: list}}|array{_: 'botInlineMediaResult', send_message: array{_: 'botInlineMessageMediaAuto', message: string, entities: list, reply_markup?: array}|array{_: 'botInlineMessageText', no_webpage: bool, message: string, entities: list, reply_markup?: array}|array{_: 'botInlineMessageMediaGeo', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: float, lat: float, access_hash: int, accuracy_radius: int}, heading: int, period: int, proximity_notification_radius: int, reply_markup?: array}|array{_: 'botInlineMessageMediaVenue', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: float, lat: float, access_hash: int, accuracy_radius: int}, title: string, address: string, provider: string, venue_id: string, venue_type: string, reply_markup?: array}|array{_: 'botInlineMessageMediaContact', phone_number: string, first_name: string, last_name: string, vcard: string, reply_markup?: array}|array{_: 'botInlineMessageMediaInvoice', shipping_address_requested: bool, test: bool, title: string, description: string, photo?: array{_: 'webDocument', url: string, access_hash: int, size: int, mime_type: string, attributes: list}|array{_: 'webDocumentNoProxy', url: string, size: int, mime_type: string, attributes: list}, currency: string, total_amount: int, reply_markup?: array}, id: string, type: string, photo?: array{_: 'photoEmpty', id: int}|array{_: 'photo', has_stickers: bool, id: int, access_hash: int, file_reference: string, date: int, sizes: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_sizes: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int}, document?: array{_: 'documentEmpty', id: int}|array{_: 'document', id: int, access_hash: int, file_reference: string, date: int, mime_type: string, size: int, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int, attributes: list}, title: string, description: string}>, cache_time: int, users: list} @see https://docs.madelineproto.xyz/API_docs/types/messages.BotResults.html + * @return array{_: 'messages.botResults', gallery: bool, query_id: int, next_offset: string, switch_pm?: array{_: 'inlineBotSwitchPM', text: array, start_param: array}, switch_webview?: array{_: 'inlineBotWebView', text: array, url: array}, results: list, video_sizes: list, dc_id: array}, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, title: array, description: array}>, cache_time: int, users: list} @see https://docs.madelineproto.xyz/API_docs/types/messages.BotResults.html */ public function getInlineBotResults(array|int|string $bot, array|int|string $peer, array $geo_point = [], string $query = '', string $offset = ''): array; /** - * Answer an inline query, for bots only + * Answer an inline query, for bots only. * * @param bool $gallery Set this flag if the results are composed of media files * @param bool $private Set this flag if results may be cached on the server side only for the user that sent the query. By default, results may be returned to any user who sends the same query * @param int $query_id Unique identifier for the answered query - * @param list, reply_markup?: array}|array{_: 'inputBotInlineMessageText', no_webpage?: bool, message?: string, entities?: list, reply_markup?: array}|array{_: 'inputBotInlineMessageMediaGeo', geo_point: array{_: 'inputGeoPointEmpty'}|array{_: 'inputGeoPoint', lat: float, long: float, accuracy_radius?: int}, heading?: int, period?: int, proximity_notification_radius?: int, reply_markup?: array}|array{_: 'inputBotInlineMessageMediaVenue', geo_point: array{_: 'inputGeoPointEmpty'}|array{_: 'inputGeoPoint', lat: float, long: float, accuracy_radius?: int}, title?: string, address?: string, provider?: string, venue_id?: string, venue_type?: string, reply_markup?: array}|array{_: 'inputBotInlineMessageMediaContact', phone_number?: string, first_name?: string, last_name?: string, vcard?: string, reply_markup?: array}|array{_: 'inputBotInlineMessageGame', reply_markup?: array}|array{_: 'inputBotInlineMessageMediaInvoice', invoice: array{_: 'invoice', test?: bool, name_requested?: bool, phone_requested?: bool, email_requested?: bool, shipping_address_requested?: bool, flexible?: bool, phone_to_provider?: bool, email_to_provider?: bool, recurring?: bool, currency?: string, prices?: list, max_tip_amount?: int, suggested_tip_amounts?: list, recurring_terms_url?: string}, provider_data: mixed, title?: string, description?: string, photo?: array{_: 'inputWebDocument', url?: string, size?: int, mime_type?: string, attributes?: list}, payload?: string, provider?: string, reply_markup?: array}, id?: string, type?: string, title?: string, description?: string, url?: string, thumb?: array{_: 'inputWebDocument', url?: string, size?: int, mime_type?: string, attributes?: list}, content?: array{_: 'inputWebDocument', url?: string, size?: int, mime_type?: string, attributes?: list}}|array{_: 'inputBotInlineResultPhoto', photo: array, send_message: array{_: 'inputBotInlineMessageMediaAuto', message?: string, entities?: list, reply_markup?: array}|array{_: 'inputBotInlineMessageText', no_webpage?: bool, message?: string, entities?: list, reply_markup?: array}|array{_: 'inputBotInlineMessageMediaGeo', geo_point: array{_: 'inputGeoPointEmpty'}|array{_: 'inputGeoPoint', lat: float, long: float, accuracy_radius?: int}, heading?: int, period?: int, proximity_notification_radius?: int, reply_markup?: array}|array{_: 'inputBotInlineMessageMediaVenue', geo_point: array{_: 'inputGeoPointEmpty'}|array{_: 'inputGeoPoint', lat: float, long: float, accuracy_radius?: int}, title?: string, address?: string, provider?: string, venue_id?: string, venue_type?: string, reply_markup?: array}|array{_: 'inputBotInlineMessageMediaContact', phone_number?: string, first_name?: string, last_name?: string, vcard?: string, reply_markup?: array}|array{_: 'inputBotInlineMessageGame', reply_markup?: array}|array{_: 'inputBotInlineMessageMediaInvoice', invoice: array{_: 'invoice', test?: bool, name_requested?: bool, phone_requested?: bool, email_requested?: bool, shipping_address_requested?: bool, flexible?: bool, phone_to_provider?: bool, email_to_provider?: bool, recurring?: bool, currency?: string, prices?: list, max_tip_amount?: int, suggested_tip_amounts?: list, recurring_terms_url?: string}, provider_data: mixed, title?: string, description?: string, photo?: array{_: 'inputWebDocument', url?: string, size?: int, mime_type?: string, attributes?: list}, payload?: string, provider?: string, reply_markup?: array}, id?: string, type?: string}|array{_: 'inputBotInlineResultDocument', document: array, send_message: array{_: 'inputBotInlineMessageMediaAuto', message?: string, entities?: list, reply_markup?: array}|array{_: 'inputBotInlineMessageText', no_webpage?: bool, message?: string, entities?: list, reply_markup?: array}|array{_: 'inputBotInlineMessageMediaGeo', geo_point: array{_: 'inputGeoPointEmpty'}|array{_: 'inputGeoPoint', lat: float, long: float, accuracy_radius?: int}, heading?: int, period?: int, proximity_notification_radius?: int, reply_markup?: array}|array{_: 'inputBotInlineMessageMediaVenue', geo_point: array{_: 'inputGeoPointEmpty'}|array{_: 'inputGeoPoint', lat: float, long: float, accuracy_radius?: int}, title?: string, address?: string, provider?: string, venue_id?: string, venue_type?: string, reply_markup?: array}|array{_: 'inputBotInlineMessageMediaContact', phone_number?: string, first_name?: string, last_name?: string, vcard?: string, reply_markup?: array}|array{_: 'inputBotInlineMessageGame', reply_markup?: array}|array{_: 'inputBotInlineMessageMediaInvoice', invoice: array{_: 'invoice', test?: bool, name_requested?: bool, phone_requested?: bool, email_requested?: bool, shipping_address_requested?: bool, flexible?: bool, phone_to_provider?: bool, email_to_provider?: bool, recurring?: bool, currency?: string, prices?: list, max_tip_amount?: int, suggested_tip_amounts?: list, recurring_terms_url?: string}, provider_data: mixed, title?: string, description?: string, photo?: array{_: 'inputWebDocument', url?: string, size?: int, mime_type?: string, attributes?: list}, payload?: string, provider?: string, reply_markup?: array}, id?: string, type?: string, title?: string, description?: string}|array{_: 'inputBotInlineResultGame', send_message: array{_: 'inputBotInlineMessageMediaAuto', message?: string, entities?: list, reply_markup?: array}|array{_: 'inputBotInlineMessageText', no_webpage?: bool, message?: string, entities?: list, reply_markup?: array}|array{_: 'inputBotInlineMessageMediaGeo', geo_point: array{_: 'inputGeoPointEmpty'}|array{_: 'inputGeoPoint', lat: float, long: float, accuracy_radius?: int}, heading?: int, period?: int, proximity_notification_radius?: int, reply_markup?: array}|array{_: 'inputBotInlineMessageMediaVenue', geo_point: array{_: 'inputGeoPointEmpty'}|array{_: 'inputGeoPoint', lat: float, long: float, accuracy_radius?: int}, title?: string, address?: string, provider?: string, venue_id?: string, venue_type?: string, reply_markup?: array}|array{_: 'inputBotInlineMessageMediaContact', phone_number?: string, first_name?: string, last_name?: string, vcard?: string, reply_markup?: array}|array{_: 'inputBotInlineMessageGame', reply_markup?: array}|array{_: 'inputBotInlineMessageMediaInvoice', invoice: array{_: 'invoice', test?: bool, name_requested?: bool, phone_requested?: bool, email_requested?: bool, shipping_address_requested?: bool, flexible?: bool, phone_to_provider?: bool, email_to_provider?: bool, recurring?: bool, currency?: string, prices?: list, max_tip_amount?: int, suggested_tip_amounts?: list, recurring_terms_url?: string}, provider_data: mixed, title?: string, description?: string, photo?: array{_: 'inputWebDocument', url?: string, size?: int, mime_type?: string, attributes?: list}, payload?: string, provider?: string, reply_markup?: array}, id?: string, short_name?: string}>|array $results Array of Vector of results for the inline query @see https://docs.madelineproto.xyz/API_docs/types/InputBotInlineResult.html + * @param list, reply_markup?: array}|array{_: 'inputBotInlineMessageText', no_webpage?: array, message?: array, entities?: list, reply_markup?: array}|array{_: 'inputBotInlineMessageMediaGeo', geo_point: array, heading?: array, period?: array, proximity_notification_radius?: array, reply_markup?: array}|array{_: 'inputBotInlineMessageMediaVenue', geo_point: array, title?: array, address?: array, provider?: array, venue_id?: array, venue_type?: array, reply_markup?: array}|array{_: 'inputBotInlineMessageMediaContact', phone_number?: array, first_name?: array, last_name?: array, vcard?: array, reply_markup?: array}|array{_: 'inputBotInlineMessageGame', reply_markup?: array}|array{_: 'inputBotInlineMessageMediaInvoice', invoice: array, provider_data: array, title?: array, description?: array, photo?: array, payload?: array, provider?: array, reply_markup?: array}, id?: string, type?: string, title?: string, description?: string, url?: string, thumb?: array{_: 'inputWebDocument', url?: array, size?: array, mime_type?: array, attributes?: list}, content?: array{_: 'inputWebDocument', url?: array, size?: array, mime_type?: array, attributes?: list}}|array{_: 'inputBotInlineResultPhoto', photo: array, send_message: array{_: 'inputBotInlineMessageMediaAuto', message?: array, entities?: list, reply_markup?: array}|array{_: 'inputBotInlineMessageText', no_webpage?: array, message?: array, entities?: list, reply_markup?: array}|array{_: 'inputBotInlineMessageMediaGeo', geo_point: array, heading?: array, period?: array, proximity_notification_radius?: array, reply_markup?: array}|array{_: 'inputBotInlineMessageMediaVenue', geo_point: array, title?: array, address?: array, provider?: array, venue_id?: array, venue_type?: array, reply_markup?: array}|array{_: 'inputBotInlineMessageMediaContact', phone_number?: array, first_name?: array, last_name?: array, vcard?: array, reply_markup?: array}|array{_: 'inputBotInlineMessageGame', reply_markup?: array}|array{_: 'inputBotInlineMessageMediaInvoice', invoice: array, provider_data: array, title?: array, description?: array, photo?: array, payload?: array, provider?: array, reply_markup?: array}, id?: string, type?: string}|array{_: 'inputBotInlineResultDocument', document: array, send_message: array{_: 'inputBotInlineMessageMediaAuto', message?: array, entities?: list, reply_markup?: array}|array{_: 'inputBotInlineMessageText', no_webpage?: array, message?: array, entities?: list, reply_markup?: array}|array{_: 'inputBotInlineMessageMediaGeo', geo_point: array, heading?: array, period?: array, proximity_notification_radius?: array, reply_markup?: array}|array{_: 'inputBotInlineMessageMediaVenue', geo_point: array, title?: array, address?: array, provider?: array, venue_id?: array, venue_type?: array, reply_markup?: array}|array{_: 'inputBotInlineMessageMediaContact', phone_number?: array, first_name?: array, last_name?: array, vcard?: array, reply_markup?: array}|array{_: 'inputBotInlineMessageGame', reply_markup?: array}|array{_: 'inputBotInlineMessageMediaInvoice', invoice: array, provider_data: array, title?: array, description?: array, photo?: array, payload?: array, provider?: array, reply_markup?: array}, id?: string, type?: string, title?: string, description?: string}|array{_: 'inputBotInlineResultGame', send_message: array{_: 'inputBotInlineMessageMediaAuto', message?: array, entities?: list, reply_markup?: array}|array{_: 'inputBotInlineMessageText', no_webpage?: array, message?: array, entities?: list, reply_markup?: array}|array{_: 'inputBotInlineMessageMediaGeo', geo_point: array, heading?: array, period?: array, proximity_notification_radius?: array, reply_markup?: array}|array{_: 'inputBotInlineMessageMediaVenue', geo_point: array, title?: array, address?: array, provider?: array, venue_id?: array, venue_type?: array, reply_markup?: array}|array{_: 'inputBotInlineMessageMediaContact', phone_number?: array, first_name?: array, last_name?: array, vcard?: array, reply_markup?: array}|array{_: 'inputBotInlineMessageGame', reply_markup?: array}|array{_: 'inputBotInlineMessageMediaInvoice', invoice: array, provider_data: array, title?: array, description?: array, photo?: array, payload?: array, provider?: array, reply_markup?: array}, id?: string, short_name?: string}>|array $results Array of Vector of results for the inline query @see https://docs.madelineproto.xyz/API_docs/types/InputBotInlineResult.html * @param int $cache_time The maximum amount of time in seconds that the result of the inline query may be cached on the server. Defaults to 300. * @param string $next_offset Pass the offset that a client should send in the next query with the same text to receive more results. Pass an empty string if there are no more results or if you don't support pagination. Offset length can't exceed 64 bytes. * @param array{_: 'inlineBotSwitchPM', text?: string, start_param?: string}|array $switch_pm If passed, clients will display a button with specified text that switches the user to a private chat with the bot and sends the bot a start message with a certain parameter. @see https://docs.madelineproto.xyz/API_docs/types/InlineBotSwitchPM.html * @param array{_: 'inlineBotWebView', text?: string, url?: string}|array $switch_webview @see https://docs.madelineproto.xyz/API_docs/types/InlineBotWebView.html - * @return bool */ public function setInlineBotResults(bool $gallery = false, bool $private = false, int $query_id = 0, array $results = [], int $cache_time = 0, string $next_offset = '', array $switch_pm = [], array $switch_webview = []): bool; @@ -511,7 +493,6 @@ public function setInlineBotResults(bool $gallery = false, bool $private = false * @param bool $clear_draft Whether to clear the [draft](https://core.telegram.org/api/drafts) * @param bool $hide_via Whether to hide the `via @botname` in the resulting message (only for bot usernames encountered in the [config](https://docs.madelineproto.xyz/API_docs/constructors/config.html)) * @param int $reply_to_msg_id ID of the message this message should reply to - * @param int $top_msg_id * @param int $query_id Query ID from [messages.getInlineBotResults](https://docs.madelineproto.xyz/API_docs/methods/messages.getInlineBotResults.html) * @param string $id Result ID from [messages.getInlineBotResults](https://docs.madelineproto.xyz/API_docs/methods/messages.getInlineBotResults.html) * @param int $schedule_date Scheduled message date for scheduled messages @@ -521,7 +502,7 @@ public function setInlineBotResults(bool $gallery = false, bool $private = false public function sendInlineBotResult(array|int|string $peer, bool $silent = false, bool $background = false, bool $clear_draft = false, bool $hide_via = false, int $reply_to_msg_id = 0, int $top_msg_id = 0, int $query_id = 0, string $id = '', int $schedule_date = 0, array|int|string $send_as = []): array; /** - * Find out if a media message's caption can be edited + * Find out if a media message's caption can be edited. * * @param array|int|string $peer Peer where the media was sent @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html * @param int $id ID of message @@ -530,7 +511,7 @@ public function sendInlineBotResult(array|int|string $peer, bool $silent = false public function getMessageEditData(array|int|string $peer, int $id = 0): array; /** - * Edit message + * Edit message. * * @param array|int|string $peer Where was the message sent @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html * @param bool $no_webpage Disable webpage preview @@ -546,7 +527,7 @@ public function getMessageEditData(array|int|string $peer, int $id = 0): array; public function editMessage(array|int|string $peer, bool $no_webpage = false, int $id = 0, string $message = '', array $media = [], array $reply_markup = [], array $entities = [], string $parse_mode = '', int $schedule_date = 0): array; /** - * Edit an inline bot message + * Edit an inline bot message. * * @param array{_: 'inputBotInlineMessageID', dc_id?: int, id?: int, access_hash?: int}|array{_: 'inputBotInlineMessageID64', dc_id?: int, owner_id?: int, id?: int, access_hash?: int} $id Sent inline message ID @see https://docs.madelineproto.xyz/API_docs/types/InputBotInlineMessageID.html * @param bool $no_webpage Disable webpage preview @@ -555,39 +536,37 @@ public function editMessage(array|int|string $peer, bool $no_webpage = false, in * @param array|array $reply_markup Reply markup for inline keyboards @see https://docs.madelineproto.xyz/API_docs/types/ReplyMarkup.html * @param list|array $entities Array of [Message entities for styled text](https://core.telegram.org/api/entities) @see https://docs.madelineproto.xyz/API_docs/types/MessageEntity.html * @param ''|'HTML'|'html'|'Markdown'|'markdown' $parse_mode Whether to parse HTML or Markdown markup in the message - * @return bool */ public function editInlineBotMessage(array $id, bool $no_webpage = false, string $message = '', array $media = [], array $reply_markup = [], array $entities = [], string $parse_mode = ''): bool; /** - * Press an inline callback button and get a callback answer from the bot + * Press an inline callback button and get a callback answer from the bot. * * @param array|int|string $peer Where was the inline keyboard sent @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html * @param bool $game Whether this is a "play game" button * @param int $msg_id ID of the Message with the inline keyboard * @param string $data Callback data - * @param array{_: 'inputCheckPasswordEmpty'}|array{_: 'inputCheckPasswordSRP', srp_id?: int, A?: string, M1?: string}|array $password For buttons [requiring you to verify your identity with your 2FA password](https://docs.madelineproto.xyz/API_docs/constructors/keyboardButtonCallback.html), the SRP payload generated using [SRP](https://core.telegram.org/api/srp). @see https://docs.madelineproto.xyz/API_docs/types/InputCheckPasswordSRP.html + * @param string|array $password For buttons [requiring you to verify your identity with your 2FA password](https://docs.madelineproto.xyz/API_docs/constructors/keyboardButtonCallback.html), the SRP payload generated using [SRP](https://core.telegram.org/api/srp). @see https://docs.madelineproto.xyz/API_docs/types/InputCheckPasswordSRP.html * @return array{_: 'messages.botCallbackAnswer', alert: bool, has_url: bool, native_ui: bool, message: string, url: string, cache_time: int} @see https://docs.madelineproto.xyz/API_docs/types/messages.BotCallbackAnswer.html */ - public function getBotCallbackAnswer(array|int|string $peer, bool $game = false, int $msg_id = 0, string $data = '', array $password = []): array; + public function getBotCallbackAnswer(array|int|string $peer, bool $game = false, int $msg_id = 0, string $data = '', string|array $password = []): array; /** - * Set the callback answer to a user button press (bots only) + * Set the callback answer to a user button press (bots only). * * @param bool $alert Whether to show the message as a popup instead of a toast notification * @param int $query_id Query ID * @param string $message Popup to show * @param string $url URL to open * @param int $cache_time Cache validity - * @return bool */ public function setBotCallbackAnswer(bool $alert = false, int $query_id = 0, string $message = '', string $url = '', int $cache_time = 0): bool; /** - * Get dialog info of specified peers + * Get dialog info of specified peers. * * @param list|array $peers Array of Peers @see https://docs.madelineproto.xyz/API_docs/types/InputDialogPeer.html - * @return array{_: 'messages.peerDialogs', state: array{_: 'updates.state', pts: int, qts: int, date: int, seq: int, unread_count: int}, dialogs: list, date: int}, folder_id: int, ttl_period: int}|array{_: 'dialogFolder', folder: array{_: 'folder', autofill_new_broadcasts: bool, autofill_public_groups: bool, autofill_new_correspondents: bool, id: int, title: string, photo?: array{_: 'chatPhotoEmpty'}|array{_: 'chatPhoto', has_video: bool, photo_id: int, stripped_thumb: string, dc_id: int}}, peer: array|int|string, pinned: bool, top_message: int, unread_muted_peers_count: int, unread_unmuted_peers_count: int, unread_muted_messages_count: int, unread_unmuted_messages_count: int}>, messages: list, video_sizes: list, dc_id: array}, ttl_seconds: int}|array{_: 'messageMediaGeo', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}}|array{_: 'messageMediaContact', phone_number: string, first_name: string, last_name: string, vcard: string, user_id: int}|array{_: 'messageMediaUnsupported'}|array{_: 'messageMediaDocument', nopremium: bool, spoiler: bool, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, ttl_seconds: int}|array{_: 'messageMediaWebPage', webpage: array{_: 'webPageEmpty', id: array}|array{_: 'webPagePending', id: array, date: array}|array{_: 'webPage', id: array, url: array, display_url: array, hash: array, type: array, site_name: array, title: array, description: array, photo?: array, embed_url: array, embed_type: array, embed_width: array, embed_height: array, duration: array, author: array, document?: array, cached_page?: array, attributes: list}|array{_: 'webPageNotModified', cached_page_views: array}}|array{_: 'messageMediaVenue', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, title: string, address: string, provider: string, venue_id: string, venue_type: string}|array{_: 'messageMediaGame', game: array{_: 'game', photo: array, id: array, access_hash: array, short_name: array, title: array, description: array, document?: array}}|array{_: 'messageMediaInvoice', shipping_address_requested: bool, test: bool, title: string, description: string, photo?: array{_: 'webDocument', url: array, access_hash: array, size: array, mime_type: array, attributes: list}|array{_: 'webDocumentNoProxy', url: array, size: array, mime_type: array, attributes: list}, receipt_msg_id: int, currency: string, total_amount: int, start_param: string, extended_media?: array{_: 'messageExtendedMediaPreview', w: array, h: array, thumb?: array, video_duration: array}}|array{_: 'messageMediaGeoLive', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, heading: int, period: int, proximity_notification_radius: int}|array{_: 'messageMediaPoll', poll: array{_: 'poll', id: array, closed: array, public_voters: array, multiple_choice: array, quiz: array, question: array, answers: list, close_period: array, close_date: array}, results: array{_: 'pollResults', min: array, results: list, total_voters: array, recent_voters: list, solution: array, solution_entities: list}}|array{_: 'messageMediaDice', value: int, emoticon: string}, reply_markup?: array, entities: list, views: int, forwards: int, replies?: array{_: 'messageReplies', comments: bool, replies: int, replies_pts: int, recent_repliers: list, channel_id: int, max_id: int, read_max_id: int}, edit_date: int, post_author: string, grouped_id: int, reactions?: array{_: 'messageReactions', min: bool, can_see_list: bool, results: list, recent_reactions: list}, restriction_reason: list, ttl_period: int}|array{_: 'messageService', peer_id: array|int|string, action: array{_: 'messageActionEmpty'}|array{_: 'messageActionChatCreate', title: string, users: list}|array{_: 'messageActionChatEditTitle', title: string}|array{_: 'messageActionChatEditPhoto', photo: array{_: 'photoEmpty', id: int}|array{_: 'photo', has_stickers: bool, id: int, access_hash: int, file_reference: string, date: int, sizes: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: array, local_id: array, secret: array}|array{_: 'fileLocation', dc_id: array, volume_id: array, local_id: array, secret: array}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: array, local_id: array, secret: array}|array{_: 'fileLocation', dc_id: array, volume_id: array, local_id: array, secret: array}, type: string, w: int, h: int, bytes: string}>, video_sizes: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: array, access_hash: array}|array{_: 'inputStickerSetShortName', short_name: array}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: array}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int}}|array{_: 'messageActionChatDeletePhoto'}|array{_: 'messageActionChatAddUser', users: list}|array{_: 'messageActionChatDeleteUser', user_id: int}|array{_: 'messageActionChatJoinedByLink', inviter_id: int}|array{_: 'messageActionChannelCreate', title: string}|array{_: 'messageActionChatMigrateTo', channel_id: int}|array{_: 'messageActionChannelMigrateFrom', chat_id: array|int|string, title: string}|array{_: 'messageActionPinMessage'}|array{_: 'messageActionHistoryClear'}|array{_: 'messageActionGameScore', game_id: int, score: int}|array{_: 'messageActionPaymentSentMe', charge: array{_: 'paymentCharge', id: string, provider_charge_id: string}, recurring_init: bool, recurring_used: bool, currency: string, total_amount: int, payload: string, info?: array{_: 'paymentRequestedInfo', name: string, phone: string, email: string, shipping_address?: array{_: 'postAddress', street_line1: string, street_line2: string, city: string, state: string, country_iso2: string, post_code: string}}, shipping_option_id: string}|array{_: 'messageActionPaymentSent', recurring_init: bool, recurring_used: bool, currency: string, total_amount: int, invoice_slug: string}|array{_: 'messageActionPhoneCall', video: bool, call_id: int, reason?: array{_: 'phoneCallDiscardReasonMissed'}|array{_: 'phoneCallDiscardReasonDisconnect'}|array{_: 'phoneCallDiscardReasonHangup'}|array{_: 'phoneCallDiscardReasonBusy'}, duration: int}|array{_: 'messageActionScreenshotTaken'}|array{_: 'messageActionCustomAction', message: string}|array{_: 'messageActionBotAllowed', attach_menu: bool, domain: string, app?: array{_: 'botAppNotModified'}|array{_: 'botApp', photo: array{_: 'photoEmpty', id: int}|array{_: 'photo', has_stickers: bool, id: int, access_hash: int, file_reference: string, date: int, sizes: list}|array{_: 'photoPathSize', type: array, bytes: array}|array{_: 'photoSize', location: array, type: array, w: array, h: array, size: array}|array{_: 'photoCachedSize', location: array, type: array, w: array, h: array, bytes: array}>, video_sizes: list}|array{_: 'videoSizeStickerMarkup', stickerset: array, sticker_id: array, background_colors: list}>, dc_id: int}, id: int, access_hash: int, short_name: string, title: string, description: string, document?: array{_: 'documentEmpty', id: int}|array{_: 'document', id: int, access_hash: int, file_reference: string, date: int, mime_type: string, size: int, thumbs: list}|array{_: 'photoPathSize', type: array, bytes: array}|array{_: 'photoSize', location: array, type: array, w: array, h: array, size: array}|array{_: 'photoCachedSize', location: array, type: array, w: array, h: array, bytes: array}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array, sticker_id: array, background_colors: list}>, dc_id: int, attributes: list}, hash: list}}|array{_: 'messageActionSecureValuesSentMe', credentials: array{_: 'secureCredentialsEncrypted', data: string, hash: string, secret: string}, values: list, files: list, plain_data?: array{_: 'securePlainPhone', phone: string}|array{_: 'securePlainEmail', email: string}, hash: string}>}|array{_: 'messageActionSecureValuesSent', types: list}|array{_: 'messageActionContactSignUp'}|array{_: 'messageActionGeoProximityReached', from_id: array|int|string, to_id: array|int|string, distance: int}|array{_: 'messageActionGroupCall', call: array{_: 'inputGroupCall', id: int, access_hash: int}, duration: int}|array{_: 'messageActionInviteToGroupCall', call: array{_: 'inputGroupCall', id: int, access_hash: int}, users: list}|array{_: 'messageActionSetMessagesTTL', period: int, auto_setting_from: int}|array{_: 'messageActionGroupCallScheduled', call: array{_: 'inputGroupCall', id: int, access_hash: int}, schedule_date: int}|array{_: 'messageActionSetChatTheme', emoticon: string}|array{_: 'messageActionChatJoinedByRequest'}|array{_: 'messageActionWebViewDataSentMe', text: string, data: string}|array{_: 'messageActionWebViewDataSent', text: string}|array{_: 'messageActionGiftPremium', currency: string, amount: int, months: int, crypto_currency: string, crypto_amount: int}|array{_: 'messageActionTopicCreate', title: string, icon_color: int, icon_emoji_id: int}|array{_: 'messageActionTopicEdit', title: string, icon_emoji_id: int, closed?: bool, hidden?: bool}|array{_: 'messageActionSuggestProfilePhoto', photo: array{_: 'photoEmpty', id: int}|array{_: 'photo', has_stickers: bool, id: int, access_hash: int, file_reference: string, date: int, sizes: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: array, local_id: array, secret: array}|array{_: 'fileLocation', dc_id: array, volume_id: array, local_id: array, secret: array}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: array, local_id: array, secret: array}|array{_: 'fileLocation', dc_id: array, volume_id: array, local_id: array, secret: array}, type: string, w: int, h: int, bytes: string}>, video_sizes: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: array, access_hash: array}|array{_: 'inputStickerSetShortName', short_name: array}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: array}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int}}|array{_: 'messageActionRequestedPeer', peer: array|int|string, button_id: int}|array{_: 'messageActionSetChatWallPaper', wallpaper: array{_: 'wallPaper', document: array{_: 'documentEmpty', id: int}|array{_: 'document', id: int, access_hash: int, file_reference: string, date: int, mime_type: string, size: int, thumbs: list}|array{_: 'photoPathSize', type: array, bytes: array}|array{_: 'photoSize', location: array, type: array, w: array, h: array, size: array}|array{_: 'photoCachedSize', location: array, type: array, w: array, h: array, bytes: array}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array, sticker_id: array, background_colors: list}>, dc_id: int, attributes: list}, id: int, creator: bool, default: bool, pattern: bool, dark: bool, access_hash: int, slug: string, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}|array{_: 'wallPaperNoFile', id: int, default: bool, dark: bool, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}}|array{_: 'messageActionSetSameChatWallPaper', wallpaper: array{_: 'wallPaper', document: array{_: 'documentEmpty', id: int}|array{_: 'document', id: int, access_hash: int, file_reference: string, date: int, mime_type: string, size: int, thumbs: list}|array{_: 'photoPathSize', type: array, bytes: array}|array{_: 'photoSize', location: array, type: array, w: array, h: array, size: array}|array{_: 'photoCachedSize', location: array, type: array, w: array, h: array, bytes: array}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array, sticker_id: array, background_colors: list}>, dc_id: int, attributes: list}, id: int, creator: bool, default: bool, pattern: bool, dark: bool, access_hash: int, slug: string, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}|array{_: 'wallPaperNoFile', id: int, default: bool, dark: bool, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}}, out: bool, mentioned: bool, media_unread: bool, silent: bool, post: bool, legacy: bool, id: int, from_id?: array|int|string, reply_to?: array{_: 'messageReplyHeader', reply_to_scheduled: bool, forum_topic: bool, reply_to_msg_id: int, reply_to_peer_id?: array|int|string, reply_to_top_id: int}, date: int, ttl_period: int}>, chats: list, users: list} @see https://docs.madelineproto.xyz/API_docs/types/messages.PeerDialogs.html + * @return array{_: 'messages.peerDialogs', state: array{_: 'updates.state', pts: int, qts: int, date: int, seq: int, unread_count: int}, dialogs: list, date: int}, folder_id: int, ttl_period: int}|array{_: 'dialogFolder', folder: array{_: 'folder', autofill_new_broadcasts: bool, autofill_public_groups: bool, autofill_new_correspondents: bool, id: int, title: string, photo?: array{_: 'chatPhotoEmpty'}|array{_: 'chatPhoto', has_video: bool, photo_id: int, stripped_thumb: string, dc_id: int}}, peer: array|int|string, pinned: bool, top_message: int, unread_muted_peers_count: int, unread_unmuted_peers_count: int, unread_muted_messages_count: int, unread_unmuted_messages_count: int}>, messages: list, video_sizes: list, dc_id: array}, ttl_seconds: int}|array{_: 'messageMediaGeo', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}}|array{_: 'messageMediaContact', phone_number: string, first_name: string, last_name: string, vcard: string, user_id: int}|array{_: 'messageMediaUnsupported'}|array{_: 'messageMediaDocument', nopremium: bool, spoiler: bool, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, ttl_seconds: int}|array{_: 'messageMediaWebPage', webpage: array{_: 'webPageEmpty', id: array}|array{_: 'webPagePending', id: array, date: array}|array{_: 'webPage', id: array, url: array, display_url: array, hash: array, type: array, site_name: array, title: array, description: array, photo?: array{_: 'photoEmpty', id: array}|array{_: 'photo', has_stickers: array, id: array, access_hash: array, file_reference: array, date: array, sizes: list, video_sizes: list, dc_id: array}, embed_url: array, embed_type: array, embed_width: array, embed_height: array, duration: array, author: array, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, cached_page?: array, attributes: list}|array{_: 'webPageNotModified', cached_page_views: array}}|array{_: 'messageMediaVenue', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, title: string, address: string, provider: string, venue_id: string, venue_type: string}|array{_: 'messageMediaGame', game: array{_: 'game', photo: array{_: 'photoEmpty', id: array}|array{_: 'photo', has_stickers: array, id: array, access_hash: array, file_reference: array, date: array, sizes: list, video_sizes: list, dc_id: array}, id: array, access_hash: array, short_name: array, title: array, description: array, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}}}|array{_: 'messageMediaInvoice', shipping_address_requested: bool, test: bool, title: string, description: string, photo?: array{_: 'webDocument', url: array, access_hash: array, size: array, mime_type: array, attributes: list}|array{_: 'webDocumentNoProxy', url: array, size: array, mime_type: array, attributes: list}, receipt_msg_id: int, currency: string, total_amount: int, start_param: string, extended_media?: array{_: 'messageExtendedMediaPreview', w: array, h: array, thumb?: array, video_duration: array}}|array{_: 'messageMediaGeoLive', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, heading: int, period: int, proximity_notification_radius: int}|array{_: 'messageMediaPoll', poll: array{_: 'poll', id: array, closed: array, public_voters: array, multiple_choice: array, quiz: array, question: array, answers: list, close_period: array, close_date: array}, results: array{_: 'pollResults', min: array, results: list, total_voters: array, recent_voters: list, solution: array, solution_entities: list}}|array{_: 'messageMediaDice', value: int, emoticon: string}, reply_markup?: array, entities: list, views: int, forwards: int, replies?: array{_: 'messageReplies', comments: bool, replies: int, replies_pts: int, recent_repliers: list, channel_id: int, max_id: int, read_max_id: int}, edit_date: int, post_author: string, grouped_id: int, reactions?: array{_: 'messageReactions', min: bool, can_see_list: bool, results: list, recent_reactions: list}, restriction_reason: list, ttl_period: int}|array{_: 'messageService', peer_id: array|int|string, action: array{_: 'messageActionEmpty'}|array{_: 'messageActionChatCreate', title: string, users: list}|array{_: 'messageActionChatEditTitle', title: string}|array{_: 'messageActionChatEditPhoto', photo: array{_: 'photoEmpty', id: array}|array{_: 'photo', has_stickers: array, id: array, access_hash: array, file_reference: array, date: array, sizes: list, video_sizes: list, dc_id: array}}|array{_: 'messageActionChatDeletePhoto'}|array{_: 'messageActionChatAddUser', users: list}|array{_: 'messageActionChatDeleteUser', user_id: int}|array{_: 'messageActionChatJoinedByLink', inviter_id: int}|array{_: 'messageActionChannelCreate', title: string}|array{_: 'messageActionChatMigrateTo', channel_id: int}|array{_: 'messageActionChannelMigrateFrom', chat_id: array|int|string, title: string}|array{_: 'messageActionPinMessage'}|array{_: 'messageActionHistoryClear'}|array{_: 'messageActionGameScore', game_id: int, score: int}|array{_: 'messageActionPaymentSentMe', charge: array{_: 'paymentCharge', id: string, provider_charge_id: string}, recurring_init: bool, recurring_used: bool, currency: string, total_amount: int, payload: string, info?: array{_: 'paymentRequestedInfo', name: string, phone: string, email: string, shipping_address?: array{_: 'postAddress', street_line1: string, street_line2: string, city: string, state: string, country_iso2: string, post_code: string}}, shipping_option_id: string}|array{_: 'messageActionPaymentSent', recurring_init: bool, recurring_used: bool, currency: string, total_amount: int, invoice_slug: string}|array{_: 'messageActionPhoneCall', video: bool, call_id: int, reason?: array{_: 'phoneCallDiscardReasonMissed'}|array{_: 'phoneCallDiscardReasonDisconnect'}|array{_: 'phoneCallDiscardReasonHangup'}|array{_: 'phoneCallDiscardReasonBusy'}, duration: int}|array{_: 'messageActionScreenshotTaken'}|array{_: 'messageActionCustomAction', message: string}|array{_: 'messageActionBotAllowed', attach_menu: bool, domain: string, app?: array{_: 'botAppNotModified'}|array{_: 'botApp', photo: array{_: 'photoEmpty', id: array}|array{_: 'photo', has_stickers: array, id: array, access_hash: array, file_reference: array, date: array, sizes: list, video_sizes: list, dc_id: array}, id: int, access_hash: int, short_name: string, title: string, description: string, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, hash: list}}|array{_: 'messageActionSecureValuesSentMe', credentials: array{_: 'secureCredentialsEncrypted', data: string, hash: string, secret: string}, values: list, files: list, plain_data?: array{_: 'securePlainPhone', phone: string}|array{_: 'securePlainEmail', email: string}, hash: string}>}|array{_: 'messageActionSecureValuesSent', types: list}|array{_: 'messageActionContactSignUp'}|array{_: 'messageActionGeoProximityReached', from_id: array|int|string, to_id: array|int|string, distance: int}|array{_: 'messageActionGroupCall', call: array{_: 'inputGroupCall', id: int, access_hash: int}, duration: int}|array{_: 'messageActionInviteToGroupCall', call: array{_: 'inputGroupCall', id: int, access_hash: int}, users: list}|array{_: 'messageActionSetMessagesTTL', period: int, auto_setting_from: int}|array{_: 'messageActionGroupCallScheduled', call: array{_: 'inputGroupCall', id: int, access_hash: int}, schedule_date: int}|array{_: 'messageActionSetChatTheme', emoticon: string}|array{_: 'messageActionChatJoinedByRequest'}|array{_: 'messageActionWebViewDataSentMe', text: string, data: string}|array{_: 'messageActionWebViewDataSent', text: string}|array{_: 'messageActionGiftPremium', currency: string, amount: int, months: int, crypto_currency: string, crypto_amount: int}|array{_: 'messageActionTopicCreate', title: string, icon_color: int, icon_emoji_id: int}|array{_: 'messageActionTopicEdit', title: string, icon_emoji_id: int, closed?: bool, hidden?: bool}|array{_: 'messageActionSuggestProfilePhoto', photo: array{_: 'photoEmpty', id: array}|array{_: 'photo', has_stickers: array, id: array, access_hash: array, file_reference: array, date: array, sizes: list, video_sizes: list, dc_id: array}}|array{_: 'messageActionRequestedPeer', peer: array|int|string, button_id: int}|array{_: 'messageActionSetChatWallPaper', wallpaper: array{_: 'wallPaper', document: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, id: int, creator: bool, default: bool, pattern: bool, dark: bool, access_hash: int, slug: string, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}|array{_: 'wallPaperNoFile', id: int, default: bool, dark: bool, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}}|array{_: 'messageActionSetSameChatWallPaper', wallpaper: array{_: 'wallPaper', document: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, id: int, creator: bool, default: bool, pattern: bool, dark: bool, access_hash: int, slug: string, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}|array{_: 'wallPaperNoFile', id: int, default: bool, dark: bool, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}}, out: bool, mentioned: bool, media_unread: bool, silent: bool, post: bool, legacy: bool, id: int, from_id?: array|int|string, reply_to?: array{_: 'messageReplyHeader', reply_to_scheduled: bool, forum_topic: bool, reply_to_msg_id: int, reply_to_peer_id?: array|int|string, reply_to_top_id: int}, date: int, ttl_period: int}>, chats: list, users: list} @see https://docs.madelineproto.xyz/API_docs/types/messages.PeerDialogs.html */ public function getPeerDialogs(array $peers = []): array; @@ -597,16 +576,14 @@ public function getPeerDialogs(array $peers = []): array; * @param array|int|string $peer Destination of the message that should be sent @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html * @param bool $no_webpage Disable generation of the webpage preview * @param int $reply_to_msg_id Message ID the message should reply to - * @param int $top_msg_id * @param string $message The draft * @param list|array $entities Array of Message [entities](https://core.telegram.org/api/entities) for styled text @see https://docs.madelineproto.xyz/API_docs/types/MessageEntity.html * @param ''|'HTML'|'html'|'Markdown'|'markdown' $parse_mode Whether to parse HTML or Markdown markup in the message - * @return bool */ public function saveDraft(array|int|string $peer, bool $no_webpage = false, int $reply_to_msg_id = 0, int $top_msg_id = 0, string $message = '', array $entities = [], string $parse_mode = ''): bool; /** - * Return all message [drafts](https://core.telegram.org/api/drafts). + * Return all message [drafts](https://core.telegram.org/api/drafts). * Returns all the latest [updateDraftMessage](https://docs.madelineproto.xyz/API_docs/constructors/updateDraftMessage.html) updates related to all chats with drafts. * * @return array @see https://docs.madelineproto.xyz/API_docs/types/Updates.html @@ -614,61 +591,58 @@ public function saveDraft(array|int|string $peer, bool $no_webpage = false, int public function getAllDrafts(): array; /** - * Get featured stickers + * Get featured stickers. * * @param list|array $hash [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) - * @return array{_: 'messages.featuredStickersNotModified', count: int}|array{_: 'messages.featuredStickers', premium: bool, hash: list, count: int, sets: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}, cover: array{_: 'documentEmpty', id: int}|array{_: 'document', id: int, access_hash: int, file_reference: string, date: int, mime_type: string, size: int, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int, attributes: list}}|array{_: 'stickerSetMultiCovered', set: array{_: 'stickerSet', archived: bool, official: bool, masks: bool, animated: bool, videos: bool, emojis: bool, installed_date: int, id: int, access_hash: int, title: string, short_name: string, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}, covers: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int, attributes: list}>}|array{_: 'stickerSetFullCovered', set: array{_: 'stickerSet', archived: bool, official: bool, masks: bool, animated: bool, videos: bool, emojis: bool, installed_date: int, id: int, access_hash: int, title: string, short_name: string, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}, packs: list}>, keywords: list}>, documents: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int, attributes: list}>}|array{_: 'stickerSetNoCovered', set: array{_: 'stickerSet', archived: bool, official: bool, masks: bool, animated: bool, videos: bool, emojis: bool, installed_date: int, id: int, access_hash: int, title: string, short_name: string, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}}>, unread: list} @see https://docs.madelineproto.xyz/API_docs/types/messages.FeaturedStickers.html + * @return array{_: 'messages.featuredStickersNotModified', count: int}|array{_: 'messages.featuredStickers', premium: bool, hash: list, count: int, sets: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}, cover: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}}|array{_: 'stickerSetMultiCovered', set: array{_: 'stickerSet', archived: bool, official: bool, masks: bool, animated: bool, videos: bool, emojis: bool, installed_date: int, id: int, access_hash: int, title: string, short_name: string, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}, covers: list, video_thumbs: list, dc_id: array, attributes: list}>}|array{_: 'stickerSetFullCovered', set: array{_: 'stickerSet', archived: bool, official: bool, masks: bool, animated: bool, videos: bool, emojis: bool, installed_date: int, id: int, access_hash: int, title: string, short_name: string, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}, packs: list}>, keywords: list}>, documents: list, video_thumbs: list, dc_id: array, attributes: list}>}|array{_: 'stickerSetNoCovered', set: array{_: 'stickerSet', archived: bool, official: bool, masks: bool, animated: bool, videos: bool, emojis: bool, installed_date: int, id: int, access_hash: int, title: string, short_name: string, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}}>, unread: list} @see https://docs.madelineproto.xyz/API_docs/types/messages.FeaturedStickers.html */ public function getFeaturedStickers(array $hash = []): array; /** - * Mark new featured stickers as read + * Mark new featured stickers as read. * * @param list|array $id IDs of stickersets to mark as read - * @return bool */ public function readFeaturedStickers(array $id = []): bool; /** - * Get recent stickers + * Get recent stickers. * * @param bool $attached Get stickers recently attached to photo or video files * @param list|array $hash [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) - * @return array{_: 'messages.recentStickersNotModified'}|array{_: 'messages.recentStickers', hash: list, packs: list}>, stickers: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int, attributes: list}>, dates: list} @see https://docs.madelineproto.xyz/API_docs/types/messages.RecentStickers.html + * @return array{_: 'messages.recentStickersNotModified'}|array{_: 'messages.recentStickers', hash: list, packs: list}>, stickers: list, video_thumbs: list, dc_id: array, attributes: list}>, dates: list} @see https://docs.madelineproto.xyz/API_docs/types/messages.RecentStickers.html */ public function getRecentStickers(bool $attached = false, array $hash = []): array; /** - * Add/remove sticker from recent stickers list + * Add/remove sticker from recent stickers list. * * @param array $id Sticker @see https://docs.madelineproto.xyz/API_docs/types/InputDocument.html * @param bool $unsave Whether to save or unsave the sticker * @param bool $attached Whether to add/remove stickers recently attached to photo or video files - * @return bool */ public function saveRecentSticker(array $id, bool $unsave, bool $attached = false): bool; /** - * Clear recent stickers + * Clear recent stickers. * * @param bool $attached Set this flag to clear the list of stickers recently attached to photo or video files - * @return bool */ public function clearRecentStickers(bool $attached = false): bool; /** - * Get all archived stickers + * Get all archived stickers. * * @param bool $masks Get [mask stickers](https://core.telegram.org/api/stickers#mask-stickers) * @param bool $emojis Get [custom emoji stickers](https://core.telegram.org/api/custom-emoji) * @param int $offset_id [Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets) * @param int $limit Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets) - * @return array{_: 'messages.archivedStickers', count: int, sets: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}, cover: array{_: 'documentEmpty', id: int}|array{_: 'document', id: int, access_hash: int, file_reference: string, date: int, mime_type: string, size: int, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int, attributes: list}}|array{_: 'stickerSetMultiCovered', set: array{_: 'stickerSet', archived: bool, official: bool, masks: bool, animated: bool, videos: bool, emojis: bool, installed_date: int, id: int, access_hash: int, title: string, short_name: string, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}, covers: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int, attributes: list}>}|array{_: 'stickerSetFullCovered', set: array{_: 'stickerSet', archived: bool, official: bool, masks: bool, animated: bool, videos: bool, emojis: bool, installed_date: int, id: int, access_hash: int, title: string, short_name: string, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}, packs: list}>, keywords: list}>, documents: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int, attributes: list}>}|array{_: 'stickerSetNoCovered', set: array{_: 'stickerSet', archived: bool, official: bool, masks: bool, animated: bool, videos: bool, emojis: bool, installed_date: int, id: int, access_hash: int, title: string, short_name: string, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}}>} @see https://docs.madelineproto.xyz/API_docs/types/messages.ArchivedStickers.html + * @return array{_: 'messages.archivedStickers', count: int, sets: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}, cover: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}}|array{_: 'stickerSetMultiCovered', set: array{_: 'stickerSet', archived: bool, official: bool, masks: bool, animated: bool, videos: bool, emojis: bool, installed_date: int, id: int, access_hash: int, title: string, short_name: string, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}, covers: list, video_thumbs: list, dc_id: array, attributes: list}>}|array{_: 'stickerSetFullCovered', set: array{_: 'stickerSet', archived: bool, official: bool, masks: bool, animated: bool, videos: bool, emojis: bool, installed_date: int, id: int, access_hash: int, title: string, short_name: string, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}, packs: list}>, keywords: list}>, documents: list, video_thumbs: list, dc_id: array, attributes: list}>}|array{_: 'stickerSetNoCovered', set: array{_: 'stickerSet', archived: bool, official: bool, masks: bool, animated: bool, videos: bool, emojis: bool, installed_date: int, id: int, access_hash: int, title: string, short_name: string, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}}>} @see https://docs.madelineproto.xyz/API_docs/types/messages.ArchivedStickers.html */ public function getArchivedStickers(bool $masks = false, bool $emojis = false, int $offset_id = 0, int $limit = 0): array; /** - * Get installed mask stickers + * Get installed mask stickers. * * @param list|array $hash [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) * @return array{_: 'messages.allStickersNotModified'}|array{_: 'messages.allStickers', hash: list, sets: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}>} @see https://docs.madelineproto.xyz/API_docs/types/messages.AllStickers.html @@ -676,10 +650,10 @@ public function getArchivedStickers(bool $masks = false, bool $emojis = false, i public function getMaskStickers(array $hash = []): array; /** - * Get stickers attached to a photo or video + * Get stickers attached to a photo or video. * * @param array{_: 'inputStickeredMediaPhoto', id: array}|array{_: 'inputStickeredMediaDocument', id: array} $media Stickered media @see https://docs.madelineproto.xyz/API_docs/types/InputStickeredMedia.html - * @return list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}, cover: array{_: 'documentEmpty', id: int}|array{_: 'document', id: int, access_hash: int, file_reference: string, date: int, mime_type: string, size: int, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int, attributes: list}}|array{_: 'stickerSetMultiCovered', set: array{_: 'stickerSet', archived: bool, official: bool, masks: bool, animated: bool, videos: bool, emojis: bool, installed_date: int, id: int, access_hash: int, title: string, short_name: string, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}, covers: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int, attributes: list}>}|array{_: 'stickerSetFullCovered', set: array{_: 'stickerSet', archived: bool, official: bool, masks: bool, animated: bool, videos: bool, emojis: bool, installed_date: int, id: int, access_hash: int, title: string, short_name: string, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}, packs: list}>, keywords: list}>, documents: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int, attributes: list}>}|array{_: 'stickerSetNoCovered', set: array{_: 'stickerSet', archived: bool, official: bool, masks: bool, animated: bool, videos: bool, emojis: bool, installed_date: int, id: int, access_hash: int, title: string, short_name: string, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}}> Array of @see https://docs.madelineproto.xyz/API_docs/types/StickerSetCovered.html + * @return list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}, cover: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}}|array{_: 'stickerSetMultiCovered', set: array{_: 'stickerSet', archived: bool, official: bool, masks: bool, animated: bool, videos: bool, emojis: bool, installed_date: int, id: int, access_hash: int, title: string, short_name: string, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}, covers: list, video_thumbs: list, dc_id: array, attributes: list}>}|array{_: 'stickerSetFullCovered', set: array{_: 'stickerSet', archived: bool, official: bool, masks: bool, animated: bool, videos: bool, emojis: bool, installed_date: int, id: int, access_hash: int, title: string, short_name: string, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}, packs: list}>, keywords: list}>, documents: list, video_thumbs: list, dc_id: array, attributes: list}>}|array{_: 'stickerSetNoCovered', set: array{_: 'stickerSet', archived: bool, official: bool, masks: bool, animated: bool, videos: bool, emojis: bool, installed_date: int, id: int, access_hash: int, title: string, short_name: string, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}}> Array of @see https://docs.madelineproto.xyz/API_docs/types/StickerSetCovered.html */ public function getAttachedStickers(array $media): array; @@ -704,12 +678,11 @@ public function setGameScore(array|int|string $peer, array|int|string $user_id, * @param bool $edit_message Set this flag if the game message should be automatically edited to include the current scoreboard * @param bool $force Set this flag if the high score is allowed to decrease. This can be useful when fixing mistakes or banning cheaters * @param int $score New score - * @return bool */ public function setInlineGameScore(array $id, array|int|string $user_id, bool $edit_message = false, bool $force = false, int $score = 0): bool; /** - * Get highscores of a game + * Get highscores of a game. * * @param array|int|string $peer Where was the game sent @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html * @param array|int|string $user_id Get high scores made by a certain user @see https://docs.madelineproto.xyz/API_docs/types/InputUser.html @@ -719,7 +692,7 @@ public function setInlineGameScore(array $id, array|int|string $user_id, bool $e public function getGameHighScores(array|int|string $peer, array|int|string $user_id, int $id = 0): array; /** - * Get highscores of a game sent using an inline bot + * Get highscores of a game sent using an inline bot. * * @param array{_: 'inputBotInlineMessageID', dc_id?: int, id?: int, access_hash?: int}|array{_: 'inputBotInlineMessageID64', dc_id?: int, owner_id?: int, id?: int, access_hash?: int} $id ID of inline message @see https://docs.madelineproto.xyz/API_docs/types/InputBotInlineMessageID.html * @param array|int|string $user_id Get high scores of a certain user @see https://docs.madelineproto.xyz/API_docs/types/InputUser.html @@ -728,7 +701,7 @@ public function getGameHighScores(array|int|string $peer, array|int|string $user public function getInlineGameHighScores(array $id, array|int|string $user_id): array; /** - * Get chats in common with a user + * Get chats in common with a user. * * @param array|int|string $user_id User ID @see https://docs.madelineproto.xyz/API_docs/types/InputUser.html * @param int $max_id Maximum ID of chat to return (see [pagination](https://core.telegram.org/api/offsets)) @@ -738,38 +711,35 @@ public function getInlineGameHighScores(array $id, array|int|string $user_id): a public function getCommonChats(array|int|string $user_id, int $max_id = 0, int $limit = 0): array; /** - * Get [instant view](https://instantview.telegram.org) page + * Get [instant view](https://instantview.telegram.org) page. * * @param string $url URL of IV page to fetch - * @param int $hash - * @return array{_: 'webPageEmpty', id: int}|array{_: 'webPagePending', id: int, date: int}|array{_: 'webPage', id: int, url: string, display_url: string, hash: int, type: string, site_name: string, title: string, description: string, photo?: array{_: 'photoEmpty', id: int}|array{_: 'photo', has_stickers: bool, id: int, access_hash: int, file_reference: string, date: int, sizes: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_sizes: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int}, embed_url: string, embed_type: string, embed_width: int, embed_height: int, duration: int, author: string, document?: array{_: 'documentEmpty', id: int}|array{_: 'document', id: int, access_hash: int, file_reference: string, date: int, mime_type: string, size: int, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int, attributes: list}, cached_page?: array{_: 'page', part: bool, rtl: bool, v2: bool, url: string, blocks: list}|array{_: 'textImage', document_id: int, w: int, h: int}}|array{_: 'pageBlockSubtitle', text: array{_: 'textEmpty'}|array{_: 'textPlain', text: string}|array{_: 'textConcat', texts: list}|array{_: 'textImage', document_id: int, w: int, h: int}}|array{_: 'pageBlockAuthorDate', author: array{_: 'textEmpty'}|array{_: 'textPlain', text: string}|array{_: 'textConcat', texts: list}|array{_: 'textImage', document_id: int, w: int, h: int}, published_date: int}|array{_: 'pageBlockHeader', text: array{_: 'textEmpty'}|array{_: 'textPlain', text: string}|array{_: 'textConcat', texts: list}|array{_: 'textImage', document_id: int, w: int, h: int}}|array{_: 'pageBlockSubheader', text: array{_: 'textEmpty'}|array{_: 'textPlain', text: string}|array{_: 'textConcat', texts: list}|array{_: 'textImage', document_id: int, w: int, h: int}}|array{_: 'pageBlockParagraph', text: array{_: 'textEmpty'}|array{_: 'textPlain', text: string}|array{_: 'textConcat', texts: list}|array{_: 'textImage', document_id: int, w: int, h: int}}|array{_: 'pageBlockPreformatted', text: array{_: 'textEmpty'}|array{_: 'textPlain', text: string}|array{_: 'textConcat', texts: list}|array{_: 'textImage', document_id: int, w: int, h: int}, language: string}|array{_: 'pageBlockFooter', text: array{_: 'textEmpty'}|array{_: 'textPlain', text: string}|array{_: 'textConcat', texts: list}|array{_: 'textImage', document_id: int, w: int, h: int}}|array{_: 'pageBlockDivider'}|array{_: 'pageBlockAnchor', name: string}|array{_: 'pageBlockList', items: list}|array{_: 'textImage', document_id: int, w: int, h: int}}>}|array{_: 'pageBlockBlockquote', text: array{_: 'textEmpty'}|array{_: 'textPlain', text: string}|array{_: 'textConcat', texts: list}|array{_: 'textImage', document_id: int, w: int, h: int}, caption: array{_: 'textEmpty'}|array{_: 'textPlain', text: string}|array{_: 'textConcat', texts: list}|array{_: 'textImage', document_id: int, w: int, h: int}}|array{_: 'pageBlockPullquote', text: array{_: 'textEmpty'}|array{_: 'textPlain', text: string}|array{_: 'textConcat', texts: list}|array{_: 'textImage', document_id: int, w: int, h: int}, caption: array{_: 'textEmpty'}|array{_: 'textPlain', text: string}|array{_: 'textConcat', texts: list}|array{_: 'textImage', document_id: int, w: int, h: int}}|array{_: 'pageBlockPhoto', caption: array{_: 'pageCaption', text: array{_: 'textEmpty'}|array{_: 'textPlain', text: string}|array{_: 'textConcat', texts: list}|array{_: 'textImage', document_id: int, w: int, h: int}, credit: array{_: 'textEmpty'}|array{_: 'textPlain', text: string}|array{_: 'textConcat', texts: list}|array{_: 'textImage', document_id: int, w: int, h: int}}, photo_id: int, url: string, webpage_id: int}|array{_: 'pageBlockVideo', caption: array{_: 'pageCaption', text: array{_: 'textEmpty'}|array{_: 'textPlain', text: string}|array{_: 'textConcat', texts: list}|array{_: 'textImage', document_id: int, w: int, h: int}, credit: array{_: 'textEmpty'}|array{_: 'textPlain', text: string}|array{_: 'textConcat', texts: list}|array{_: 'textImage', document_id: int, w: int, h: int}}, autoplay: bool, loop: bool, video_id: int}|array{_: 'pageBlockCover', cover: array{_: 'pageBlockUnsupported'}|array{_: 'pageBlockTitle', text: array{_: 'textEmpty'}|array{_: 'textPlain', text: string}|array{_: 'textConcat', texts: list}|array{_: 'textImage', document_id: int, w: int, h: int}}|array{_: 'pageBlockSubtitle', text: array{_: 'textEmpty'}|array{_: 'textPlain', text: string}|array{_: 'textConcat', texts: list}|array{_: 'textImage', document_id: int, w: int, h: int}}|array{_: 'pageBlockAuthorDate', author: array{_: 'textEmpty'}|array{_: 'textPlain', text: string}|array{_: 'textConcat', texts: list}|array{_: 'textImage', document_id: int, w: int, h: int}, published_date: int}|array{_: 'pageBlockHeader', text: array{_: 'textEmpty'}|array{_: 'textPlain', text: string}|array{_: 'textConcat', texts: list}|array{_: 'textImage', document_id: int, w: int, h: int}}|array{_: 'pageBlockSubheader', text: array{_: 'textEmpty'}|array{_: 'textPlain', text: string}|array{_: 'textConcat', texts: list}|array{_: 'textImage', document_id: int, w: int, h: int}}|array{_: 'pageBlockParagraph', text: array{_: 'textEmpty'}|array{_: 'textPlain', text: string}|array{_: 'textConcat', texts: list}|array{_: 'textImage', document_id: int, w: int, h: int}}|array{_: 'pageBlockPreformatted', text: array{_: 'textEmpty'}|array{_: 'textPlain', text: string}|array{_: 'textConcat', texts: list}|array{_: 'textImage', document_id: int, w: int, h: int}, language: string}|array{_: 'pageBlockFooter', text: array{_: 'textEmpty'}|array{_: 'textPlain', text: string}|array{_: 'textConcat', texts: list}|array{_: 'textImage', document_id: int, w: int, h: int}}|array{_: 'pageBlockDivider'}|array{_: 'pageBlockAnchor', name: string}|array{_: 'pageBlockList', items: list}|array{_: 'textImage', document_id: array, w: array, h: array}}>}|array{_: 'pageBlockBlockquote', text: array{_: 'textEmpty'}|array{_: 'textPlain', text: string}|array{_: 'textConcat', texts: list}|array{_: 'textImage', document_id: int, w: int, h: int}, caption: array{_: 'textEmpty'}|array{_: 'textPlain', text: string}|array{_: 'textConcat', texts: list}|array{_: 'textImage', document_id: int, w: int, h: int}}|array{_: 'pageBlockPullquote', text: array{_: 'textEmpty'}|array{_: 'textPlain', text: string}|array{_: 'textConcat', texts: list}|array{_: 'textImage', document_id: int, w: int, h: int}, caption: array{_: 'textEmpty'}|array{_: 'textPlain', text: string}|array{_: 'textConcat', texts: list}|array{_: 'textImage', document_id: int, w: int, h: int}}|array{_: 'pageBlockPhoto', caption: array{_: 'pageCaption', text: array{_: 'textEmpty'}|array{_: 'textPlain', text: array}|array{_: 'textConcat', texts: list}|array{_: 'textImage', document_id: array, w: array, h: array}, credit: array{_: 'textEmpty'}|array{_: 'textPlain', text: array}|array{_: 'textConcat', texts: list}|array{_: 'textImage', document_id: array, w: array, h: array}}, photo_id: int, url: string, webpage_id: int}|array{_: 'pageBlockVideo', caption: array{_: 'pageCaption', text: array{_: 'textEmpty'}|array{_: 'textPlain', text: array}|array{_: 'textConcat', texts: list}|array{_: 'textImage', document_id: array, w: array, h: array}, credit: array{_: 'textEmpty'}|array{_: 'textPlain', text: array}|array{_: 'textConcat', texts: list}|array{_: 'textImage', document_id: array, w: array, h: array}}, autoplay: bool, loop: bool, video_id: int}|array{_: 'pageBlockEmbed', caption: array{_: 'pageCaption', text: array{_: 'textEmpty'}|array{_: 'textPlain', text: array}|array{_: 'textConcat', texts: list}|array{_: 'textImage', document_id: array, w: array, h: array}, credit: array{_: 'textEmpty'}|array{_: 'textPlain', text: array}|array{_: 'textConcat', texts: list}|array{_: 'textImage', document_id: array, w: array, h: array}}, full_width: bool, allow_scrolling: bool, url: string, html: string, poster_photo_id: int, w: int, h: int}|array{_: 'pageBlockChannel', channel: array|int|string}|array{_: 'pageBlockAudio', caption: array{_: 'pageCaption', text: array{_: 'textEmpty'}|array{_: 'textPlain', text: array}|array{_: 'textConcat', texts: list}|array{_: 'textImage', document_id: array, w: array, h: array}, credit: array{_: 'textEmpty'}|array{_: 'textPlain', text: array}|array{_: 'textConcat', texts: list}|array{_: 'textImage', document_id: array, w: array, h: array}}, audio_id: int}|array{_: 'pageBlockKicker', text: array{_: 'textEmpty'}|array{_: 'textPlain', text: string}|array{_: 'textConcat', texts: list}|array{_: 'textImage', document_id: int, w: int, h: int}}|array{_: 'pageBlockTable', title: array{_: 'textEmpty'}|array{_: 'textPlain', text: string}|array{_: 'textConcat', texts: list}|array{_: 'textImage', document_id: int, w: int, h: int}, bordered: bool, striped: bool, rows: list}>}|array{_: 'pageBlockOrderedList', items: list}|array{_: 'textImage', document_id: array, w: array, h: array}, num: string}>}|array{_: 'pageBlockRelatedArticles', title: array{_: 'textEmpty'}|array{_: 'textPlain', text: string}|array{_: 'textConcat', texts: list}|array{_: 'textImage', document_id: int, w: int, h: int}, articles: list}|array{_: 'pageBlockMap', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: float, lat: float, access_hash: int, accuracy_radius: int}, caption: array{_: 'pageCaption', text: array{_: 'textEmpty'}|array{_: 'textPlain', text: array}|array{_: 'textConcat', texts: list}|array{_: 'textImage', document_id: array, w: array, h: array}, credit: array{_: 'textEmpty'}|array{_: 'textPlain', text: array}|array{_: 'textConcat', texts: list}|array{_: 'textImage', document_id: array, w: array, h: array}}, zoom: int, w: int, h: int}}|array{_: 'pageBlockEmbed', caption: array{_: 'pageCaption', text: array{_: 'textEmpty'}|array{_: 'textPlain', text: string}|array{_: 'textConcat', texts: list}|array{_: 'textImage', document_id: int, w: int, h: int}, credit: array{_: 'textEmpty'}|array{_: 'textPlain', text: string}|array{_: 'textConcat', texts: list}|array{_: 'textImage', document_id: int, w: int, h: int}}, full_width: bool, allow_scrolling: bool, url: string, html: string, poster_photo_id: int, w: int, h: int}|array{_: 'pageBlockChannel', channel: array|int|string}|array{_: 'pageBlockAudio', caption: array{_: 'pageCaption', text: array{_: 'textEmpty'}|array{_: 'textPlain', text: string}|array{_: 'textConcat', texts: list}|array{_: 'textImage', document_id: int, w: int, h: int}, credit: array{_: 'textEmpty'}|array{_: 'textPlain', text: string}|array{_: 'textConcat', texts: list}|array{_: 'textImage', document_id: int, w: int, h: int}}, audio_id: int}|array{_: 'pageBlockKicker', text: array{_: 'textEmpty'}|array{_: 'textPlain', text: string}|array{_: 'textConcat', texts: list}|array{_: 'textImage', document_id: int, w: int, h: int}}|array{_: 'pageBlockTable', title: array{_: 'textEmpty'}|array{_: 'textPlain', text: string}|array{_: 'textConcat', texts: list}|array{_: 'textImage', document_id: int, w: int, h: int}, bordered: bool, striped: bool, rows: list}|array{_: 'textImage', document_id: array, w: array, h: array}, colspan: int, rowspan: int}>}>}|array{_: 'pageBlockOrderedList', items: list}|array{_: 'textImage', document_id: int, w: int, h: int}, num: string}>}|array{_: 'pageBlockRelatedArticles', title: array{_: 'textEmpty'}|array{_: 'textPlain', text: string}|array{_: 'textConcat', texts: list}|array{_: 'textImage', document_id: int, w: int, h: int}, articles: list}|array{_: 'pageBlockMap', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: float, lat: float, access_hash: int, accuracy_radius: int}, caption: array{_: 'pageCaption', text: array{_: 'textEmpty'}|array{_: 'textPlain', text: string}|array{_: 'textConcat', texts: list}|array{_: 'textImage', document_id: int, w: int, h: int}, credit: array{_: 'textEmpty'}|array{_: 'textPlain', text: string}|array{_: 'textConcat', texts: list}|array{_: 'textImage', document_id: int, w: int, h: int}}, zoom: int, w: int, h: int}>, photos: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_sizes: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int}>, documents: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int, attributes: list}>, views: int}, attributes: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int, attributes: list}>, settings?: array{_: 'themeSettings', base_theme: array{_: 'baseThemeClassic'}|array{_: 'baseThemeDay'}|array{_: 'baseThemeNight'}|array{_: 'baseThemeTinted'}|array{_: 'baseThemeArctic'}, message_colors_animated: bool, accent_color: int, outbox_accent_color: int, message_colors: list, wallpaper?: array{_: 'wallPaper', document: array{_: 'documentEmpty', id: int}|array{_: 'document', id: int, access_hash: int, file_reference: string, date: int, mime_type: string, size: int, thumbs: list}|array{_: 'photoPathSize', type: array, bytes: array}|array{_: 'photoSize', location: array, type: array, w: array, h: array, size: array}|array{_: 'photoCachedSize', location: array, type: array, w: array, h: array, bytes: array}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array, sticker_id: array, background_colors: list}>, dc_id: int, attributes: list}, id: int, creator: bool, default: bool, pattern: bool, dark: bool, access_hash: int, slug: string, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}|array{_: 'wallPaperNoFile', id: int, default: bool, dark: bool, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}}}>}|array{_: 'webPageNotModified', cached_page_views: int} @see https://docs.madelineproto.xyz/API_docs/types/WebPage.html + * @return array{_: 'webPageEmpty', id: array}|array{_: 'webPagePending', id: array, date: array}|array{_: 'webPage', id: array, url: array, display_url: array, hash: array, type: array, site_name: array, title: array, description: array, photo?: array{_: 'photoEmpty', id: array}|array{_: 'photo', has_stickers: array, id: array, access_hash: array, file_reference: array, date: array, sizes: list, video_sizes: list, dc_id: array}, embed_url: array, embed_type: array, embed_width: array, embed_height: array, duration: array, author: array, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, cached_page?: array, attributes: list}|array{_: 'webPageNotModified', cached_page_views: array} @see https://docs.madelineproto.xyz/API_docs/types/WebPage.html */ public function getWebPage(string $url = '', int $hash = 0): array; /** - * Pin/unpin a dialog + * Pin/unpin a dialog. * * @param array|int|string $peer The dialog to pin @see https://docs.madelineproto.xyz/API_docs/types/InputDialogPeer.html * @param bool $pinned Whether to pin or unpin the dialog - * @return bool */ public function toggleDialogPin(array|int|string $peer, bool $pinned = false): bool; /** - * Reorder pinned dialogs + * Reorder pinned dialogs. * * @param bool $force If set, dialogs pinned server-side but not present in the `order` field will be unpinned. * @param int $folder_id [Peer folder ID, for more info click here](https://core.telegram.org/api/folders#peer-folders) * @param list|array $order Array of New dialog order @see https://docs.madelineproto.xyz/API_docs/types/InputDialogPeer.html - * @return bool */ public function reorderPinnedDialogs(bool $force = false, int $folder_id = 0, array $order = []): bool; /** - * Get pinned dialogs + * Get pinned dialogs. * * @param int $folder_id [Peer folder ID, for more info click here](https://core.telegram.org/api/folders#peer-folders) - * @return array{_: 'messages.peerDialogs', state: array{_: 'updates.state', pts: int, qts: int, date: int, seq: int, unread_count: int}, dialogs: list, date: int}, folder_id: int, ttl_period: int}|array{_: 'dialogFolder', folder: array{_: 'folder', autofill_new_broadcasts: bool, autofill_public_groups: bool, autofill_new_correspondents: bool, id: int, title: string, photo?: array{_: 'chatPhotoEmpty'}|array{_: 'chatPhoto', has_video: bool, photo_id: int, stripped_thumb: string, dc_id: int}}, peer: array|int|string, pinned: bool, top_message: int, unread_muted_peers_count: int, unread_unmuted_peers_count: int, unread_muted_messages_count: int, unread_unmuted_messages_count: int}>, messages: list, video_sizes: list, dc_id: array}, ttl_seconds: int}|array{_: 'messageMediaGeo', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}}|array{_: 'messageMediaContact', phone_number: string, first_name: string, last_name: string, vcard: string, user_id: int}|array{_: 'messageMediaUnsupported'}|array{_: 'messageMediaDocument', nopremium: bool, spoiler: bool, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, ttl_seconds: int}|array{_: 'messageMediaWebPage', webpage: array{_: 'webPageEmpty', id: array}|array{_: 'webPagePending', id: array, date: array}|array{_: 'webPage', id: array, url: array, display_url: array, hash: array, type: array, site_name: array, title: array, description: array, photo?: array, embed_url: array, embed_type: array, embed_width: array, embed_height: array, duration: array, author: array, document?: array, cached_page?: array, attributes: list}|array{_: 'webPageNotModified', cached_page_views: array}}|array{_: 'messageMediaVenue', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, title: string, address: string, provider: string, venue_id: string, venue_type: string}|array{_: 'messageMediaGame', game: array{_: 'game', photo: array, id: array, access_hash: array, short_name: array, title: array, description: array, document?: array}}|array{_: 'messageMediaInvoice', shipping_address_requested: bool, test: bool, title: string, description: string, photo?: array{_: 'webDocument', url: array, access_hash: array, size: array, mime_type: array, attributes: list}|array{_: 'webDocumentNoProxy', url: array, size: array, mime_type: array, attributes: list}, receipt_msg_id: int, currency: string, total_amount: int, start_param: string, extended_media?: array{_: 'messageExtendedMediaPreview', w: array, h: array, thumb?: array, video_duration: array}}|array{_: 'messageMediaGeoLive', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, heading: int, period: int, proximity_notification_radius: int}|array{_: 'messageMediaPoll', poll: array{_: 'poll', id: array, closed: array, public_voters: array, multiple_choice: array, quiz: array, question: array, answers: list, close_period: array, close_date: array}, results: array{_: 'pollResults', min: array, results: list, total_voters: array, recent_voters: list, solution: array, solution_entities: list}}|array{_: 'messageMediaDice', value: int, emoticon: string}, reply_markup?: array, entities: list, views: int, forwards: int, replies?: array{_: 'messageReplies', comments: bool, replies: int, replies_pts: int, recent_repliers: list, channel_id: int, max_id: int, read_max_id: int}, edit_date: int, post_author: string, grouped_id: int, reactions?: array{_: 'messageReactions', min: bool, can_see_list: bool, results: list, recent_reactions: list}, restriction_reason: list, ttl_period: int}|array{_: 'messageService', peer_id: array|int|string, action: array{_: 'messageActionEmpty'}|array{_: 'messageActionChatCreate', title: string, users: list}|array{_: 'messageActionChatEditTitle', title: string}|array{_: 'messageActionChatEditPhoto', photo: array{_: 'photoEmpty', id: int}|array{_: 'photo', has_stickers: bool, id: int, access_hash: int, file_reference: string, date: int, sizes: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: array, local_id: array, secret: array}|array{_: 'fileLocation', dc_id: array, volume_id: array, local_id: array, secret: array}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: array, local_id: array, secret: array}|array{_: 'fileLocation', dc_id: array, volume_id: array, local_id: array, secret: array}, type: string, w: int, h: int, bytes: string}>, video_sizes: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: array, access_hash: array}|array{_: 'inputStickerSetShortName', short_name: array}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: array}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int}}|array{_: 'messageActionChatDeletePhoto'}|array{_: 'messageActionChatAddUser', users: list}|array{_: 'messageActionChatDeleteUser', user_id: int}|array{_: 'messageActionChatJoinedByLink', inviter_id: int}|array{_: 'messageActionChannelCreate', title: string}|array{_: 'messageActionChatMigrateTo', channel_id: int}|array{_: 'messageActionChannelMigrateFrom', chat_id: array|int|string, title: string}|array{_: 'messageActionPinMessage'}|array{_: 'messageActionHistoryClear'}|array{_: 'messageActionGameScore', game_id: int, score: int}|array{_: 'messageActionPaymentSentMe', charge: array{_: 'paymentCharge', id: string, provider_charge_id: string}, recurring_init: bool, recurring_used: bool, currency: string, total_amount: int, payload: string, info?: array{_: 'paymentRequestedInfo', name: string, phone: string, email: string, shipping_address?: array{_: 'postAddress', street_line1: string, street_line2: string, city: string, state: string, country_iso2: string, post_code: string}}, shipping_option_id: string}|array{_: 'messageActionPaymentSent', recurring_init: bool, recurring_used: bool, currency: string, total_amount: int, invoice_slug: string}|array{_: 'messageActionPhoneCall', video: bool, call_id: int, reason?: array{_: 'phoneCallDiscardReasonMissed'}|array{_: 'phoneCallDiscardReasonDisconnect'}|array{_: 'phoneCallDiscardReasonHangup'}|array{_: 'phoneCallDiscardReasonBusy'}, duration: int}|array{_: 'messageActionScreenshotTaken'}|array{_: 'messageActionCustomAction', message: string}|array{_: 'messageActionBotAllowed', attach_menu: bool, domain: string, app?: array{_: 'botAppNotModified'}|array{_: 'botApp', photo: array{_: 'photoEmpty', id: int}|array{_: 'photo', has_stickers: bool, id: int, access_hash: int, file_reference: string, date: int, sizes: list}|array{_: 'photoPathSize', type: array, bytes: array}|array{_: 'photoSize', location: array, type: array, w: array, h: array, size: array}|array{_: 'photoCachedSize', location: array, type: array, w: array, h: array, bytes: array}>, video_sizes: list}|array{_: 'videoSizeStickerMarkup', stickerset: array, sticker_id: array, background_colors: list}>, dc_id: int}, id: int, access_hash: int, short_name: string, title: string, description: string, document?: array{_: 'documentEmpty', id: int}|array{_: 'document', id: int, access_hash: int, file_reference: string, date: int, mime_type: string, size: int, thumbs: list}|array{_: 'photoPathSize', type: array, bytes: array}|array{_: 'photoSize', location: array, type: array, w: array, h: array, size: array}|array{_: 'photoCachedSize', location: array, type: array, w: array, h: array, bytes: array}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array, sticker_id: array, background_colors: list}>, dc_id: int, attributes: list}, hash: list}}|array{_: 'messageActionSecureValuesSentMe', credentials: array{_: 'secureCredentialsEncrypted', data: string, hash: string, secret: string}, values: list, files: list, plain_data?: array{_: 'securePlainPhone', phone: string}|array{_: 'securePlainEmail', email: string}, hash: string}>}|array{_: 'messageActionSecureValuesSent', types: list}|array{_: 'messageActionContactSignUp'}|array{_: 'messageActionGeoProximityReached', from_id: array|int|string, to_id: array|int|string, distance: int}|array{_: 'messageActionGroupCall', call: array{_: 'inputGroupCall', id: int, access_hash: int}, duration: int}|array{_: 'messageActionInviteToGroupCall', call: array{_: 'inputGroupCall', id: int, access_hash: int}, users: list}|array{_: 'messageActionSetMessagesTTL', period: int, auto_setting_from: int}|array{_: 'messageActionGroupCallScheduled', call: array{_: 'inputGroupCall', id: int, access_hash: int}, schedule_date: int}|array{_: 'messageActionSetChatTheme', emoticon: string}|array{_: 'messageActionChatJoinedByRequest'}|array{_: 'messageActionWebViewDataSentMe', text: string, data: string}|array{_: 'messageActionWebViewDataSent', text: string}|array{_: 'messageActionGiftPremium', currency: string, amount: int, months: int, crypto_currency: string, crypto_amount: int}|array{_: 'messageActionTopicCreate', title: string, icon_color: int, icon_emoji_id: int}|array{_: 'messageActionTopicEdit', title: string, icon_emoji_id: int, closed?: bool, hidden?: bool}|array{_: 'messageActionSuggestProfilePhoto', photo: array{_: 'photoEmpty', id: int}|array{_: 'photo', has_stickers: bool, id: int, access_hash: int, file_reference: string, date: int, sizes: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: array, local_id: array, secret: array}|array{_: 'fileLocation', dc_id: array, volume_id: array, local_id: array, secret: array}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: array, local_id: array, secret: array}|array{_: 'fileLocation', dc_id: array, volume_id: array, local_id: array, secret: array}, type: string, w: int, h: int, bytes: string}>, video_sizes: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: array, access_hash: array}|array{_: 'inputStickerSetShortName', short_name: array}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: array}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int}}|array{_: 'messageActionRequestedPeer', peer: array|int|string, button_id: int}|array{_: 'messageActionSetChatWallPaper', wallpaper: array{_: 'wallPaper', document: array{_: 'documentEmpty', id: int}|array{_: 'document', id: int, access_hash: int, file_reference: string, date: int, mime_type: string, size: int, thumbs: list}|array{_: 'photoPathSize', type: array, bytes: array}|array{_: 'photoSize', location: array, type: array, w: array, h: array, size: array}|array{_: 'photoCachedSize', location: array, type: array, w: array, h: array, bytes: array}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array, sticker_id: array, background_colors: list}>, dc_id: int, attributes: list}, id: int, creator: bool, default: bool, pattern: bool, dark: bool, access_hash: int, slug: string, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}|array{_: 'wallPaperNoFile', id: int, default: bool, dark: bool, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}}|array{_: 'messageActionSetSameChatWallPaper', wallpaper: array{_: 'wallPaper', document: array{_: 'documentEmpty', id: int}|array{_: 'document', id: int, access_hash: int, file_reference: string, date: int, mime_type: string, size: int, thumbs: list}|array{_: 'photoPathSize', type: array, bytes: array}|array{_: 'photoSize', location: array, type: array, w: array, h: array, size: array}|array{_: 'photoCachedSize', location: array, type: array, w: array, h: array, bytes: array}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array, sticker_id: array, background_colors: list}>, dc_id: int, attributes: list}, id: int, creator: bool, default: bool, pattern: bool, dark: bool, access_hash: int, slug: string, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}|array{_: 'wallPaperNoFile', id: int, default: bool, dark: bool, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}}, out: bool, mentioned: bool, media_unread: bool, silent: bool, post: bool, legacy: bool, id: int, from_id?: array|int|string, reply_to?: array{_: 'messageReplyHeader', reply_to_scheduled: bool, forum_topic: bool, reply_to_msg_id: int, reply_to_peer_id?: array|int|string, reply_to_top_id: int}, date: int, ttl_period: int}>, chats: list, users: list} @see https://docs.madelineproto.xyz/API_docs/types/messages.PeerDialogs.html + * @return array{_: 'messages.peerDialogs', state: array{_: 'updates.state', pts: int, qts: int, date: int, seq: int, unread_count: int}, dialogs: list, date: int}, folder_id: int, ttl_period: int}|array{_: 'dialogFolder', folder: array{_: 'folder', autofill_new_broadcasts: bool, autofill_public_groups: bool, autofill_new_correspondents: bool, id: int, title: string, photo?: array{_: 'chatPhotoEmpty'}|array{_: 'chatPhoto', has_video: bool, photo_id: int, stripped_thumb: string, dc_id: int}}, peer: array|int|string, pinned: bool, top_message: int, unread_muted_peers_count: int, unread_unmuted_peers_count: int, unread_muted_messages_count: int, unread_unmuted_messages_count: int}>, messages: list, video_sizes: list, dc_id: array}, ttl_seconds: int}|array{_: 'messageMediaGeo', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}}|array{_: 'messageMediaContact', phone_number: string, first_name: string, last_name: string, vcard: string, user_id: int}|array{_: 'messageMediaUnsupported'}|array{_: 'messageMediaDocument', nopremium: bool, spoiler: bool, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, ttl_seconds: int}|array{_: 'messageMediaWebPage', webpage: array{_: 'webPageEmpty', id: array}|array{_: 'webPagePending', id: array, date: array}|array{_: 'webPage', id: array, url: array, display_url: array, hash: array, type: array, site_name: array, title: array, description: array, photo?: array{_: 'photoEmpty', id: array}|array{_: 'photo', has_stickers: array, id: array, access_hash: array, file_reference: array, date: array, sizes: list, video_sizes: list, dc_id: array}, embed_url: array, embed_type: array, embed_width: array, embed_height: array, duration: array, author: array, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, cached_page?: array, attributes: list}|array{_: 'webPageNotModified', cached_page_views: array}}|array{_: 'messageMediaVenue', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, title: string, address: string, provider: string, venue_id: string, venue_type: string}|array{_: 'messageMediaGame', game: array{_: 'game', photo: array{_: 'photoEmpty', id: array}|array{_: 'photo', has_stickers: array, id: array, access_hash: array, file_reference: array, date: array, sizes: list, video_sizes: list, dc_id: array}, id: array, access_hash: array, short_name: array, title: array, description: array, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}}}|array{_: 'messageMediaInvoice', shipping_address_requested: bool, test: bool, title: string, description: string, photo?: array{_: 'webDocument', url: array, access_hash: array, size: array, mime_type: array, attributes: list}|array{_: 'webDocumentNoProxy', url: array, size: array, mime_type: array, attributes: list}, receipt_msg_id: int, currency: string, total_amount: int, start_param: string, extended_media?: array{_: 'messageExtendedMediaPreview', w: array, h: array, thumb?: array, video_duration: array}}|array{_: 'messageMediaGeoLive', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, heading: int, period: int, proximity_notification_radius: int}|array{_: 'messageMediaPoll', poll: array{_: 'poll', id: array, closed: array, public_voters: array, multiple_choice: array, quiz: array, question: array, answers: list, close_period: array, close_date: array}, results: array{_: 'pollResults', min: array, results: list, total_voters: array, recent_voters: list, solution: array, solution_entities: list}}|array{_: 'messageMediaDice', value: int, emoticon: string}, reply_markup?: array, entities: list, views: int, forwards: int, replies?: array{_: 'messageReplies', comments: bool, replies: int, replies_pts: int, recent_repliers: list, channel_id: int, max_id: int, read_max_id: int}, edit_date: int, post_author: string, grouped_id: int, reactions?: array{_: 'messageReactions', min: bool, can_see_list: bool, results: list, recent_reactions: list}, restriction_reason: list, ttl_period: int}|array{_: 'messageService', peer_id: array|int|string, action: array{_: 'messageActionEmpty'}|array{_: 'messageActionChatCreate', title: string, users: list}|array{_: 'messageActionChatEditTitle', title: string}|array{_: 'messageActionChatEditPhoto', photo: array{_: 'photoEmpty', id: array}|array{_: 'photo', has_stickers: array, id: array, access_hash: array, file_reference: array, date: array, sizes: list, video_sizes: list, dc_id: array}}|array{_: 'messageActionChatDeletePhoto'}|array{_: 'messageActionChatAddUser', users: list}|array{_: 'messageActionChatDeleteUser', user_id: int}|array{_: 'messageActionChatJoinedByLink', inviter_id: int}|array{_: 'messageActionChannelCreate', title: string}|array{_: 'messageActionChatMigrateTo', channel_id: int}|array{_: 'messageActionChannelMigrateFrom', chat_id: array|int|string, title: string}|array{_: 'messageActionPinMessage'}|array{_: 'messageActionHistoryClear'}|array{_: 'messageActionGameScore', game_id: int, score: int}|array{_: 'messageActionPaymentSentMe', charge: array{_: 'paymentCharge', id: string, provider_charge_id: string}, recurring_init: bool, recurring_used: bool, currency: string, total_amount: int, payload: string, info?: array{_: 'paymentRequestedInfo', name: string, phone: string, email: string, shipping_address?: array{_: 'postAddress', street_line1: string, street_line2: string, city: string, state: string, country_iso2: string, post_code: string}}, shipping_option_id: string}|array{_: 'messageActionPaymentSent', recurring_init: bool, recurring_used: bool, currency: string, total_amount: int, invoice_slug: string}|array{_: 'messageActionPhoneCall', video: bool, call_id: int, reason?: array{_: 'phoneCallDiscardReasonMissed'}|array{_: 'phoneCallDiscardReasonDisconnect'}|array{_: 'phoneCallDiscardReasonHangup'}|array{_: 'phoneCallDiscardReasonBusy'}, duration: int}|array{_: 'messageActionScreenshotTaken'}|array{_: 'messageActionCustomAction', message: string}|array{_: 'messageActionBotAllowed', attach_menu: bool, domain: string, app?: array{_: 'botAppNotModified'}|array{_: 'botApp', photo: array{_: 'photoEmpty', id: array}|array{_: 'photo', has_stickers: array, id: array, access_hash: array, file_reference: array, date: array, sizes: list, video_sizes: list, dc_id: array}, id: int, access_hash: int, short_name: string, title: string, description: string, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, hash: list}}|array{_: 'messageActionSecureValuesSentMe', credentials: array{_: 'secureCredentialsEncrypted', data: string, hash: string, secret: string}, values: list, files: list, plain_data?: array{_: 'securePlainPhone', phone: string}|array{_: 'securePlainEmail', email: string}, hash: string}>}|array{_: 'messageActionSecureValuesSent', types: list}|array{_: 'messageActionContactSignUp'}|array{_: 'messageActionGeoProximityReached', from_id: array|int|string, to_id: array|int|string, distance: int}|array{_: 'messageActionGroupCall', call: array{_: 'inputGroupCall', id: int, access_hash: int}, duration: int}|array{_: 'messageActionInviteToGroupCall', call: array{_: 'inputGroupCall', id: int, access_hash: int}, users: list}|array{_: 'messageActionSetMessagesTTL', period: int, auto_setting_from: int}|array{_: 'messageActionGroupCallScheduled', call: array{_: 'inputGroupCall', id: int, access_hash: int}, schedule_date: int}|array{_: 'messageActionSetChatTheme', emoticon: string}|array{_: 'messageActionChatJoinedByRequest'}|array{_: 'messageActionWebViewDataSentMe', text: string, data: string}|array{_: 'messageActionWebViewDataSent', text: string}|array{_: 'messageActionGiftPremium', currency: string, amount: int, months: int, crypto_currency: string, crypto_amount: int}|array{_: 'messageActionTopicCreate', title: string, icon_color: int, icon_emoji_id: int}|array{_: 'messageActionTopicEdit', title: string, icon_emoji_id: int, closed?: bool, hidden?: bool}|array{_: 'messageActionSuggestProfilePhoto', photo: array{_: 'photoEmpty', id: array}|array{_: 'photo', has_stickers: array, id: array, access_hash: array, file_reference: array, date: array, sizes: list, video_sizes: list, dc_id: array}}|array{_: 'messageActionRequestedPeer', peer: array|int|string, button_id: int}|array{_: 'messageActionSetChatWallPaper', wallpaper: array{_: 'wallPaper', document: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, id: int, creator: bool, default: bool, pattern: bool, dark: bool, access_hash: int, slug: string, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}|array{_: 'wallPaperNoFile', id: int, default: bool, dark: bool, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}}|array{_: 'messageActionSetSameChatWallPaper', wallpaper: array{_: 'wallPaper', document: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, id: int, creator: bool, default: bool, pattern: bool, dark: bool, access_hash: int, slug: string, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}|array{_: 'wallPaperNoFile', id: int, default: bool, dark: bool, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}}, out: bool, mentioned: bool, media_unread: bool, silent: bool, post: bool, legacy: bool, id: int, from_id?: array|int|string, reply_to?: array{_: 'messageReplyHeader', reply_to_scheduled: bool, forum_topic: bool, reply_to_msg_id: int, reply_to_peer_id?: array|int|string, reply_to_top_id: int}, date: int, ttl_period: int}>, chats: list, users: list} @see https://docs.madelineproto.xyz/API_docs/types/messages.PeerDialogs.html */ public function getPinnedDialogs(int $folder_id = 0): array; @@ -779,33 +749,31 @@ public function getPinnedDialogs(int $folder_id = 0): array; * @param int $query_id Unique identifier for the query to be answered * @param string $error Error message in human readable form that explains why it is impossible to complete the order (e.g. "Sorry, delivery to your desired address is unavailable"). Telegram will display this message to the user. * @param list}>|array $shipping_options Array of A vector of available shipping options. @see https://docs.madelineproto.xyz/API_docs/types/ShippingOption.html - * @return bool */ public function setBotShippingResults(int $query_id = 0, string $error = '', array $shipping_options = []): bool; /** - * Once the user has confirmed their payment and shipping details, the bot receives an [updateBotPrecheckoutQuery](https://docs.madelineproto.xyz/API_docs/constructors/updateBotPrecheckoutQuery.html) update. - * Use this method to respond to such pre-checkout queries. + * Once the user has confirmed their payment and shipping details, the bot receives an [updateBotPrecheckoutQuery](https://docs.madelineproto.xyz/API_docs/constructors/updateBotPrecheckoutQuery.html) update. + * Use this method to respond to such pre-checkout queries. * **Note**: Telegram must receive an answer within 10 seconds after the pre-checkout query was sent. * * @param bool $success Set this flag if everything is alright (goods are available, etc.) and the bot is ready to proceed with the order, otherwise do not set it, and set the `error` field, instead * @param int $query_id Unique identifier for the query to be answered * @param string $error Required if the `success` isn't set. Error message in human readable form that explains the reason for failure to proceed with the checkout (e.g. "Sorry, somebody just bought the last of our amazing black T-shirts while you were busy filling out your payment details. Please choose a different color or garment!"). Telegram will display this message to the user. - * @return bool */ public function setBotPrecheckoutResults(bool $success = false, int $query_id = 0, string $error = ''): bool; /** - * Upload a file and associate it to a chat (without actually sending it to the chat) + * Upload a file and associate it to a chat (without actually sending it to the chat). * * @param array|int|string $peer The chat, can be [inputPeerEmpty](https://docs.madelineproto.xyz/API_docs/constructors/inputPeerEmpty.html) for bots and [inputPeerSelf](https://docs.madelineproto.xyz/API_docs/constructors/inputPeerSelf.html) for users. @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html * @param array $media File uploaded in chunks as described in [files »](https://core.telegram.org/api/files) @see https://docs.madelineproto.xyz/API_docs/types/InputMedia.html - * @return array{_: 'messageMediaEmpty'}|array{_: 'messageMediaPhoto', spoiler: bool, photo?: array{_: 'photoEmpty', id: array}|array{_: 'photo', has_stickers: array, id: array, access_hash: array, file_reference: array, date: array, sizes: list, video_sizes: list, dc_id: array}, ttl_seconds: int}|array{_: 'messageMediaGeo', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}}|array{_: 'messageMediaContact', phone_number: string, first_name: string, last_name: string, vcard: string, user_id: int}|array{_: 'messageMediaUnsupported'}|array{_: 'messageMediaDocument', nopremium: bool, spoiler: bool, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, ttl_seconds: int}|array{_: 'messageMediaWebPage', webpage: array{_: 'webPageEmpty', id: array}|array{_: 'webPagePending', id: array, date: array}|array{_: 'webPage', id: array, url: array, display_url: array, hash: array, type: array, site_name: array, title: array, description: array, photo?: array, embed_url: array, embed_type: array, embed_width: array, embed_height: array, duration: array, author: array, document?: array, cached_page?: array, attributes: list}|array{_: 'webPageNotModified', cached_page_views: array}}|array{_: 'messageMediaVenue', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, title: string, address: string, provider: string, venue_id: string, venue_type: string}|array{_: 'messageMediaGame', game: array{_: 'game', photo: array, id: array, access_hash: array, short_name: array, title: array, description: array, document?: array}}|array{_: 'messageMediaInvoice', shipping_address_requested: bool, test: bool, title: string, description: string, photo?: array{_: 'webDocument', url: array, access_hash: array, size: array, mime_type: array, attributes: list}|array{_: 'webDocumentNoProxy', url: array, size: array, mime_type: array, attributes: list}, receipt_msg_id: int, currency: string, total_amount: int, start_param: string, extended_media?: array{_: 'messageExtendedMediaPreview', w: array, h: array, thumb?: array, video_duration: array}|array{_: 'messageExtendedMedia', media: array{_: 'messageMediaEmpty'}|array{_: 'messageMediaPhoto', spoiler: bool, photo?: array{_: 'photoEmpty', id: array}|array{_: 'photo', has_stickers: array, id: array, access_hash: array, file_reference: array, date: array, sizes: list, video_sizes: list, dc_id: array}, ttl_seconds: int}|array{_: 'messageMediaGeo', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}}|array{_: 'messageMediaContact', phone_number: string, first_name: string, last_name: string, vcard: string, user_id: int}|array{_: 'messageMediaUnsupported'}|array{_: 'messageMediaDocument', nopremium: bool, spoiler: bool, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, ttl_seconds: int}|array{_: 'messageMediaWebPage', webpage: array{_: 'webPageEmpty', id: array}|array{_: 'webPagePending', id: array, date: array}|array{_: 'webPage', id: array, url: array, display_url: array, hash: array, type: array, site_name: array, title: array, description: array, photo?: array, embed_url: array, embed_type: array, embed_width: array, embed_height: array, duration: array, author: array, document?: array, cached_page?: array, attributes: list}|array{_: 'webPageNotModified', cached_page_views: array}}|array{_: 'messageMediaVenue', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, title: string, address: string, provider: string, venue_id: string, venue_type: string}|array{_: 'messageMediaGame', game: array{_: 'game', photo: array, id: array, access_hash: array, short_name: array, title: array, description: array, document?: array}}|array{_: 'messageMediaGeoLive', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, heading: int, period: int, proximity_notification_radius: int}|array{_: 'messageMediaPoll', poll: array{_: 'poll', id: array, closed: array, public_voters: array, multiple_choice: array, quiz: array, question: array, answers: list, close_period: array, close_date: array}, results: array{_: 'pollResults', min: array, results: list, total_voters: array, recent_voters: list, solution: array, solution_entities: list}}|array{_: 'messageMediaDice', value: int, emoticon: string}}}|array{_: 'messageMediaGeoLive', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, heading: int, period: int, proximity_notification_radius: int}|array{_: 'messageMediaPoll', poll: array{_: 'poll', id: array, closed: array, public_voters: array, multiple_choice: array, quiz: array, question: array, answers: list, close_period: array, close_date: array}, results: array{_: 'pollResults', min: array, results: list, total_voters: array, recent_voters: list, solution: array, solution_entities: list}}|array{_: 'messageMediaDice', value: int, emoticon: string} @see https://docs.madelineproto.xyz/API_docs/types/MessageMedia.html + * @return array{_: 'messageMediaEmpty'}|array{_: 'messageMediaPhoto', spoiler: bool, photo?: array{_: 'photoEmpty', id: array}|array{_: 'photo', has_stickers: array, id: array, access_hash: array, file_reference: array, date: array, sizes: list, video_sizes: list, dc_id: array}, ttl_seconds: int}|array{_: 'messageMediaGeo', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}}|array{_: 'messageMediaContact', phone_number: string, first_name: string, last_name: string, vcard: string, user_id: int}|array{_: 'messageMediaUnsupported'}|array{_: 'messageMediaDocument', nopremium: bool, spoiler: bool, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, ttl_seconds: int}|array{_: 'messageMediaWebPage', webpage: array{_: 'webPageEmpty', id: array}|array{_: 'webPagePending', id: array, date: array}|array{_: 'webPage', id: array, url: array, display_url: array, hash: array, type: array, site_name: array, title: array, description: array, photo?: array{_: 'photoEmpty', id: array}|array{_: 'photo', has_stickers: array, id: array, access_hash: array, file_reference: array, date: array, sizes: list, video_sizes: list, dc_id: array}, embed_url: array, embed_type: array, embed_width: array, embed_height: array, duration: array, author: array, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, cached_page?: array, attributes: list}|array{_: 'webPageNotModified', cached_page_views: array}}|array{_: 'messageMediaVenue', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, title: string, address: string, provider: string, venue_id: string, venue_type: string}|array{_: 'messageMediaGame', game: array{_: 'game', photo: array{_: 'photoEmpty', id: array}|array{_: 'photo', has_stickers: array, id: array, access_hash: array, file_reference: array, date: array, sizes: list, video_sizes: list, dc_id: array}, id: array, access_hash: array, short_name: array, title: array, description: array, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}}}|array{_: 'messageMediaInvoice', shipping_address_requested: bool, test: bool, title: string, description: string, photo?: array{_: 'webDocument', url: array, access_hash: array, size: array, mime_type: array, attributes: list}|array{_: 'webDocumentNoProxy', url: array, size: array, mime_type: array, attributes: list}, receipt_msg_id: int, currency: string, total_amount: int, start_param: string, extended_media?: array{_: 'messageExtendedMediaPreview', w: array, h: array, thumb?: array, video_duration: array}|array{_: 'messageExtendedMedia', media: array{_: 'messageMediaEmpty'}|array{_: 'messageMediaPhoto', spoiler: bool, photo?: array{_: 'photoEmpty', id: array}|array{_: 'photo', has_stickers: array, id: array, access_hash: array, file_reference: array, date: array, sizes: list, video_sizes: list, dc_id: array}, ttl_seconds: int}|array{_: 'messageMediaGeo', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}}|array{_: 'messageMediaContact', phone_number: string, first_name: string, last_name: string, vcard: string, user_id: int}|array{_: 'messageMediaUnsupported'}|array{_: 'messageMediaDocument', nopremium: bool, spoiler: bool, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, ttl_seconds: int}|array{_: 'messageMediaWebPage', webpage: array{_: 'webPageEmpty', id: array}|array{_: 'webPagePending', id: array, date: array}|array{_: 'webPage', id: array, url: array, display_url: array, hash: array, type: array, site_name: array, title: array, description: array, photo?: array{_: 'photoEmpty', id: array}|array{_: 'photo', has_stickers: array, id: array, access_hash: array, file_reference: array, date: array, sizes: list, video_sizes: list, dc_id: array}, embed_url: array, embed_type: array, embed_width: array, embed_height: array, duration: array, author: array, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, cached_page?: array, attributes: list}|array{_: 'webPageNotModified', cached_page_views: array}}|array{_: 'messageMediaVenue', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, title: string, address: string, provider: string, venue_id: string, venue_type: string}|array{_: 'messageMediaGame', game: array{_: 'game', photo: array{_: 'photoEmpty', id: array}|array{_: 'photo', has_stickers: array, id: array, access_hash: array, file_reference: array, date: array, sizes: list, video_sizes: list, dc_id: array}, id: array, access_hash: array, short_name: array, title: array, description: array, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}}}|array{_: 'messageMediaGeoLive', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, heading: int, period: int, proximity_notification_radius: int}|array{_: 'messageMediaPoll', poll: array{_: 'poll', id: array, closed: array, public_voters: array, multiple_choice: array, quiz: array, question: array, answers: list, close_period: array, close_date: array}, results: array{_: 'pollResults', min: array, results: list, total_voters: array, recent_voters: list, solution: array, solution_entities: list}}|array{_: 'messageMediaDice', value: int, emoticon: string}}}|array{_: 'messageMediaGeoLive', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, heading: int, period: int, proximity_notification_radius: int}|array{_: 'messageMediaPoll', poll: array{_: 'poll', id: array, closed: array, public_voters: array, multiple_choice: array, quiz: array, question: array, answers: list, close_period: array, close_date: array}, results: array{_: 'pollResults', min: array, results: list, total_voters: array, recent_voters: list, solution: array, solution_entities: list}}|array{_: 'messageMediaDice', value: int, emoticon: string} @see https://docs.madelineproto.xyz/API_docs/types/MessageMedia.html */ public function uploadMedia(array|int|string $peer, array $media): array; /** - * Notify the other user in a private chat that a screenshot of the chat was taken + * Notify the other user in a private chat that a screenshot of the chat was taken. * * @param array|int|string $peer Other user @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html * @param int $reply_to_msg_id ID of message that was screenshotted, can be 0 @@ -814,66 +782,61 @@ public function uploadMedia(array|int|string $peer, array $media): array; public function sendScreenshotNotification(array|int|string $peer, int $reply_to_msg_id = 0): array; /** - * Get faved stickers + * Get faved stickers. * * @param list|array $hash [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) - * @return array{_: 'messages.favedStickersNotModified'}|array{_: 'messages.favedStickers', hash: list, packs: list}>, stickers: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int, attributes: list}>} @see https://docs.madelineproto.xyz/API_docs/types/messages.FavedStickers.html + * @return array{_: 'messages.favedStickersNotModified'}|array{_: 'messages.favedStickers', hash: list, packs: list}>, stickers: list, video_thumbs: list, dc_id: array, attributes: list}>} @see https://docs.madelineproto.xyz/API_docs/types/messages.FavedStickers.html */ public function getFavedStickers(array $hash = []): array; /** - * Mark or unmark a sticker as favorite + * Mark or unmark a sticker as favorite. * * @param array $id Sticker in question @see https://docs.madelineproto.xyz/API_docs/types/InputDocument.html * @param bool $unfave Whether to add or remove a sticker from favorites - * @return bool */ public function faveSticker(array $id, bool $unfave): bool; /** - * Get unread messages where we were mentioned + * Get unread messages where we were mentioned. * * @param array|int|string $peer Peer where to look for mentions @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html - * @param int $top_msg_id * @param int $offset_id [Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets) * @param int $add_offset [Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets) * @param int $limit Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets) * @param int $max_id Maximum message ID to return, [see pagination](https://core.telegram.org/api/offsets) * @param int $min_id Minimum message ID to return, [see pagination](https://core.telegram.org/api/offsets) - * @return array{_: 'messages.messages', messages: list, video_sizes: list, dc_id: array}, ttl_seconds: int}|array{_: 'messageMediaGeo', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}}|array{_: 'messageMediaContact', phone_number: string, first_name: string, last_name: string, vcard: string, user_id: int}|array{_: 'messageMediaUnsupported'}|array{_: 'messageMediaDocument', nopremium: bool, spoiler: bool, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, ttl_seconds: int}|array{_: 'messageMediaWebPage', webpage: array{_: 'webPageEmpty', id: array}|array{_: 'webPagePending', id: array, date: array}|array{_: 'webPage', id: array, url: array, display_url: array, hash: array, type: array, site_name: array, title: array, description: array, photo?: array, embed_url: array, embed_type: array, embed_width: array, embed_height: array, duration: array, author: array, document?: array, cached_page?: array, attributes: list}|array{_: 'webPageNotModified', cached_page_views: array}}|array{_: 'messageMediaVenue', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, title: string, address: string, provider: string, venue_id: string, venue_type: string}|array{_: 'messageMediaGame', game: array{_: 'game', photo: array, id: array, access_hash: array, short_name: array, title: array, description: array, document?: array}}|array{_: 'messageMediaInvoice', shipping_address_requested: bool, test: bool, title: string, description: string, photo?: array{_: 'webDocument', url: array, access_hash: array, size: array, mime_type: array, attributes: list}|array{_: 'webDocumentNoProxy', url: array, size: array, mime_type: array, attributes: list}, receipt_msg_id: int, currency: string, total_amount: int, start_param: string, extended_media?: array{_: 'messageExtendedMediaPreview', w: array, h: array, thumb?: array, video_duration: array}}|array{_: 'messageMediaGeoLive', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, heading: int, period: int, proximity_notification_radius: int}|array{_: 'messageMediaPoll', poll: array{_: 'poll', id: array, closed: array, public_voters: array, multiple_choice: array, quiz: array, question: array, answers: list, close_period: array, close_date: array}, results: array{_: 'pollResults', min: array, results: list, total_voters: array, recent_voters: list, solution: array, solution_entities: list}}|array{_: 'messageMediaDice', value: int, emoticon: string}, reply_markup?: array, entities: list, views: int, forwards: int, replies?: array{_: 'messageReplies', comments: array, replies: array, replies_pts: array, recent_repliers: list, channel_id: array, max_id: array, read_max_id: array}, edit_date: int, post_author: string, grouped_id: int, reactions?: array{_: 'messageReactions', min: array, can_see_list: array, results: list, recent_reactions: list}, restriction_reason: list, ttl_period: int}|array{_: 'messageService', peer_id: array|int|string, action: array{_: 'messageActionEmpty'}|array{_: 'messageActionChatCreate', title: array, users: list}|array{_: 'messageActionChatEditTitle', title: array}|array{_: 'messageActionChatEditPhoto', photo: array}|array{_: 'messageActionChatDeletePhoto'}|array{_: 'messageActionChatAddUser', users: list}|array{_: 'messageActionChatDeleteUser', user_id: array}|array{_: 'messageActionChatJoinedByLink', inviter_id: array}|array{_: 'messageActionChannelCreate', title: array}|array{_: 'messageActionChatMigrateTo', channel_id: array}|array{_: 'messageActionChannelMigrateFrom', chat_id: array, title: array}|array{_: 'messageActionPinMessage'}|array{_: 'messageActionHistoryClear'}|array{_: 'messageActionGameScore', game_id: array, score: array}|array{_: 'messageActionPaymentSentMe', charge: array, recurring_init: array, recurring_used: array, currency: array, total_amount: array, payload: array, info?: array, shipping_option_id: array}|array{_: 'messageActionPaymentSent', recurring_init: array, recurring_used: array, currency: array, total_amount: array, invoice_slug: array}|array{_: 'messageActionPhoneCall', video: array, call_id: array, reason?: array, duration: array}|array{_: 'messageActionScreenshotTaken'}|array{_: 'messageActionCustomAction', message: array}|array{_: 'messageActionBotAllowed', attach_menu: array, domain: array, app?: array}|array{_: 'messageActionSecureValuesSentMe', credentials: array, values: list}|array{_: 'messageActionSecureValuesSent', types: list}|array{_: 'messageActionContactSignUp'}|array{_: 'messageActionGeoProximityReached', from_id: array, to_id: array, distance: array}|array{_: 'messageActionGroupCall', call: array, duration: array}|array{_: 'messageActionInviteToGroupCall', call: array, users: list}|array{_: 'messageActionSetMessagesTTL', period: array, auto_setting_from: array}|array{_: 'messageActionGroupCallScheduled', call: array, schedule_date: array}|array{_: 'messageActionSetChatTheme', emoticon: array}|array{_: 'messageActionChatJoinedByRequest'}|array{_: 'messageActionWebViewDataSentMe', text: array, data: array}|array{_: 'messageActionWebViewDataSent', text: array}|array{_: 'messageActionGiftPremium', currency: array, amount: array, months: array, crypto_currency: array, crypto_amount: array}|array{_: 'messageActionTopicCreate', title: array, icon_color: array, icon_emoji_id: array}|array{_: 'messageActionTopicEdit', title: array, icon_emoji_id: array, closed?: array, hidden?: array}|array{_: 'messageActionSuggestProfilePhoto', photo: array}|array{_: 'messageActionRequestedPeer', peer: array, button_id: array}|array{_: 'messageActionSetChatWallPaper', wallpaper: array}|array{_: 'messageActionSetSameChatWallPaper', wallpaper: array}, out: bool, mentioned: bool, media_unread: bool, silent: bool, post: bool, legacy: bool, id: int, from_id?: array|int|string, reply_to?: array{_: 'messageReplyHeader', reply_to_scheduled: array, forum_topic: array, reply_to_msg_id: array, reply_to_peer_id?: array, reply_to_top_id: array}, date: int, ttl_period: int}>, chats: list, users: list}|array{_: 'messages.messagesSlice', inexact: bool, count: int, next_rate: int, offset_id_offset: int, messages: list, video_sizes: list, dc_id: array}, ttl_seconds: int}|array{_: 'messageMediaGeo', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}}|array{_: 'messageMediaContact', phone_number: string, first_name: string, last_name: string, vcard: string, user_id: int}|array{_: 'messageMediaUnsupported'}|array{_: 'messageMediaDocument', nopremium: bool, spoiler: bool, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, ttl_seconds: int}|array{_: 'messageMediaWebPage', webpage: array{_: 'webPageEmpty', id: array}|array{_: 'webPagePending', id: array, date: array}|array{_: 'webPage', id: array, url: array, display_url: array, hash: array, type: array, site_name: array, title: array, description: array, photo?: array, embed_url: array, embed_type: array, embed_width: array, embed_height: array, duration: array, author: array, document?: array, cached_page?: array, attributes: list}|array{_: 'webPageNotModified', cached_page_views: array}}|array{_: 'messageMediaVenue', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, title: string, address: string, provider: string, venue_id: string, venue_type: string}|array{_: 'messageMediaGame', game: array{_: 'game', photo: array, id: array, access_hash: array, short_name: array, title: array, description: array, document?: array}}|array{_: 'messageMediaInvoice', shipping_address_requested: bool, test: bool, title: string, description: string, photo?: array{_: 'webDocument', url: array, access_hash: array, size: array, mime_type: array, attributes: list}|array{_: 'webDocumentNoProxy', url: array, size: array, mime_type: array, attributes: list}, receipt_msg_id: int, currency: string, total_amount: int, start_param: string, extended_media?: array{_: 'messageExtendedMediaPreview', w: array, h: array, thumb?: array, video_duration: array}}|array{_: 'messageMediaGeoLive', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, heading: int, period: int, proximity_notification_radius: int}|array{_: 'messageMediaPoll', poll: array{_: 'poll', id: array, closed: array, public_voters: array, multiple_choice: array, quiz: array, question: array, answers: list, close_period: array, close_date: array}, results: array{_: 'pollResults', min: array, results: list, total_voters: array, recent_voters: list, solution: array, solution_entities: list}}|array{_: 'messageMediaDice', value: int, emoticon: string}, reply_markup?: array, entities: list, views: int, forwards: int, replies?: array{_: 'messageReplies', comments: array, replies: array, replies_pts: array, recent_repliers: list, channel_id: array, max_id: array, read_max_id: array}, edit_date: int, post_author: string, grouped_id: int, reactions?: array{_: 'messageReactions', min: array, can_see_list: array, results: list, recent_reactions: list}, restriction_reason: list, ttl_period: int}|array{_: 'messageService', peer_id: array|int|string, action: array{_: 'messageActionEmpty'}|array{_: 'messageActionChatCreate', title: array, users: list}|array{_: 'messageActionChatEditTitle', title: array}|array{_: 'messageActionChatEditPhoto', photo: array}|array{_: 'messageActionChatDeletePhoto'}|array{_: 'messageActionChatAddUser', users: list}|array{_: 'messageActionChatDeleteUser', user_id: array}|array{_: 'messageActionChatJoinedByLink', inviter_id: array}|array{_: 'messageActionChannelCreate', title: array}|array{_: 'messageActionChatMigrateTo', channel_id: array}|array{_: 'messageActionChannelMigrateFrom', chat_id: array, title: array}|array{_: 'messageActionPinMessage'}|array{_: 'messageActionHistoryClear'}|array{_: 'messageActionGameScore', game_id: array, score: array}|array{_: 'messageActionPaymentSentMe', charge: array, recurring_init: array, recurring_used: array, currency: array, total_amount: array, payload: array, info?: array, shipping_option_id: array}|array{_: 'messageActionPaymentSent', recurring_init: array, recurring_used: array, currency: array, total_amount: array, invoice_slug: array}|array{_: 'messageActionPhoneCall', video: array, call_id: array, reason?: array, duration: array}|array{_: 'messageActionScreenshotTaken'}|array{_: 'messageActionCustomAction', message: array}|array{_: 'messageActionBotAllowed', attach_menu: array, domain: array, app?: array}|array{_: 'messageActionSecureValuesSentMe', credentials: array, values: list}|array{_: 'messageActionSecureValuesSent', types: list}|array{_: 'messageActionContactSignUp'}|array{_: 'messageActionGeoProximityReached', from_id: array, to_id: array, distance: array}|array{_: 'messageActionGroupCall', call: array, duration: array}|array{_: 'messageActionInviteToGroupCall', call: array, users: list}|array{_: 'messageActionSetMessagesTTL', period: array, auto_setting_from: array}|array{_: 'messageActionGroupCallScheduled', call: array, schedule_date: array}|array{_: 'messageActionSetChatTheme', emoticon: array}|array{_: 'messageActionChatJoinedByRequest'}|array{_: 'messageActionWebViewDataSentMe', text: array, data: array}|array{_: 'messageActionWebViewDataSent', text: array}|array{_: 'messageActionGiftPremium', currency: array, amount: array, months: array, crypto_currency: array, crypto_amount: array}|array{_: 'messageActionTopicCreate', title: array, icon_color: array, icon_emoji_id: array}|array{_: 'messageActionTopicEdit', title: array, icon_emoji_id: array, closed?: array, hidden?: array}|array{_: 'messageActionSuggestProfilePhoto', photo: array}|array{_: 'messageActionRequestedPeer', peer: array, button_id: array}|array{_: 'messageActionSetChatWallPaper', wallpaper: array}|array{_: 'messageActionSetSameChatWallPaper', wallpaper: array}, out: bool, mentioned: bool, media_unread: bool, silent: bool, post: bool, legacy: bool, id: int, from_id?: array|int|string, reply_to?: array{_: 'messageReplyHeader', reply_to_scheduled: array, forum_topic: array, reply_to_msg_id: array, reply_to_peer_id?: array, reply_to_top_id: array}, date: int, ttl_period: int}>, chats: list, users: list}|array{_: 'messages.channelMessages', inexact: bool, pts: int, count: int, offset_id_offset: int, messages: list, video_sizes: list, dc_id: array}, ttl_seconds: int}|array{_: 'messageMediaGeo', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}}|array{_: 'messageMediaContact', phone_number: string, first_name: string, last_name: string, vcard: string, user_id: int}|array{_: 'messageMediaUnsupported'}|array{_: 'messageMediaDocument', nopremium: bool, spoiler: bool, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, ttl_seconds: int}|array{_: 'messageMediaWebPage', webpage: array{_: 'webPageEmpty', id: array}|array{_: 'webPagePending', id: array, date: array}|array{_: 'webPage', id: array, url: array, display_url: array, hash: array, type: array, site_name: array, title: array, description: array, photo?: array, embed_url: array, embed_type: array, embed_width: array, embed_height: array, duration: array, author: array, document?: array, cached_page?: array, attributes: list}|array{_: 'webPageNotModified', cached_page_views: array}}|array{_: 'messageMediaVenue', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, title: string, address: string, provider: string, venue_id: string, venue_type: string}|array{_: 'messageMediaGame', game: array{_: 'game', photo: array, id: array, access_hash: array, short_name: array, title: array, description: array, document?: array}}|array{_: 'messageMediaInvoice', shipping_address_requested: bool, test: bool, title: string, description: string, photo?: array{_: 'webDocument', url: array, access_hash: array, size: array, mime_type: array, attributes: list}|array{_: 'webDocumentNoProxy', url: array, size: array, mime_type: array, attributes: list}, receipt_msg_id: int, currency: string, total_amount: int, start_param: string, extended_media?: array{_: 'messageExtendedMediaPreview', w: array, h: array, thumb?: array, video_duration: array}}|array{_: 'messageMediaGeoLive', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, heading: int, period: int, proximity_notification_radius: int}|array{_: 'messageMediaPoll', poll: array{_: 'poll', id: array, closed: array, public_voters: array, multiple_choice: array, quiz: array, question: array, answers: list, close_period: array, close_date: array}, results: array{_: 'pollResults', min: array, results: list, total_voters: array, recent_voters: list, solution: array, solution_entities: list}}|array{_: 'messageMediaDice', value: int, emoticon: string}, reply_markup?: array, entities: list, views: int, forwards: int, replies?: array{_: 'messageReplies', comments: array, replies: array, replies_pts: array, recent_repliers: list, channel_id: array, max_id: array, read_max_id: array}, edit_date: int, post_author: string, grouped_id: int, reactions?: array{_: 'messageReactions', min: array, can_see_list: array, results: list, recent_reactions: list}, restriction_reason: list, ttl_period: int}|array{_: 'messageService', peer_id: array|int|string, action: array{_: 'messageActionEmpty'}|array{_: 'messageActionChatCreate', title: array, users: list}|array{_: 'messageActionChatEditTitle', title: array}|array{_: 'messageActionChatEditPhoto', photo: array}|array{_: 'messageActionChatDeletePhoto'}|array{_: 'messageActionChatAddUser', users: list}|array{_: 'messageActionChatDeleteUser', user_id: array}|array{_: 'messageActionChatJoinedByLink', inviter_id: array}|array{_: 'messageActionChannelCreate', title: array}|array{_: 'messageActionChatMigrateTo', channel_id: array}|array{_: 'messageActionChannelMigrateFrom', chat_id: array, title: array}|array{_: 'messageActionPinMessage'}|array{_: 'messageActionHistoryClear'}|array{_: 'messageActionGameScore', game_id: array, score: array}|array{_: 'messageActionPaymentSentMe', charge: array, recurring_init: array, recurring_used: array, currency: array, total_amount: array, payload: array, info?: array, shipping_option_id: array}|array{_: 'messageActionPaymentSent', recurring_init: array, recurring_used: array, currency: array, total_amount: array, invoice_slug: array}|array{_: 'messageActionPhoneCall', video: array, call_id: array, reason?: array, duration: array}|array{_: 'messageActionScreenshotTaken'}|array{_: 'messageActionCustomAction', message: array}|array{_: 'messageActionBotAllowed', attach_menu: array, domain: array, app?: array}|array{_: 'messageActionSecureValuesSentMe', credentials: array, values: list}|array{_: 'messageActionSecureValuesSent', types: list}|array{_: 'messageActionContactSignUp'}|array{_: 'messageActionGeoProximityReached', from_id: array, to_id: array, distance: array}|array{_: 'messageActionGroupCall', call: array, duration: array}|array{_: 'messageActionInviteToGroupCall', call: array, users: list}|array{_: 'messageActionSetMessagesTTL', period: array, auto_setting_from: array}|array{_: 'messageActionGroupCallScheduled', call: array, schedule_date: array}|array{_: 'messageActionSetChatTheme', emoticon: array}|array{_: 'messageActionChatJoinedByRequest'}|array{_: 'messageActionWebViewDataSentMe', text: array, data: array}|array{_: 'messageActionWebViewDataSent', text: array}|array{_: 'messageActionGiftPremium', currency: array, amount: array, months: array, crypto_currency: array, crypto_amount: array}|array{_: 'messageActionTopicCreate', title: array, icon_color: array, icon_emoji_id: array}|array{_: 'messageActionTopicEdit', title: array, icon_emoji_id: array, closed?: array, hidden?: array}|array{_: 'messageActionSuggestProfilePhoto', photo: array}|array{_: 'messageActionRequestedPeer', peer: array, button_id: array}|array{_: 'messageActionSetChatWallPaper', wallpaper: array}|array{_: 'messageActionSetSameChatWallPaper', wallpaper: array}, out: bool, mentioned: bool, media_unread: bool, silent: bool, post: bool, legacy: bool, id: int, from_id?: array|int|string, reply_to?: array{_: 'messageReplyHeader', reply_to_scheduled: array, forum_topic: array, reply_to_msg_id: array, reply_to_peer_id?: array, reply_to_top_id: array}, date: int, ttl_period: int}>, topics: list, date: array}}>, chats: list, users: list}|array{_: 'messages.messagesNotModified', count: int} @see https://docs.madelineproto.xyz/API_docs/types/messages.Messages.html + * @return array{_: 'messages.messages', messages: list, chats: list, users: list}|array{_: 'messages.messagesSlice', inexact: array, count: array, next_rate: array, offset_id_offset: array, messages: list, chats: list, users: list}|array{_: 'messages.channelMessages', inexact: array, pts: array, count: array, offset_id_offset: array, messages: list, topics: list, chats: list, users: list}|array{_: 'messages.messagesNotModified', count: array} @see https://docs.madelineproto.xyz/API_docs/types/messages.Messages.html */ public function getUnreadMentions(array|int|string $peer, int $top_msg_id = 0, int $offset_id = 0, int $add_offset = 0, int $limit = 0, int $max_id = 0, int $min_id = 0): array; /** - * Mark mentions as read + * Mark mentions as read. * * @param array|int|string $peer Dialog @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html - * @param int $top_msg_id * @return array{_: 'messages.affectedHistory', pts: int, pts_count: int, offset: int} @see https://docs.madelineproto.xyz/API_docs/types/messages.AffectedHistory.html */ public function readMentions(array|int|string $peer, int $top_msg_id = 0): array; /** - * Get live location history of a certain user + * Get live location history of a certain user. * * @param array|int|string $peer User @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html * @param int $limit Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets) * @param list|array $hash [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) - * @return array{_: 'messages.messages', messages: list, video_sizes: list, dc_id: array}, ttl_seconds: int}|array{_: 'messageMediaGeo', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}}|array{_: 'messageMediaContact', phone_number: string, first_name: string, last_name: string, vcard: string, user_id: int}|array{_: 'messageMediaUnsupported'}|array{_: 'messageMediaDocument', nopremium: bool, spoiler: bool, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, ttl_seconds: int}|array{_: 'messageMediaWebPage', webpage: array{_: 'webPageEmpty', id: array}|array{_: 'webPagePending', id: array, date: array}|array{_: 'webPage', id: array, url: array, display_url: array, hash: array, type: array, site_name: array, title: array, description: array, photo?: array, embed_url: array, embed_type: array, embed_width: array, embed_height: array, duration: array, author: array, document?: array, cached_page?: array, attributes: list}|array{_: 'webPageNotModified', cached_page_views: array}}|array{_: 'messageMediaVenue', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, title: string, address: string, provider: string, venue_id: string, venue_type: string}|array{_: 'messageMediaGame', game: array{_: 'game', photo: array, id: array, access_hash: array, short_name: array, title: array, description: array, document?: array}}|array{_: 'messageMediaInvoice', shipping_address_requested: bool, test: bool, title: string, description: string, photo?: array{_: 'webDocument', url: array, access_hash: array, size: array, mime_type: array, attributes: list}|array{_: 'webDocumentNoProxy', url: array, size: array, mime_type: array, attributes: list}, receipt_msg_id: int, currency: string, total_amount: int, start_param: string, extended_media?: array{_: 'messageExtendedMediaPreview', w: array, h: array, thumb?: array, video_duration: array}}|array{_: 'messageMediaGeoLive', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, heading: int, period: int, proximity_notification_radius: int}|array{_: 'messageMediaPoll', poll: array{_: 'poll', id: array, closed: array, public_voters: array, multiple_choice: array, quiz: array, question: array, answers: list, close_period: array, close_date: array}, results: array{_: 'pollResults', min: array, results: list, total_voters: array, recent_voters: list, solution: array, solution_entities: list}}|array{_: 'messageMediaDice', value: int, emoticon: string}, reply_markup?: array, entities: list, views: int, forwards: int, replies?: array{_: 'messageReplies', comments: array, replies: array, replies_pts: array, recent_repliers: list, channel_id: array, max_id: array, read_max_id: array}, edit_date: int, post_author: string, grouped_id: int, reactions?: array{_: 'messageReactions', min: array, can_see_list: array, results: list, recent_reactions: list}, restriction_reason: list, ttl_period: int}|array{_: 'messageService', peer_id: array|int|string, action: array{_: 'messageActionEmpty'}|array{_: 'messageActionChatCreate', title: array, users: list}|array{_: 'messageActionChatEditTitle', title: array}|array{_: 'messageActionChatEditPhoto', photo: array}|array{_: 'messageActionChatDeletePhoto'}|array{_: 'messageActionChatAddUser', users: list}|array{_: 'messageActionChatDeleteUser', user_id: array}|array{_: 'messageActionChatJoinedByLink', inviter_id: array}|array{_: 'messageActionChannelCreate', title: array}|array{_: 'messageActionChatMigrateTo', channel_id: array}|array{_: 'messageActionChannelMigrateFrom', chat_id: array, title: array}|array{_: 'messageActionPinMessage'}|array{_: 'messageActionHistoryClear'}|array{_: 'messageActionGameScore', game_id: array, score: array}|array{_: 'messageActionPaymentSentMe', charge: array, recurring_init: array, recurring_used: array, currency: array, total_amount: array, payload: array, info?: array, shipping_option_id: array}|array{_: 'messageActionPaymentSent', recurring_init: array, recurring_used: array, currency: array, total_amount: array, invoice_slug: array}|array{_: 'messageActionPhoneCall', video: array, call_id: array, reason?: array, duration: array}|array{_: 'messageActionScreenshotTaken'}|array{_: 'messageActionCustomAction', message: array}|array{_: 'messageActionBotAllowed', attach_menu: array, domain: array, app?: array}|array{_: 'messageActionSecureValuesSentMe', credentials: array, values: list}|array{_: 'messageActionSecureValuesSent', types: list}|array{_: 'messageActionContactSignUp'}|array{_: 'messageActionGeoProximityReached', from_id: array, to_id: array, distance: array}|array{_: 'messageActionGroupCall', call: array, duration: array}|array{_: 'messageActionInviteToGroupCall', call: array, users: list}|array{_: 'messageActionSetMessagesTTL', period: array, auto_setting_from: array}|array{_: 'messageActionGroupCallScheduled', call: array, schedule_date: array}|array{_: 'messageActionSetChatTheme', emoticon: array}|array{_: 'messageActionChatJoinedByRequest'}|array{_: 'messageActionWebViewDataSentMe', text: array, data: array}|array{_: 'messageActionWebViewDataSent', text: array}|array{_: 'messageActionGiftPremium', currency: array, amount: array, months: array, crypto_currency: array, crypto_amount: array}|array{_: 'messageActionTopicCreate', title: array, icon_color: array, icon_emoji_id: array}|array{_: 'messageActionTopicEdit', title: array, icon_emoji_id: array, closed?: array, hidden?: array}|array{_: 'messageActionSuggestProfilePhoto', photo: array}|array{_: 'messageActionRequestedPeer', peer: array, button_id: array}|array{_: 'messageActionSetChatWallPaper', wallpaper: array}|array{_: 'messageActionSetSameChatWallPaper', wallpaper: array}, out: bool, mentioned: bool, media_unread: bool, silent: bool, post: bool, legacy: bool, id: int, from_id?: array|int|string, reply_to?: array{_: 'messageReplyHeader', reply_to_scheduled: array, forum_topic: array, reply_to_msg_id: array, reply_to_peer_id?: array, reply_to_top_id: array}, date: int, ttl_period: int}>, chats: list, users: list}|array{_: 'messages.messagesSlice', inexact: bool, count: int, next_rate: int, offset_id_offset: int, messages: list, video_sizes: list, dc_id: array}, ttl_seconds: int}|array{_: 'messageMediaGeo', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}}|array{_: 'messageMediaContact', phone_number: string, first_name: string, last_name: string, vcard: string, user_id: int}|array{_: 'messageMediaUnsupported'}|array{_: 'messageMediaDocument', nopremium: bool, spoiler: bool, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, ttl_seconds: int}|array{_: 'messageMediaWebPage', webpage: array{_: 'webPageEmpty', id: array}|array{_: 'webPagePending', id: array, date: array}|array{_: 'webPage', id: array, url: array, display_url: array, hash: array, type: array, site_name: array, title: array, description: array, photo?: array, embed_url: array, embed_type: array, embed_width: array, embed_height: array, duration: array, author: array, document?: array, cached_page?: array, attributes: list}|array{_: 'webPageNotModified', cached_page_views: array}}|array{_: 'messageMediaVenue', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, title: string, address: string, provider: string, venue_id: string, venue_type: string}|array{_: 'messageMediaGame', game: array{_: 'game', photo: array, id: array, access_hash: array, short_name: array, title: array, description: array, document?: array}}|array{_: 'messageMediaInvoice', shipping_address_requested: bool, test: bool, title: string, description: string, photo?: array{_: 'webDocument', url: array, access_hash: array, size: array, mime_type: array, attributes: list}|array{_: 'webDocumentNoProxy', url: array, size: array, mime_type: array, attributes: list}, receipt_msg_id: int, currency: string, total_amount: int, start_param: string, extended_media?: array{_: 'messageExtendedMediaPreview', w: array, h: array, thumb?: array, video_duration: array}}|array{_: 'messageMediaGeoLive', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, heading: int, period: int, proximity_notification_radius: int}|array{_: 'messageMediaPoll', poll: array{_: 'poll', id: array, closed: array, public_voters: array, multiple_choice: array, quiz: array, question: array, answers: list, close_period: array, close_date: array}, results: array{_: 'pollResults', min: array, results: list, total_voters: array, recent_voters: list, solution: array, solution_entities: list}}|array{_: 'messageMediaDice', value: int, emoticon: string}, reply_markup?: array, entities: list, views: int, forwards: int, replies?: array{_: 'messageReplies', comments: array, replies: array, replies_pts: array, recent_repliers: list, channel_id: array, max_id: array, read_max_id: array}, edit_date: int, post_author: string, grouped_id: int, reactions?: array{_: 'messageReactions', min: array, can_see_list: array, results: list, recent_reactions: list}, restriction_reason: list, ttl_period: int}|array{_: 'messageService', peer_id: array|int|string, action: array{_: 'messageActionEmpty'}|array{_: 'messageActionChatCreate', title: array, users: list}|array{_: 'messageActionChatEditTitle', title: array}|array{_: 'messageActionChatEditPhoto', photo: array}|array{_: 'messageActionChatDeletePhoto'}|array{_: 'messageActionChatAddUser', users: list}|array{_: 'messageActionChatDeleteUser', user_id: array}|array{_: 'messageActionChatJoinedByLink', inviter_id: array}|array{_: 'messageActionChannelCreate', title: array}|array{_: 'messageActionChatMigrateTo', channel_id: array}|array{_: 'messageActionChannelMigrateFrom', chat_id: array, title: array}|array{_: 'messageActionPinMessage'}|array{_: 'messageActionHistoryClear'}|array{_: 'messageActionGameScore', game_id: array, score: array}|array{_: 'messageActionPaymentSentMe', charge: array, recurring_init: array, recurring_used: array, currency: array, total_amount: array, payload: array, info?: array, shipping_option_id: array}|array{_: 'messageActionPaymentSent', recurring_init: array, recurring_used: array, currency: array, total_amount: array, invoice_slug: array}|array{_: 'messageActionPhoneCall', video: array, call_id: array, reason?: array, duration: array}|array{_: 'messageActionScreenshotTaken'}|array{_: 'messageActionCustomAction', message: array}|array{_: 'messageActionBotAllowed', attach_menu: array, domain: array, app?: array}|array{_: 'messageActionSecureValuesSentMe', credentials: array, values: list}|array{_: 'messageActionSecureValuesSent', types: list}|array{_: 'messageActionContactSignUp'}|array{_: 'messageActionGeoProximityReached', from_id: array, to_id: array, distance: array}|array{_: 'messageActionGroupCall', call: array, duration: array}|array{_: 'messageActionInviteToGroupCall', call: array, users: list}|array{_: 'messageActionSetMessagesTTL', period: array, auto_setting_from: array}|array{_: 'messageActionGroupCallScheduled', call: array, schedule_date: array}|array{_: 'messageActionSetChatTheme', emoticon: array}|array{_: 'messageActionChatJoinedByRequest'}|array{_: 'messageActionWebViewDataSentMe', text: array, data: array}|array{_: 'messageActionWebViewDataSent', text: array}|array{_: 'messageActionGiftPremium', currency: array, amount: array, months: array, crypto_currency: array, crypto_amount: array}|array{_: 'messageActionTopicCreate', title: array, icon_color: array, icon_emoji_id: array}|array{_: 'messageActionTopicEdit', title: array, icon_emoji_id: array, closed?: array, hidden?: array}|array{_: 'messageActionSuggestProfilePhoto', photo: array}|array{_: 'messageActionRequestedPeer', peer: array, button_id: array}|array{_: 'messageActionSetChatWallPaper', wallpaper: array}|array{_: 'messageActionSetSameChatWallPaper', wallpaper: array}, out: bool, mentioned: bool, media_unread: bool, silent: bool, post: bool, legacy: bool, id: int, from_id?: array|int|string, reply_to?: array{_: 'messageReplyHeader', reply_to_scheduled: array, forum_topic: array, reply_to_msg_id: array, reply_to_peer_id?: array, reply_to_top_id: array}, date: int, ttl_period: int}>, chats: list, users: list}|array{_: 'messages.channelMessages', inexact: bool, pts: int, count: int, offset_id_offset: int, messages: list, video_sizes: list, dc_id: array}, ttl_seconds: int}|array{_: 'messageMediaGeo', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}}|array{_: 'messageMediaContact', phone_number: string, first_name: string, last_name: string, vcard: string, user_id: int}|array{_: 'messageMediaUnsupported'}|array{_: 'messageMediaDocument', nopremium: bool, spoiler: bool, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, ttl_seconds: int}|array{_: 'messageMediaWebPage', webpage: array{_: 'webPageEmpty', id: array}|array{_: 'webPagePending', id: array, date: array}|array{_: 'webPage', id: array, url: array, display_url: array, hash: array, type: array, site_name: array, title: array, description: array, photo?: array, embed_url: array, embed_type: array, embed_width: array, embed_height: array, duration: array, author: array, document?: array, cached_page?: array, attributes: list}|array{_: 'webPageNotModified', cached_page_views: array}}|array{_: 'messageMediaVenue', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, title: string, address: string, provider: string, venue_id: string, venue_type: string}|array{_: 'messageMediaGame', game: array{_: 'game', photo: array, id: array, access_hash: array, short_name: array, title: array, description: array, document?: array}}|array{_: 'messageMediaInvoice', shipping_address_requested: bool, test: bool, title: string, description: string, photo?: array{_: 'webDocument', url: array, access_hash: array, size: array, mime_type: array, attributes: list}|array{_: 'webDocumentNoProxy', url: array, size: array, mime_type: array, attributes: list}, receipt_msg_id: int, currency: string, total_amount: int, start_param: string, extended_media?: array{_: 'messageExtendedMediaPreview', w: array, h: array, thumb?: array, video_duration: array}}|array{_: 'messageMediaGeoLive', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, heading: int, period: int, proximity_notification_radius: int}|array{_: 'messageMediaPoll', poll: array{_: 'poll', id: array, closed: array, public_voters: array, multiple_choice: array, quiz: array, question: array, answers: list, close_period: array, close_date: array}, results: array{_: 'pollResults', min: array, results: list, total_voters: array, recent_voters: list, solution: array, solution_entities: list}}|array{_: 'messageMediaDice', value: int, emoticon: string}, reply_markup?: array, entities: list, views: int, forwards: int, replies?: array{_: 'messageReplies', comments: array, replies: array, replies_pts: array, recent_repliers: list, channel_id: array, max_id: array, read_max_id: array}, edit_date: int, post_author: string, grouped_id: int, reactions?: array{_: 'messageReactions', min: array, can_see_list: array, results: list, recent_reactions: list}, restriction_reason: list, ttl_period: int}|array{_: 'messageService', peer_id: array|int|string, action: array{_: 'messageActionEmpty'}|array{_: 'messageActionChatCreate', title: array, users: list}|array{_: 'messageActionChatEditTitle', title: array}|array{_: 'messageActionChatEditPhoto', photo: array}|array{_: 'messageActionChatDeletePhoto'}|array{_: 'messageActionChatAddUser', users: list}|array{_: 'messageActionChatDeleteUser', user_id: array}|array{_: 'messageActionChatJoinedByLink', inviter_id: array}|array{_: 'messageActionChannelCreate', title: array}|array{_: 'messageActionChatMigrateTo', channel_id: array}|array{_: 'messageActionChannelMigrateFrom', chat_id: array, title: array}|array{_: 'messageActionPinMessage'}|array{_: 'messageActionHistoryClear'}|array{_: 'messageActionGameScore', game_id: array, score: array}|array{_: 'messageActionPaymentSentMe', charge: array, recurring_init: array, recurring_used: array, currency: array, total_amount: array, payload: array, info?: array, shipping_option_id: array}|array{_: 'messageActionPaymentSent', recurring_init: array, recurring_used: array, currency: array, total_amount: array, invoice_slug: array}|array{_: 'messageActionPhoneCall', video: array, call_id: array, reason?: array, duration: array}|array{_: 'messageActionScreenshotTaken'}|array{_: 'messageActionCustomAction', message: array}|array{_: 'messageActionBotAllowed', attach_menu: array, domain: array, app?: array}|array{_: 'messageActionSecureValuesSentMe', credentials: array, values: list}|array{_: 'messageActionSecureValuesSent', types: list}|array{_: 'messageActionContactSignUp'}|array{_: 'messageActionGeoProximityReached', from_id: array, to_id: array, distance: array}|array{_: 'messageActionGroupCall', call: array, duration: array}|array{_: 'messageActionInviteToGroupCall', call: array, users: list}|array{_: 'messageActionSetMessagesTTL', period: array, auto_setting_from: array}|array{_: 'messageActionGroupCallScheduled', call: array, schedule_date: array}|array{_: 'messageActionSetChatTheme', emoticon: array}|array{_: 'messageActionChatJoinedByRequest'}|array{_: 'messageActionWebViewDataSentMe', text: array, data: array}|array{_: 'messageActionWebViewDataSent', text: array}|array{_: 'messageActionGiftPremium', currency: array, amount: array, months: array, crypto_currency: array, crypto_amount: array}|array{_: 'messageActionTopicCreate', title: array, icon_color: array, icon_emoji_id: array}|array{_: 'messageActionTopicEdit', title: array, icon_emoji_id: array, closed?: array, hidden?: array}|array{_: 'messageActionSuggestProfilePhoto', photo: array}|array{_: 'messageActionRequestedPeer', peer: array, button_id: array}|array{_: 'messageActionSetChatWallPaper', wallpaper: array}|array{_: 'messageActionSetSameChatWallPaper', wallpaper: array}, out: bool, mentioned: bool, media_unread: bool, silent: bool, post: bool, legacy: bool, id: int, from_id?: array|int|string, reply_to?: array{_: 'messageReplyHeader', reply_to_scheduled: array, forum_topic: array, reply_to_msg_id: array, reply_to_peer_id?: array, reply_to_top_id: array}, date: int, ttl_period: int}>, topics: list, date: array}}>, chats: list, users: list}|array{_: 'messages.messagesNotModified', count: int} @see https://docs.madelineproto.xyz/API_docs/types/messages.Messages.html + * @return array{_: 'messages.messages', messages: list, chats: list, users: list}|array{_: 'messages.messagesSlice', inexact: array, count: array, next_rate: array, offset_id_offset: array, messages: list, chats: list, users: list}|array{_: 'messages.channelMessages', inexact: array, pts: array, count: array, offset_id_offset: array, messages: list, topics: list, chats: list, users: list}|array{_: 'messages.messagesNotModified', count: array} @see https://docs.madelineproto.xyz/API_docs/types/messages.Messages.html */ public function getRecentLocations(array|int|string $peer, int $limit = 0, array $hash = []): array; /** - * Send an [album or grouped media](https://core.telegram.org/api/files#albums-grouped-media) + * Send an [album or grouped media](https://core.telegram.org/api/files#albums-grouped-media). * * @param array|int|string $peer The destination chat @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html * @param bool $silent Whether to send the album silently (no notification triggered) * @param bool $background Send in background? * @param bool $clear_draft Whether to clear [drafts](https://core.telegram.org/api/drafts) * @param bool $noforwards Only for bots, disallows forwarding and saving of the messages, even if the destination chat doesn't have [content protection](https://telegram.org/blog/protected-content-delete-by-date-and-more) enabled - * @param bool $update_stickersets_order * @param int $reply_to_msg_id The message to reply to - * @param int $top_msg_id * @param list}>|array $multi_media Array of The medias to send @see https://docs.madelineproto.xyz/API_docs/types/InputSingleMedia.html * @param int $schedule_date Scheduled message date for scheduled messages * @param array|int|string $send_as Send this message as the specified peer @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html @@ -882,7 +845,7 @@ public function getRecentLocations(array|int|string $peer, int $limit = 0, array public function sendMultiMedia(array|int|string $peer, bool $silent = false, bool $background = false, bool $clear_draft = false, bool $noforwards = false, bool $update_stickersets_order = false, int $reply_to_msg_id = 0, int $top_msg_id = 0, array $multi_media = [], int $schedule_date = 0, array|int|string $send_as = []): array; /** - * Upload encrypted file and associate it to a secret chat + * Upload encrypted file and associate it to a secret chat. * * @param array $peer The secret chat to associate the file to @see https://docs.madelineproto.xyz/API_docs/types/InputEncryptedChat.html * @param mixed $file The file @see https://docs.madelineproto.xyz/API_docs/types/InputEncryptedFile.html @@ -891,33 +854,32 @@ public function sendMultiMedia(array|int|string $peer, bool $silent = false, boo public function uploadEncryptedFile(array $peer, mixed $file): array; /** - * Search for stickersets + * Search for stickersets. * * @param bool $exclude_featured Exclude featured stickersets from results * @param string $q Query string * @param list|array $hash [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) - * @return array{_: 'messages.foundStickerSetsNotModified'}|array{_: 'messages.foundStickerSets', hash: list, sets: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}, cover: array{_: 'documentEmpty', id: int}|array{_: 'document', id: int, access_hash: int, file_reference: string, date: int, mime_type: string, size: int, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int, attributes: list}}|array{_: 'stickerSetMultiCovered', set: array{_: 'stickerSet', archived: bool, official: bool, masks: bool, animated: bool, videos: bool, emojis: bool, installed_date: int, id: int, access_hash: int, title: string, short_name: string, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}, covers: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int, attributes: list}>}|array{_: 'stickerSetFullCovered', set: array{_: 'stickerSet', archived: bool, official: bool, masks: bool, animated: bool, videos: bool, emojis: bool, installed_date: int, id: int, access_hash: int, title: string, short_name: string, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}, packs: list}>, keywords: list}>, documents: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int, attributes: list}>}|array{_: 'stickerSetNoCovered', set: array{_: 'stickerSet', archived: bool, official: bool, masks: bool, animated: bool, videos: bool, emojis: bool, installed_date: int, id: int, access_hash: int, title: string, short_name: string, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}}>} @see https://docs.madelineproto.xyz/API_docs/types/messages.FoundStickerSets.html + * @return array{_: 'messages.foundStickerSetsNotModified'}|array{_: 'messages.foundStickerSets', hash: list, sets: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}, cover: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}}|array{_: 'stickerSetMultiCovered', set: array{_: 'stickerSet', archived: bool, official: bool, masks: bool, animated: bool, videos: bool, emojis: bool, installed_date: int, id: int, access_hash: int, title: string, short_name: string, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}, covers: list, video_thumbs: list, dc_id: array, attributes: list}>}|array{_: 'stickerSetFullCovered', set: array{_: 'stickerSet', archived: bool, official: bool, masks: bool, animated: bool, videos: bool, emojis: bool, installed_date: int, id: int, access_hash: int, title: string, short_name: string, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}, packs: list}>, keywords: list}>, documents: list, video_thumbs: list, dc_id: array, attributes: list}>}|array{_: 'stickerSetNoCovered', set: array{_: 'stickerSet', archived: bool, official: bool, masks: bool, animated: bool, videos: bool, emojis: bool, installed_date: int, id: int, access_hash: int, title: string, short_name: string, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}}>} @see https://docs.madelineproto.xyz/API_docs/types/messages.FoundStickerSets.html */ public function searchStickerSets(bool $exclude_featured = false, string $q = '', array $hash = []): array; /** - * Get message ranges for saving the user's chat history + * Get message ranges for saving the user's chat history. * * @return list Array of @see https://docs.madelineproto.xyz/API_docs/types/MessageRange.html */ public function getSplitRanges(): array; /** - * Manually mark dialog as unread + * Manually mark dialog as unread. * * @param array|int|string $peer Dialog @see https://docs.madelineproto.xyz/API_docs/types/InputDialogPeer.html * @param bool $unread Mark as unread/read - * @return bool */ public function markDialogUnread(array|int|string $peer, bool $unread = false): bool; /** - * Get dialogs manually marked as unread + * Get dialogs manually marked as unread. * * @return list Array of @see https://docs.madelineproto.xyz/API_docs/types/DialogPeer.html */ @@ -926,12 +888,11 @@ public function getDialogUnreadMarks(): array; /** * Clear all [drafts](https://core.telegram.org/api/drafts). * - * @return bool */ public function clearAllDrafts(): bool; /** - * Pin a message + * Pin a message. * * @param array|int|string $peer The peer where to pin the message @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html * @param bool $silent Pin the message silently, without triggering a notification @@ -943,7 +904,7 @@ public function clearAllDrafts(): bool; public function updatePinnedMessage(array|int|string $peer, bool $silent = false, bool $unpin = false, bool $pm_oneside = false, int $id = 0): array; /** - * Vote in a [poll](https://docs.madelineproto.xyz/API_docs/constructors/poll.html) + * Vote in a [poll](https://docs.madelineproto.xyz/API_docs/constructors/poll.html). * * @param array|int|string $peer The chat where the poll was sent @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html * @param int $msg_id The message ID of the poll @@ -953,7 +914,7 @@ public function updatePinnedMessage(array|int|string $peer, bool $silent = false public function sendVote(array|int|string $peer, int $msg_id = 0, array $options = []): array; /** - * Get poll results + * Get poll results. * * @param array|int|string $peer Peer where the poll was found @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html * @param int $msg_id Message ID of poll message @@ -962,7 +923,7 @@ public function sendVote(array|int|string $peer, int $msg_id = 0, array $options public function getPollResults(array|int|string $peer, int $msg_id = 0): array; /** - * Get count of online users in a chat + * Get count of online users in a chat. * * @param array|int|string $peer The chat @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html * @return array{_: 'chatOnlines', onlines: int} @see https://docs.madelineproto.xyz/API_docs/types/ChatOnlines.html @@ -974,7 +935,6 @@ public function getOnlines(array|int|string $peer): array; * * @param array|int|string $peer The [group/supergroup/channel](https://core.telegram.org/api/channel). @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html * @param string $about The new description - * @return bool */ public function editChatAbout(array|int|string $peer, string $about = ''): bool; @@ -988,7 +948,7 @@ public function editChatAbout(array|int|string $peer, string $about = ''): bool; public function editChatDefaultBannedRights(array|int|string $peer, array $banned_rights): array; /** - * Get localized emoji keywords + * Get localized emoji keywords. * * @param string $lang_code Language code * @return array{_: 'emojiKeywordsDifference', lang_code: string, from_version: int, version: int, keywords: list}|array{_: 'emojiKeywordDeleted', keyword: string, emoticons: list}>} @see https://docs.madelineproto.xyz/API_docs/types/EmojiKeywordsDifference.html @@ -996,7 +956,7 @@ public function editChatDefaultBannedRights(array|int|string $peer, array $banne public function getEmojiKeywords(string $lang_code = ''): array; /** - * Get changed emoji keywords + * Get changed emoji keywords. * * @param string $lang_code Language code * @param int $from_version Previous emoji keyword localization version @@ -1005,7 +965,7 @@ public function getEmojiKeywords(string $lang_code = ''): array; public function getEmojiKeywordsDifference(string $lang_code = '', int $from_version = 0): array; /** - * Get info about an emoji keyword localization + * Get info about an emoji keyword localization. * * @param list|array $lang_codes Language codes * @return list Array of @see https://docs.madelineproto.xyz/API_docs/types/EmojiLanguage.html @@ -1013,7 +973,7 @@ public function getEmojiKeywordsDifference(string $lang_code = '', int $from_ver public function getEmojiKeywordsLanguages(array $lang_codes = []): array; /** - * Returns an HTTP URL which can be used to automatically log in into translation platform and suggest new emoji replacements. The URL will be valid for 30 seconds after generation + * Returns an HTTP URL which can be used to automatically log in into translation platform and suggest new emoji replacements. The URL will be valid for 30 seconds after generation. * * @param string $lang_code Language code for which the emoji replacements will be suggested * @return array{_: 'emojiURL', url: string} @see https://docs.madelineproto.xyz/API_docs/types/EmojiURL.html @@ -1021,17 +981,16 @@ public function getEmojiKeywordsLanguages(array $lang_codes = []): array; public function getEmojiURL(string $lang_code = ''): array; /** - * Get the number of results that would be found by a [messages.search](https://docs.madelineproto.xyz/API_docs/methods/messages.search.html) call with the same parameters + * Get the number of results that would be found by a [messages.search](https://docs.madelineproto.xyz/API_docs/methods/messages.search.html) call with the same parameters. * * @param array|int|string $peer Peer where to search @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html - * @param int $top_msg_id * @param list|array $filters Array of Search filters @see https://docs.madelineproto.xyz/API_docs/types/MessagesFilter.html * @return list Array of @see https://docs.madelineproto.xyz/API_docs/types/messages.SearchCounter.html */ public function getSearchCounters(array|int|string $peer, int $top_msg_id = 0, array $filters = []): array; /** - * Get more info about a Seamless Telegram Login authorization request, for more info [click here »](https://core.telegram.org/api/url-authorization) + * Get more info about a Seamless Telegram Login authorization request, for more info [click here »](https://core.telegram.org/api/url-authorization). * * @param array|int|string $peer Peer where the message is located @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html * @param int $msg_id The message @@ -1042,7 +1001,7 @@ public function getSearchCounters(array|int|string $peer, int $top_msg_id = 0, a public function requestUrlAuth(array|int|string $peer = [], int $msg_id = 0, int $button_id = 0, string $url = ''): array; /** - * Use this to accept a Seamless Telegram Login authorization request, for more info [click here »](https://core.telegram.org/api/url-authorization) + * Use this to accept a Seamless Telegram Login authorization request, for more info [click here »](https://core.telegram.org/api/url-authorization). * * @param bool $write_allowed Set this flag to allow the bot to send messages to you (if requested) * @param array|int|string $peer The location of the message @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html @@ -1057,30 +1016,29 @@ public function acceptUrlAuth(bool $write_allowed = false, array|int|string $pee * Should be called after the user hides the report spam/add as contact bar of a new chat, effectively prevents the user from executing the actions specified in the [peer's settings](https://docs.madelineproto.xyz/API_docs/constructors/peerSettings.html). * * @param array|int|string $peer Peer @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html - * @return bool */ public function hidePeerSettingsBar(array|int|string $peer): bool; /** - * Get scheduled messages + * Get scheduled messages. * * @param array|int|string $peer Peer @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html * @param list|array $hash [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) - * @return array{_: 'messages.messages', messages: list, video_sizes: list, dc_id: array}, ttl_seconds: int}|array{_: 'messageMediaGeo', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}}|array{_: 'messageMediaContact', phone_number: string, first_name: string, last_name: string, vcard: string, user_id: int}|array{_: 'messageMediaUnsupported'}|array{_: 'messageMediaDocument', nopremium: bool, spoiler: bool, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, ttl_seconds: int}|array{_: 'messageMediaWebPage', webpage: array{_: 'webPageEmpty', id: array}|array{_: 'webPagePending', id: array, date: array}|array{_: 'webPage', id: array, url: array, display_url: array, hash: array, type: array, site_name: array, title: array, description: array, photo?: array, embed_url: array, embed_type: array, embed_width: array, embed_height: array, duration: array, author: array, document?: array, cached_page?: array, attributes: list}|array{_: 'webPageNotModified', cached_page_views: array}}|array{_: 'messageMediaVenue', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, title: string, address: string, provider: string, venue_id: string, venue_type: string}|array{_: 'messageMediaGame', game: array{_: 'game', photo: array, id: array, access_hash: array, short_name: array, title: array, description: array, document?: array}}|array{_: 'messageMediaInvoice', shipping_address_requested: bool, test: bool, title: string, description: string, photo?: array{_: 'webDocument', url: array, access_hash: array, size: array, mime_type: array, attributes: list}|array{_: 'webDocumentNoProxy', url: array, size: array, mime_type: array, attributes: list}, receipt_msg_id: int, currency: string, total_amount: int, start_param: string, extended_media?: array{_: 'messageExtendedMediaPreview', w: array, h: array, thumb?: array, video_duration: array}}|array{_: 'messageMediaGeoLive', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, heading: int, period: int, proximity_notification_radius: int}|array{_: 'messageMediaPoll', poll: array{_: 'poll', id: array, closed: array, public_voters: array, multiple_choice: array, quiz: array, question: array, answers: list, close_period: array, close_date: array}, results: array{_: 'pollResults', min: array, results: list, total_voters: array, recent_voters: list, solution: array, solution_entities: list}}|array{_: 'messageMediaDice', value: int, emoticon: string}, reply_markup?: array, entities: list, views: int, forwards: int, replies?: array{_: 'messageReplies', comments: array, replies: array, replies_pts: array, recent_repliers: list, channel_id: array, max_id: array, read_max_id: array}, edit_date: int, post_author: string, grouped_id: int, reactions?: array{_: 'messageReactions', min: array, can_see_list: array, results: list, recent_reactions: list}, restriction_reason: list, ttl_period: int}|array{_: 'messageService', peer_id: array|int|string, action: array{_: 'messageActionEmpty'}|array{_: 'messageActionChatCreate', title: array, users: list}|array{_: 'messageActionChatEditTitle', title: array}|array{_: 'messageActionChatEditPhoto', photo: array}|array{_: 'messageActionChatDeletePhoto'}|array{_: 'messageActionChatAddUser', users: list}|array{_: 'messageActionChatDeleteUser', user_id: array}|array{_: 'messageActionChatJoinedByLink', inviter_id: array}|array{_: 'messageActionChannelCreate', title: array}|array{_: 'messageActionChatMigrateTo', channel_id: array}|array{_: 'messageActionChannelMigrateFrom', chat_id: array, title: array}|array{_: 'messageActionPinMessage'}|array{_: 'messageActionHistoryClear'}|array{_: 'messageActionGameScore', game_id: array, score: array}|array{_: 'messageActionPaymentSentMe', charge: array, recurring_init: array, recurring_used: array, currency: array, total_amount: array, payload: array, info?: array, shipping_option_id: array}|array{_: 'messageActionPaymentSent', recurring_init: array, recurring_used: array, currency: array, total_amount: array, invoice_slug: array}|array{_: 'messageActionPhoneCall', video: array, call_id: array, reason?: array, duration: array}|array{_: 'messageActionScreenshotTaken'}|array{_: 'messageActionCustomAction', message: array}|array{_: 'messageActionBotAllowed', attach_menu: array, domain: array, app?: array}|array{_: 'messageActionSecureValuesSentMe', credentials: array, values: list}|array{_: 'messageActionSecureValuesSent', types: list}|array{_: 'messageActionContactSignUp'}|array{_: 'messageActionGeoProximityReached', from_id: array, to_id: array, distance: array}|array{_: 'messageActionGroupCall', call: array, duration: array}|array{_: 'messageActionInviteToGroupCall', call: array, users: list}|array{_: 'messageActionSetMessagesTTL', period: array, auto_setting_from: array}|array{_: 'messageActionGroupCallScheduled', call: array, schedule_date: array}|array{_: 'messageActionSetChatTheme', emoticon: array}|array{_: 'messageActionChatJoinedByRequest'}|array{_: 'messageActionWebViewDataSentMe', text: array, data: array}|array{_: 'messageActionWebViewDataSent', text: array}|array{_: 'messageActionGiftPremium', currency: array, amount: array, months: array, crypto_currency: array, crypto_amount: array}|array{_: 'messageActionTopicCreate', title: array, icon_color: array, icon_emoji_id: array}|array{_: 'messageActionTopicEdit', title: array, icon_emoji_id: array, closed?: array, hidden?: array}|array{_: 'messageActionSuggestProfilePhoto', photo: array}|array{_: 'messageActionRequestedPeer', peer: array, button_id: array}|array{_: 'messageActionSetChatWallPaper', wallpaper: array}|array{_: 'messageActionSetSameChatWallPaper', wallpaper: array}, out: bool, mentioned: bool, media_unread: bool, silent: bool, post: bool, legacy: bool, id: int, from_id?: array|int|string, reply_to?: array{_: 'messageReplyHeader', reply_to_scheduled: array, forum_topic: array, reply_to_msg_id: array, reply_to_peer_id?: array, reply_to_top_id: array}, date: int, ttl_period: int}>, chats: list, users: list}|array{_: 'messages.messagesSlice', inexact: bool, count: int, next_rate: int, offset_id_offset: int, messages: list, video_sizes: list, dc_id: array}, ttl_seconds: int}|array{_: 'messageMediaGeo', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}}|array{_: 'messageMediaContact', phone_number: string, first_name: string, last_name: string, vcard: string, user_id: int}|array{_: 'messageMediaUnsupported'}|array{_: 'messageMediaDocument', nopremium: bool, spoiler: bool, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, ttl_seconds: int}|array{_: 'messageMediaWebPage', webpage: array{_: 'webPageEmpty', id: array}|array{_: 'webPagePending', id: array, date: array}|array{_: 'webPage', id: array, url: array, display_url: array, hash: array, type: array, site_name: array, title: array, description: array, photo?: array, embed_url: array, embed_type: array, embed_width: array, embed_height: array, duration: array, author: array, document?: array, cached_page?: array, attributes: list}|array{_: 'webPageNotModified', cached_page_views: array}}|array{_: 'messageMediaVenue', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, title: string, address: string, provider: string, venue_id: string, venue_type: string}|array{_: 'messageMediaGame', game: array{_: 'game', photo: array, id: array, access_hash: array, short_name: array, title: array, description: array, document?: array}}|array{_: 'messageMediaInvoice', shipping_address_requested: bool, test: bool, title: string, description: string, photo?: array{_: 'webDocument', url: array, access_hash: array, size: array, mime_type: array, attributes: list}|array{_: 'webDocumentNoProxy', url: array, size: array, mime_type: array, attributes: list}, receipt_msg_id: int, currency: string, total_amount: int, start_param: string, extended_media?: array{_: 'messageExtendedMediaPreview', w: array, h: array, thumb?: array, video_duration: array}}|array{_: 'messageMediaGeoLive', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, heading: int, period: int, proximity_notification_radius: int}|array{_: 'messageMediaPoll', poll: array{_: 'poll', id: array, closed: array, public_voters: array, multiple_choice: array, quiz: array, question: array, answers: list, close_period: array, close_date: array}, results: array{_: 'pollResults', min: array, results: list, total_voters: array, recent_voters: list, solution: array, solution_entities: list}}|array{_: 'messageMediaDice', value: int, emoticon: string}, reply_markup?: array, entities: list, views: int, forwards: int, replies?: array{_: 'messageReplies', comments: array, replies: array, replies_pts: array, recent_repliers: list, channel_id: array, max_id: array, read_max_id: array}, edit_date: int, post_author: string, grouped_id: int, reactions?: array{_: 'messageReactions', min: array, can_see_list: array, results: list, recent_reactions: list}, restriction_reason: list, ttl_period: int}|array{_: 'messageService', peer_id: array|int|string, action: array{_: 'messageActionEmpty'}|array{_: 'messageActionChatCreate', title: array, users: list}|array{_: 'messageActionChatEditTitle', title: array}|array{_: 'messageActionChatEditPhoto', photo: array}|array{_: 'messageActionChatDeletePhoto'}|array{_: 'messageActionChatAddUser', users: list}|array{_: 'messageActionChatDeleteUser', user_id: array}|array{_: 'messageActionChatJoinedByLink', inviter_id: array}|array{_: 'messageActionChannelCreate', title: array}|array{_: 'messageActionChatMigrateTo', channel_id: array}|array{_: 'messageActionChannelMigrateFrom', chat_id: array, title: array}|array{_: 'messageActionPinMessage'}|array{_: 'messageActionHistoryClear'}|array{_: 'messageActionGameScore', game_id: array, score: array}|array{_: 'messageActionPaymentSentMe', charge: array, recurring_init: array, recurring_used: array, currency: array, total_amount: array, payload: array, info?: array, shipping_option_id: array}|array{_: 'messageActionPaymentSent', recurring_init: array, recurring_used: array, currency: array, total_amount: array, invoice_slug: array}|array{_: 'messageActionPhoneCall', video: array, call_id: array, reason?: array, duration: array}|array{_: 'messageActionScreenshotTaken'}|array{_: 'messageActionCustomAction', message: array}|array{_: 'messageActionBotAllowed', attach_menu: array, domain: array, app?: array}|array{_: 'messageActionSecureValuesSentMe', credentials: array, values: list}|array{_: 'messageActionSecureValuesSent', types: list}|array{_: 'messageActionContactSignUp'}|array{_: 'messageActionGeoProximityReached', from_id: array, to_id: array, distance: array}|array{_: 'messageActionGroupCall', call: array, duration: array}|array{_: 'messageActionInviteToGroupCall', call: array, users: list}|array{_: 'messageActionSetMessagesTTL', period: array, auto_setting_from: array}|array{_: 'messageActionGroupCallScheduled', call: array, schedule_date: array}|array{_: 'messageActionSetChatTheme', emoticon: array}|array{_: 'messageActionChatJoinedByRequest'}|array{_: 'messageActionWebViewDataSentMe', text: array, data: array}|array{_: 'messageActionWebViewDataSent', text: array}|array{_: 'messageActionGiftPremium', currency: array, amount: array, months: array, crypto_currency: array, crypto_amount: array}|array{_: 'messageActionTopicCreate', title: array, icon_color: array, icon_emoji_id: array}|array{_: 'messageActionTopicEdit', title: array, icon_emoji_id: array, closed?: array, hidden?: array}|array{_: 'messageActionSuggestProfilePhoto', photo: array}|array{_: 'messageActionRequestedPeer', peer: array, button_id: array}|array{_: 'messageActionSetChatWallPaper', wallpaper: array}|array{_: 'messageActionSetSameChatWallPaper', wallpaper: array}, out: bool, mentioned: bool, media_unread: bool, silent: bool, post: bool, legacy: bool, id: int, from_id?: array|int|string, reply_to?: array{_: 'messageReplyHeader', reply_to_scheduled: array, forum_topic: array, reply_to_msg_id: array, reply_to_peer_id?: array, reply_to_top_id: array}, date: int, ttl_period: int}>, chats: list, users: list}|array{_: 'messages.channelMessages', inexact: bool, pts: int, count: int, offset_id_offset: int, messages: list, video_sizes: list, dc_id: array}, ttl_seconds: int}|array{_: 'messageMediaGeo', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}}|array{_: 'messageMediaContact', phone_number: string, first_name: string, last_name: string, vcard: string, user_id: int}|array{_: 'messageMediaUnsupported'}|array{_: 'messageMediaDocument', nopremium: bool, spoiler: bool, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, ttl_seconds: int}|array{_: 'messageMediaWebPage', webpage: array{_: 'webPageEmpty', id: array}|array{_: 'webPagePending', id: array, date: array}|array{_: 'webPage', id: array, url: array, display_url: array, hash: array, type: array, site_name: array, title: array, description: array, photo?: array, embed_url: array, embed_type: array, embed_width: array, embed_height: array, duration: array, author: array, document?: array, cached_page?: array, attributes: list}|array{_: 'webPageNotModified', cached_page_views: array}}|array{_: 'messageMediaVenue', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, title: string, address: string, provider: string, venue_id: string, venue_type: string}|array{_: 'messageMediaGame', game: array{_: 'game', photo: array, id: array, access_hash: array, short_name: array, title: array, description: array, document?: array}}|array{_: 'messageMediaInvoice', shipping_address_requested: bool, test: bool, title: string, description: string, photo?: array{_: 'webDocument', url: array, access_hash: array, size: array, mime_type: array, attributes: list}|array{_: 'webDocumentNoProxy', url: array, size: array, mime_type: array, attributes: list}, receipt_msg_id: int, currency: string, total_amount: int, start_param: string, extended_media?: array{_: 'messageExtendedMediaPreview', w: array, h: array, thumb?: array, video_duration: array}}|array{_: 'messageMediaGeoLive', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, heading: int, period: int, proximity_notification_radius: int}|array{_: 'messageMediaPoll', poll: array{_: 'poll', id: array, closed: array, public_voters: array, multiple_choice: array, quiz: array, question: array, answers: list, close_period: array, close_date: array}, results: array{_: 'pollResults', min: array, results: list, total_voters: array, recent_voters: list, solution: array, solution_entities: list}}|array{_: 'messageMediaDice', value: int, emoticon: string}, reply_markup?: array, entities: list, views: int, forwards: int, replies?: array{_: 'messageReplies', comments: array, replies: array, replies_pts: array, recent_repliers: list, channel_id: array, max_id: array, read_max_id: array}, edit_date: int, post_author: string, grouped_id: int, reactions?: array{_: 'messageReactions', min: array, can_see_list: array, results: list, recent_reactions: list}, restriction_reason: list, ttl_period: int}|array{_: 'messageService', peer_id: array|int|string, action: array{_: 'messageActionEmpty'}|array{_: 'messageActionChatCreate', title: array, users: list}|array{_: 'messageActionChatEditTitle', title: array}|array{_: 'messageActionChatEditPhoto', photo: array}|array{_: 'messageActionChatDeletePhoto'}|array{_: 'messageActionChatAddUser', users: list}|array{_: 'messageActionChatDeleteUser', user_id: array}|array{_: 'messageActionChatJoinedByLink', inviter_id: array}|array{_: 'messageActionChannelCreate', title: array}|array{_: 'messageActionChatMigrateTo', channel_id: array}|array{_: 'messageActionChannelMigrateFrom', chat_id: array, title: array}|array{_: 'messageActionPinMessage'}|array{_: 'messageActionHistoryClear'}|array{_: 'messageActionGameScore', game_id: array, score: array}|array{_: 'messageActionPaymentSentMe', charge: array, recurring_init: array, recurring_used: array, currency: array, total_amount: array, payload: array, info?: array, shipping_option_id: array}|array{_: 'messageActionPaymentSent', recurring_init: array, recurring_used: array, currency: array, total_amount: array, invoice_slug: array}|array{_: 'messageActionPhoneCall', video: array, call_id: array, reason?: array, duration: array}|array{_: 'messageActionScreenshotTaken'}|array{_: 'messageActionCustomAction', message: array}|array{_: 'messageActionBotAllowed', attach_menu: array, domain: array, app?: array}|array{_: 'messageActionSecureValuesSentMe', credentials: array, values: list}|array{_: 'messageActionSecureValuesSent', types: list}|array{_: 'messageActionContactSignUp'}|array{_: 'messageActionGeoProximityReached', from_id: array, to_id: array, distance: array}|array{_: 'messageActionGroupCall', call: array, duration: array}|array{_: 'messageActionInviteToGroupCall', call: array, users: list}|array{_: 'messageActionSetMessagesTTL', period: array, auto_setting_from: array}|array{_: 'messageActionGroupCallScheduled', call: array, schedule_date: array}|array{_: 'messageActionSetChatTheme', emoticon: array}|array{_: 'messageActionChatJoinedByRequest'}|array{_: 'messageActionWebViewDataSentMe', text: array, data: array}|array{_: 'messageActionWebViewDataSent', text: array}|array{_: 'messageActionGiftPremium', currency: array, amount: array, months: array, crypto_currency: array, crypto_amount: array}|array{_: 'messageActionTopicCreate', title: array, icon_color: array, icon_emoji_id: array}|array{_: 'messageActionTopicEdit', title: array, icon_emoji_id: array, closed?: array, hidden?: array}|array{_: 'messageActionSuggestProfilePhoto', photo: array}|array{_: 'messageActionRequestedPeer', peer: array, button_id: array}|array{_: 'messageActionSetChatWallPaper', wallpaper: array}|array{_: 'messageActionSetSameChatWallPaper', wallpaper: array}, out: bool, mentioned: bool, media_unread: bool, silent: bool, post: bool, legacy: bool, id: int, from_id?: array|int|string, reply_to?: array{_: 'messageReplyHeader', reply_to_scheduled: array, forum_topic: array, reply_to_msg_id: array, reply_to_peer_id?: array, reply_to_top_id: array}, date: int, ttl_period: int}>, topics: list, date: array}}>, chats: list, users: list}|array{_: 'messages.messagesNotModified', count: int} @see https://docs.madelineproto.xyz/API_docs/types/messages.Messages.html + * @return array{_: 'messages.messages', messages: list, chats: list, users: list}|array{_: 'messages.messagesSlice', inexact: array, count: array, next_rate: array, offset_id_offset: array, messages: list, chats: list, users: list}|array{_: 'messages.channelMessages', inexact: array, pts: array, count: array, offset_id_offset: array, messages: list, topics: list, chats: list, users: list}|array{_: 'messages.messagesNotModified', count: array} @see https://docs.madelineproto.xyz/API_docs/types/messages.Messages.html */ public function getScheduledHistory(array|int|string $peer, array $hash = []): array; /** - * Get scheduled messages + * Get scheduled messages. * * @param array|int|string $peer Peer @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html * @param list|array $id IDs of scheduled messages - * @return array{_: 'messages.messages', messages: list, video_sizes: list, dc_id: array}, ttl_seconds: int}|array{_: 'messageMediaGeo', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}}|array{_: 'messageMediaContact', phone_number: string, first_name: string, last_name: string, vcard: string, user_id: int}|array{_: 'messageMediaUnsupported'}|array{_: 'messageMediaDocument', nopremium: bool, spoiler: bool, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, ttl_seconds: int}|array{_: 'messageMediaWebPage', webpage: array{_: 'webPageEmpty', id: array}|array{_: 'webPagePending', id: array, date: array}|array{_: 'webPage', id: array, url: array, display_url: array, hash: array, type: array, site_name: array, title: array, description: array, photo?: array, embed_url: array, embed_type: array, embed_width: array, embed_height: array, duration: array, author: array, document?: array, cached_page?: array, attributes: list}|array{_: 'webPageNotModified', cached_page_views: array}}|array{_: 'messageMediaVenue', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, title: string, address: string, provider: string, venue_id: string, venue_type: string}|array{_: 'messageMediaGame', game: array{_: 'game', photo: array, id: array, access_hash: array, short_name: array, title: array, description: array, document?: array}}|array{_: 'messageMediaInvoice', shipping_address_requested: bool, test: bool, title: string, description: string, photo?: array{_: 'webDocument', url: array, access_hash: array, size: array, mime_type: array, attributes: list}|array{_: 'webDocumentNoProxy', url: array, size: array, mime_type: array, attributes: list}, receipt_msg_id: int, currency: string, total_amount: int, start_param: string, extended_media?: array{_: 'messageExtendedMediaPreview', w: array, h: array, thumb?: array, video_duration: array}}|array{_: 'messageMediaGeoLive', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, heading: int, period: int, proximity_notification_radius: int}|array{_: 'messageMediaPoll', poll: array{_: 'poll', id: array, closed: array, public_voters: array, multiple_choice: array, quiz: array, question: array, answers: list, close_period: array, close_date: array}, results: array{_: 'pollResults', min: array, results: list, total_voters: array, recent_voters: list, solution: array, solution_entities: list}}|array{_: 'messageMediaDice', value: int, emoticon: string}, reply_markup?: array, entities: list, views: int, forwards: int, replies?: array{_: 'messageReplies', comments: array, replies: array, replies_pts: array, recent_repliers: list, channel_id: array, max_id: array, read_max_id: array}, edit_date: int, post_author: string, grouped_id: int, reactions?: array{_: 'messageReactions', min: array, can_see_list: array, results: list, recent_reactions: list}, restriction_reason: list, ttl_period: int}|array{_: 'messageService', peer_id: array|int|string, action: array{_: 'messageActionEmpty'}|array{_: 'messageActionChatCreate', title: array, users: list}|array{_: 'messageActionChatEditTitle', title: array}|array{_: 'messageActionChatEditPhoto', photo: array}|array{_: 'messageActionChatDeletePhoto'}|array{_: 'messageActionChatAddUser', users: list}|array{_: 'messageActionChatDeleteUser', user_id: array}|array{_: 'messageActionChatJoinedByLink', inviter_id: array}|array{_: 'messageActionChannelCreate', title: array}|array{_: 'messageActionChatMigrateTo', channel_id: array}|array{_: 'messageActionChannelMigrateFrom', chat_id: array, title: array}|array{_: 'messageActionPinMessage'}|array{_: 'messageActionHistoryClear'}|array{_: 'messageActionGameScore', game_id: array, score: array}|array{_: 'messageActionPaymentSentMe', charge: array, recurring_init: array, recurring_used: array, currency: array, total_amount: array, payload: array, info?: array, shipping_option_id: array}|array{_: 'messageActionPaymentSent', recurring_init: array, recurring_used: array, currency: array, total_amount: array, invoice_slug: array}|array{_: 'messageActionPhoneCall', video: array, call_id: array, reason?: array, duration: array}|array{_: 'messageActionScreenshotTaken'}|array{_: 'messageActionCustomAction', message: array}|array{_: 'messageActionBotAllowed', attach_menu: array, domain: array, app?: array}|array{_: 'messageActionSecureValuesSentMe', credentials: array, values: list}|array{_: 'messageActionSecureValuesSent', types: list}|array{_: 'messageActionContactSignUp'}|array{_: 'messageActionGeoProximityReached', from_id: array, to_id: array, distance: array}|array{_: 'messageActionGroupCall', call: array, duration: array}|array{_: 'messageActionInviteToGroupCall', call: array, users: list}|array{_: 'messageActionSetMessagesTTL', period: array, auto_setting_from: array}|array{_: 'messageActionGroupCallScheduled', call: array, schedule_date: array}|array{_: 'messageActionSetChatTheme', emoticon: array}|array{_: 'messageActionChatJoinedByRequest'}|array{_: 'messageActionWebViewDataSentMe', text: array, data: array}|array{_: 'messageActionWebViewDataSent', text: array}|array{_: 'messageActionGiftPremium', currency: array, amount: array, months: array, crypto_currency: array, crypto_amount: array}|array{_: 'messageActionTopicCreate', title: array, icon_color: array, icon_emoji_id: array}|array{_: 'messageActionTopicEdit', title: array, icon_emoji_id: array, closed?: array, hidden?: array}|array{_: 'messageActionSuggestProfilePhoto', photo: array}|array{_: 'messageActionRequestedPeer', peer: array, button_id: array}|array{_: 'messageActionSetChatWallPaper', wallpaper: array}|array{_: 'messageActionSetSameChatWallPaper', wallpaper: array}, out: bool, mentioned: bool, media_unread: bool, silent: bool, post: bool, legacy: bool, id: int, from_id?: array|int|string, reply_to?: array{_: 'messageReplyHeader', reply_to_scheduled: array, forum_topic: array, reply_to_msg_id: array, reply_to_peer_id?: array, reply_to_top_id: array}, date: int, ttl_period: int}>, chats: list, users: list}|array{_: 'messages.messagesSlice', inexact: bool, count: int, next_rate: int, offset_id_offset: int, messages: list, video_sizes: list, dc_id: array}, ttl_seconds: int}|array{_: 'messageMediaGeo', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}}|array{_: 'messageMediaContact', phone_number: string, first_name: string, last_name: string, vcard: string, user_id: int}|array{_: 'messageMediaUnsupported'}|array{_: 'messageMediaDocument', nopremium: bool, spoiler: bool, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, ttl_seconds: int}|array{_: 'messageMediaWebPage', webpage: array{_: 'webPageEmpty', id: array}|array{_: 'webPagePending', id: array, date: array}|array{_: 'webPage', id: array, url: array, display_url: array, hash: array, type: array, site_name: array, title: array, description: array, photo?: array, embed_url: array, embed_type: array, embed_width: array, embed_height: array, duration: array, author: array, document?: array, cached_page?: array, attributes: list}|array{_: 'webPageNotModified', cached_page_views: array}}|array{_: 'messageMediaVenue', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, title: string, address: string, provider: string, venue_id: string, venue_type: string}|array{_: 'messageMediaGame', game: array{_: 'game', photo: array, id: array, access_hash: array, short_name: array, title: array, description: array, document?: array}}|array{_: 'messageMediaInvoice', shipping_address_requested: bool, test: bool, title: string, description: string, photo?: array{_: 'webDocument', url: array, access_hash: array, size: array, mime_type: array, attributes: list}|array{_: 'webDocumentNoProxy', url: array, size: array, mime_type: array, attributes: list}, receipt_msg_id: int, currency: string, total_amount: int, start_param: string, extended_media?: array{_: 'messageExtendedMediaPreview', w: array, h: array, thumb?: array, video_duration: array}}|array{_: 'messageMediaGeoLive', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, heading: int, period: int, proximity_notification_radius: int}|array{_: 'messageMediaPoll', poll: array{_: 'poll', id: array, closed: array, public_voters: array, multiple_choice: array, quiz: array, question: array, answers: list, close_period: array, close_date: array}, results: array{_: 'pollResults', min: array, results: list, total_voters: array, recent_voters: list, solution: array, solution_entities: list}}|array{_: 'messageMediaDice', value: int, emoticon: string}, reply_markup?: array, entities: list, views: int, forwards: int, replies?: array{_: 'messageReplies', comments: array, replies: array, replies_pts: array, recent_repliers: list, channel_id: array, max_id: array, read_max_id: array}, edit_date: int, post_author: string, grouped_id: int, reactions?: array{_: 'messageReactions', min: array, can_see_list: array, results: list, recent_reactions: list}, restriction_reason: list, ttl_period: int}|array{_: 'messageService', peer_id: array|int|string, action: array{_: 'messageActionEmpty'}|array{_: 'messageActionChatCreate', title: array, users: list}|array{_: 'messageActionChatEditTitle', title: array}|array{_: 'messageActionChatEditPhoto', photo: array}|array{_: 'messageActionChatDeletePhoto'}|array{_: 'messageActionChatAddUser', users: list}|array{_: 'messageActionChatDeleteUser', user_id: array}|array{_: 'messageActionChatJoinedByLink', inviter_id: array}|array{_: 'messageActionChannelCreate', title: array}|array{_: 'messageActionChatMigrateTo', channel_id: array}|array{_: 'messageActionChannelMigrateFrom', chat_id: array, title: array}|array{_: 'messageActionPinMessage'}|array{_: 'messageActionHistoryClear'}|array{_: 'messageActionGameScore', game_id: array, score: array}|array{_: 'messageActionPaymentSentMe', charge: array, recurring_init: array, recurring_used: array, currency: array, total_amount: array, payload: array, info?: array, shipping_option_id: array}|array{_: 'messageActionPaymentSent', recurring_init: array, recurring_used: array, currency: array, total_amount: array, invoice_slug: array}|array{_: 'messageActionPhoneCall', video: array, call_id: array, reason?: array, duration: array}|array{_: 'messageActionScreenshotTaken'}|array{_: 'messageActionCustomAction', message: array}|array{_: 'messageActionBotAllowed', attach_menu: array, domain: array, app?: array}|array{_: 'messageActionSecureValuesSentMe', credentials: array, values: list}|array{_: 'messageActionSecureValuesSent', types: list}|array{_: 'messageActionContactSignUp'}|array{_: 'messageActionGeoProximityReached', from_id: array, to_id: array, distance: array}|array{_: 'messageActionGroupCall', call: array, duration: array}|array{_: 'messageActionInviteToGroupCall', call: array, users: list}|array{_: 'messageActionSetMessagesTTL', period: array, auto_setting_from: array}|array{_: 'messageActionGroupCallScheduled', call: array, schedule_date: array}|array{_: 'messageActionSetChatTheme', emoticon: array}|array{_: 'messageActionChatJoinedByRequest'}|array{_: 'messageActionWebViewDataSentMe', text: array, data: array}|array{_: 'messageActionWebViewDataSent', text: array}|array{_: 'messageActionGiftPremium', currency: array, amount: array, months: array, crypto_currency: array, crypto_amount: array}|array{_: 'messageActionTopicCreate', title: array, icon_color: array, icon_emoji_id: array}|array{_: 'messageActionTopicEdit', title: array, icon_emoji_id: array, closed?: array, hidden?: array}|array{_: 'messageActionSuggestProfilePhoto', photo: array}|array{_: 'messageActionRequestedPeer', peer: array, button_id: array}|array{_: 'messageActionSetChatWallPaper', wallpaper: array}|array{_: 'messageActionSetSameChatWallPaper', wallpaper: array}, out: bool, mentioned: bool, media_unread: bool, silent: bool, post: bool, legacy: bool, id: int, from_id?: array|int|string, reply_to?: array{_: 'messageReplyHeader', reply_to_scheduled: array, forum_topic: array, reply_to_msg_id: array, reply_to_peer_id?: array, reply_to_top_id: array}, date: int, ttl_period: int}>, chats: list, users: list}|array{_: 'messages.channelMessages', inexact: bool, pts: int, count: int, offset_id_offset: int, messages: list, video_sizes: list, dc_id: array}, ttl_seconds: int}|array{_: 'messageMediaGeo', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}}|array{_: 'messageMediaContact', phone_number: string, first_name: string, last_name: string, vcard: string, user_id: int}|array{_: 'messageMediaUnsupported'}|array{_: 'messageMediaDocument', nopremium: bool, spoiler: bool, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, ttl_seconds: int}|array{_: 'messageMediaWebPage', webpage: array{_: 'webPageEmpty', id: array}|array{_: 'webPagePending', id: array, date: array}|array{_: 'webPage', id: array, url: array, display_url: array, hash: array, type: array, site_name: array, title: array, description: array, photo?: array, embed_url: array, embed_type: array, embed_width: array, embed_height: array, duration: array, author: array, document?: array, cached_page?: array, attributes: list}|array{_: 'webPageNotModified', cached_page_views: array}}|array{_: 'messageMediaVenue', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, title: string, address: string, provider: string, venue_id: string, venue_type: string}|array{_: 'messageMediaGame', game: array{_: 'game', photo: array, id: array, access_hash: array, short_name: array, title: array, description: array, document?: array}}|array{_: 'messageMediaInvoice', shipping_address_requested: bool, test: bool, title: string, description: string, photo?: array{_: 'webDocument', url: array, access_hash: array, size: array, mime_type: array, attributes: list}|array{_: 'webDocumentNoProxy', url: array, size: array, mime_type: array, attributes: list}, receipt_msg_id: int, currency: string, total_amount: int, start_param: string, extended_media?: array{_: 'messageExtendedMediaPreview', w: array, h: array, thumb?: array, video_duration: array}}|array{_: 'messageMediaGeoLive', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, heading: int, period: int, proximity_notification_radius: int}|array{_: 'messageMediaPoll', poll: array{_: 'poll', id: array, closed: array, public_voters: array, multiple_choice: array, quiz: array, question: array, answers: list, close_period: array, close_date: array}, results: array{_: 'pollResults', min: array, results: list, total_voters: array, recent_voters: list, solution: array, solution_entities: list}}|array{_: 'messageMediaDice', value: int, emoticon: string}, reply_markup?: array, entities: list, views: int, forwards: int, replies?: array{_: 'messageReplies', comments: array, replies: array, replies_pts: array, recent_repliers: list, channel_id: array, max_id: array, read_max_id: array}, edit_date: int, post_author: string, grouped_id: int, reactions?: array{_: 'messageReactions', min: array, can_see_list: array, results: list, recent_reactions: list}, restriction_reason: list, ttl_period: int}|array{_: 'messageService', peer_id: array|int|string, action: array{_: 'messageActionEmpty'}|array{_: 'messageActionChatCreate', title: array, users: list}|array{_: 'messageActionChatEditTitle', title: array}|array{_: 'messageActionChatEditPhoto', photo: array}|array{_: 'messageActionChatDeletePhoto'}|array{_: 'messageActionChatAddUser', users: list}|array{_: 'messageActionChatDeleteUser', user_id: array}|array{_: 'messageActionChatJoinedByLink', inviter_id: array}|array{_: 'messageActionChannelCreate', title: array}|array{_: 'messageActionChatMigrateTo', channel_id: array}|array{_: 'messageActionChannelMigrateFrom', chat_id: array, title: array}|array{_: 'messageActionPinMessage'}|array{_: 'messageActionHistoryClear'}|array{_: 'messageActionGameScore', game_id: array, score: array}|array{_: 'messageActionPaymentSentMe', charge: array, recurring_init: array, recurring_used: array, currency: array, total_amount: array, payload: array, info?: array, shipping_option_id: array}|array{_: 'messageActionPaymentSent', recurring_init: array, recurring_used: array, currency: array, total_amount: array, invoice_slug: array}|array{_: 'messageActionPhoneCall', video: array, call_id: array, reason?: array, duration: array}|array{_: 'messageActionScreenshotTaken'}|array{_: 'messageActionCustomAction', message: array}|array{_: 'messageActionBotAllowed', attach_menu: array, domain: array, app?: array}|array{_: 'messageActionSecureValuesSentMe', credentials: array, values: list}|array{_: 'messageActionSecureValuesSent', types: list}|array{_: 'messageActionContactSignUp'}|array{_: 'messageActionGeoProximityReached', from_id: array, to_id: array, distance: array}|array{_: 'messageActionGroupCall', call: array, duration: array}|array{_: 'messageActionInviteToGroupCall', call: array, users: list}|array{_: 'messageActionSetMessagesTTL', period: array, auto_setting_from: array}|array{_: 'messageActionGroupCallScheduled', call: array, schedule_date: array}|array{_: 'messageActionSetChatTheme', emoticon: array}|array{_: 'messageActionChatJoinedByRequest'}|array{_: 'messageActionWebViewDataSentMe', text: array, data: array}|array{_: 'messageActionWebViewDataSent', text: array}|array{_: 'messageActionGiftPremium', currency: array, amount: array, months: array, crypto_currency: array, crypto_amount: array}|array{_: 'messageActionTopicCreate', title: array, icon_color: array, icon_emoji_id: array}|array{_: 'messageActionTopicEdit', title: array, icon_emoji_id: array, closed?: array, hidden?: array}|array{_: 'messageActionSuggestProfilePhoto', photo: array}|array{_: 'messageActionRequestedPeer', peer: array, button_id: array}|array{_: 'messageActionSetChatWallPaper', wallpaper: array}|array{_: 'messageActionSetSameChatWallPaper', wallpaper: array}, out: bool, mentioned: bool, media_unread: bool, silent: bool, post: bool, legacy: bool, id: int, from_id?: array|int|string, reply_to?: array{_: 'messageReplyHeader', reply_to_scheduled: array, forum_topic: array, reply_to_msg_id: array, reply_to_peer_id?: array, reply_to_top_id: array}, date: int, ttl_period: int}>, topics: list, date: array}}>, chats: list, users: list}|array{_: 'messages.messagesNotModified', count: int} @see https://docs.madelineproto.xyz/API_docs/types/messages.Messages.html + * @return array{_: 'messages.messages', messages: list, chats: list, users: list}|array{_: 'messages.messagesSlice', inexact: array, count: array, next_rate: array, offset_id_offset: array, messages: list, chats: list, users: list}|array{_: 'messages.channelMessages', inexact: array, pts: array, count: array, offset_id_offset: array, messages: list, topics: list, chats: list, users: list}|array{_: 'messages.messagesNotModified', count: array} @see https://docs.madelineproto.xyz/API_docs/types/messages.Messages.html */ public function getScheduledMessages(array|int|string $peer, array $id = []): array; /** - * Send scheduled messages right away + * Send scheduled messages right away. * * @param array|int|string $peer Peer @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html * @param list|array $id Scheduled message IDs @@ -1089,7 +1047,7 @@ public function getScheduledMessages(array|int|string $peer, array $id = []): ar public function sendScheduledMessages(array|int|string $peer, array $id = []): array; /** - * Delete scheduled messages + * Delete scheduled messages. * * @param array|int|string $peer Peer @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html * @param list|array $id Scheduled message IDs @@ -1098,7 +1056,7 @@ public function sendScheduledMessages(array|int|string $peer, array $id = []): a public function deleteScheduledMessages(array|int|string $peer, array $id = []): array; /** - * Get poll results for non-anonymous polls + * Get poll results for non-anonymous polls. * * @param array|int|string $peer Chat where the poll was sent @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html * @param int $id Message ID @@ -1110,59 +1068,56 @@ public function deleteScheduledMessages(array|int|string $peer, array $id = []): public function getPollVotes(array|int|string $peer, int $id = 0, string $option = '', string $offset = '', int $limit = 0): array; /** - * Apply changes to multiple stickersets + * Apply changes to multiple stickersets. * * @param bool $uninstall Uninstall the specified stickersets * @param bool $archive Archive the specified stickersets * @param bool $unarchive Unarchive the specified stickersets * @param list|array $stickersets Array of Stickersets to act upon @see https://docs.madelineproto.xyz/API_docs/types/InputStickerSet.html - * @return bool */ public function toggleStickerSets(bool $uninstall = false, bool $archive = false, bool $unarchive = false, array $stickersets = []): bool; /** - * Get [folders](https://core.telegram.org/api/folders) + * Get [folders](https://core.telegram.org/api/folders). * * @return list, include_peers: list, exclude_peers: list}|array{_: 'dialogFilterDefault'}|array{_: 'dialogFilterChatlist', has_my_invites: bool, id: int, title: string, emoticon: string, pinned_peers: list, include_peers: list}> Array of @see https://docs.madelineproto.xyz/API_docs/types/DialogFilter.html */ public function getDialogFilters(): array; /** - * Get [suggested folders](https://core.telegram.org/api/folders) + * Get [suggested folders](https://core.telegram.org/api/folders). * * @return list, include_peers: list, exclude_peers: list}|array{_: 'dialogFilterDefault'}|array{_: 'dialogFilterChatlist', has_my_invites: bool, id: int, title: string, emoticon: string, pinned_peers: list, include_peers: list}, description: string}> Array of @see https://docs.madelineproto.xyz/API_docs/types/DialogFilterSuggested.html */ public function getSuggestedDialogFilters(): array; /** - * Update [folder](https://core.telegram.org/api/folders) + * Update [folder](https://core.telegram.org/api/folders). * * @param int $id [Folder](https://core.telegram.org/api/folders) ID * @param array{_: 'dialogFilter', contacts?: bool, non_contacts?: bool, groups?: bool, broadcasts?: bool, bots?: bool, exclude_muted?: bool, exclude_read?: bool, exclude_archived?: bool, id?: int, title?: string, emoticon?: string, pinned_peers?: list, include_peers?: list, exclude_peers?: list}|array{_: 'dialogFilterDefault'}|array{_: 'dialogFilterChatlist', has_my_invites?: bool, id?: int, title?: string, emoticon?: string, pinned_peers?: list, include_peers?: list}|array $filter [Folder](https://core.telegram.org/api/folders) info @see https://docs.madelineproto.xyz/API_docs/types/DialogFilter.html - * @return bool */ public function updateDialogFilter(int $id = 0, array $filter = []): bool; /** - * Reorder [folders](https://core.telegram.org/api/folders) + * Reorder [folders](https://core.telegram.org/api/folders). * * @param list|array $order New [folder](https://core.telegram.org/api/folders) order - * @return bool */ public function updateDialogFiltersOrder(array $order = []): bool; /** - * Method for fetching previously featured stickers + * Method for fetching previously featured stickers. * * @param int $offset Offset * @param int $limit Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets) * @param list|array $hash [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) - * @return array{_: 'messages.featuredStickersNotModified', count: int}|array{_: 'messages.featuredStickers', premium: bool, hash: list, count: int, sets: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}, cover: array{_: 'documentEmpty', id: int}|array{_: 'document', id: int, access_hash: int, file_reference: string, date: int, mime_type: string, size: int, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int, attributes: list}}|array{_: 'stickerSetMultiCovered', set: array{_: 'stickerSet', archived: bool, official: bool, masks: bool, animated: bool, videos: bool, emojis: bool, installed_date: int, id: int, access_hash: int, title: string, short_name: string, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}, covers: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int, attributes: list}>}|array{_: 'stickerSetFullCovered', set: array{_: 'stickerSet', archived: bool, official: bool, masks: bool, animated: bool, videos: bool, emojis: bool, installed_date: int, id: int, access_hash: int, title: string, short_name: string, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}, packs: list}>, keywords: list}>, documents: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int, attributes: list}>}|array{_: 'stickerSetNoCovered', set: array{_: 'stickerSet', archived: bool, official: bool, masks: bool, animated: bool, videos: bool, emojis: bool, installed_date: int, id: int, access_hash: int, title: string, short_name: string, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}}>, unread: list} @see https://docs.madelineproto.xyz/API_docs/types/messages.FeaturedStickers.html + * @return array{_: 'messages.featuredStickersNotModified', count: int}|array{_: 'messages.featuredStickers', premium: bool, hash: list, count: int, sets: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}, cover: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}}|array{_: 'stickerSetMultiCovered', set: array{_: 'stickerSet', archived: bool, official: bool, masks: bool, animated: bool, videos: bool, emojis: bool, installed_date: int, id: int, access_hash: int, title: string, short_name: string, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}, covers: list, video_thumbs: list, dc_id: array, attributes: list}>}|array{_: 'stickerSetFullCovered', set: array{_: 'stickerSet', archived: bool, official: bool, masks: bool, animated: bool, videos: bool, emojis: bool, installed_date: int, id: int, access_hash: int, title: string, short_name: string, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}, packs: list}>, keywords: list}>, documents: list, video_thumbs: list, dc_id: array, attributes: list}>}|array{_: 'stickerSetNoCovered', set: array{_: 'stickerSet', archived: bool, official: bool, masks: bool, animated: bool, videos: bool, emojis: bool, installed_date: int, id: int, access_hash: int, title: string, short_name: string, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}}>, unread: list} @see https://docs.madelineproto.xyz/API_docs/types/messages.FeaturedStickers.html */ public function getOldFeaturedStickers(int $offset = 0, int $limit = 0, array $hash = []): array; /** - * Get messages in a reply thread + * Get messages in a reply thread. * * @param array|int|string $peer Peer @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html * @param int $msg_id Message ID @@ -1173,43 +1128,40 @@ public function getOldFeaturedStickers(int $offset = 0, int $limit = 0, array $h * @param int $max_id If a positive value was transferred, the method will return only messages with ID smaller than max\_id * @param int $min_id If a positive value was transferred, the method will return only messages with ID bigger than min\_id * @param list|array $hash [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) - * @return array{_: 'messages.messages', messages: list, video_sizes: list, dc_id: array}, ttl_seconds: int}|array{_: 'messageMediaGeo', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}}|array{_: 'messageMediaContact', phone_number: string, first_name: string, last_name: string, vcard: string, user_id: int}|array{_: 'messageMediaUnsupported'}|array{_: 'messageMediaDocument', nopremium: bool, spoiler: bool, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, ttl_seconds: int}|array{_: 'messageMediaWebPage', webpage: array{_: 'webPageEmpty', id: array}|array{_: 'webPagePending', id: array, date: array}|array{_: 'webPage', id: array, url: array, display_url: array, hash: array, type: array, site_name: array, title: array, description: array, photo?: array, embed_url: array, embed_type: array, embed_width: array, embed_height: array, duration: array, author: array, document?: array, cached_page?: array, attributes: list}|array{_: 'webPageNotModified', cached_page_views: array}}|array{_: 'messageMediaVenue', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, title: string, address: string, provider: string, venue_id: string, venue_type: string}|array{_: 'messageMediaGame', game: array{_: 'game', photo: array, id: array, access_hash: array, short_name: array, title: array, description: array, document?: array}}|array{_: 'messageMediaInvoice', shipping_address_requested: bool, test: bool, title: string, description: string, photo?: array{_: 'webDocument', url: array, access_hash: array, size: array, mime_type: array, attributes: list}|array{_: 'webDocumentNoProxy', url: array, size: array, mime_type: array, attributes: list}, receipt_msg_id: int, currency: string, total_amount: int, start_param: string, extended_media?: array{_: 'messageExtendedMediaPreview', w: array, h: array, thumb?: array, video_duration: array}}|array{_: 'messageMediaGeoLive', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, heading: int, period: int, proximity_notification_radius: int}|array{_: 'messageMediaPoll', poll: array{_: 'poll', id: array, closed: array, public_voters: array, multiple_choice: array, quiz: array, question: array, answers: list, close_period: array, close_date: array}, results: array{_: 'pollResults', min: array, results: list, total_voters: array, recent_voters: list, solution: array, solution_entities: list}}|array{_: 'messageMediaDice', value: int, emoticon: string}, reply_markup?: array, entities: list, views: int, forwards: int, replies?: array{_: 'messageReplies', comments: array, replies: array, replies_pts: array, recent_repliers: list, channel_id: array, max_id: array, read_max_id: array}, edit_date: int, post_author: string, grouped_id: int, reactions?: array{_: 'messageReactions', min: array, can_see_list: array, results: list, recent_reactions: list}, restriction_reason: list, ttl_period: int}|array{_: 'messageService', peer_id: array|int|string, action: array{_: 'messageActionEmpty'}|array{_: 'messageActionChatCreate', title: array, users: list}|array{_: 'messageActionChatEditTitle', title: array}|array{_: 'messageActionChatEditPhoto', photo: array}|array{_: 'messageActionChatDeletePhoto'}|array{_: 'messageActionChatAddUser', users: list}|array{_: 'messageActionChatDeleteUser', user_id: array}|array{_: 'messageActionChatJoinedByLink', inviter_id: array}|array{_: 'messageActionChannelCreate', title: array}|array{_: 'messageActionChatMigrateTo', channel_id: array}|array{_: 'messageActionChannelMigrateFrom', chat_id: array, title: array}|array{_: 'messageActionPinMessage'}|array{_: 'messageActionHistoryClear'}|array{_: 'messageActionGameScore', game_id: array, score: array}|array{_: 'messageActionPaymentSentMe', charge: array, recurring_init: array, recurring_used: array, currency: array, total_amount: array, payload: array, info?: array, shipping_option_id: array}|array{_: 'messageActionPaymentSent', recurring_init: array, recurring_used: array, currency: array, total_amount: array, invoice_slug: array}|array{_: 'messageActionPhoneCall', video: array, call_id: array, reason?: array, duration: array}|array{_: 'messageActionScreenshotTaken'}|array{_: 'messageActionCustomAction', message: array}|array{_: 'messageActionBotAllowed', attach_menu: array, domain: array, app?: array}|array{_: 'messageActionSecureValuesSentMe', credentials: array, values: list}|array{_: 'messageActionSecureValuesSent', types: list}|array{_: 'messageActionContactSignUp'}|array{_: 'messageActionGeoProximityReached', from_id: array, to_id: array, distance: array}|array{_: 'messageActionGroupCall', call: array, duration: array}|array{_: 'messageActionInviteToGroupCall', call: array, users: list}|array{_: 'messageActionSetMessagesTTL', period: array, auto_setting_from: array}|array{_: 'messageActionGroupCallScheduled', call: array, schedule_date: array}|array{_: 'messageActionSetChatTheme', emoticon: array}|array{_: 'messageActionChatJoinedByRequest'}|array{_: 'messageActionWebViewDataSentMe', text: array, data: array}|array{_: 'messageActionWebViewDataSent', text: array}|array{_: 'messageActionGiftPremium', currency: array, amount: array, months: array, crypto_currency: array, crypto_amount: array}|array{_: 'messageActionTopicCreate', title: array, icon_color: array, icon_emoji_id: array}|array{_: 'messageActionTopicEdit', title: array, icon_emoji_id: array, closed?: array, hidden?: array}|array{_: 'messageActionSuggestProfilePhoto', photo: array}|array{_: 'messageActionRequestedPeer', peer: array, button_id: array}|array{_: 'messageActionSetChatWallPaper', wallpaper: array}|array{_: 'messageActionSetSameChatWallPaper', wallpaper: array}, out: bool, mentioned: bool, media_unread: bool, silent: bool, post: bool, legacy: bool, id: int, from_id?: array|int|string, reply_to?: array{_: 'messageReplyHeader', reply_to_scheduled: array, forum_topic: array, reply_to_msg_id: array, reply_to_peer_id?: array, reply_to_top_id: array}, date: int, ttl_period: int}>, chats: list, users: list}|array{_: 'messages.messagesSlice', inexact: bool, count: int, next_rate: int, offset_id_offset: int, messages: list, video_sizes: list, dc_id: array}, ttl_seconds: int}|array{_: 'messageMediaGeo', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}}|array{_: 'messageMediaContact', phone_number: string, first_name: string, last_name: string, vcard: string, user_id: int}|array{_: 'messageMediaUnsupported'}|array{_: 'messageMediaDocument', nopremium: bool, spoiler: bool, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, ttl_seconds: int}|array{_: 'messageMediaWebPage', webpage: array{_: 'webPageEmpty', id: array}|array{_: 'webPagePending', id: array, date: array}|array{_: 'webPage', id: array, url: array, display_url: array, hash: array, type: array, site_name: array, title: array, description: array, photo?: array, embed_url: array, embed_type: array, embed_width: array, embed_height: array, duration: array, author: array, document?: array, cached_page?: array, attributes: list}|array{_: 'webPageNotModified', cached_page_views: array}}|array{_: 'messageMediaVenue', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, title: string, address: string, provider: string, venue_id: string, venue_type: string}|array{_: 'messageMediaGame', game: array{_: 'game', photo: array, id: array, access_hash: array, short_name: array, title: array, description: array, document?: array}}|array{_: 'messageMediaInvoice', shipping_address_requested: bool, test: bool, title: string, description: string, photo?: array{_: 'webDocument', url: array, access_hash: array, size: array, mime_type: array, attributes: list}|array{_: 'webDocumentNoProxy', url: array, size: array, mime_type: array, attributes: list}, receipt_msg_id: int, currency: string, total_amount: int, start_param: string, extended_media?: array{_: 'messageExtendedMediaPreview', w: array, h: array, thumb?: array, video_duration: array}}|array{_: 'messageMediaGeoLive', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, heading: int, period: int, proximity_notification_radius: int}|array{_: 'messageMediaPoll', poll: array{_: 'poll', id: array, closed: array, public_voters: array, multiple_choice: array, quiz: array, question: array, answers: list, close_period: array, close_date: array}, results: array{_: 'pollResults', min: array, results: list, total_voters: array, recent_voters: list, solution: array, solution_entities: list}}|array{_: 'messageMediaDice', value: int, emoticon: string}, reply_markup?: array, entities: list, views: int, forwards: int, replies?: array{_: 'messageReplies', comments: array, replies: array, replies_pts: array, recent_repliers: list, channel_id: array, max_id: array, read_max_id: array}, edit_date: int, post_author: string, grouped_id: int, reactions?: array{_: 'messageReactions', min: array, can_see_list: array, results: list, recent_reactions: list}, restriction_reason: list, ttl_period: int}|array{_: 'messageService', peer_id: array|int|string, action: array{_: 'messageActionEmpty'}|array{_: 'messageActionChatCreate', title: array, users: list}|array{_: 'messageActionChatEditTitle', title: array}|array{_: 'messageActionChatEditPhoto', photo: array}|array{_: 'messageActionChatDeletePhoto'}|array{_: 'messageActionChatAddUser', users: list}|array{_: 'messageActionChatDeleteUser', user_id: array}|array{_: 'messageActionChatJoinedByLink', inviter_id: array}|array{_: 'messageActionChannelCreate', title: array}|array{_: 'messageActionChatMigrateTo', channel_id: array}|array{_: 'messageActionChannelMigrateFrom', chat_id: array, title: array}|array{_: 'messageActionPinMessage'}|array{_: 'messageActionHistoryClear'}|array{_: 'messageActionGameScore', game_id: array, score: array}|array{_: 'messageActionPaymentSentMe', charge: array, recurring_init: array, recurring_used: array, currency: array, total_amount: array, payload: array, info?: array, shipping_option_id: array}|array{_: 'messageActionPaymentSent', recurring_init: array, recurring_used: array, currency: array, total_amount: array, invoice_slug: array}|array{_: 'messageActionPhoneCall', video: array, call_id: array, reason?: array, duration: array}|array{_: 'messageActionScreenshotTaken'}|array{_: 'messageActionCustomAction', message: array}|array{_: 'messageActionBotAllowed', attach_menu: array, domain: array, app?: array}|array{_: 'messageActionSecureValuesSentMe', credentials: array, values: list}|array{_: 'messageActionSecureValuesSent', types: list}|array{_: 'messageActionContactSignUp'}|array{_: 'messageActionGeoProximityReached', from_id: array, to_id: array, distance: array}|array{_: 'messageActionGroupCall', call: array, duration: array}|array{_: 'messageActionInviteToGroupCall', call: array, users: list}|array{_: 'messageActionSetMessagesTTL', period: array, auto_setting_from: array}|array{_: 'messageActionGroupCallScheduled', call: array, schedule_date: array}|array{_: 'messageActionSetChatTheme', emoticon: array}|array{_: 'messageActionChatJoinedByRequest'}|array{_: 'messageActionWebViewDataSentMe', text: array, data: array}|array{_: 'messageActionWebViewDataSent', text: array}|array{_: 'messageActionGiftPremium', currency: array, amount: array, months: array, crypto_currency: array, crypto_amount: array}|array{_: 'messageActionTopicCreate', title: array, icon_color: array, icon_emoji_id: array}|array{_: 'messageActionTopicEdit', title: array, icon_emoji_id: array, closed?: array, hidden?: array}|array{_: 'messageActionSuggestProfilePhoto', photo: array}|array{_: 'messageActionRequestedPeer', peer: array, button_id: array}|array{_: 'messageActionSetChatWallPaper', wallpaper: array}|array{_: 'messageActionSetSameChatWallPaper', wallpaper: array}, out: bool, mentioned: bool, media_unread: bool, silent: bool, post: bool, legacy: bool, id: int, from_id?: array|int|string, reply_to?: array{_: 'messageReplyHeader', reply_to_scheduled: array, forum_topic: array, reply_to_msg_id: array, reply_to_peer_id?: array, reply_to_top_id: array}, date: int, ttl_period: int}>, chats: list, users: list}|array{_: 'messages.channelMessages', inexact: bool, pts: int, count: int, offset_id_offset: int, messages: list, video_sizes: list, dc_id: array}, ttl_seconds: int}|array{_: 'messageMediaGeo', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}}|array{_: 'messageMediaContact', phone_number: string, first_name: string, last_name: string, vcard: string, user_id: int}|array{_: 'messageMediaUnsupported'}|array{_: 'messageMediaDocument', nopremium: bool, spoiler: bool, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, ttl_seconds: int}|array{_: 'messageMediaWebPage', webpage: array{_: 'webPageEmpty', id: array}|array{_: 'webPagePending', id: array, date: array}|array{_: 'webPage', id: array, url: array, display_url: array, hash: array, type: array, site_name: array, title: array, description: array, photo?: array, embed_url: array, embed_type: array, embed_width: array, embed_height: array, duration: array, author: array, document?: array, cached_page?: array, attributes: list}|array{_: 'webPageNotModified', cached_page_views: array}}|array{_: 'messageMediaVenue', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, title: string, address: string, provider: string, venue_id: string, venue_type: string}|array{_: 'messageMediaGame', game: array{_: 'game', photo: array, id: array, access_hash: array, short_name: array, title: array, description: array, document?: array}}|array{_: 'messageMediaInvoice', shipping_address_requested: bool, test: bool, title: string, description: string, photo?: array{_: 'webDocument', url: array, access_hash: array, size: array, mime_type: array, attributes: list}|array{_: 'webDocumentNoProxy', url: array, size: array, mime_type: array, attributes: list}, receipt_msg_id: int, currency: string, total_amount: int, start_param: string, extended_media?: array{_: 'messageExtendedMediaPreview', w: array, h: array, thumb?: array, video_duration: array}}|array{_: 'messageMediaGeoLive', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, heading: int, period: int, proximity_notification_radius: int}|array{_: 'messageMediaPoll', poll: array{_: 'poll', id: array, closed: array, public_voters: array, multiple_choice: array, quiz: array, question: array, answers: list, close_period: array, close_date: array}, results: array{_: 'pollResults', min: array, results: list, total_voters: array, recent_voters: list, solution: array, solution_entities: list}}|array{_: 'messageMediaDice', value: int, emoticon: string}, reply_markup?: array, entities: list, views: int, forwards: int, replies?: array{_: 'messageReplies', comments: array, replies: array, replies_pts: array, recent_repliers: list, channel_id: array, max_id: array, read_max_id: array}, edit_date: int, post_author: string, grouped_id: int, reactions?: array{_: 'messageReactions', min: array, can_see_list: array, results: list, recent_reactions: list}, restriction_reason: list, ttl_period: int}|array{_: 'messageService', peer_id: array|int|string, action: array{_: 'messageActionEmpty'}|array{_: 'messageActionChatCreate', title: array, users: list}|array{_: 'messageActionChatEditTitle', title: array}|array{_: 'messageActionChatEditPhoto', photo: array}|array{_: 'messageActionChatDeletePhoto'}|array{_: 'messageActionChatAddUser', users: list}|array{_: 'messageActionChatDeleteUser', user_id: array}|array{_: 'messageActionChatJoinedByLink', inviter_id: array}|array{_: 'messageActionChannelCreate', title: array}|array{_: 'messageActionChatMigrateTo', channel_id: array}|array{_: 'messageActionChannelMigrateFrom', chat_id: array, title: array}|array{_: 'messageActionPinMessage'}|array{_: 'messageActionHistoryClear'}|array{_: 'messageActionGameScore', game_id: array, score: array}|array{_: 'messageActionPaymentSentMe', charge: array, recurring_init: array, recurring_used: array, currency: array, total_amount: array, payload: array, info?: array, shipping_option_id: array}|array{_: 'messageActionPaymentSent', recurring_init: array, recurring_used: array, currency: array, total_amount: array, invoice_slug: array}|array{_: 'messageActionPhoneCall', video: array, call_id: array, reason?: array, duration: array}|array{_: 'messageActionScreenshotTaken'}|array{_: 'messageActionCustomAction', message: array}|array{_: 'messageActionBotAllowed', attach_menu: array, domain: array, app?: array}|array{_: 'messageActionSecureValuesSentMe', credentials: array, values: list}|array{_: 'messageActionSecureValuesSent', types: list}|array{_: 'messageActionContactSignUp'}|array{_: 'messageActionGeoProximityReached', from_id: array, to_id: array, distance: array}|array{_: 'messageActionGroupCall', call: array, duration: array}|array{_: 'messageActionInviteToGroupCall', call: array, users: list}|array{_: 'messageActionSetMessagesTTL', period: array, auto_setting_from: array}|array{_: 'messageActionGroupCallScheduled', call: array, schedule_date: array}|array{_: 'messageActionSetChatTheme', emoticon: array}|array{_: 'messageActionChatJoinedByRequest'}|array{_: 'messageActionWebViewDataSentMe', text: array, data: array}|array{_: 'messageActionWebViewDataSent', text: array}|array{_: 'messageActionGiftPremium', currency: array, amount: array, months: array, crypto_currency: array, crypto_amount: array}|array{_: 'messageActionTopicCreate', title: array, icon_color: array, icon_emoji_id: array}|array{_: 'messageActionTopicEdit', title: array, icon_emoji_id: array, closed?: array, hidden?: array}|array{_: 'messageActionSuggestProfilePhoto', photo: array}|array{_: 'messageActionRequestedPeer', peer: array, button_id: array}|array{_: 'messageActionSetChatWallPaper', wallpaper: array}|array{_: 'messageActionSetSameChatWallPaper', wallpaper: array}, out: bool, mentioned: bool, media_unread: bool, silent: bool, post: bool, legacy: bool, id: int, from_id?: array|int|string, reply_to?: array{_: 'messageReplyHeader', reply_to_scheduled: array, forum_topic: array, reply_to_msg_id: array, reply_to_peer_id?: array, reply_to_top_id: array}, date: int, ttl_period: int}>, topics: list, date: array}}>, chats: list, users: list}|array{_: 'messages.messagesNotModified', count: int} @see https://docs.madelineproto.xyz/API_docs/types/messages.Messages.html + * @return array{_: 'messages.messages', messages: list, chats: list, users: list}|array{_: 'messages.messagesSlice', inexact: array, count: array, next_rate: array, offset_id_offset: array, messages: list, chats: list, users: list}|array{_: 'messages.channelMessages', inexact: array, pts: array, count: array, offset_id_offset: array, messages: list, topics: list, chats: list, users: list}|array{_: 'messages.messagesNotModified', count: array} @see https://docs.madelineproto.xyz/API_docs/types/messages.Messages.html */ public function getReplies(array|int|string $peer, int $msg_id = 0, int $offset_id = 0, int $offset_date = 0, int $add_offset = 0, int $limit = 0, int $max_id = 0, int $min_id = 0, array $hash = []): array; /** - * Get [discussion message](https://core.telegram.org/api/threads) from the [associated discussion group](https://core.telegram.org/api/discussion) of a channel to show it on top of the comment section, without actually joining the group + * Get [discussion message](https://core.telegram.org/api/threads) from the [associated discussion group](https://core.telegram.org/api/discussion) of a channel to show it on top of the comment section, without actually joining the group. * * @param array|int|string $peer [Channel ID](https://core.telegram.org/api/channel) @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html * @param int $msg_id Message ID - * @return array{_: 'messages.discussionMessage', messages: list, video_sizes: list, dc_id: array}, ttl_seconds: int}|array{_: 'messageMediaGeo', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}}|array{_: 'messageMediaContact', phone_number: string, first_name: string, last_name: string, vcard: string, user_id: int}|array{_: 'messageMediaUnsupported'}|array{_: 'messageMediaDocument', nopremium: bool, spoiler: bool, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, ttl_seconds: int}|array{_: 'messageMediaWebPage', webpage: array{_: 'webPageEmpty', id: array}|array{_: 'webPagePending', id: array, date: array}|array{_: 'webPage', id: array, url: array, display_url: array, hash: array, type: array, site_name: array, title: array, description: array, photo?: array, embed_url: array, embed_type: array, embed_width: array, embed_height: array, duration: array, author: array, document?: array, cached_page?: array, attributes: list}|array{_: 'webPageNotModified', cached_page_views: array}}|array{_: 'messageMediaVenue', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, title: string, address: string, provider: string, venue_id: string, venue_type: string}|array{_: 'messageMediaGame', game: array{_: 'game', photo: array, id: array, access_hash: array, short_name: array, title: array, description: array, document?: array}}|array{_: 'messageMediaInvoice', shipping_address_requested: bool, test: bool, title: string, description: string, photo?: array{_: 'webDocument', url: array, access_hash: array, size: array, mime_type: array, attributes: list}|array{_: 'webDocumentNoProxy', url: array, size: array, mime_type: array, attributes: list}, receipt_msg_id: int, currency: string, total_amount: int, start_param: string, extended_media?: array{_: 'messageExtendedMediaPreview', w: array, h: array, thumb?: array, video_duration: array}}|array{_: 'messageMediaGeoLive', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, heading: int, period: int, proximity_notification_radius: int}|array{_: 'messageMediaPoll', poll: array{_: 'poll', id: array, closed: array, public_voters: array, multiple_choice: array, quiz: array, question: array, answers: list, close_period: array, close_date: array}, results: array{_: 'pollResults', min: array, results: list, total_voters: array, recent_voters: list, solution: array, solution_entities: list}}|array{_: 'messageMediaDice', value: int, emoticon: string}, reply_markup?: array, entities: list, views: int, forwards: int, replies?: array{_: 'messageReplies', comments: bool, replies: int, replies_pts: int, recent_repliers: list, channel_id: int, max_id: int, read_max_id: int}, edit_date: int, post_author: string, grouped_id: int, reactions?: array{_: 'messageReactions', min: bool, can_see_list: bool, results: list, recent_reactions: list}, restriction_reason: list, ttl_period: int}|array{_: 'messageService', peer_id: array|int|string, action: array{_: 'messageActionEmpty'}|array{_: 'messageActionChatCreate', title: string, users: list}|array{_: 'messageActionChatEditTitle', title: string}|array{_: 'messageActionChatEditPhoto', photo: array{_: 'photoEmpty', id: int}|array{_: 'photo', has_stickers: bool, id: int, access_hash: int, file_reference: string, date: int, sizes: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: array, local_id: array, secret: array}|array{_: 'fileLocation', dc_id: array, volume_id: array, local_id: array, secret: array}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: array, local_id: array, secret: array}|array{_: 'fileLocation', dc_id: array, volume_id: array, local_id: array, secret: array}, type: string, w: int, h: int, bytes: string}>, video_sizes: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: array, access_hash: array}|array{_: 'inputStickerSetShortName', short_name: array}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: array}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int}}|array{_: 'messageActionChatDeletePhoto'}|array{_: 'messageActionChatAddUser', users: list}|array{_: 'messageActionChatDeleteUser', user_id: int}|array{_: 'messageActionChatJoinedByLink', inviter_id: int}|array{_: 'messageActionChannelCreate', title: string}|array{_: 'messageActionChatMigrateTo', channel_id: int}|array{_: 'messageActionChannelMigrateFrom', chat_id: array|int|string, title: string}|array{_: 'messageActionPinMessage'}|array{_: 'messageActionHistoryClear'}|array{_: 'messageActionGameScore', game_id: int, score: int}|array{_: 'messageActionPaymentSentMe', charge: array{_: 'paymentCharge', id: string, provider_charge_id: string}, recurring_init: bool, recurring_used: bool, currency: string, total_amount: int, payload: string, info?: array{_: 'paymentRequestedInfo', name: string, phone: string, email: string, shipping_address?: array{_: 'postAddress', street_line1: string, street_line2: string, city: string, state: string, country_iso2: string, post_code: string}}, shipping_option_id: string}|array{_: 'messageActionPaymentSent', recurring_init: bool, recurring_used: bool, currency: string, total_amount: int, invoice_slug: string}|array{_: 'messageActionPhoneCall', video: bool, call_id: int, reason?: array{_: 'phoneCallDiscardReasonMissed'}|array{_: 'phoneCallDiscardReasonDisconnect'}|array{_: 'phoneCallDiscardReasonHangup'}|array{_: 'phoneCallDiscardReasonBusy'}, duration: int}|array{_: 'messageActionScreenshotTaken'}|array{_: 'messageActionCustomAction', message: string}|array{_: 'messageActionBotAllowed', attach_menu: bool, domain: string, app?: array{_: 'botAppNotModified'}|array{_: 'botApp', photo: array{_: 'photoEmpty', id: int}|array{_: 'photo', has_stickers: bool, id: int, access_hash: int, file_reference: string, date: int, sizes: list}|array{_: 'photoPathSize', type: array, bytes: array}|array{_: 'photoSize', location: array, type: array, w: array, h: array, size: array}|array{_: 'photoCachedSize', location: array, type: array, w: array, h: array, bytes: array}>, video_sizes: list}|array{_: 'videoSizeStickerMarkup', stickerset: array, sticker_id: array, background_colors: list}>, dc_id: int}, id: int, access_hash: int, short_name: string, title: string, description: string, document?: array{_: 'documentEmpty', id: int}|array{_: 'document', id: int, access_hash: int, file_reference: string, date: int, mime_type: string, size: int, thumbs: list}|array{_: 'photoPathSize', type: array, bytes: array}|array{_: 'photoSize', location: array, type: array, w: array, h: array, size: array}|array{_: 'photoCachedSize', location: array, type: array, w: array, h: array, bytes: array}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array, sticker_id: array, background_colors: list}>, dc_id: int, attributes: list}, hash: list}}|array{_: 'messageActionSecureValuesSentMe', credentials: array{_: 'secureCredentialsEncrypted', data: string, hash: string, secret: string}, values: list, files: list, plain_data?: array{_: 'securePlainPhone', phone: string}|array{_: 'securePlainEmail', email: string}, hash: string}>}|array{_: 'messageActionSecureValuesSent', types: list}|array{_: 'messageActionContactSignUp'}|array{_: 'messageActionGeoProximityReached', from_id: array|int|string, to_id: array|int|string, distance: int}|array{_: 'messageActionGroupCall', call: array{_: 'inputGroupCall', id: int, access_hash: int}, duration: int}|array{_: 'messageActionInviteToGroupCall', call: array{_: 'inputGroupCall', id: int, access_hash: int}, users: list}|array{_: 'messageActionSetMessagesTTL', period: int, auto_setting_from: int}|array{_: 'messageActionGroupCallScheduled', call: array{_: 'inputGroupCall', id: int, access_hash: int}, schedule_date: int}|array{_: 'messageActionSetChatTheme', emoticon: string}|array{_: 'messageActionChatJoinedByRequest'}|array{_: 'messageActionWebViewDataSentMe', text: string, data: string}|array{_: 'messageActionWebViewDataSent', text: string}|array{_: 'messageActionGiftPremium', currency: string, amount: int, months: int, crypto_currency: string, crypto_amount: int}|array{_: 'messageActionTopicCreate', title: string, icon_color: int, icon_emoji_id: int}|array{_: 'messageActionTopicEdit', title: string, icon_emoji_id: int, closed?: bool, hidden?: bool}|array{_: 'messageActionSuggestProfilePhoto', photo: array{_: 'photoEmpty', id: int}|array{_: 'photo', has_stickers: bool, id: int, access_hash: int, file_reference: string, date: int, sizes: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: array, local_id: array, secret: array}|array{_: 'fileLocation', dc_id: array, volume_id: array, local_id: array, secret: array}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: array, local_id: array, secret: array}|array{_: 'fileLocation', dc_id: array, volume_id: array, local_id: array, secret: array}, type: string, w: int, h: int, bytes: string}>, video_sizes: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: array, access_hash: array}|array{_: 'inputStickerSetShortName', short_name: array}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: array}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int}}|array{_: 'messageActionRequestedPeer', peer: array|int|string, button_id: int}|array{_: 'messageActionSetChatWallPaper', wallpaper: array{_: 'wallPaper', document: array{_: 'documentEmpty', id: int}|array{_: 'document', id: int, access_hash: int, file_reference: string, date: int, mime_type: string, size: int, thumbs: list}|array{_: 'photoPathSize', type: array, bytes: array}|array{_: 'photoSize', location: array, type: array, w: array, h: array, size: array}|array{_: 'photoCachedSize', location: array, type: array, w: array, h: array, bytes: array}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array, sticker_id: array, background_colors: list}>, dc_id: int, attributes: list}, id: int, creator: bool, default: bool, pattern: bool, dark: bool, access_hash: int, slug: string, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}|array{_: 'wallPaperNoFile', id: int, default: bool, dark: bool, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}}|array{_: 'messageActionSetSameChatWallPaper', wallpaper: array{_: 'wallPaper', document: array{_: 'documentEmpty', id: int}|array{_: 'document', id: int, access_hash: int, file_reference: string, date: int, mime_type: string, size: int, thumbs: list}|array{_: 'photoPathSize', type: array, bytes: array}|array{_: 'photoSize', location: array, type: array, w: array, h: array, size: array}|array{_: 'photoCachedSize', location: array, type: array, w: array, h: array, bytes: array}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array, sticker_id: array, background_colors: list}>, dc_id: int, attributes: list}, id: int, creator: bool, default: bool, pattern: bool, dark: bool, access_hash: int, slug: string, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}|array{_: 'wallPaperNoFile', id: int, default: bool, dark: bool, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}}, out: bool, mentioned: bool, media_unread: bool, silent: bool, post: bool, legacy: bool, id: int, from_id?: array|int|string, reply_to?: array{_: 'messageReplyHeader', reply_to_scheduled: bool, forum_topic: bool, reply_to_msg_id: int, reply_to_peer_id?: array|int|string, reply_to_top_id: int}, date: int, ttl_period: int}>, max_id: int, read_inbox_max_id: int, read_outbox_max_id: int, unread_count: int, chats: list, users: list} @see https://docs.madelineproto.xyz/API_docs/types/messages.DiscussionMessage.html + * @return array{_: 'messages.discussionMessage', messages: list, video_sizes: list, dc_id: array}, ttl_seconds: int}|array{_: 'messageMediaGeo', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}}|array{_: 'messageMediaContact', phone_number: string, first_name: string, last_name: string, vcard: string, user_id: int}|array{_: 'messageMediaUnsupported'}|array{_: 'messageMediaDocument', nopremium: bool, spoiler: bool, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, ttl_seconds: int}|array{_: 'messageMediaWebPage', webpage: array{_: 'webPageEmpty', id: array}|array{_: 'webPagePending', id: array, date: array}|array{_: 'webPage', id: array, url: array, display_url: array, hash: array, type: array, site_name: array, title: array, description: array, photo?: array{_: 'photoEmpty', id: array}|array{_: 'photo', has_stickers: array, id: array, access_hash: array, file_reference: array, date: array, sizes: list, video_sizes: list, dc_id: array}, embed_url: array, embed_type: array, embed_width: array, embed_height: array, duration: array, author: array, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, cached_page?: array, attributes: list}|array{_: 'webPageNotModified', cached_page_views: array}}|array{_: 'messageMediaVenue', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, title: string, address: string, provider: string, venue_id: string, venue_type: string}|array{_: 'messageMediaGame', game: array{_: 'game', photo: array{_: 'photoEmpty', id: array}|array{_: 'photo', has_stickers: array, id: array, access_hash: array, file_reference: array, date: array, sizes: list, video_sizes: list, dc_id: array}, id: array, access_hash: array, short_name: array, title: array, description: array, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}}}|array{_: 'messageMediaInvoice', shipping_address_requested: bool, test: bool, title: string, description: string, photo?: array{_: 'webDocument', url: array, access_hash: array, size: array, mime_type: array, attributes: list}|array{_: 'webDocumentNoProxy', url: array, size: array, mime_type: array, attributes: list}, receipt_msg_id: int, currency: string, total_amount: int, start_param: string, extended_media?: array{_: 'messageExtendedMediaPreview', w: array, h: array, thumb?: array, video_duration: array}}|array{_: 'messageMediaGeoLive', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, heading: int, period: int, proximity_notification_radius: int}|array{_: 'messageMediaPoll', poll: array{_: 'poll', id: array, closed: array, public_voters: array, multiple_choice: array, quiz: array, question: array, answers: list, close_period: array, close_date: array}, results: array{_: 'pollResults', min: array, results: list, total_voters: array, recent_voters: list, solution: array, solution_entities: list}}|array{_: 'messageMediaDice', value: int, emoticon: string}, reply_markup?: array, entities: list, views: int, forwards: int, replies?: array{_: 'messageReplies', comments: bool, replies: int, replies_pts: int, recent_repliers: list, channel_id: int, max_id: int, read_max_id: int}, edit_date: int, post_author: string, grouped_id: int, reactions?: array{_: 'messageReactions', min: bool, can_see_list: bool, results: list, recent_reactions: list}, restriction_reason: list, ttl_period: int}|array{_: 'messageService', peer_id: array|int|string, action: array{_: 'messageActionEmpty'}|array{_: 'messageActionChatCreate', title: string, users: list}|array{_: 'messageActionChatEditTitle', title: string}|array{_: 'messageActionChatEditPhoto', photo: array{_: 'photoEmpty', id: array}|array{_: 'photo', has_stickers: array, id: array, access_hash: array, file_reference: array, date: array, sizes: list, video_sizes: list, dc_id: array}}|array{_: 'messageActionChatDeletePhoto'}|array{_: 'messageActionChatAddUser', users: list}|array{_: 'messageActionChatDeleteUser', user_id: int}|array{_: 'messageActionChatJoinedByLink', inviter_id: int}|array{_: 'messageActionChannelCreate', title: string}|array{_: 'messageActionChatMigrateTo', channel_id: int}|array{_: 'messageActionChannelMigrateFrom', chat_id: array|int|string, title: string}|array{_: 'messageActionPinMessage'}|array{_: 'messageActionHistoryClear'}|array{_: 'messageActionGameScore', game_id: int, score: int}|array{_: 'messageActionPaymentSentMe', charge: array{_: 'paymentCharge', id: string, provider_charge_id: string}, recurring_init: bool, recurring_used: bool, currency: string, total_amount: int, payload: string, info?: array{_: 'paymentRequestedInfo', name: string, phone: string, email: string, shipping_address?: array{_: 'postAddress', street_line1: string, street_line2: string, city: string, state: string, country_iso2: string, post_code: string}}, shipping_option_id: string}|array{_: 'messageActionPaymentSent', recurring_init: bool, recurring_used: bool, currency: string, total_amount: int, invoice_slug: string}|array{_: 'messageActionPhoneCall', video: bool, call_id: int, reason?: array{_: 'phoneCallDiscardReasonMissed'}|array{_: 'phoneCallDiscardReasonDisconnect'}|array{_: 'phoneCallDiscardReasonHangup'}|array{_: 'phoneCallDiscardReasonBusy'}, duration: int}|array{_: 'messageActionScreenshotTaken'}|array{_: 'messageActionCustomAction', message: string}|array{_: 'messageActionBotAllowed', attach_menu: bool, domain: string, app?: array{_: 'botAppNotModified'}|array{_: 'botApp', photo: array{_: 'photoEmpty', id: array}|array{_: 'photo', has_stickers: array, id: array, access_hash: array, file_reference: array, date: array, sizes: list, video_sizes: list, dc_id: array}, id: int, access_hash: int, short_name: string, title: string, description: string, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, hash: list}}|array{_: 'messageActionSecureValuesSentMe', credentials: array{_: 'secureCredentialsEncrypted', data: string, hash: string, secret: string}, values: list, files: list, plain_data?: array{_: 'securePlainPhone', phone: string}|array{_: 'securePlainEmail', email: string}, hash: string}>}|array{_: 'messageActionSecureValuesSent', types: list}|array{_: 'messageActionContactSignUp'}|array{_: 'messageActionGeoProximityReached', from_id: array|int|string, to_id: array|int|string, distance: int}|array{_: 'messageActionGroupCall', call: array{_: 'inputGroupCall', id: int, access_hash: int}, duration: int}|array{_: 'messageActionInviteToGroupCall', call: array{_: 'inputGroupCall', id: int, access_hash: int}, users: list}|array{_: 'messageActionSetMessagesTTL', period: int, auto_setting_from: int}|array{_: 'messageActionGroupCallScheduled', call: array{_: 'inputGroupCall', id: int, access_hash: int}, schedule_date: int}|array{_: 'messageActionSetChatTheme', emoticon: string}|array{_: 'messageActionChatJoinedByRequest'}|array{_: 'messageActionWebViewDataSentMe', text: string, data: string}|array{_: 'messageActionWebViewDataSent', text: string}|array{_: 'messageActionGiftPremium', currency: string, amount: int, months: int, crypto_currency: string, crypto_amount: int}|array{_: 'messageActionTopicCreate', title: string, icon_color: int, icon_emoji_id: int}|array{_: 'messageActionTopicEdit', title: string, icon_emoji_id: int, closed?: bool, hidden?: bool}|array{_: 'messageActionSuggestProfilePhoto', photo: array{_: 'photoEmpty', id: array}|array{_: 'photo', has_stickers: array, id: array, access_hash: array, file_reference: array, date: array, sizes: list, video_sizes: list, dc_id: array}}|array{_: 'messageActionRequestedPeer', peer: array|int|string, button_id: int}|array{_: 'messageActionSetChatWallPaper', wallpaper: array{_: 'wallPaper', document: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, id: int, creator: bool, default: bool, pattern: bool, dark: bool, access_hash: int, slug: string, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}|array{_: 'wallPaperNoFile', id: int, default: bool, dark: bool, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}}|array{_: 'messageActionSetSameChatWallPaper', wallpaper: array{_: 'wallPaper', document: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, id: int, creator: bool, default: bool, pattern: bool, dark: bool, access_hash: int, slug: string, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}|array{_: 'wallPaperNoFile', id: int, default: bool, dark: bool, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}}, out: bool, mentioned: bool, media_unread: bool, silent: bool, post: bool, legacy: bool, id: int, from_id?: array|int|string, reply_to?: array{_: 'messageReplyHeader', reply_to_scheduled: bool, forum_topic: bool, reply_to_msg_id: int, reply_to_peer_id?: array|int|string, reply_to_top_id: int}, date: int, ttl_period: int}>, max_id: int, read_inbox_max_id: int, read_outbox_max_id: int, unread_count: int, chats: list, users: list} @see https://docs.madelineproto.xyz/API_docs/types/messages.DiscussionMessage.html */ public function getDiscussionMessage(array|int|string $peer, int $msg_id = 0): array; /** - * Mark a [thread](https://core.telegram.org/api/threads) as read + * Mark a [thread](https://core.telegram.org/api/threads) as read. * * @param array|int|string $peer Group ID @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html * @param int $msg_id ID of message that started the thread * @param int $read_max_id ID up to which thread messages were read - * @return bool */ public function readDiscussion(array|int|string $peer, int $msg_id = 0, int $read_max_id = 0): bool; /** - * [Unpin](https://core.telegram.org/api/pin) all pinned messages + * [Unpin](https://core.telegram.org/api/pin) all pinned messages. * * @param array|int|string $peer Chat where to unpin @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html - * @param int $top_msg_id * @return array{_: 'messages.affectedHistory', pts: int, pts_count: int, offset: int} @see https://docs.madelineproto.xyz/API_docs/types/messages.AffectedHistory.html */ public function unpinAllMessages(array|int|string $peer, int $top_msg_id = 0): array; /** - * Delete a [chat](https://core.telegram.org/api/channel) + * Delete a [chat](https://core.telegram.org/api/channel). * * @param array|int|string $chat_id Chat ID @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html - * @return bool */ public function deleteChat(array|int|string $chat_id): bool; @@ -1246,22 +1198,21 @@ public function initHistoryImport(array|int|string $peer, mixed $file, int $medi * @param array $media Media metadata @see https://docs.madelineproto.xyz/API_docs/types/InputMedia.html * @param int $import_id Identifier of a [history import session](https://core.telegram.org/api/import), returned by [messages.initHistoryImport](https://docs.madelineproto.xyz/API_docs/methods/messages.initHistoryImport.html) * @param string $file_name File name - * @return array{_: 'messageMediaEmpty'}|array{_: 'messageMediaPhoto', spoiler: bool, photo?: array{_: 'photoEmpty', id: array}|array{_: 'photo', has_stickers: array, id: array, access_hash: array, file_reference: array, date: array, sizes: list, video_sizes: list, dc_id: array}, ttl_seconds: int}|array{_: 'messageMediaGeo', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}}|array{_: 'messageMediaContact', phone_number: string, first_name: string, last_name: string, vcard: string, user_id: int}|array{_: 'messageMediaUnsupported'}|array{_: 'messageMediaDocument', nopremium: bool, spoiler: bool, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, ttl_seconds: int}|array{_: 'messageMediaWebPage', webpage: array{_: 'webPageEmpty', id: array}|array{_: 'webPagePending', id: array, date: array}|array{_: 'webPage', id: array, url: array, display_url: array, hash: array, type: array, site_name: array, title: array, description: array, photo?: array, embed_url: array, embed_type: array, embed_width: array, embed_height: array, duration: array, author: array, document?: array, cached_page?: array, attributes: list}|array{_: 'webPageNotModified', cached_page_views: array}}|array{_: 'messageMediaVenue', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, title: string, address: string, provider: string, venue_id: string, venue_type: string}|array{_: 'messageMediaGame', game: array{_: 'game', photo: array, id: array, access_hash: array, short_name: array, title: array, description: array, document?: array}}|array{_: 'messageMediaInvoice', shipping_address_requested: bool, test: bool, title: string, description: string, photo?: array{_: 'webDocument', url: array, access_hash: array, size: array, mime_type: array, attributes: list}|array{_: 'webDocumentNoProxy', url: array, size: array, mime_type: array, attributes: list}, receipt_msg_id: int, currency: string, total_amount: int, start_param: string, extended_media?: array{_: 'messageExtendedMediaPreview', w: array, h: array, thumb?: array, video_duration: array}|array{_: 'messageExtendedMedia', media: array{_: 'messageMediaEmpty'}|array{_: 'messageMediaPhoto', spoiler: bool, photo?: array{_: 'photoEmpty', id: array}|array{_: 'photo', has_stickers: array, id: array, access_hash: array, file_reference: array, date: array, sizes: list, video_sizes: list, dc_id: array}, ttl_seconds: int}|array{_: 'messageMediaGeo', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}}|array{_: 'messageMediaContact', phone_number: string, first_name: string, last_name: string, vcard: string, user_id: int}|array{_: 'messageMediaUnsupported'}|array{_: 'messageMediaDocument', nopremium: bool, spoiler: bool, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, ttl_seconds: int}|array{_: 'messageMediaWebPage', webpage: array{_: 'webPageEmpty', id: array}|array{_: 'webPagePending', id: array, date: array}|array{_: 'webPage', id: array, url: array, display_url: array, hash: array, type: array, site_name: array, title: array, description: array, photo?: array, embed_url: array, embed_type: array, embed_width: array, embed_height: array, duration: array, author: array, document?: array, cached_page?: array, attributes: list}|array{_: 'webPageNotModified', cached_page_views: array}}|array{_: 'messageMediaVenue', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, title: string, address: string, provider: string, venue_id: string, venue_type: string}|array{_: 'messageMediaGame', game: array{_: 'game', photo: array, id: array, access_hash: array, short_name: array, title: array, description: array, document?: array}}|array{_: 'messageMediaGeoLive', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, heading: int, period: int, proximity_notification_radius: int}|array{_: 'messageMediaPoll', poll: array{_: 'poll', id: array, closed: array, public_voters: array, multiple_choice: array, quiz: array, question: array, answers: list, close_period: array, close_date: array}, results: array{_: 'pollResults', min: array, results: list, total_voters: array, recent_voters: list, solution: array, solution_entities: list}}|array{_: 'messageMediaDice', value: int, emoticon: string}}}|array{_: 'messageMediaGeoLive', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, heading: int, period: int, proximity_notification_radius: int}|array{_: 'messageMediaPoll', poll: array{_: 'poll', id: array, closed: array, public_voters: array, multiple_choice: array, quiz: array, question: array, answers: list, close_period: array, close_date: array}, results: array{_: 'pollResults', min: array, results: list, total_voters: array, recent_voters: list, solution: array, solution_entities: list}}|array{_: 'messageMediaDice', value: int, emoticon: string} @see https://docs.madelineproto.xyz/API_docs/types/MessageMedia.html + * @return array{_: 'messageMediaEmpty'}|array{_: 'messageMediaPhoto', spoiler: bool, photo?: array{_: 'photoEmpty', id: array}|array{_: 'photo', has_stickers: array, id: array, access_hash: array, file_reference: array, date: array, sizes: list, video_sizes: list, dc_id: array}, ttl_seconds: int}|array{_: 'messageMediaGeo', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}}|array{_: 'messageMediaContact', phone_number: string, first_name: string, last_name: string, vcard: string, user_id: int}|array{_: 'messageMediaUnsupported'}|array{_: 'messageMediaDocument', nopremium: bool, spoiler: bool, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, ttl_seconds: int}|array{_: 'messageMediaWebPage', webpage: array{_: 'webPageEmpty', id: array}|array{_: 'webPagePending', id: array, date: array}|array{_: 'webPage', id: array, url: array, display_url: array, hash: array, type: array, site_name: array, title: array, description: array, photo?: array{_: 'photoEmpty', id: array}|array{_: 'photo', has_stickers: array, id: array, access_hash: array, file_reference: array, date: array, sizes: list, video_sizes: list, dc_id: array}, embed_url: array, embed_type: array, embed_width: array, embed_height: array, duration: array, author: array, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, cached_page?: array, attributes: list}|array{_: 'webPageNotModified', cached_page_views: array}}|array{_: 'messageMediaVenue', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, title: string, address: string, provider: string, venue_id: string, venue_type: string}|array{_: 'messageMediaGame', game: array{_: 'game', photo: array{_: 'photoEmpty', id: array}|array{_: 'photo', has_stickers: array, id: array, access_hash: array, file_reference: array, date: array, sizes: list, video_sizes: list, dc_id: array}, id: array, access_hash: array, short_name: array, title: array, description: array, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}}}|array{_: 'messageMediaInvoice', shipping_address_requested: bool, test: bool, title: string, description: string, photo?: array{_: 'webDocument', url: array, access_hash: array, size: array, mime_type: array, attributes: list}|array{_: 'webDocumentNoProxy', url: array, size: array, mime_type: array, attributes: list}, receipt_msg_id: int, currency: string, total_amount: int, start_param: string, extended_media?: array{_: 'messageExtendedMediaPreview', w: array, h: array, thumb?: array, video_duration: array}|array{_: 'messageExtendedMedia', media: array{_: 'messageMediaEmpty'}|array{_: 'messageMediaPhoto', spoiler: bool, photo?: array{_: 'photoEmpty', id: array}|array{_: 'photo', has_stickers: array, id: array, access_hash: array, file_reference: array, date: array, sizes: list, video_sizes: list, dc_id: array}, ttl_seconds: int}|array{_: 'messageMediaGeo', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}}|array{_: 'messageMediaContact', phone_number: string, first_name: string, last_name: string, vcard: string, user_id: int}|array{_: 'messageMediaUnsupported'}|array{_: 'messageMediaDocument', nopremium: bool, spoiler: bool, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, ttl_seconds: int}|array{_: 'messageMediaWebPage', webpage: array{_: 'webPageEmpty', id: array}|array{_: 'webPagePending', id: array, date: array}|array{_: 'webPage', id: array, url: array, display_url: array, hash: array, type: array, site_name: array, title: array, description: array, photo?: array{_: 'photoEmpty', id: array}|array{_: 'photo', has_stickers: array, id: array, access_hash: array, file_reference: array, date: array, sizes: list, video_sizes: list, dc_id: array}, embed_url: array, embed_type: array, embed_width: array, embed_height: array, duration: array, author: array, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, cached_page?: array, attributes: list}|array{_: 'webPageNotModified', cached_page_views: array}}|array{_: 'messageMediaVenue', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, title: string, address: string, provider: string, venue_id: string, venue_type: string}|array{_: 'messageMediaGame', game: array{_: 'game', photo: array{_: 'photoEmpty', id: array}|array{_: 'photo', has_stickers: array, id: array, access_hash: array, file_reference: array, date: array, sizes: list, video_sizes: list, dc_id: array}, id: array, access_hash: array, short_name: array, title: array, description: array, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}}}|array{_: 'messageMediaGeoLive', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, heading: int, period: int, proximity_notification_radius: int}|array{_: 'messageMediaPoll', poll: array{_: 'poll', id: array, closed: array, public_voters: array, multiple_choice: array, quiz: array, question: array, answers: list, close_period: array, close_date: array}, results: array{_: 'pollResults', min: array, results: list, total_voters: array, recent_voters: list, solution: array, solution_entities: list}}|array{_: 'messageMediaDice', value: int, emoticon: string}}}|array{_: 'messageMediaGeoLive', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, heading: int, period: int, proximity_notification_radius: int}|array{_: 'messageMediaPoll', poll: array{_: 'poll', id: array, closed: array, public_voters: array, multiple_choice: array, quiz: array, question: array, answers: list, close_period: array, close_date: array}, results: array{_: 'pollResults', min: array, results: list, total_voters: array, recent_voters: list, solution: array, solution_entities: list}}|array{_: 'messageMediaDice', value: int, emoticon: string} @see https://docs.madelineproto.xyz/API_docs/types/MessageMedia.html */ public function uploadImportedMedia(array|int|string $peer, array $media, int $import_id = 0, string $file_name = ''): array; /** - * Complete the [history import process](https://core.telegram.org/api/import), importing all messages into the chat. + * Complete the [history import process](https://core.telegram.org/api/import), importing all messages into the chat. * To be called only after initializing the import with [messages.initHistoryImport](https://docs.madelineproto.xyz/API_docs/methods/messages.initHistoryImport.html) and uploading all files using [messages.uploadImportedMedia](https://docs.madelineproto.xyz/API_docs/methods/messages.uploadImportedMedia.html). * * @param array|int|string $peer The Telegram chat where the messages should be [imported, click here for more info »](https://core.telegram.org/api/import) @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html * @param int $import_id Identifier of a history import session, returned by [messages.initHistoryImport](https://docs.madelineproto.xyz/API_docs/methods/messages.initHistoryImport.html). - * @return bool */ public function startHistoryImport(array|int|string $peer, int $import_id = 0): bool; /** - * Get info about the chat invites of a specific chat + * Get info about the chat invites of a specific chat. * * @param array|int|string $peer Chat @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html * @param array|int|string $admin_id Whether to only fetch chat invites from this admin @see https://docs.madelineproto.xyz/API_docs/types/InputUser.html @@ -1274,7 +1225,7 @@ public function startHistoryImport(array|int|string $peer, int $import_id = 0): public function getExportedChatInvites(array|int|string $peer, array|int|string $admin_id, bool $revoked = false, int $offset_date = 0, string $offset_link = '', int $limit = 0): array; /** - * Get info about a chat invite + * Get info about a chat invite. * * @param array|int|string $peer Chat @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html * @param string $link Invite link @@ -1283,7 +1234,7 @@ public function getExportedChatInvites(array|int|string $peer, array|int|string public function getExportedChatInvite(array|int|string $peer, string $link = ''): array; /** - * Edit an exported chat invite + * Edit an exported chat invite. * * @param array|int|string $peer Chat @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html * @param bool $revoked Whether to revoke the chat invite @@ -1297,20 +1248,18 @@ public function getExportedChatInvite(array|int|string $peer, string $link = '') public function editExportedChatInvite(array|int|string $peer, bool $revoked = false, string $link = '', int $expire_date = 0, int $usage_limit = 0, bool $request_needed = false, string $title = ''): array; /** - * Delete all revoked chat invites + * Delete all revoked chat invites. * * @param array|int|string $peer Chat @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html * @param array|int|string $admin_id ID of the admin that originally generated the revoked chat invites @see https://docs.madelineproto.xyz/API_docs/types/InputUser.html - * @return bool */ public function deleteRevokedExportedChatInvites(array|int|string $peer, array|int|string $admin_id): bool; /** - * Delete a chat invite + * Delete a chat invite. * * @param array|int|string $peer Peer @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html * @param string $link Invite link - * @return bool */ public function deleteExportedChatInvite(array|int|string $peer, string $link = ''): bool; @@ -1323,7 +1272,7 @@ public function deleteExportedChatInvite(array|int|string $peer, string $link = public function getAdminsWithInvites(array|int|string $peer): array; /** - * Get info about the users that joined the chat using a specific chat invite + * Get info about the users that joined the chat using a specific chat invite. * * @param array|int|string $peer Chat @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html * @param array|int|string $offset_user User ID for [pagination](https://core.telegram.org/api/offsets) @see https://docs.madelineproto.xyz/API_docs/types/InputUser.html @@ -1337,7 +1286,7 @@ public function getAdminsWithInvites(array|int|string $peer): array; public function getChatInviteImporters(array|int|string $peer, array|int|string $offset_user, bool $requested = false, string $link = '', string $q = '', int $offset_date = 0, int $limit = 0): array; /** - * Set maximum Time-To-Live of all messages in the specified chat + * Set maximum Time-To-Live of all messages in the specified chat. * * @param array|int|string $peer The dialog @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html * @param int $period Automatically delete all messages sent in the chat after this many seconds @@ -1347,7 +1296,7 @@ public function setHistoryTTL(array|int|string $peer, int $period = 0): array; /** * Check whether chat history exported from another chat app can be [imported into a specific Telegram chat, click here for more info »](https://core.telegram.org/api/import). - * + * * If the check succeeds, and no RPC errors are returned, a [messages.CheckedHistoryImportPeer](https://docs.madelineproto.xyz/API_docs/types/messages.CheckedHistoryImportPeer.html) constructor will be returned, with a confirmation text to be shown to the user, before actually initializing the import. * * @param array|int|string $peer The chat where we want to [import history »](https://core.telegram.org/api/import). @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html @@ -1356,7 +1305,7 @@ public function setHistoryTTL(array|int|string $peer, int $period = 0): array; public function checkHistoryImportPeer(array|int|string $peer): array; /** - * Change the chat theme of a certain chat + * Change the chat theme of a certain chat. * * @param array|int|string $peer Private chat where to change theme @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html * @param string $emoticon Emoji, identifying a specific chat theme; a list of chat themes can be fetched using [account.getChatThemes](https://docs.madelineproto.xyz/API_docs/methods/account.getChatThemes.html) @@ -1375,21 +1324,21 @@ public function getMessageReadParticipants(array|int|string $peer, int $msg_id = /** * Returns information about the next messages of the specified type in the chat split by days. - * - * Returns the results in reverse chronological order. + * + * Returns the results in reverse chronological order. * Can return partial results for the last returned day. * * @param array|int|string $peer Peer where to search @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html * @param array{_: 'inputMessagesFilterEmpty'}|array{_: 'inputMessagesFilterPhotos'}|array{_: 'inputMessagesFilterVideo'}|array{_: 'inputMessagesFilterPhotoVideo'}|array{_: 'inputMessagesFilterDocument'}|array{_: 'inputMessagesFilterUrl'}|array{_: 'inputMessagesFilterGif'}|array{_: 'inputMessagesFilterVoice'}|array{_: 'inputMessagesFilterMusic'}|array{_: 'inputMessagesFilterChatPhotos'}|array{_: 'inputMessagesFilterPhoneCalls', missed?: bool}|array{_: 'inputMessagesFilterRoundVoice'}|array{_: 'inputMessagesFilterRoundVideo'}|array{_: 'inputMessagesFilterMyMentions'}|array{_: 'inputMessagesFilterGeo'}|array{_: 'inputMessagesFilterContacts'}|array{_: 'inputMessagesFilterPinned'} $filter Message filter, [inputMessagesFilterEmpty](https://docs.madelineproto.xyz/API_docs/constructors/inputMessagesFilterEmpty.html), [inputMessagesFilterMyMentions](https://docs.madelineproto.xyz/API_docs/constructors/inputMessagesFilterMyMentions.html) filters are not supported by this method. @see https://docs.madelineproto.xyz/API_docs/types/MessagesFilter.html * @param int $offset_id [Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets) * @param int $offset_date [Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets) - * @return array{_: 'messages.searchResultsCalendar', inexact: bool, count: int, min_date: int, min_msg_id: int, offset_id_offset: int, periods: list, messages: list, video_sizes: list, dc_id: array}, ttl_seconds: int}|array{_: 'messageMediaGeo', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}}|array{_: 'messageMediaContact', phone_number: string, first_name: string, last_name: string, vcard: string, user_id: int}|array{_: 'messageMediaUnsupported'}|array{_: 'messageMediaDocument', nopremium: bool, spoiler: bool, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, ttl_seconds: int}|array{_: 'messageMediaWebPage', webpage: array{_: 'webPageEmpty', id: array}|array{_: 'webPagePending', id: array, date: array}|array{_: 'webPage', id: array, url: array, display_url: array, hash: array, type: array, site_name: array, title: array, description: array, photo?: array, embed_url: array, embed_type: array, embed_width: array, embed_height: array, duration: array, author: array, document?: array, cached_page?: array, attributes: list}|array{_: 'webPageNotModified', cached_page_views: array}}|array{_: 'messageMediaVenue', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, title: string, address: string, provider: string, venue_id: string, venue_type: string}|array{_: 'messageMediaGame', game: array{_: 'game', photo: array, id: array, access_hash: array, short_name: array, title: array, description: array, document?: array}}|array{_: 'messageMediaInvoice', shipping_address_requested: bool, test: bool, title: string, description: string, photo?: array{_: 'webDocument', url: array, access_hash: array, size: array, mime_type: array, attributes: list}|array{_: 'webDocumentNoProxy', url: array, size: array, mime_type: array, attributes: list}, receipt_msg_id: int, currency: string, total_amount: int, start_param: string, extended_media?: array{_: 'messageExtendedMediaPreview', w: array, h: array, thumb?: array, video_duration: array}}|array{_: 'messageMediaGeoLive', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, heading: int, period: int, proximity_notification_radius: int}|array{_: 'messageMediaPoll', poll: array{_: 'poll', id: array, closed: array, public_voters: array, multiple_choice: array, quiz: array, question: array, answers: list, close_period: array, close_date: array}, results: array{_: 'pollResults', min: array, results: list, total_voters: array, recent_voters: list, solution: array, solution_entities: list}}|array{_: 'messageMediaDice', value: int, emoticon: string}, reply_markup?: array, entities: list, views: int, forwards: int, replies?: array{_: 'messageReplies', comments: bool, replies: int, replies_pts: int, recent_repliers: list, channel_id: int, max_id: int, read_max_id: int}, edit_date: int, post_author: string, grouped_id: int, reactions?: array{_: 'messageReactions', min: bool, can_see_list: bool, results: list, recent_reactions: list}, restriction_reason: list, ttl_period: int}|array{_: 'messageService', peer_id: array|int|string, action: array{_: 'messageActionEmpty'}|array{_: 'messageActionChatCreate', title: string, users: list}|array{_: 'messageActionChatEditTitle', title: string}|array{_: 'messageActionChatEditPhoto', photo: array{_: 'photoEmpty', id: int}|array{_: 'photo', has_stickers: bool, id: int, access_hash: int, file_reference: string, date: int, sizes: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: array, local_id: array, secret: array}|array{_: 'fileLocation', dc_id: array, volume_id: array, local_id: array, secret: array}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: array, local_id: array, secret: array}|array{_: 'fileLocation', dc_id: array, volume_id: array, local_id: array, secret: array}, type: string, w: int, h: int, bytes: string}>, video_sizes: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: array, access_hash: array}|array{_: 'inputStickerSetShortName', short_name: array}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: array}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int}}|array{_: 'messageActionChatDeletePhoto'}|array{_: 'messageActionChatAddUser', users: list}|array{_: 'messageActionChatDeleteUser', user_id: int}|array{_: 'messageActionChatJoinedByLink', inviter_id: int}|array{_: 'messageActionChannelCreate', title: string}|array{_: 'messageActionChatMigrateTo', channel_id: int}|array{_: 'messageActionChannelMigrateFrom', chat_id: array|int|string, title: string}|array{_: 'messageActionPinMessage'}|array{_: 'messageActionHistoryClear'}|array{_: 'messageActionGameScore', game_id: int, score: int}|array{_: 'messageActionPaymentSentMe', charge: array{_: 'paymentCharge', id: string, provider_charge_id: string}, recurring_init: bool, recurring_used: bool, currency: string, total_amount: int, payload: string, info?: array{_: 'paymentRequestedInfo', name: string, phone: string, email: string, shipping_address?: array{_: 'postAddress', street_line1: string, street_line2: string, city: string, state: string, country_iso2: string, post_code: string}}, shipping_option_id: string}|array{_: 'messageActionPaymentSent', recurring_init: bool, recurring_used: bool, currency: string, total_amount: int, invoice_slug: string}|array{_: 'messageActionPhoneCall', video: bool, call_id: int, reason?: array{_: 'phoneCallDiscardReasonMissed'}|array{_: 'phoneCallDiscardReasonDisconnect'}|array{_: 'phoneCallDiscardReasonHangup'}|array{_: 'phoneCallDiscardReasonBusy'}, duration: int}|array{_: 'messageActionScreenshotTaken'}|array{_: 'messageActionCustomAction', message: string}|array{_: 'messageActionBotAllowed', attach_menu: bool, domain: string, app?: array{_: 'botAppNotModified'}|array{_: 'botApp', photo: array{_: 'photoEmpty', id: int}|array{_: 'photo', has_stickers: bool, id: int, access_hash: int, file_reference: string, date: int, sizes: list}|array{_: 'photoPathSize', type: array, bytes: array}|array{_: 'photoSize', location: array, type: array, w: array, h: array, size: array}|array{_: 'photoCachedSize', location: array, type: array, w: array, h: array, bytes: array}>, video_sizes: list}|array{_: 'videoSizeStickerMarkup', stickerset: array, sticker_id: array, background_colors: list}>, dc_id: int}, id: int, access_hash: int, short_name: string, title: string, description: string, document?: array{_: 'documentEmpty', id: int}|array{_: 'document', id: int, access_hash: int, file_reference: string, date: int, mime_type: string, size: int, thumbs: list}|array{_: 'photoPathSize', type: array, bytes: array}|array{_: 'photoSize', location: array, type: array, w: array, h: array, size: array}|array{_: 'photoCachedSize', location: array, type: array, w: array, h: array, bytes: array}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array, sticker_id: array, background_colors: list}>, dc_id: int, attributes: list}, hash: list}}|array{_: 'messageActionSecureValuesSentMe', credentials: array{_: 'secureCredentialsEncrypted', data: string, hash: string, secret: string}, values: list, files: list, plain_data?: array{_: 'securePlainPhone', phone: string}|array{_: 'securePlainEmail', email: string}, hash: string}>}|array{_: 'messageActionSecureValuesSent', types: list}|array{_: 'messageActionContactSignUp'}|array{_: 'messageActionGeoProximityReached', from_id: array|int|string, to_id: array|int|string, distance: int}|array{_: 'messageActionGroupCall', call: array{_: 'inputGroupCall', id: int, access_hash: int}, duration: int}|array{_: 'messageActionInviteToGroupCall', call: array{_: 'inputGroupCall', id: int, access_hash: int}, users: list}|array{_: 'messageActionSetMessagesTTL', period: int, auto_setting_from: int}|array{_: 'messageActionGroupCallScheduled', call: array{_: 'inputGroupCall', id: int, access_hash: int}, schedule_date: int}|array{_: 'messageActionSetChatTheme', emoticon: string}|array{_: 'messageActionChatJoinedByRequest'}|array{_: 'messageActionWebViewDataSentMe', text: string, data: string}|array{_: 'messageActionWebViewDataSent', text: string}|array{_: 'messageActionGiftPremium', currency: string, amount: int, months: int, crypto_currency: string, crypto_amount: int}|array{_: 'messageActionTopicCreate', title: string, icon_color: int, icon_emoji_id: int}|array{_: 'messageActionTopicEdit', title: string, icon_emoji_id: int, closed?: bool, hidden?: bool}|array{_: 'messageActionSuggestProfilePhoto', photo: array{_: 'photoEmpty', id: int}|array{_: 'photo', has_stickers: bool, id: int, access_hash: int, file_reference: string, date: int, sizes: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: array, local_id: array, secret: array}|array{_: 'fileLocation', dc_id: array, volume_id: array, local_id: array, secret: array}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: array, local_id: array, secret: array}|array{_: 'fileLocation', dc_id: array, volume_id: array, local_id: array, secret: array}, type: string, w: int, h: int, bytes: string}>, video_sizes: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: array, access_hash: array}|array{_: 'inputStickerSetShortName', short_name: array}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: array}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int}}|array{_: 'messageActionRequestedPeer', peer: array|int|string, button_id: int}|array{_: 'messageActionSetChatWallPaper', wallpaper: array{_: 'wallPaper', document: array{_: 'documentEmpty', id: int}|array{_: 'document', id: int, access_hash: int, file_reference: string, date: int, mime_type: string, size: int, thumbs: list}|array{_: 'photoPathSize', type: array, bytes: array}|array{_: 'photoSize', location: array, type: array, w: array, h: array, size: array}|array{_: 'photoCachedSize', location: array, type: array, w: array, h: array, bytes: array}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array, sticker_id: array, background_colors: list}>, dc_id: int, attributes: list}, id: int, creator: bool, default: bool, pattern: bool, dark: bool, access_hash: int, slug: string, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}|array{_: 'wallPaperNoFile', id: int, default: bool, dark: bool, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}}|array{_: 'messageActionSetSameChatWallPaper', wallpaper: array{_: 'wallPaper', document: array{_: 'documentEmpty', id: int}|array{_: 'document', id: int, access_hash: int, file_reference: string, date: int, mime_type: string, size: int, thumbs: list}|array{_: 'photoPathSize', type: array, bytes: array}|array{_: 'photoSize', location: array, type: array, w: array, h: array, size: array}|array{_: 'photoCachedSize', location: array, type: array, w: array, h: array, bytes: array}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array, sticker_id: array, background_colors: list}>, dc_id: int, attributes: list}, id: int, creator: bool, default: bool, pattern: bool, dark: bool, access_hash: int, slug: string, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}|array{_: 'wallPaperNoFile', id: int, default: bool, dark: bool, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}}, out: bool, mentioned: bool, media_unread: bool, silent: bool, post: bool, legacy: bool, id: int, from_id?: array|int|string, reply_to?: array{_: 'messageReplyHeader', reply_to_scheduled: bool, forum_topic: bool, reply_to_msg_id: int, reply_to_peer_id?: array|int|string, reply_to_top_id: int}, date: int, ttl_period: int}>, chats: list, users: list} @see https://docs.madelineproto.xyz/API_docs/types/messages.SearchResultsCalendar.html + * @return array{_: 'messages.searchResultsCalendar', inexact: bool, count: int, min_date: int, min_msg_id: int, offset_id_offset: int, periods: list, messages: list, video_sizes: list, dc_id: array}, ttl_seconds: int}|array{_: 'messageMediaGeo', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}}|array{_: 'messageMediaContact', phone_number: string, first_name: string, last_name: string, vcard: string, user_id: int}|array{_: 'messageMediaUnsupported'}|array{_: 'messageMediaDocument', nopremium: bool, spoiler: bool, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, ttl_seconds: int}|array{_: 'messageMediaWebPage', webpage: array{_: 'webPageEmpty', id: array}|array{_: 'webPagePending', id: array, date: array}|array{_: 'webPage', id: array, url: array, display_url: array, hash: array, type: array, site_name: array, title: array, description: array, photo?: array{_: 'photoEmpty', id: array}|array{_: 'photo', has_stickers: array, id: array, access_hash: array, file_reference: array, date: array, sizes: list, video_sizes: list, dc_id: array}, embed_url: array, embed_type: array, embed_width: array, embed_height: array, duration: array, author: array, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, cached_page?: array, attributes: list}|array{_: 'webPageNotModified', cached_page_views: array}}|array{_: 'messageMediaVenue', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, title: string, address: string, provider: string, venue_id: string, venue_type: string}|array{_: 'messageMediaGame', game: array{_: 'game', photo: array{_: 'photoEmpty', id: array}|array{_: 'photo', has_stickers: array, id: array, access_hash: array, file_reference: array, date: array, sizes: list, video_sizes: list, dc_id: array}, id: array, access_hash: array, short_name: array, title: array, description: array, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}}}|array{_: 'messageMediaInvoice', shipping_address_requested: bool, test: bool, title: string, description: string, photo?: array{_: 'webDocument', url: array, access_hash: array, size: array, mime_type: array, attributes: list}|array{_: 'webDocumentNoProxy', url: array, size: array, mime_type: array, attributes: list}, receipt_msg_id: int, currency: string, total_amount: int, start_param: string, extended_media?: array{_: 'messageExtendedMediaPreview', w: array, h: array, thumb?: array, video_duration: array}}|array{_: 'messageMediaGeoLive', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, heading: int, period: int, proximity_notification_radius: int}|array{_: 'messageMediaPoll', poll: array{_: 'poll', id: array, closed: array, public_voters: array, multiple_choice: array, quiz: array, question: array, answers: list, close_period: array, close_date: array}, results: array{_: 'pollResults', min: array, results: list, total_voters: array, recent_voters: list, solution: array, solution_entities: list}}|array{_: 'messageMediaDice', value: int, emoticon: string}, reply_markup?: array, entities: list, views: int, forwards: int, replies?: array{_: 'messageReplies', comments: bool, replies: int, replies_pts: int, recent_repliers: list, channel_id: int, max_id: int, read_max_id: int}, edit_date: int, post_author: string, grouped_id: int, reactions?: array{_: 'messageReactions', min: bool, can_see_list: bool, results: list, recent_reactions: list}, restriction_reason: list, ttl_period: int}|array{_: 'messageService', peer_id: array|int|string, action: array{_: 'messageActionEmpty'}|array{_: 'messageActionChatCreate', title: string, users: list}|array{_: 'messageActionChatEditTitle', title: string}|array{_: 'messageActionChatEditPhoto', photo: array{_: 'photoEmpty', id: array}|array{_: 'photo', has_stickers: array, id: array, access_hash: array, file_reference: array, date: array, sizes: list, video_sizes: list, dc_id: array}}|array{_: 'messageActionChatDeletePhoto'}|array{_: 'messageActionChatAddUser', users: list}|array{_: 'messageActionChatDeleteUser', user_id: int}|array{_: 'messageActionChatJoinedByLink', inviter_id: int}|array{_: 'messageActionChannelCreate', title: string}|array{_: 'messageActionChatMigrateTo', channel_id: int}|array{_: 'messageActionChannelMigrateFrom', chat_id: array|int|string, title: string}|array{_: 'messageActionPinMessage'}|array{_: 'messageActionHistoryClear'}|array{_: 'messageActionGameScore', game_id: int, score: int}|array{_: 'messageActionPaymentSentMe', charge: array{_: 'paymentCharge', id: string, provider_charge_id: string}, recurring_init: bool, recurring_used: bool, currency: string, total_amount: int, payload: string, info?: array{_: 'paymentRequestedInfo', name: string, phone: string, email: string, shipping_address?: array{_: 'postAddress', street_line1: string, street_line2: string, city: string, state: string, country_iso2: string, post_code: string}}, shipping_option_id: string}|array{_: 'messageActionPaymentSent', recurring_init: bool, recurring_used: bool, currency: string, total_amount: int, invoice_slug: string}|array{_: 'messageActionPhoneCall', video: bool, call_id: int, reason?: array{_: 'phoneCallDiscardReasonMissed'}|array{_: 'phoneCallDiscardReasonDisconnect'}|array{_: 'phoneCallDiscardReasonHangup'}|array{_: 'phoneCallDiscardReasonBusy'}, duration: int}|array{_: 'messageActionScreenshotTaken'}|array{_: 'messageActionCustomAction', message: string}|array{_: 'messageActionBotAllowed', attach_menu: bool, domain: string, app?: array{_: 'botAppNotModified'}|array{_: 'botApp', photo: array{_: 'photoEmpty', id: array}|array{_: 'photo', has_stickers: array, id: array, access_hash: array, file_reference: array, date: array, sizes: list, video_sizes: list, dc_id: array}, id: int, access_hash: int, short_name: string, title: string, description: string, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, hash: list}}|array{_: 'messageActionSecureValuesSentMe', credentials: array{_: 'secureCredentialsEncrypted', data: string, hash: string, secret: string}, values: list, files: list, plain_data?: array{_: 'securePlainPhone', phone: string}|array{_: 'securePlainEmail', email: string}, hash: string}>}|array{_: 'messageActionSecureValuesSent', types: list}|array{_: 'messageActionContactSignUp'}|array{_: 'messageActionGeoProximityReached', from_id: array|int|string, to_id: array|int|string, distance: int}|array{_: 'messageActionGroupCall', call: array{_: 'inputGroupCall', id: int, access_hash: int}, duration: int}|array{_: 'messageActionInviteToGroupCall', call: array{_: 'inputGroupCall', id: int, access_hash: int}, users: list}|array{_: 'messageActionSetMessagesTTL', period: int, auto_setting_from: int}|array{_: 'messageActionGroupCallScheduled', call: array{_: 'inputGroupCall', id: int, access_hash: int}, schedule_date: int}|array{_: 'messageActionSetChatTheme', emoticon: string}|array{_: 'messageActionChatJoinedByRequest'}|array{_: 'messageActionWebViewDataSentMe', text: string, data: string}|array{_: 'messageActionWebViewDataSent', text: string}|array{_: 'messageActionGiftPremium', currency: string, amount: int, months: int, crypto_currency: string, crypto_amount: int}|array{_: 'messageActionTopicCreate', title: string, icon_color: int, icon_emoji_id: int}|array{_: 'messageActionTopicEdit', title: string, icon_emoji_id: int, closed?: bool, hidden?: bool}|array{_: 'messageActionSuggestProfilePhoto', photo: array{_: 'photoEmpty', id: array}|array{_: 'photo', has_stickers: array, id: array, access_hash: array, file_reference: array, date: array, sizes: list, video_sizes: list, dc_id: array}}|array{_: 'messageActionRequestedPeer', peer: array|int|string, button_id: int}|array{_: 'messageActionSetChatWallPaper', wallpaper: array{_: 'wallPaper', document: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, id: int, creator: bool, default: bool, pattern: bool, dark: bool, access_hash: int, slug: string, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}|array{_: 'wallPaperNoFile', id: int, default: bool, dark: bool, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}}|array{_: 'messageActionSetSameChatWallPaper', wallpaper: array{_: 'wallPaper', document: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, id: int, creator: bool, default: bool, pattern: bool, dark: bool, access_hash: int, slug: string, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}|array{_: 'wallPaperNoFile', id: int, default: bool, dark: bool, settings?: array{_: 'wallPaperSettings', blur: bool, motion: bool, background_color: int, second_background_color: int, third_background_color: int, fourth_background_color: int, intensity: int, rotation: int}}}, out: bool, mentioned: bool, media_unread: bool, silent: bool, post: bool, legacy: bool, id: int, from_id?: array|int|string, reply_to?: array{_: 'messageReplyHeader', reply_to_scheduled: bool, forum_topic: bool, reply_to_msg_id: int, reply_to_peer_id?: array|int|string, reply_to_top_id: int}, date: int, ttl_period: int}>, chats: list, users: list} @see https://docs.madelineproto.xyz/API_docs/types/messages.SearchResultsCalendar.html */ public function getSearchResultsCalendar(array|int|string $peer, array $filter, int $offset_id = 0, int $offset_date = 0): array; /** * Returns sparse positions of messages of the specified type in the chat to be used for shared media scroll implementation. - * + * * Returns the results in reverse chronological order (i.e., in order of decreasing message\_id). * * @param array|int|string $peer Peer where to search @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html @@ -1421,7 +1370,7 @@ public function hideChatJoinRequest(array|int|string $peer, array|int|string $us public function hideAllChatJoinRequests(array|int|string $peer, bool $approved = false, string $link = ''): array; /** - * Enable or disable [content protection](https://telegram.org/blog/protected-content-delete-by-date-and-more) on a channel or chat + * Enable or disable [content protection](https://telegram.org/blog/protected-content-delete-by-date-and-more) on a channel or chat. * * @param array|int|string $peer The chat or channel @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html * @param bool $enabled Enable or disable content protection @@ -1430,20 +1379,18 @@ public function hideAllChatJoinRequests(array|int|string $peer, bool $approved = public function toggleNoForwards(array|int|string $peer, bool $enabled): array; /** - * Change the default peer that should be used when sending messages to a specific group + * Change the default peer that should be used when sending messages to a specific group. * * @param array|int|string $peer Group @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html * @param array|int|string $send_as The default peer that should be used when sending messages to the group @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html - * @return bool */ public function saveDefaultSendAs(array|int|string $peer, array|int|string $send_as): bool; /** - * React to message + * React to message. * * @param array|int|string $peer Peer @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html * @param bool $big Whether a bigger and longer reaction should be shown - * @param bool $add_to_recent * @param int $msg_id Message ID to react to * @param list|array $reaction Array of @see https://docs.madelineproto.xyz/API_docs/types/Reaction.html * @return array @see https://docs.madelineproto.xyz/API_docs/types/Updates.html @@ -1451,7 +1398,7 @@ public function saveDefaultSendAs(array|int|string $peer, array|int|string $send public function sendReaction(array|int|string $peer, bool $big = false, bool $add_to_recent = false, int $msg_id = 0, array $reaction = []): array; /** - * Get [message reactions »](https://core.telegram.org/api/reactions) + * Get [message reactions »](https://core.telegram.org/api/reactions). * * @param array|int|string $peer Peer @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html * @param list|array $id Message IDs @@ -1472,7 +1419,7 @@ public function getMessagesReactions(array|int|string $peer, array $id = []): ar public function getMessageReactionsList(array|int|string $peer, int $id = 0, array $reaction = [], string $offset = '', int $limit = 0): array; /** - * Change the set of [message reactions »](https://core.telegram.org/api/reactions) that can be used in a certain group, supergroup or channel + * Change the set of [message reactions »](https://core.telegram.org/api/reactions) that can be used in a certain group, supergroup or channel. * * @param array|int|string $peer Group where to apply changes @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html * @param array{_: 'chatReactionsNone'}|array{_: 'chatReactionsAll', allow_custom?: bool}|array{_: 'chatReactionsSome', reactions?: list} $available_reactions @see https://docs.madelineproto.xyz/API_docs/types/ChatReactions.html @@ -1481,10 +1428,9 @@ public function getMessageReactionsList(array|int|string $peer, int $id = 0, arr public function setChatAvailableReactions(array|int|string $peer, array $available_reactions): array; /** - * Obtain available [message reactions »](https://core.telegram.org/api/reactions) + * Obtain available [message reactions »](https://core.telegram.org/api/reactions). * - * @param int $hash - * @return array{_: 'messages.availableReactionsNotModified'}|array{_: 'messages.availableReactions', hash: int, reactions: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int, attributes: list}, appear_animation: array{_: 'documentEmpty', id: int}|array{_: 'document', id: int, access_hash: int, file_reference: string, date: int, mime_type: string, size: int, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int, attributes: list}, select_animation: array{_: 'documentEmpty', id: int}|array{_: 'document', id: int, access_hash: int, file_reference: string, date: int, mime_type: string, size: int, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int, attributes: list}, activate_animation: array{_: 'documentEmpty', id: int}|array{_: 'document', id: int, access_hash: int, file_reference: string, date: int, mime_type: string, size: int, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int, attributes: list}, effect_animation: array{_: 'documentEmpty', id: int}|array{_: 'document', id: int, access_hash: int, file_reference: string, date: int, mime_type: string, size: int, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int, attributes: list}, inactive: bool, premium: bool, reaction: string, title: string, around_animation?: array{_: 'documentEmpty', id: int}|array{_: 'document', id: int, access_hash: int, file_reference: string, date: int, mime_type: string, size: int, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int, attributes: list}, center_icon?: array{_: 'documentEmpty', id: int}|array{_: 'document', id: int, access_hash: int, file_reference: string, date: int, mime_type: string, size: int, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int, attributes: list}}>} @see https://docs.madelineproto.xyz/API_docs/types/messages.AvailableReactions.html + * @return array{_: 'messages.availableReactionsNotModified'}|array{_: 'messages.availableReactions', hash: int, reactions: list, video_thumbs: list, dc_id: array, attributes: list}, appear_animation: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, select_animation: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, activate_animation: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, effect_animation: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, inactive: bool, premium: bool, reaction: string, title: string, around_animation?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, center_icon?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}}>} @see https://docs.madelineproto.xyz/API_docs/types/messages.AvailableReactions.html */ public function getAvailableReactions(int $hash = 0): array; @@ -1492,15 +1438,14 @@ public function getAvailableReactions(int $hash = 0): array; * Change default emoji reaction to use in the quick reaction menu: the value is synced across devices and can be fetched using [help.getConfig, `reactions_default` field](https://docs.madelineproto.xyz/API_docs/methods/help.getConfig.html). * * @param array{_: 'reactionEmpty'}|array{_: 'reactionEmoji', emoticon?: string}|array{_: 'reactionCustomEmoji', document_id?: int} $reaction @see https://docs.madelineproto.xyz/API_docs/types/Reaction.html - * @return bool */ public function setDefaultReaction(array $reaction): bool; /** - * Translate a given text + * Translate a given text. * * @param array|int|string $peer If the text is a chat message, the peer ID @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html - * @param list|array $id + * @param list|array $id * @param list}>|array $text Array of @see https://docs.madelineproto.xyz/API_docs/types/TextWithEntities.html * @param string $to_lang Two-letter ISO 639-1 language code of the language to which the message is translated * @return array{_: 'messages.translateResult', result: list}>} @see https://docs.madelineproto.xyz/API_docs/types/messages.TranslatedText.html @@ -1508,68 +1453,64 @@ public function setDefaultReaction(array $reaction): bool; public function translateText(array|int|string $peer = [], array $id = [], array $text = [], string $to_lang = ''): array; /** - * Get unread reactions to messages you sent + * Get unread reactions to messages you sent. * * @param array|int|string $peer Peer @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html - * @param int $top_msg_id * @param int $offset_id [Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets) * @param int $add_offset [Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets) * @param int $limit Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets) * @param int $max_id Only return reactions for messages up until this message ID * @param int $min_id Only return reactions for messages starting from this message ID - * @return array{_: 'messages.messages', messages: list, video_sizes: list, dc_id: array}, ttl_seconds: int}|array{_: 'messageMediaGeo', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}}|array{_: 'messageMediaContact', phone_number: string, first_name: string, last_name: string, vcard: string, user_id: int}|array{_: 'messageMediaUnsupported'}|array{_: 'messageMediaDocument', nopremium: bool, spoiler: bool, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, ttl_seconds: int}|array{_: 'messageMediaWebPage', webpage: array{_: 'webPageEmpty', id: array}|array{_: 'webPagePending', id: array, date: array}|array{_: 'webPage', id: array, url: array, display_url: array, hash: array, type: array, site_name: array, title: array, description: array, photo?: array, embed_url: array, embed_type: array, embed_width: array, embed_height: array, duration: array, author: array, document?: array, cached_page?: array, attributes: list}|array{_: 'webPageNotModified', cached_page_views: array}}|array{_: 'messageMediaVenue', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, title: string, address: string, provider: string, venue_id: string, venue_type: string}|array{_: 'messageMediaGame', game: array{_: 'game', photo: array, id: array, access_hash: array, short_name: array, title: array, description: array, document?: array}}|array{_: 'messageMediaInvoice', shipping_address_requested: bool, test: bool, title: string, description: string, photo?: array{_: 'webDocument', url: array, access_hash: array, size: array, mime_type: array, attributes: list}|array{_: 'webDocumentNoProxy', url: array, size: array, mime_type: array, attributes: list}, receipt_msg_id: int, currency: string, total_amount: int, start_param: string, extended_media?: array{_: 'messageExtendedMediaPreview', w: array, h: array, thumb?: array, video_duration: array}}|array{_: 'messageMediaGeoLive', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, heading: int, period: int, proximity_notification_radius: int}|array{_: 'messageMediaPoll', poll: array{_: 'poll', id: array, closed: array, public_voters: array, multiple_choice: array, quiz: array, question: array, answers: list, close_period: array, close_date: array}, results: array{_: 'pollResults', min: array, results: list, total_voters: array, recent_voters: list, solution: array, solution_entities: list}}|array{_: 'messageMediaDice', value: int, emoticon: string}, reply_markup?: array, entities: list, views: int, forwards: int, replies?: array{_: 'messageReplies', comments: array, replies: array, replies_pts: array, recent_repliers: list, channel_id: array, max_id: array, read_max_id: array}, edit_date: int, post_author: string, grouped_id: int, reactions?: array{_: 'messageReactions', min: array, can_see_list: array, results: list, recent_reactions: list}, restriction_reason: list, ttl_period: int}|array{_: 'messageService', peer_id: array|int|string, action: array{_: 'messageActionEmpty'}|array{_: 'messageActionChatCreate', title: array, users: list}|array{_: 'messageActionChatEditTitle', title: array}|array{_: 'messageActionChatEditPhoto', photo: array}|array{_: 'messageActionChatDeletePhoto'}|array{_: 'messageActionChatAddUser', users: list}|array{_: 'messageActionChatDeleteUser', user_id: array}|array{_: 'messageActionChatJoinedByLink', inviter_id: array}|array{_: 'messageActionChannelCreate', title: array}|array{_: 'messageActionChatMigrateTo', channel_id: array}|array{_: 'messageActionChannelMigrateFrom', chat_id: array, title: array}|array{_: 'messageActionPinMessage'}|array{_: 'messageActionHistoryClear'}|array{_: 'messageActionGameScore', game_id: array, score: array}|array{_: 'messageActionPaymentSentMe', charge: array, recurring_init: array, recurring_used: array, currency: array, total_amount: array, payload: array, info?: array, shipping_option_id: array}|array{_: 'messageActionPaymentSent', recurring_init: array, recurring_used: array, currency: array, total_amount: array, invoice_slug: array}|array{_: 'messageActionPhoneCall', video: array, call_id: array, reason?: array, duration: array}|array{_: 'messageActionScreenshotTaken'}|array{_: 'messageActionCustomAction', message: array}|array{_: 'messageActionBotAllowed', attach_menu: array, domain: array, app?: array}|array{_: 'messageActionSecureValuesSentMe', credentials: array, values: list}|array{_: 'messageActionSecureValuesSent', types: list}|array{_: 'messageActionContactSignUp'}|array{_: 'messageActionGeoProximityReached', from_id: array, to_id: array, distance: array}|array{_: 'messageActionGroupCall', call: array, duration: array}|array{_: 'messageActionInviteToGroupCall', call: array, users: list}|array{_: 'messageActionSetMessagesTTL', period: array, auto_setting_from: array}|array{_: 'messageActionGroupCallScheduled', call: array, schedule_date: array}|array{_: 'messageActionSetChatTheme', emoticon: array}|array{_: 'messageActionChatJoinedByRequest'}|array{_: 'messageActionWebViewDataSentMe', text: array, data: array}|array{_: 'messageActionWebViewDataSent', text: array}|array{_: 'messageActionGiftPremium', currency: array, amount: array, months: array, crypto_currency: array, crypto_amount: array}|array{_: 'messageActionTopicCreate', title: array, icon_color: array, icon_emoji_id: array}|array{_: 'messageActionTopicEdit', title: array, icon_emoji_id: array, closed?: array, hidden?: array}|array{_: 'messageActionSuggestProfilePhoto', photo: array}|array{_: 'messageActionRequestedPeer', peer: array, button_id: array}|array{_: 'messageActionSetChatWallPaper', wallpaper: array}|array{_: 'messageActionSetSameChatWallPaper', wallpaper: array}, out: bool, mentioned: bool, media_unread: bool, silent: bool, post: bool, legacy: bool, id: int, from_id?: array|int|string, reply_to?: array{_: 'messageReplyHeader', reply_to_scheduled: array, forum_topic: array, reply_to_msg_id: array, reply_to_peer_id?: array, reply_to_top_id: array}, date: int, ttl_period: int}>, chats: list, users: list}|array{_: 'messages.messagesSlice', inexact: bool, count: int, next_rate: int, offset_id_offset: int, messages: list, video_sizes: list, dc_id: array}, ttl_seconds: int}|array{_: 'messageMediaGeo', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}}|array{_: 'messageMediaContact', phone_number: string, first_name: string, last_name: string, vcard: string, user_id: int}|array{_: 'messageMediaUnsupported'}|array{_: 'messageMediaDocument', nopremium: bool, spoiler: bool, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, ttl_seconds: int}|array{_: 'messageMediaWebPage', webpage: array{_: 'webPageEmpty', id: array}|array{_: 'webPagePending', id: array, date: array}|array{_: 'webPage', id: array, url: array, display_url: array, hash: array, type: array, site_name: array, title: array, description: array, photo?: array, embed_url: array, embed_type: array, embed_width: array, embed_height: array, duration: array, author: array, document?: array, cached_page?: array, attributes: list}|array{_: 'webPageNotModified', cached_page_views: array}}|array{_: 'messageMediaVenue', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, title: string, address: string, provider: string, venue_id: string, venue_type: string}|array{_: 'messageMediaGame', game: array{_: 'game', photo: array, id: array, access_hash: array, short_name: array, title: array, description: array, document?: array}}|array{_: 'messageMediaInvoice', shipping_address_requested: bool, test: bool, title: string, description: string, photo?: array{_: 'webDocument', url: array, access_hash: array, size: array, mime_type: array, attributes: list}|array{_: 'webDocumentNoProxy', url: array, size: array, mime_type: array, attributes: list}, receipt_msg_id: int, currency: string, total_amount: int, start_param: string, extended_media?: array{_: 'messageExtendedMediaPreview', w: array, h: array, thumb?: array, video_duration: array}}|array{_: 'messageMediaGeoLive', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, heading: int, period: int, proximity_notification_radius: int}|array{_: 'messageMediaPoll', poll: array{_: 'poll', id: array, closed: array, public_voters: array, multiple_choice: array, quiz: array, question: array, answers: list, close_period: array, close_date: array}, results: array{_: 'pollResults', min: array, results: list, total_voters: array, recent_voters: list, solution: array, solution_entities: list}}|array{_: 'messageMediaDice', value: int, emoticon: string}, reply_markup?: array, entities: list, views: int, forwards: int, replies?: array{_: 'messageReplies', comments: array, replies: array, replies_pts: array, recent_repliers: list, channel_id: array, max_id: array, read_max_id: array}, edit_date: int, post_author: string, grouped_id: int, reactions?: array{_: 'messageReactions', min: array, can_see_list: array, results: list, recent_reactions: list}, restriction_reason: list, ttl_period: int}|array{_: 'messageService', peer_id: array|int|string, action: array{_: 'messageActionEmpty'}|array{_: 'messageActionChatCreate', title: array, users: list}|array{_: 'messageActionChatEditTitle', title: array}|array{_: 'messageActionChatEditPhoto', photo: array}|array{_: 'messageActionChatDeletePhoto'}|array{_: 'messageActionChatAddUser', users: list}|array{_: 'messageActionChatDeleteUser', user_id: array}|array{_: 'messageActionChatJoinedByLink', inviter_id: array}|array{_: 'messageActionChannelCreate', title: array}|array{_: 'messageActionChatMigrateTo', channel_id: array}|array{_: 'messageActionChannelMigrateFrom', chat_id: array, title: array}|array{_: 'messageActionPinMessage'}|array{_: 'messageActionHistoryClear'}|array{_: 'messageActionGameScore', game_id: array, score: array}|array{_: 'messageActionPaymentSentMe', charge: array, recurring_init: array, recurring_used: array, currency: array, total_amount: array, payload: array, info?: array, shipping_option_id: array}|array{_: 'messageActionPaymentSent', recurring_init: array, recurring_used: array, currency: array, total_amount: array, invoice_slug: array}|array{_: 'messageActionPhoneCall', video: array, call_id: array, reason?: array, duration: array}|array{_: 'messageActionScreenshotTaken'}|array{_: 'messageActionCustomAction', message: array}|array{_: 'messageActionBotAllowed', attach_menu: array, domain: array, app?: array}|array{_: 'messageActionSecureValuesSentMe', credentials: array, values: list}|array{_: 'messageActionSecureValuesSent', types: list}|array{_: 'messageActionContactSignUp'}|array{_: 'messageActionGeoProximityReached', from_id: array, to_id: array, distance: array}|array{_: 'messageActionGroupCall', call: array, duration: array}|array{_: 'messageActionInviteToGroupCall', call: array, users: list}|array{_: 'messageActionSetMessagesTTL', period: array, auto_setting_from: array}|array{_: 'messageActionGroupCallScheduled', call: array, schedule_date: array}|array{_: 'messageActionSetChatTheme', emoticon: array}|array{_: 'messageActionChatJoinedByRequest'}|array{_: 'messageActionWebViewDataSentMe', text: array, data: array}|array{_: 'messageActionWebViewDataSent', text: array}|array{_: 'messageActionGiftPremium', currency: array, amount: array, months: array, crypto_currency: array, crypto_amount: array}|array{_: 'messageActionTopicCreate', title: array, icon_color: array, icon_emoji_id: array}|array{_: 'messageActionTopicEdit', title: array, icon_emoji_id: array, closed?: array, hidden?: array}|array{_: 'messageActionSuggestProfilePhoto', photo: array}|array{_: 'messageActionRequestedPeer', peer: array, button_id: array}|array{_: 'messageActionSetChatWallPaper', wallpaper: array}|array{_: 'messageActionSetSameChatWallPaper', wallpaper: array}, out: bool, mentioned: bool, media_unread: bool, silent: bool, post: bool, legacy: bool, id: int, from_id?: array|int|string, reply_to?: array{_: 'messageReplyHeader', reply_to_scheduled: array, forum_topic: array, reply_to_msg_id: array, reply_to_peer_id?: array, reply_to_top_id: array}, date: int, ttl_period: int}>, chats: list, users: list}|array{_: 'messages.channelMessages', inexact: bool, pts: int, count: int, offset_id_offset: int, messages: list, video_sizes: list, dc_id: array}, ttl_seconds: int}|array{_: 'messageMediaGeo', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}}|array{_: 'messageMediaContact', phone_number: string, first_name: string, last_name: string, vcard: string, user_id: int}|array{_: 'messageMediaUnsupported'}|array{_: 'messageMediaDocument', nopremium: bool, spoiler: bool, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, ttl_seconds: int}|array{_: 'messageMediaWebPage', webpage: array{_: 'webPageEmpty', id: array}|array{_: 'webPagePending', id: array, date: array}|array{_: 'webPage', id: array, url: array, display_url: array, hash: array, type: array, site_name: array, title: array, description: array, photo?: array, embed_url: array, embed_type: array, embed_width: array, embed_height: array, duration: array, author: array, document?: array, cached_page?: array, attributes: list}|array{_: 'webPageNotModified', cached_page_views: array}}|array{_: 'messageMediaVenue', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, title: string, address: string, provider: string, venue_id: string, venue_type: string}|array{_: 'messageMediaGame', game: array{_: 'game', photo: array, id: array, access_hash: array, short_name: array, title: array, description: array, document?: array}}|array{_: 'messageMediaInvoice', shipping_address_requested: bool, test: bool, title: string, description: string, photo?: array{_: 'webDocument', url: array, access_hash: array, size: array, mime_type: array, attributes: list}|array{_: 'webDocumentNoProxy', url: array, size: array, mime_type: array, attributes: list}, receipt_msg_id: int, currency: string, total_amount: int, start_param: string, extended_media?: array{_: 'messageExtendedMediaPreview', w: array, h: array, thumb?: array, video_duration: array}}|array{_: 'messageMediaGeoLive', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, heading: int, period: int, proximity_notification_radius: int}|array{_: 'messageMediaPoll', poll: array{_: 'poll', id: array, closed: array, public_voters: array, multiple_choice: array, quiz: array, question: array, answers: list, close_period: array, close_date: array}, results: array{_: 'pollResults', min: array, results: list, total_voters: array, recent_voters: list, solution: array, solution_entities: list}}|array{_: 'messageMediaDice', value: int, emoticon: string}, reply_markup?: array, entities: list, views: int, forwards: int, replies?: array{_: 'messageReplies', comments: array, replies: array, replies_pts: array, recent_repliers: list, channel_id: array, max_id: array, read_max_id: array}, edit_date: int, post_author: string, grouped_id: int, reactions?: array{_: 'messageReactions', min: array, can_see_list: array, results: list, recent_reactions: list}, restriction_reason: list, ttl_period: int}|array{_: 'messageService', peer_id: array|int|string, action: array{_: 'messageActionEmpty'}|array{_: 'messageActionChatCreate', title: array, users: list}|array{_: 'messageActionChatEditTitle', title: array}|array{_: 'messageActionChatEditPhoto', photo: array}|array{_: 'messageActionChatDeletePhoto'}|array{_: 'messageActionChatAddUser', users: list}|array{_: 'messageActionChatDeleteUser', user_id: array}|array{_: 'messageActionChatJoinedByLink', inviter_id: array}|array{_: 'messageActionChannelCreate', title: array}|array{_: 'messageActionChatMigrateTo', channel_id: array}|array{_: 'messageActionChannelMigrateFrom', chat_id: array, title: array}|array{_: 'messageActionPinMessage'}|array{_: 'messageActionHistoryClear'}|array{_: 'messageActionGameScore', game_id: array, score: array}|array{_: 'messageActionPaymentSentMe', charge: array, recurring_init: array, recurring_used: array, currency: array, total_amount: array, payload: array, info?: array, shipping_option_id: array}|array{_: 'messageActionPaymentSent', recurring_init: array, recurring_used: array, currency: array, total_amount: array, invoice_slug: array}|array{_: 'messageActionPhoneCall', video: array, call_id: array, reason?: array, duration: array}|array{_: 'messageActionScreenshotTaken'}|array{_: 'messageActionCustomAction', message: array}|array{_: 'messageActionBotAllowed', attach_menu: array, domain: array, app?: array}|array{_: 'messageActionSecureValuesSentMe', credentials: array, values: list}|array{_: 'messageActionSecureValuesSent', types: list}|array{_: 'messageActionContactSignUp'}|array{_: 'messageActionGeoProximityReached', from_id: array, to_id: array, distance: array}|array{_: 'messageActionGroupCall', call: array, duration: array}|array{_: 'messageActionInviteToGroupCall', call: array, users: list}|array{_: 'messageActionSetMessagesTTL', period: array, auto_setting_from: array}|array{_: 'messageActionGroupCallScheduled', call: array, schedule_date: array}|array{_: 'messageActionSetChatTheme', emoticon: array}|array{_: 'messageActionChatJoinedByRequest'}|array{_: 'messageActionWebViewDataSentMe', text: array, data: array}|array{_: 'messageActionWebViewDataSent', text: array}|array{_: 'messageActionGiftPremium', currency: array, amount: array, months: array, crypto_currency: array, crypto_amount: array}|array{_: 'messageActionTopicCreate', title: array, icon_color: array, icon_emoji_id: array}|array{_: 'messageActionTopicEdit', title: array, icon_emoji_id: array, closed?: array, hidden?: array}|array{_: 'messageActionSuggestProfilePhoto', photo: array}|array{_: 'messageActionRequestedPeer', peer: array, button_id: array}|array{_: 'messageActionSetChatWallPaper', wallpaper: array}|array{_: 'messageActionSetSameChatWallPaper', wallpaper: array}, out: bool, mentioned: bool, media_unread: bool, silent: bool, post: bool, legacy: bool, id: int, from_id?: array|int|string, reply_to?: array{_: 'messageReplyHeader', reply_to_scheduled: array, forum_topic: array, reply_to_msg_id: array, reply_to_peer_id?: array, reply_to_top_id: array}, date: int, ttl_period: int}>, topics: list, date: array}}>, chats: list, users: list}|array{_: 'messages.messagesNotModified', count: int} @see https://docs.madelineproto.xyz/API_docs/types/messages.Messages.html + * @return array{_: 'messages.messages', messages: list, chats: list, users: list}|array{_: 'messages.messagesSlice', inexact: array, count: array, next_rate: array, offset_id_offset: array, messages: list, chats: list, users: list}|array{_: 'messages.channelMessages', inexact: array, pts: array, count: array, offset_id_offset: array, messages: list, topics: list, chats: list, users: list}|array{_: 'messages.messagesNotModified', count: array} @see https://docs.madelineproto.xyz/API_docs/types/messages.Messages.html */ public function getUnreadReactions(array|int|string $peer, int $top_msg_id = 0, int $offset_id = 0, int $add_offset = 0, int $limit = 0, int $max_id = 0, int $min_id = 0): array; /** - * Mark [message reactions »](https://core.telegram.org/api/reactions) as read + * Mark [message reactions »](https://core.telegram.org/api/reactions) as read. * * @param array|int|string $peer Peer @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html - * @param int $top_msg_id * @return array{_: 'messages.affectedHistory', pts: int, pts_count: int, offset: int} @see https://docs.madelineproto.xyz/API_docs/types/messages.AffectedHistory.html */ public function readReactions(array|int|string $peer, int $top_msg_id = 0): array; /** - * View and search recently sent media. + * View and search recently sent media. * This method does not support pagination. * * @param array{_: 'inputMessagesFilterEmpty'}|array{_: 'inputMessagesFilterPhotos'}|array{_: 'inputMessagesFilterVideo'}|array{_: 'inputMessagesFilterPhotoVideo'}|array{_: 'inputMessagesFilterDocument'}|array{_: 'inputMessagesFilterUrl'}|array{_: 'inputMessagesFilterGif'}|array{_: 'inputMessagesFilterVoice'}|array{_: 'inputMessagesFilterMusic'}|array{_: 'inputMessagesFilterChatPhotos'}|array{_: 'inputMessagesFilterPhoneCalls', missed?: bool}|array{_: 'inputMessagesFilterRoundVoice'}|array{_: 'inputMessagesFilterRoundVideo'}|array{_: 'inputMessagesFilterMyMentions'}|array{_: 'inputMessagesFilterGeo'}|array{_: 'inputMessagesFilterContacts'}|array{_: 'inputMessagesFilterPinned'} $filter Message filter @see https://docs.madelineproto.xyz/API_docs/types/MessagesFilter.html * @param string $q Optional search query * @param int $limit Maximum number of results to return (max 100). - * @return array{_: 'messages.messages', messages: list, video_sizes: list, dc_id: array}, ttl_seconds: int}|array{_: 'messageMediaGeo', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}}|array{_: 'messageMediaContact', phone_number: string, first_name: string, last_name: string, vcard: string, user_id: int}|array{_: 'messageMediaUnsupported'}|array{_: 'messageMediaDocument', nopremium: bool, spoiler: bool, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, ttl_seconds: int}|array{_: 'messageMediaWebPage', webpage: array{_: 'webPageEmpty', id: array}|array{_: 'webPagePending', id: array, date: array}|array{_: 'webPage', id: array, url: array, display_url: array, hash: array, type: array, site_name: array, title: array, description: array, photo?: array, embed_url: array, embed_type: array, embed_width: array, embed_height: array, duration: array, author: array, document?: array, cached_page?: array, attributes: list}|array{_: 'webPageNotModified', cached_page_views: array}}|array{_: 'messageMediaVenue', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, title: string, address: string, provider: string, venue_id: string, venue_type: string}|array{_: 'messageMediaGame', game: array{_: 'game', photo: array, id: array, access_hash: array, short_name: array, title: array, description: array, document?: array}}|array{_: 'messageMediaInvoice', shipping_address_requested: bool, test: bool, title: string, description: string, photo?: array{_: 'webDocument', url: array, access_hash: array, size: array, mime_type: array, attributes: list}|array{_: 'webDocumentNoProxy', url: array, size: array, mime_type: array, attributes: list}, receipt_msg_id: int, currency: string, total_amount: int, start_param: string, extended_media?: array{_: 'messageExtendedMediaPreview', w: array, h: array, thumb?: array, video_duration: array}}|array{_: 'messageMediaGeoLive', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, heading: int, period: int, proximity_notification_radius: int}|array{_: 'messageMediaPoll', poll: array{_: 'poll', id: array, closed: array, public_voters: array, multiple_choice: array, quiz: array, question: array, answers: list, close_period: array, close_date: array}, results: array{_: 'pollResults', min: array, results: list, total_voters: array, recent_voters: list, solution: array, solution_entities: list}}|array{_: 'messageMediaDice', value: int, emoticon: string}, reply_markup?: array, entities: list, views: int, forwards: int, replies?: array{_: 'messageReplies', comments: array, replies: array, replies_pts: array, recent_repliers: list, channel_id: array, max_id: array, read_max_id: array}, edit_date: int, post_author: string, grouped_id: int, reactions?: array{_: 'messageReactions', min: array, can_see_list: array, results: list, recent_reactions: list}, restriction_reason: list, ttl_period: int}|array{_: 'messageService', peer_id: array|int|string, action: array{_: 'messageActionEmpty'}|array{_: 'messageActionChatCreate', title: array, users: list}|array{_: 'messageActionChatEditTitle', title: array}|array{_: 'messageActionChatEditPhoto', photo: array}|array{_: 'messageActionChatDeletePhoto'}|array{_: 'messageActionChatAddUser', users: list}|array{_: 'messageActionChatDeleteUser', user_id: array}|array{_: 'messageActionChatJoinedByLink', inviter_id: array}|array{_: 'messageActionChannelCreate', title: array}|array{_: 'messageActionChatMigrateTo', channel_id: array}|array{_: 'messageActionChannelMigrateFrom', chat_id: array, title: array}|array{_: 'messageActionPinMessage'}|array{_: 'messageActionHistoryClear'}|array{_: 'messageActionGameScore', game_id: array, score: array}|array{_: 'messageActionPaymentSentMe', charge: array, recurring_init: array, recurring_used: array, currency: array, total_amount: array, payload: array, info?: array, shipping_option_id: array}|array{_: 'messageActionPaymentSent', recurring_init: array, recurring_used: array, currency: array, total_amount: array, invoice_slug: array}|array{_: 'messageActionPhoneCall', video: array, call_id: array, reason?: array, duration: array}|array{_: 'messageActionScreenshotTaken'}|array{_: 'messageActionCustomAction', message: array}|array{_: 'messageActionBotAllowed', attach_menu: array, domain: array, app?: array}|array{_: 'messageActionSecureValuesSentMe', credentials: array, values: list}|array{_: 'messageActionSecureValuesSent', types: list}|array{_: 'messageActionContactSignUp'}|array{_: 'messageActionGeoProximityReached', from_id: array, to_id: array, distance: array}|array{_: 'messageActionGroupCall', call: array, duration: array}|array{_: 'messageActionInviteToGroupCall', call: array, users: list}|array{_: 'messageActionSetMessagesTTL', period: array, auto_setting_from: array}|array{_: 'messageActionGroupCallScheduled', call: array, schedule_date: array}|array{_: 'messageActionSetChatTheme', emoticon: array}|array{_: 'messageActionChatJoinedByRequest'}|array{_: 'messageActionWebViewDataSentMe', text: array, data: array}|array{_: 'messageActionWebViewDataSent', text: array}|array{_: 'messageActionGiftPremium', currency: array, amount: array, months: array, crypto_currency: array, crypto_amount: array}|array{_: 'messageActionTopicCreate', title: array, icon_color: array, icon_emoji_id: array}|array{_: 'messageActionTopicEdit', title: array, icon_emoji_id: array, closed?: array, hidden?: array}|array{_: 'messageActionSuggestProfilePhoto', photo: array}|array{_: 'messageActionRequestedPeer', peer: array, button_id: array}|array{_: 'messageActionSetChatWallPaper', wallpaper: array}|array{_: 'messageActionSetSameChatWallPaper', wallpaper: array}, out: bool, mentioned: bool, media_unread: bool, silent: bool, post: bool, legacy: bool, id: int, from_id?: array|int|string, reply_to?: array{_: 'messageReplyHeader', reply_to_scheduled: array, forum_topic: array, reply_to_msg_id: array, reply_to_peer_id?: array, reply_to_top_id: array}, date: int, ttl_period: int}>, chats: list, users: list}|array{_: 'messages.messagesSlice', inexact: bool, count: int, next_rate: int, offset_id_offset: int, messages: list, video_sizes: list, dc_id: array}, ttl_seconds: int}|array{_: 'messageMediaGeo', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}}|array{_: 'messageMediaContact', phone_number: string, first_name: string, last_name: string, vcard: string, user_id: int}|array{_: 'messageMediaUnsupported'}|array{_: 'messageMediaDocument', nopremium: bool, spoiler: bool, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, ttl_seconds: int}|array{_: 'messageMediaWebPage', webpage: array{_: 'webPageEmpty', id: array}|array{_: 'webPagePending', id: array, date: array}|array{_: 'webPage', id: array, url: array, display_url: array, hash: array, type: array, site_name: array, title: array, description: array, photo?: array, embed_url: array, embed_type: array, embed_width: array, embed_height: array, duration: array, author: array, document?: array, cached_page?: array, attributes: list}|array{_: 'webPageNotModified', cached_page_views: array}}|array{_: 'messageMediaVenue', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, title: string, address: string, provider: string, venue_id: string, venue_type: string}|array{_: 'messageMediaGame', game: array{_: 'game', photo: array, id: array, access_hash: array, short_name: array, title: array, description: array, document?: array}}|array{_: 'messageMediaInvoice', shipping_address_requested: bool, test: bool, title: string, description: string, photo?: array{_: 'webDocument', url: array, access_hash: array, size: array, mime_type: array, attributes: list}|array{_: 'webDocumentNoProxy', url: array, size: array, mime_type: array, attributes: list}, receipt_msg_id: int, currency: string, total_amount: int, start_param: string, extended_media?: array{_: 'messageExtendedMediaPreview', w: array, h: array, thumb?: array, video_duration: array}}|array{_: 'messageMediaGeoLive', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, heading: int, period: int, proximity_notification_radius: int}|array{_: 'messageMediaPoll', poll: array{_: 'poll', id: array, closed: array, public_voters: array, multiple_choice: array, quiz: array, question: array, answers: list, close_period: array, close_date: array}, results: array{_: 'pollResults', min: array, results: list, total_voters: array, recent_voters: list, solution: array, solution_entities: list}}|array{_: 'messageMediaDice', value: int, emoticon: string}, reply_markup?: array, entities: list, views: int, forwards: int, replies?: array{_: 'messageReplies', comments: array, replies: array, replies_pts: array, recent_repliers: list, channel_id: array, max_id: array, read_max_id: array}, edit_date: int, post_author: string, grouped_id: int, reactions?: array{_: 'messageReactions', min: array, can_see_list: array, results: list, recent_reactions: list}, restriction_reason: list, ttl_period: int}|array{_: 'messageService', peer_id: array|int|string, action: array{_: 'messageActionEmpty'}|array{_: 'messageActionChatCreate', title: array, users: list}|array{_: 'messageActionChatEditTitle', title: array}|array{_: 'messageActionChatEditPhoto', photo: array}|array{_: 'messageActionChatDeletePhoto'}|array{_: 'messageActionChatAddUser', users: list}|array{_: 'messageActionChatDeleteUser', user_id: array}|array{_: 'messageActionChatJoinedByLink', inviter_id: array}|array{_: 'messageActionChannelCreate', title: array}|array{_: 'messageActionChatMigrateTo', channel_id: array}|array{_: 'messageActionChannelMigrateFrom', chat_id: array, title: array}|array{_: 'messageActionPinMessage'}|array{_: 'messageActionHistoryClear'}|array{_: 'messageActionGameScore', game_id: array, score: array}|array{_: 'messageActionPaymentSentMe', charge: array, recurring_init: array, recurring_used: array, currency: array, total_amount: array, payload: array, info?: array, shipping_option_id: array}|array{_: 'messageActionPaymentSent', recurring_init: array, recurring_used: array, currency: array, total_amount: array, invoice_slug: array}|array{_: 'messageActionPhoneCall', video: array, call_id: array, reason?: array, duration: array}|array{_: 'messageActionScreenshotTaken'}|array{_: 'messageActionCustomAction', message: array}|array{_: 'messageActionBotAllowed', attach_menu: array, domain: array, app?: array}|array{_: 'messageActionSecureValuesSentMe', credentials: array, values: list}|array{_: 'messageActionSecureValuesSent', types: list}|array{_: 'messageActionContactSignUp'}|array{_: 'messageActionGeoProximityReached', from_id: array, to_id: array, distance: array}|array{_: 'messageActionGroupCall', call: array, duration: array}|array{_: 'messageActionInviteToGroupCall', call: array, users: list}|array{_: 'messageActionSetMessagesTTL', period: array, auto_setting_from: array}|array{_: 'messageActionGroupCallScheduled', call: array, schedule_date: array}|array{_: 'messageActionSetChatTheme', emoticon: array}|array{_: 'messageActionChatJoinedByRequest'}|array{_: 'messageActionWebViewDataSentMe', text: array, data: array}|array{_: 'messageActionWebViewDataSent', text: array}|array{_: 'messageActionGiftPremium', currency: array, amount: array, months: array, crypto_currency: array, crypto_amount: array}|array{_: 'messageActionTopicCreate', title: array, icon_color: array, icon_emoji_id: array}|array{_: 'messageActionTopicEdit', title: array, icon_emoji_id: array, closed?: array, hidden?: array}|array{_: 'messageActionSuggestProfilePhoto', photo: array}|array{_: 'messageActionRequestedPeer', peer: array, button_id: array}|array{_: 'messageActionSetChatWallPaper', wallpaper: array}|array{_: 'messageActionSetSameChatWallPaper', wallpaper: array}, out: bool, mentioned: bool, media_unread: bool, silent: bool, post: bool, legacy: bool, id: int, from_id?: array|int|string, reply_to?: array{_: 'messageReplyHeader', reply_to_scheduled: array, forum_topic: array, reply_to_msg_id: array, reply_to_peer_id?: array, reply_to_top_id: array}, date: int, ttl_period: int}>, chats: list, users: list}|array{_: 'messages.channelMessages', inexact: bool, pts: int, count: int, offset_id_offset: int, messages: list, video_sizes: list, dc_id: array}, ttl_seconds: int}|array{_: 'messageMediaGeo', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}}|array{_: 'messageMediaContact', phone_number: string, first_name: string, last_name: string, vcard: string, user_id: int}|array{_: 'messageMediaUnsupported'}|array{_: 'messageMediaDocument', nopremium: bool, spoiler: bool, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, ttl_seconds: int}|array{_: 'messageMediaWebPage', webpage: array{_: 'webPageEmpty', id: array}|array{_: 'webPagePending', id: array, date: array}|array{_: 'webPage', id: array, url: array, display_url: array, hash: array, type: array, site_name: array, title: array, description: array, photo?: array, embed_url: array, embed_type: array, embed_width: array, embed_height: array, duration: array, author: array, document?: array, cached_page?: array, attributes: list}|array{_: 'webPageNotModified', cached_page_views: array}}|array{_: 'messageMediaVenue', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, title: string, address: string, provider: string, venue_id: string, venue_type: string}|array{_: 'messageMediaGame', game: array{_: 'game', photo: array, id: array, access_hash: array, short_name: array, title: array, description: array, document?: array}}|array{_: 'messageMediaInvoice', shipping_address_requested: bool, test: bool, title: string, description: string, photo?: array{_: 'webDocument', url: array, access_hash: array, size: array, mime_type: array, attributes: list}|array{_: 'webDocumentNoProxy', url: array, size: array, mime_type: array, attributes: list}, receipt_msg_id: int, currency: string, total_amount: int, start_param: string, extended_media?: array{_: 'messageExtendedMediaPreview', w: array, h: array, thumb?: array, video_duration: array}}|array{_: 'messageMediaGeoLive', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, heading: int, period: int, proximity_notification_radius: int}|array{_: 'messageMediaPoll', poll: array{_: 'poll', id: array, closed: array, public_voters: array, multiple_choice: array, quiz: array, question: array, answers: list, close_period: array, close_date: array}, results: array{_: 'pollResults', min: array, results: list, total_voters: array, recent_voters: list, solution: array, solution_entities: list}}|array{_: 'messageMediaDice', value: int, emoticon: string}, reply_markup?: array, entities: list, views: int, forwards: int, replies?: array{_: 'messageReplies', comments: array, replies: array, replies_pts: array, recent_repliers: list, channel_id: array, max_id: array, read_max_id: array}, edit_date: int, post_author: string, grouped_id: int, reactions?: array{_: 'messageReactions', min: array, can_see_list: array, results: list, recent_reactions: list}, restriction_reason: list, ttl_period: int}|array{_: 'messageService', peer_id: array|int|string, action: array{_: 'messageActionEmpty'}|array{_: 'messageActionChatCreate', title: array, users: list}|array{_: 'messageActionChatEditTitle', title: array}|array{_: 'messageActionChatEditPhoto', photo: array}|array{_: 'messageActionChatDeletePhoto'}|array{_: 'messageActionChatAddUser', users: list}|array{_: 'messageActionChatDeleteUser', user_id: array}|array{_: 'messageActionChatJoinedByLink', inviter_id: array}|array{_: 'messageActionChannelCreate', title: array}|array{_: 'messageActionChatMigrateTo', channel_id: array}|array{_: 'messageActionChannelMigrateFrom', chat_id: array, title: array}|array{_: 'messageActionPinMessage'}|array{_: 'messageActionHistoryClear'}|array{_: 'messageActionGameScore', game_id: array, score: array}|array{_: 'messageActionPaymentSentMe', charge: array, recurring_init: array, recurring_used: array, currency: array, total_amount: array, payload: array, info?: array, shipping_option_id: array}|array{_: 'messageActionPaymentSent', recurring_init: array, recurring_used: array, currency: array, total_amount: array, invoice_slug: array}|array{_: 'messageActionPhoneCall', video: array, call_id: array, reason?: array, duration: array}|array{_: 'messageActionScreenshotTaken'}|array{_: 'messageActionCustomAction', message: array}|array{_: 'messageActionBotAllowed', attach_menu: array, domain: array, app?: array}|array{_: 'messageActionSecureValuesSentMe', credentials: array, values: list}|array{_: 'messageActionSecureValuesSent', types: list}|array{_: 'messageActionContactSignUp'}|array{_: 'messageActionGeoProximityReached', from_id: array, to_id: array, distance: array}|array{_: 'messageActionGroupCall', call: array, duration: array}|array{_: 'messageActionInviteToGroupCall', call: array, users: list}|array{_: 'messageActionSetMessagesTTL', period: array, auto_setting_from: array}|array{_: 'messageActionGroupCallScheduled', call: array, schedule_date: array}|array{_: 'messageActionSetChatTheme', emoticon: array}|array{_: 'messageActionChatJoinedByRequest'}|array{_: 'messageActionWebViewDataSentMe', text: array, data: array}|array{_: 'messageActionWebViewDataSent', text: array}|array{_: 'messageActionGiftPremium', currency: array, amount: array, months: array, crypto_currency: array, crypto_amount: array}|array{_: 'messageActionTopicCreate', title: array, icon_color: array, icon_emoji_id: array}|array{_: 'messageActionTopicEdit', title: array, icon_emoji_id: array, closed?: array, hidden?: array}|array{_: 'messageActionSuggestProfilePhoto', photo: array}|array{_: 'messageActionRequestedPeer', peer: array, button_id: array}|array{_: 'messageActionSetChatWallPaper', wallpaper: array}|array{_: 'messageActionSetSameChatWallPaper', wallpaper: array}, out: bool, mentioned: bool, media_unread: bool, silent: bool, post: bool, legacy: bool, id: int, from_id?: array|int|string, reply_to?: array{_: 'messageReplyHeader', reply_to_scheduled: array, forum_topic: array, reply_to_msg_id: array, reply_to_peer_id?: array, reply_to_top_id: array}, date: int, ttl_period: int}>, topics: list, date: array}}>, chats: list, users: list}|array{_: 'messages.messagesNotModified', count: int} @see https://docs.madelineproto.xyz/API_docs/types/messages.Messages.html + * @return array{_: 'messages.messages', messages: list, chats: list, users: list}|array{_: 'messages.messagesSlice', inexact: array, count: array, next_rate: array, offset_id_offset: array, messages: list, chats: list, users: list}|array{_: 'messages.channelMessages', inexact: array, pts: array, count: array, offset_id_offset: array, messages: list, topics: list, chats: list, users: list}|array{_: 'messages.messagesNotModified', count: array} @see https://docs.madelineproto.xyz/API_docs/types/messages.Messages.html */ public function searchSentMedia(array $filter, string $q = '', int $limit = 0): array; /** - * Returns installed attachment menu [bot web apps »](https://core.telegram.org/api/bots/attach) + * Returns installed attachment menu [bot web apps »](https://core.telegram.org/api/bots/attach). * * @param list|array $hash [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) - * @return array{_: 'attachMenuBotsNotModified'}|array{_: 'attachMenuBots', hash: list, bots: list, icons: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: array, local_id: array, secret: array}|array{_: 'fileLocation', dc_id: array, volume_id: array, local_id: array, secret: array}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: array, local_id: array, secret: array}|array{_: 'fileLocation', dc_id: array, volume_id: array, local_id: array, secret: array}, type: string, w: int, h: int, bytes: string}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: array, access_hash: array}|array{_: 'inputStickerSetShortName', short_name: array}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: array}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int, attributes: list}, name: string, colors: list}>}>, users: list} @see https://docs.madelineproto.xyz/API_docs/types/AttachMenuBots.html + * @return array{_: 'attachMenuBotsNotModified'}|array{_: 'attachMenuBots', hash: list, bots: list, icons: list, video_thumbs: list, dc_id: array, attributes: list}, name: string, colors: list}>}>, users: list} @see https://docs.madelineproto.xyz/API_docs/types/AttachMenuBots.html */ public function getAttachMenuBots(array $hash = []): array; /** - * Returns attachment menu entry for a [bot web app that can be launched from the attachment menu »](https://core.telegram.org/api/bots/attach) + * Returns attachment menu entry for a [bot web app that can be launched from the attachment menu »](https://core.telegram.org/api/bots/attach). * * @param array|int|string $bot Bot ID @see https://docs.madelineproto.xyz/API_docs/types/InputUser.html - * @return array{_: 'attachMenuBotsBot', bot: array{_: 'attachMenuBot', inactive: bool, has_settings: bool, request_write_access: bool, bot_id: int, short_name: string, peer_types: list, icons: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: array, local_id: array, secret: array}|array{_: 'fileLocation', dc_id: array, volume_id: array, local_id: array, secret: array}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: array, local_id: array, secret: array}|array{_: 'fileLocation', dc_id: array, volume_id: array, local_id: array, secret: array}, type: string, w: int, h: int, bytes: string}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: array, access_hash: array}|array{_: 'inputStickerSetShortName', short_name: array}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: array}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int, attributes: list}, name: string, colors: list}>}, users: list} @see https://docs.madelineproto.xyz/API_docs/types/AttachMenuBotsBot.html + * @return array{_: 'attachMenuBotsBot', bot: array{_: 'attachMenuBot', inactive: bool, has_settings: bool, request_write_access: bool, bot_id: int, short_name: string, peer_types: list, icons: list, video_thumbs: list, dc_id: array, attributes: list}, name: string, colors: list}>}, users: list} @see https://docs.madelineproto.xyz/API_docs/types/AttachMenuBotsBot.html */ public function getAttachMenuBot(array|int|string $bot): array; /** - * Enable or disable [web bot attachment menu »](https://core.telegram.org/api/bots/attach) + * Enable or disable [web bot attachment menu »](https://core.telegram.org/api/bots/attach). * * @param array|int|string $bot Bot ID @see https://docs.madelineproto.xyz/API_docs/types/InputUser.html * @param bool $enabled Toggle - * @param bool $write_allowed - * @return bool */ public function toggleBotInAttachMenu(array|int|string $bot, bool $enabled, bool $write_allowed = false): bool; /** * Open a [bot web app](https://core.telegram.org/bots/webapps), sending over user information after user confirmation. - * + * * After calling this method, until the user closes the webview, [messages.prolongWebView](https://docs.madelineproto.xyz/API_docs/methods/messages.prolongWebView.html) must be called every 60 seconds. * * @param array|int|string $peer Dialog where the web app is being opened, and where the resulting message will be sent (see the [docs for more info »](https://core.telegram.org/api/bots/webapps)). @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html @@ -1579,9 +1520,7 @@ public function toggleBotInAttachMenu(array|int|string $bot, bool $enabled, bool * @param string $url [Web app URL](https://core.telegram.org/api/bots/webapps) * @param string $start_param If the web app was opened from the attachment menu using a [attachment menu deep link](https://core.telegram.org/api/links#bot-attachment-menu-links), `start_param` should contain the `data` from the `startattach` parameter. * @param mixed $theme_params Any JSON-encodable data - * @param string $platform * @param int $reply_to_msg_id Whether the inline message that will be sent by the bot on behalf of the user once the web app interaction is [terminated](https://docs.madelineproto.xyz/API_docs/methods/messages.sendWebViewResultMessage.html) should be sent in reply to this message ID. - * @param int $top_msg_id * @param array|int|string $send_as Open the web app as the specified peer, sending the resulting the message as the specified peer. @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html * @return array{_: 'webViewResultUrl', query_id: int, url: string} @see https://docs.madelineproto.xyz/API_docs/types/WebViewResult.html */ @@ -1595,9 +1534,7 @@ public function requestWebView(array|int|string $peer, array|int|string $bot, bo * @param bool $silent Whether the inline message that will be sent by the bot on behalf of the user once the web app interaction is [terminated](https://docs.madelineproto.xyz/API_docs/methods/messages.sendWebViewResultMessage.html) should be sent silently (no notifications for the receivers). * @param int $query_id Web app interaction ID obtained from [messages.requestWebView](https://docs.madelineproto.xyz/API_docs/methods/messages.requestWebView.html) * @param int $reply_to_msg_id Whether the inline message that will be sent by the bot on behalf of the user once the web app interaction is [terminated](https://docs.madelineproto.xyz/API_docs/methods/messages.sendWebViewResultMessage.html) should be sent in reply to this message ID. - * @param int $top_msg_id * @param array|int|string $send_as Open the web app as the specified peer @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html - * @return bool */ public function prolongWebView(array|int|string $peer, array|int|string $bot, bool $silent = false, int $query_id = 0, int $reply_to_msg_id = 0, int $top_msg_id = 0, array|int|string $send_as = []): bool; @@ -1605,10 +1542,8 @@ public function prolongWebView(array|int|string $peer, array|int|string $bot, bo * Open a [bot web app](https://core.telegram.org/api/bots/webapps). * * @param array|int|string $bot Bot that owns the webapp @see https://docs.madelineproto.xyz/API_docs/types/InputUser.html - * @param bool $from_switch_webview * @param string $url Web app URL * @param mixed $theme_params Any JSON-encodable data - * @param string $platform * @return array{_: 'simpleWebViewResultUrl', url: string} @see https://docs.madelineproto.xyz/API_docs/types/SimpleWebViewResult.html */ public function requestSimpleWebView(array|int|string $bot, bool $from_switch_webview = false, string $url = '', mixed $theme_params = null, string $platform = ''): array; @@ -1616,7 +1551,7 @@ public function requestSimpleWebView(array|int|string $bot, bool $from_switch_we /** * Terminate webview interaction started with [messages.requestWebView](https://docs.madelineproto.xyz/API_docs/methods/messages.requestWebView.html), sending the specified message to the chat on behalf of the user. * - * @param array{_: 'inputBotInlineResult', send_message: array{_: 'inputBotInlineMessageMediaAuto', message?: string, entities?: list, reply_markup?: array}|array{_: 'inputBotInlineMessageText', no_webpage?: bool, message?: string, entities?: list, reply_markup?: array}|array{_: 'inputBotInlineMessageMediaGeo', geo_point: array{_: 'inputGeoPointEmpty'}|array{_: 'inputGeoPoint', lat: float, long: float, accuracy_radius?: int}, heading?: int, period?: int, proximity_notification_radius?: int, reply_markup?: array}|array{_: 'inputBotInlineMessageMediaVenue', geo_point: array{_: 'inputGeoPointEmpty'}|array{_: 'inputGeoPoint', lat: float, long: float, accuracy_radius?: int}, title?: string, address?: string, provider?: string, venue_id?: string, venue_type?: string, reply_markup?: array}|array{_: 'inputBotInlineMessageMediaContact', phone_number?: string, first_name?: string, last_name?: string, vcard?: string, reply_markup?: array}|array{_: 'inputBotInlineMessageGame', reply_markup?: array}|array{_: 'inputBotInlineMessageMediaInvoice', invoice: array{_: 'invoice', test?: bool, name_requested?: bool, phone_requested?: bool, email_requested?: bool, shipping_address_requested?: bool, flexible?: bool, phone_to_provider?: bool, email_to_provider?: bool, recurring?: bool, currency?: string, prices?: list, max_tip_amount?: int, suggested_tip_amounts?: list, recurring_terms_url?: string}, provider_data: mixed, title?: string, description?: string, photo?: array{_: 'inputWebDocument', url?: string, size?: int, mime_type?: string, attributes?: list}, payload?: string, provider?: string, reply_markup?: array}, id?: string, type?: string, title?: string, description?: string, url?: string, thumb?: array{_: 'inputWebDocument', url?: string, size?: int, mime_type?: string, attributes?: list}, content?: array{_: 'inputWebDocument', url?: string, size?: int, mime_type?: string, attributes?: list}}|array{_: 'inputBotInlineResultPhoto', photo: array, send_message: array{_: 'inputBotInlineMessageMediaAuto', message?: string, entities?: list, reply_markup?: array}|array{_: 'inputBotInlineMessageText', no_webpage?: bool, message?: string, entities?: list, reply_markup?: array}|array{_: 'inputBotInlineMessageMediaGeo', geo_point: array{_: 'inputGeoPointEmpty'}|array{_: 'inputGeoPoint', lat: float, long: float, accuracy_radius?: int}, heading?: int, period?: int, proximity_notification_radius?: int, reply_markup?: array}|array{_: 'inputBotInlineMessageMediaVenue', geo_point: array{_: 'inputGeoPointEmpty'}|array{_: 'inputGeoPoint', lat: float, long: float, accuracy_radius?: int}, title?: string, address?: string, provider?: string, venue_id?: string, venue_type?: string, reply_markup?: array}|array{_: 'inputBotInlineMessageMediaContact', phone_number?: string, first_name?: string, last_name?: string, vcard?: string, reply_markup?: array}|array{_: 'inputBotInlineMessageGame', reply_markup?: array}|array{_: 'inputBotInlineMessageMediaInvoice', invoice: array{_: 'invoice', test?: bool, name_requested?: bool, phone_requested?: bool, email_requested?: bool, shipping_address_requested?: bool, flexible?: bool, phone_to_provider?: bool, email_to_provider?: bool, recurring?: bool, currency?: string, prices?: list, max_tip_amount?: int, suggested_tip_amounts?: list, recurring_terms_url?: string}, provider_data: mixed, title?: string, description?: string, photo?: array{_: 'inputWebDocument', url?: string, size?: int, mime_type?: string, attributes?: list}, payload?: string, provider?: string, reply_markup?: array}, id?: string, type?: string}|array{_: 'inputBotInlineResultDocument', document: array, send_message: array{_: 'inputBotInlineMessageMediaAuto', message?: string, entities?: list, reply_markup?: array}|array{_: 'inputBotInlineMessageText', no_webpage?: bool, message?: string, entities?: list, reply_markup?: array}|array{_: 'inputBotInlineMessageMediaGeo', geo_point: array{_: 'inputGeoPointEmpty'}|array{_: 'inputGeoPoint', lat: float, long: float, accuracy_radius?: int}, heading?: int, period?: int, proximity_notification_radius?: int, reply_markup?: array}|array{_: 'inputBotInlineMessageMediaVenue', geo_point: array{_: 'inputGeoPointEmpty'}|array{_: 'inputGeoPoint', lat: float, long: float, accuracy_radius?: int}, title?: string, address?: string, provider?: string, venue_id?: string, venue_type?: string, reply_markup?: array}|array{_: 'inputBotInlineMessageMediaContact', phone_number?: string, first_name?: string, last_name?: string, vcard?: string, reply_markup?: array}|array{_: 'inputBotInlineMessageGame', reply_markup?: array}|array{_: 'inputBotInlineMessageMediaInvoice', invoice: array{_: 'invoice', test?: bool, name_requested?: bool, phone_requested?: bool, email_requested?: bool, shipping_address_requested?: bool, flexible?: bool, phone_to_provider?: bool, email_to_provider?: bool, recurring?: bool, currency?: string, prices?: list, max_tip_amount?: int, suggested_tip_amounts?: list, recurring_terms_url?: string}, provider_data: mixed, title?: string, description?: string, photo?: array{_: 'inputWebDocument', url?: string, size?: int, mime_type?: string, attributes?: list}, payload?: string, provider?: string, reply_markup?: array}, id?: string, type?: string, title?: string, description?: string}|array{_: 'inputBotInlineResultGame', send_message: array{_: 'inputBotInlineMessageMediaAuto', message?: string, entities?: list, reply_markup?: array}|array{_: 'inputBotInlineMessageText', no_webpage?: bool, message?: string, entities?: list, reply_markup?: array}|array{_: 'inputBotInlineMessageMediaGeo', geo_point: array{_: 'inputGeoPointEmpty'}|array{_: 'inputGeoPoint', lat: float, long: float, accuracy_radius?: int}, heading?: int, period?: int, proximity_notification_radius?: int, reply_markup?: array}|array{_: 'inputBotInlineMessageMediaVenue', geo_point: array{_: 'inputGeoPointEmpty'}|array{_: 'inputGeoPoint', lat: float, long: float, accuracy_radius?: int}, title?: string, address?: string, provider?: string, venue_id?: string, venue_type?: string, reply_markup?: array}|array{_: 'inputBotInlineMessageMediaContact', phone_number?: string, first_name?: string, last_name?: string, vcard?: string, reply_markup?: array}|array{_: 'inputBotInlineMessageGame', reply_markup?: array}|array{_: 'inputBotInlineMessageMediaInvoice', invoice: array{_: 'invoice', test?: bool, name_requested?: bool, phone_requested?: bool, email_requested?: bool, shipping_address_requested?: bool, flexible?: bool, phone_to_provider?: bool, email_to_provider?: bool, recurring?: bool, currency?: string, prices?: list, max_tip_amount?: int, suggested_tip_amounts?: list, recurring_terms_url?: string}, provider_data: mixed, title?: string, description?: string, photo?: array{_: 'inputWebDocument', url?: string, size?: int, mime_type?: string, attributes?: list}, payload?: string, provider?: string, reply_markup?: array}, id?: string, short_name?: string} $result Message to send @see https://docs.madelineproto.xyz/API_docs/types/InputBotInlineResult.html + * @param array{_: 'inputBotInlineResult', send_message: array{_: 'inputBotInlineMessageMediaAuto', message?: array, entities?: list, reply_markup?: array}|array{_: 'inputBotInlineMessageText', no_webpage?: array, message?: array, entities?: list, reply_markup?: array}|array{_: 'inputBotInlineMessageMediaGeo', geo_point: array, heading?: array, period?: array, proximity_notification_radius?: array, reply_markup?: array}|array{_: 'inputBotInlineMessageMediaVenue', geo_point: array, title?: array, address?: array, provider?: array, venue_id?: array, venue_type?: array, reply_markup?: array}|array{_: 'inputBotInlineMessageMediaContact', phone_number?: array, first_name?: array, last_name?: array, vcard?: array, reply_markup?: array}|array{_: 'inputBotInlineMessageGame', reply_markup?: array}|array{_: 'inputBotInlineMessageMediaInvoice', invoice: array, provider_data: array, title?: array, description?: array, photo?: array, payload?: array, provider?: array, reply_markup?: array}, id?: string, type?: string, title?: string, description?: string, url?: string, thumb?: array{_: 'inputWebDocument', url?: array, size?: array, mime_type?: array, attributes?: list}, content?: array{_: 'inputWebDocument', url?: array, size?: array, mime_type?: array, attributes?: list}}|array{_: 'inputBotInlineResultPhoto', photo: array, send_message: array{_: 'inputBotInlineMessageMediaAuto', message?: array, entities?: list, reply_markup?: array}|array{_: 'inputBotInlineMessageText', no_webpage?: array, message?: array, entities?: list, reply_markup?: array}|array{_: 'inputBotInlineMessageMediaGeo', geo_point: array, heading?: array, period?: array, proximity_notification_radius?: array, reply_markup?: array}|array{_: 'inputBotInlineMessageMediaVenue', geo_point: array, title?: array, address?: array, provider?: array, venue_id?: array, venue_type?: array, reply_markup?: array}|array{_: 'inputBotInlineMessageMediaContact', phone_number?: array, first_name?: array, last_name?: array, vcard?: array, reply_markup?: array}|array{_: 'inputBotInlineMessageGame', reply_markup?: array}|array{_: 'inputBotInlineMessageMediaInvoice', invoice: array, provider_data: array, title?: array, description?: array, photo?: array, payload?: array, provider?: array, reply_markup?: array}, id?: string, type?: string}|array{_: 'inputBotInlineResultDocument', document: array, send_message: array{_: 'inputBotInlineMessageMediaAuto', message?: array, entities?: list, reply_markup?: array}|array{_: 'inputBotInlineMessageText', no_webpage?: array, message?: array, entities?: list, reply_markup?: array}|array{_: 'inputBotInlineMessageMediaGeo', geo_point: array, heading?: array, period?: array, proximity_notification_radius?: array, reply_markup?: array}|array{_: 'inputBotInlineMessageMediaVenue', geo_point: array, title?: array, address?: array, provider?: array, venue_id?: array, venue_type?: array, reply_markup?: array}|array{_: 'inputBotInlineMessageMediaContact', phone_number?: array, first_name?: array, last_name?: array, vcard?: array, reply_markup?: array}|array{_: 'inputBotInlineMessageGame', reply_markup?: array}|array{_: 'inputBotInlineMessageMediaInvoice', invoice: array, provider_data: array, title?: array, description?: array, photo?: array, payload?: array, provider?: array, reply_markup?: array}, id?: string, type?: string, title?: string, description?: string}|array{_: 'inputBotInlineResultGame', send_message: array{_: 'inputBotInlineMessageMediaAuto', message?: array, entities?: list, reply_markup?: array}|array{_: 'inputBotInlineMessageText', no_webpage?: array, message?: array, entities?: list, reply_markup?: array}|array{_: 'inputBotInlineMessageMediaGeo', geo_point: array, heading?: array, period?: array, proximity_notification_radius?: array, reply_markup?: array}|array{_: 'inputBotInlineMessageMediaVenue', geo_point: array, title?: array, address?: array, provider?: array, venue_id?: array, venue_type?: array, reply_markup?: array}|array{_: 'inputBotInlineMessageMediaContact', phone_number?: array, first_name?: array, last_name?: array, vcard?: array, reply_markup?: array}|array{_: 'inputBotInlineMessageGame', reply_markup?: array}|array{_: 'inputBotInlineMessageMediaInvoice', invoice: array, provider_data: array, title?: array, description?: array, photo?: array, payload?: array, provider?: array, reply_markup?: array}, id?: string, short_name?: string} $result Message to send @see https://docs.madelineproto.xyz/API_docs/types/InputBotInlineResult.html * @param string $bot_query_id Webview interaction ID obtained from [messages.requestWebView](https://docs.madelineproto.xyz/API_docs/methods/messages.requestWebView.html) * @return array{_: 'webViewMessageSent', msg_id?: array{_: 'inputBotInlineMessageID', dc_id: int, id: int, access_hash: int}|array{_: 'inputBotInlineMessageID64', dc_id: int, owner_id: int, id: int, access_hash: int}} @see https://docs.madelineproto.xyz/API_docs/types/WebViewMessageSent.html */ @@ -1633,7 +1568,7 @@ public function sendWebViewResultMessage(array $result, string $bot_query_id = ' public function sendWebViewData(array|int|string $bot, string $button_text = '', string $data = ''): array; /** - * [Transcribe voice message](https://core.telegram.org/api/transcribe) + * [Transcribe voice message](https://core.telegram.org/api/transcribe). * * @param array|int|string $peer Peer ID where the voice message was sent @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html * @param int $msg_id Voice message ID @@ -1642,23 +1577,22 @@ public function sendWebViewData(array|int|string $bot, string $button_text = '', public function transcribeAudio(array|int|string $peer, int $msg_id = 0): array; /** - * Rate [transcribed voice message](https://core.telegram.org/api/transcribe) + * Rate [transcribed voice message](https://core.telegram.org/api/transcribe). * * @param array|int|string $peer Peer where the voice message was sent @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html * @param bool $good Whether the transcription was correct * @param int $msg_id Message ID * @param int $transcription_id Transcription ID - * @return bool */ public function rateTranscribedAudio(array|int|string $peer, bool $good, int $msg_id = 0, int $transcription_id = 0): bool; /** * Fetch [custom emoji stickers »](https://core.telegram.org/api/custom-emoji). - * + * * Returns a list of [documents](https://docs.madelineproto.xyz/API_docs/constructors/document.html) with the animated custom emoji in TGS format, and a [documentAttributeCustomEmoji](https://docs.madelineproto.xyz/API_docs/constructors/documentAttributeCustomEmoji.html) attribute with the original emoji and info about the emoji stickerset this custom emoji belongs to. * * @param list|array $document_id [Custom emoji](https://core.telegram.org/api/custom-emoji) IDs from a [messageEntityCustomEmoji](https://docs.madelineproto.xyz/API_docs/constructors/messageEntityCustomEmoji.html). - * @return list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int, attributes: list}> Array of @see https://docs.madelineproto.xyz/API_docs/types/Document.html + * @return list, video_thumbs: list, dc_id: array, attributes: list}> Array of @see https://docs.madelineproto.xyz/API_docs/types/Document.html */ public function getCustomEmojiDocuments(array $document_id = []): array; @@ -1674,151 +1608,124 @@ public function getEmojiStickers(array $hash = []): array; * Gets featured custom emoji stickersets. * * @param list|array $hash [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) - * @return array{_: 'messages.featuredStickersNotModified', count: int}|array{_: 'messages.featuredStickers', premium: bool, hash: list, count: int, sets: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}, cover: array{_: 'documentEmpty', id: int}|array{_: 'document', id: int, access_hash: int, file_reference: string, date: int, mime_type: string, size: int, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int, attributes: list}}|array{_: 'stickerSetMultiCovered', set: array{_: 'stickerSet', archived: bool, official: bool, masks: bool, animated: bool, videos: bool, emojis: bool, installed_date: int, id: int, access_hash: int, title: string, short_name: string, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}, covers: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int, attributes: list}>}|array{_: 'stickerSetFullCovered', set: array{_: 'stickerSet', archived: bool, official: bool, masks: bool, animated: bool, videos: bool, emojis: bool, installed_date: int, id: int, access_hash: int, title: string, short_name: string, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}, packs: list}>, keywords: list}>, documents: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int, attributes: list}>}|array{_: 'stickerSetNoCovered', set: array{_: 'stickerSet', archived: bool, official: bool, masks: bool, animated: bool, videos: bool, emojis: bool, installed_date: int, id: int, access_hash: int, title: string, short_name: string, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}}>, unread: list} @see https://docs.madelineproto.xyz/API_docs/types/messages.FeaturedStickers.html + * @return array{_: 'messages.featuredStickersNotModified', count: int}|array{_: 'messages.featuredStickers', premium: bool, hash: list, count: int, sets: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}, cover: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}}|array{_: 'stickerSetMultiCovered', set: array{_: 'stickerSet', archived: bool, official: bool, masks: bool, animated: bool, videos: bool, emojis: bool, installed_date: int, id: int, access_hash: int, title: string, short_name: string, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}, covers: list, video_thumbs: list, dc_id: array, attributes: list}>}|array{_: 'stickerSetFullCovered', set: array{_: 'stickerSet', archived: bool, official: bool, masks: bool, animated: bool, videos: bool, emojis: bool, installed_date: int, id: int, access_hash: int, title: string, short_name: string, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}, packs: list}>, keywords: list}>, documents: list, video_thumbs: list, dc_id: array, attributes: list}>}|array{_: 'stickerSetNoCovered', set: array{_: 'stickerSet', archived: bool, official: bool, masks: bool, animated: bool, videos: bool, emojis: bool, installed_date: int, id: int, access_hash: int, title: string, short_name: string, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}}>, unread: list} @see https://docs.madelineproto.xyz/API_docs/types/messages.FeaturedStickers.html */ public function getFeaturedEmojiStickers(array $hash = []): array; /** - * + * * * @param array|int|string $peer @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html * @param array|int|string $reaction_peer @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html - * @param int $id - * @return bool */ public function reportReaction(array|int|string $peer, array|int|string $reaction_peer, int $id = 0): bool; /** - * * - * @param int $limit - * @param list|array $hash + * + * @param list|array $hash * @return array{_: 'messages.reactionsNotModified'}|array{_: 'messages.reactions', hash: list, reactions: list} @see https://docs.madelineproto.xyz/API_docs/types/messages.Reactions.html */ public function getTopReactions(int $limit = 0, array $hash = []): array; /** - * * - * @param int $limit - * @param list|array $hash + * + * @param list|array $hash * @return array{_: 'messages.reactionsNotModified'}|array{_: 'messages.reactions', hash: list, reactions: list} @see https://docs.madelineproto.xyz/API_docs/types/messages.Reactions.html */ public function getRecentReactions(int $limit = 0, array $hash = []): array; - /** - * - * - * @return bool - */ public function clearRecentReactions(): bool; /** - * + * * * @param array|int|string $peer @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html - * @param list|array $id + * @param list|array $id * @return array @see https://docs.madelineproto.xyz/API_docs/types/Updates.html */ public function getExtendedMedia(array|int|string $peer, array $id = []): array; - /** - * - * - * @param int $period - * @return bool - */ public function setDefaultHistoryTTL(int $period = 0): bool; /** - * + * * * @return array{_: 'defaultHistoryTTL', period: int} @see https://docs.madelineproto.xyz/API_docs/types/DefaultHistoryTTL.html */ public function getDefaultHistoryTTL(): array; /** - * + * * * @param array|int|string $peer @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html * @param array|int|string $requested_peer @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html - * @param int $msg_id - * @param int $button_id * @return array @see https://docs.madelineproto.xyz/API_docs/types/Updates.html */ public function sendBotRequestedPeer(array|int|string $peer, array|int|string $requested_peer, int $msg_id = 0, int $button_id = 0): array; /** - * * - * @param int $hash + * * @return array{_: 'messages.emojiGroupsNotModified'}|array{_: 'messages.emojiGroups', hash: int, groups: list}>} @see https://docs.madelineproto.xyz/API_docs/types/messages.EmojiGroups.html */ public function getEmojiGroups(int $hash = 0): array; /** - * * - * @param int $hash + * * @return array{_: 'messages.emojiGroupsNotModified'}|array{_: 'messages.emojiGroups', hash: int, groups: list}>} @see https://docs.madelineproto.xyz/API_docs/types/messages.EmojiGroups.html */ public function getEmojiStatusGroups(int $hash = 0): array; /** - * * - * @param int $hash + * * @return array{_: 'messages.emojiGroupsNotModified'}|array{_: 'messages.emojiGroups', hash: int, groups: list}>} @see https://docs.madelineproto.xyz/API_docs/types/messages.EmojiGroups.html */ public function getEmojiProfilePhotoGroups(int $hash = 0): array; /** - * * - * @param string $emoticon - * @param list|array $hash + * + * @param list|array $hash * @return array{_: 'emojiListNotModified'}|array{_: 'emojiList', hash: list, document_id: list} @see https://docs.madelineproto.xyz/API_docs/types/EmojiList.html */ public function searchCustomEmoji(string $emoticon = '', array $hash = []): array; /** - * + * * * @param array|int|string $peer @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html - * @param bool $disabled - * @return bool */ public function togglePeerTranslations(array|int|string $peer, bool $disabled = false): bool; /** - * + * * * @param array{_: 'inputBotAppID', id?: int, access_hash?: int}|array{_: 'inputBotAppShortName', bot_id: array|int|string, short_name?: string} $app @see https://docs.madelineproto.xyz/API_docs/types/InputBotApp.html - * @param list|array $hash - * @return array{_: 'messages.botApp', app: array{_: 'botAppNotModified'}|array{_: 'botApp', photo: array{_: 'photoEmpty', id: int}|array{_: 'photo', has_stickers: bool, id: int, access_hash: int, file_reference: string, date: int, sizes: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_sizes: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int}, id: int, access_hash: int, short_name: string, title: string, description: string, document?: array{_: 'documentEmpty', id: int}|array{_: 'document', id: int, access_hash: int, file_reference: string, date: int, mime_type: string, size: int, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int, attributes: list}, hash: list}, inactive: bool, request_write_access: bool} @see https://docs.madelineproto.xyz/API_docs/types/messages.BotApp.html + * @param list|array $hash + * @return array{_: 'messages.botApp', app: array{_: 'botAppNotModified'}|array{_: 'botApp', photo: array{_: 'photoEmpty', id: array}|array{_: 'photo', has_stickers: array, id: array, access_hash: array, file_reference: array, date: array, sizes: list, video_sizes: list, dc_id: array}, id: int, access_hash: int, short_name: string, title: string, description: string, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, hash: list}, inactive: bool, request_write_access: bool} @see https://docs.madelineproto.xyz/API_docs/types/messages.BotApp.html */ public function getBotApp(array $app, array $hash = []): array; /** - * + * * * @param array|int|string $peer @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html * @param array{_: 'inputBotAppID', id?: int, access_hash?: int}|array{_: 'inputBotAppShortName', bot_id: array|int|string, short_name?: string} $app @see https://docs.madelineproto.xyz/API_docs/types/InputBotApp.html - * @param bool $write_allowed - * @param string $start_param * @param mixed $theme_params Any JSON-encodable data - * @param string $platform * @return array{_: 'appWebViewResultUrl', url: string} @see https://docs.madelineproto.xyz/API_docs/types/AppWebViewResult.html */ public function requestAppWebView(array|int|string $peer, array $app, bool $write_allowed = false, string $start_param = '', mixed $theme_params = null, string $platform = ''): array; /** - * + * * * @param array|int|string $peer @see https://docs.madelineproto.xyz/API_docs/types/InputPeer.html * @param array{_: 'inputWallPaper', id?: int, access_hash?: int}|array{_: 'inputWallPaperSlug', slug?: string}|array{_: 'inputWallPaperNoFile', id?: int}|array $wallpaper @see https://docs.madelineproto.xyz/API_docs/types/InputWallPaper.html * @param array{_: 'wallPaperSettings', blur?: bool, motion?: bool, background_color?: int, second_background_color?: int, third_background_color?: int, fourth_background_color?: int, intensity?: int, rotation?: int}|array $settings @see https://docs.madelineproto.xyz/API_docs/types/WallPaperSettings.html - * @param int $id * @return array @see https://docs.madelineproto.xyz/API_docs/types/Updates.html */ public function setChatWallPaper(array|int|string $peer, array $wallpaper = [], array $settings = [], int $id = 0): array; diff --git a/src/Namespace/Photos.php b/src/Namespace/Photos.php index 99194a9102..4b283cc589 100644 --- a/src/Namespace/Photos.php +++ b/src/Namespace/Photos.php @@ -14,7 +14,7 @@ interface Photos * * @param array $id Input photo @see https://docs.madelineproto.xyz/API_docs/types/InputPhoto.html * @param array|int|string $bot @see https://docs.madelineproto.xyz/API_docs/types/InputUser.html - * @return array{_: 'photos.photo', photo: array{_: 'photoEmpty', id: int}|array{_: 'photo', has_stickers: bool, id: int, access_hash: int, file_reference: string, date: int, sizes: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_sizes: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int}, users: list} @see https://docs.madelineproto.xyz/API_docs/types/photos.Photo.html + * @return array{_: 'photos.photo', photo: array{_: 'photoEmpty', id: array}|array{_: 'photo', has_stickers: array, id: array, access_hash: array, file_reference: array, date: array, sizes: list, video_sizes: list, dc_id: array}, users: list} @see https://docs.madelineproto.xyz/API_docs/types/photos.Photo.html */ public function updateProfilePhoto(array $id, bool $fallback = false, array|int|string $bot = []): array; @@ -26,7 +26,7 @@ public function updateProfilePhoto(array $id, bool $fallback = false, array|int| * @param mixed $video A file name or a file URL. You can also use amphp async streams, amphp HTTP response objects, and [much more](https://docs.madelineproto.xyz/docs/FILES.html#downloading-files)! * @param float $video_start_ts Floating point UNIX timestamp in seconds, indicating the frame of the video that should be used as static preview. * @param array{_: 'videoSize', type?: string, w?: int, h?: int, size?: int, video_start_ts?: float}|array{_: 'videoSizeEmojiMarkup', emoji_id?: int, background_colors?: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id?: int, access_hash?: int}|array{_: 'inputStickerSetShortName', short_name?: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon?: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id?: int, background_colors?: list}|array $video_emoji_markup @see https://docs.madelineproto.xyz/API_docs/types/VideoSize.html - * @return array{_: 'photos.photo', photo: array{_: 'photoEmpty', id: int}|array{_: 'photo', has_stickers: bool, id: int, access_hash: int, file_reference: string, date: int, sizes: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_sizes: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int}, users: list} @see https://docs.madelineproto.xyz/API_docs/types/photos.Photo.html + * @return array{_: 'photos.photo', photo: array{_: 'photoEmpty', id: array}|array{_: 'photo', has_stickers: array, id: array, access_hash: array, file_reference: array, date: array, sizes: list, video_sizes: list, dc_id: array}, users: list} @see https://docs.madelineproto.xyz/API_docs/types/photos.Photo.html */ public function uploadProfilePhoto(bool $fallback = false, array|int|string $bot = [], mixed $file = [], mixed $video = [], float $video_start_ts = 0.0, array $video_emoji_markup = []): array; @@ -45,7 +45,7 @@ public function deletePhotos(array $id = []): array; * @param int $offset Number of list elements to be skipped * @param int $max_id If a positive value was transferred, the method will return only photos with IDs less than the set one * @param int $limit Number of list elements to be returned - * @return array{_: 'photos.photos', photos: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_sizes: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int}>, users: list}|array{_: 'photos.photosSlice', count: int, photos: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_sizes: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int}>, users: list} @see https://docs.madelineproto.xyz/API_docs/types/photos.Photos.html + * @return array{_: 'photos.photos', photos: list, video_sizes: list, dc_id: array}>, users: list}|array{_: 'photos.photosSlice', count: int, photos: list, video_sizes: list, dc_id: array}>, users: list} @see https://docs.madelineproto.xyz/API_docs/types/photos.Photos.html */ public function getUserPhotos(array|int|string $user_id, int $offset = 0, int $max_id = 0, int $limit = 0): array; @@ -56,7 +56,7 @@ public function getUserPhotos(array|int|string $user_id, int $offset = 0, int $m * @param mixed $file A file name or a file URL. You can also use amphp async streams, amphp HTTP response objects, and [much more](https://docs.madelineproto.xyz/docs/FILES.html#downloading-files)! * @param mixed $video A file name or a file URL. You can also use amphp async streams, amphp HTTP response objects, and [much more](https://docs.madelineproto.xyz/docs/FILES.html#downloading-files)! * @param array{_: 'videoSize', type?: string, w?: int, h?: int, size?: int, video_start_ts?: float}|array{_: 'videoSizeEmojiMarkup', emoji_id?: int, background_colors?: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id?: int, access_hash?: int}|array{_: 'inputStickerSetShortName', short_name?: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon?: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id?: int, background_colors?: list}|array $video_emoji_markup @see https://docs.madelineproto.xyz/API_docs/types/VideoSize.html - * @return array{_: 'photos.photo', photo: array{_: 'photoEmpty', id: int}|array{_: 'photo', has_stickers: bool, id: int, access_hash: int, file_reference: string, date: int, sizes: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_sizes: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int}, users: list} @see https://docs.madelineproto.xyz/API_docs/types/photos.Photo.html + * @return array{_: 'photos.photo', photo: array{_: 'photoEmpty', id: array}|array{_: 'photo', has_stickers: array, id: array, access_hash: array, file_reference: array, date: array, sizes: list, video_sizes: list, dc_id: array}, users: list} @see https://docs.madelineproto.xyz/API_docs/types/photos.Photo.html */ public function uploadContactProfilePhoto(array|int|string $user_id, bool $suggest = false, bool $save = false, mixed $file = [], mixed $video = [], float $video_start_ts = 0.0, array $video_emoji_markup = []): array; } diff --git a/src/Namespace/Stats.php b/src/Namespace/Stats.php index d0dd837d8b..eaecab7101 100644 --- a/src/Namespace/Stats.php +++ b/src/Namespace/Stats.php @@ -46,7 +46,7 @@ public function getMegagroupStats(array|int|string $channel, bool $dark = false) * @param int $offset_rate Initially 0, then set to the `next_rate` parameter of [messages.messagesSlice](https://docs.madelineproto.xyz/API_docs/constructors/messages.messagesSlice.html) * @param int $offset_id [Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets) * @param int $limit Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets) - * @return array{_: 'messages.messages', messages: list, video_sizes: list, dc_id: array}, ttl_seconds: int}|array{_: 'messageMediaGeo', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}}|array{_: 'messageMediaContact', phone_number: string, first_name: string, last_name: string, vcard: string, user_id: int}|array{_: 'messageMediaUnsupported'}|array{_: 'messageMediaDocument', nopremium: bool, spoiler: bool, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, ttl_seconds: int}|array{_: 'messageMediaWebPage', webpage: array{_: 'webPageEmpty', id: array}|array{_: 'webPagePending', id: array, date: array}|array{_: 'webPage', id: array, url: array, display_url: array, hash: array, type: array, site_name: array, title: array, description: array, photo?: array, embed_url: array, embed_type: array, embed_width: array, embed_height: array, duration: array, author: array, document?: array, cached_page?: array, attributes: list}|array{_: 'webPageNotModified', cached_page_views: array}}|array{_: 'messageMediaVenue', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, title: string, address: string, provider: string, venue_id: string, venue_type: string}|array{_: 'messageMediaGame', game: array{_: 'game', photo: array, id: array, access_hash: array, short_name: array, title: array, description: array, document?: array}}|array{_: 'messageMediaInvoice', shipping_address_requested: bool, test: bool, title: string, description: string, photo?: array{_: 'webDocument', url: array, access_hash: array, size: array, mime_type: array, attributes: list}|array{_: 'webDocumentNoProxy', url: array, size: array, mime_type: array, attributes: list}, receipt_msg_id: int, currency: string, total_amount: int, start_param: string, extended_media?: array{_: 'messageExtendedMediaPreview', w: array, h: array, thumb?: array, video_duration: array}}|array{_: 'messageMediaGeoLive', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, heading: int, period: int, proximity_notification_radius: int}|array{_: 'messageMediaPoll', poll: array{_: 'poll', id: array, closed: array, public_voters: array, multiple_choice: array, quiz: array, question: array, answers: list, close_period: array, close_date: array}, results: array{_: 'pollResults', min: array, results: list, total_voters: array, recent_voters: list, solution: array, solution_entities: list}}|array{_: 'messageMediaDice', value: int, emoticon: string}, reply_markup?: array, entities: list, views: int, forwards: int, replies?: array{_: 'messageReplies', comments: array, replies: array, replies_pts: array, recent_repliers: list, channel_id: array, max_id: array, read_max_id: array}, edit_date: int, post_author: string, grouped_id: int, reactions?: array{_: 'messageReactions', min: array, can_see_list: array, results: list, recent_reactions: list}, restriction_reason: list, ttl_period: int}|array{_: 'messageService', peer_id: array|int|string, action: array{_: 'messageActionEmpty'}|array{_: 'messageActionChatCreate', title: array, users: list}|array{_: 'messageActionChatEditTitle', title: array}|array{_: 'messageActionChatEditPhoto', photo: array}|array{_: 'messageActionChatDeletePhoto'}|array{_: 'messageActionChatAddUser', users: list}|array{_: 'messageActionChatDeleteUser', user_id: array}|array{_: 'messageActionChatJoinedByLink', inviter_id: array}|array{_: 'messageActionChannelCreate', title: array}|array{_: 'messageActionChatMigrateTo', channel_id: array}|array{_: 'messageActionChannelMigrateFrom', chat_id: array, title: array}|array{_: 'messageActionPinMessage'}|array{_: 'messageActionHistoryClear'}|array{_: 'messageActionGameScore', game_id: array, score: array}|array{_: 'messageActionPaymentSentMe', charge: array, recurring_init: array, recurring_used: array, currency: array, total_amount: array, payload: array, info?: array, shipping_option_id: array}|array{_: 'messageActionPaymentSent', recurring_init: array, recurring_used: array, currency: array, total_amount: array, invoice_slug: array}|array{_: 'messageActionPhoneCall', video: array, call_id: array, reason?: array, duration: array}|array{_: 'messageActionScreenshotTaken'}|array{_: 'messageActionCustomAction', message: array}|array{_: 'messageActionBotAllowed', attach_menu: array, domain: array, app?: array}|array{_: 'messageActionSecureValuesSentMe', credentials: array, values: list}|array{_: 'messageActionSecureValuesSent', types: list}|array{_: 'messageActionContactSignUp'}|array{_: 'messageActionGeoProximityReached', from_id: array, to_id: array, distance: array}|array{_: 'messageActionGroupCall', call: array, duration: array}|array{_: 'messageActionInviteToGroupCall', call: array, users: list}|array{_: 'messageActionSetMessagesTTL', period: array, auto_setting_from: array}|array{_: 'messageActionGroupCallScheduled', call: array, schedule_date: array}|array{_: 'messageActionSetChatTheme', emoticon: array}|array{_: 'messageActionChatJoinedByRequest'}|array{_: 'messageActionWebViewDataSentMe', text: array, data: array}|array{_: 'messageActionWebViewDataSent', text: array}|array{_: 'messageActionGiftPremium', currency: array, amount: array, months: array, crypto_currency: array, crypto_amount: array}|array{_: 'messageActionTopicCreate', title: array, icon_color: array, icon_emoji_id: array}|array{_: 'messageActionTopicEdit', title: array, icon_emoji_id: array, closed?: array, hidden?: array}|array{_: 'messageActionSuggestProfilePhoto', photo: array}|array{_: 'messageActionRequestedPeer', peer: array, button_id: array}|array{_: 'messageActionSetChatWallPaper', wallpaper: array}|array{_: 'messageActionSetSameChatWallPaper', wallpaper: array}, out: bool, mentioned: bool, media_unread: bool, silent: bool, post: bool, legacy: bool, id: int, from_id?: array|int|string, reply_to?: array{_: 'messageReplyHeader', reply_to_scheduled: array, forum_topic: array, reply_to_msg_id: array, reply_to_peer_id?: array, reply_to_top_id: array}, date: int, ttl_period: int}>, chats: list, users: list}|array{_: 'messages.messagesSlice', inexact: bool, count: int, next_rate: int, offset_id_offset: int, messages: list, video_sizes: list, dc_id: array}, ttl_seconds: int}|array{_: 'messageMediaGeo', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}}|array{_: 'messageMediaContact', phone_number: string, first_name: string, last_name: string, vcard: string, user_id: int}|array{_: 'messageMediaUnsupported'}|array{_: 'messageMediaDocument', nopremium: bool, spoiler: bool, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, ttl_seconds: int}|array{_: 'messageMediaWebPage', webpage: array{_: 'webPageEmpty', id: array}|array{_: 'webPagePending', id: array, date: array}|array{_: 'webPage', id: array, url: array, display_url: array, hash: array, type: array, site_name: array, title: array, description: array, photo?: array, embed_url: array, embed_type: array, embed_width: array, embed_height: array, duration: array, author: array, document?: array, cached_page?: array, attributes: list}|array{_: 'webPageNotModified', cached_page_views: array}}|array{_: 'messageMediaVenue', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, title: string, address: string, provider: string, venue_id: string, venue_type: string}|array{_: 'messageMediaGame', game: array{_: 'game', photo: array, id: array, access_hash: array, short_name: array, title: array, description: array, document?: array}}|array{_: 'messageMediaInvoice', shipping_address_requested: bool, test: bool, title: string, description: string, photo?: array{_: 'webDocument', url: array, access_hash: array, size: array, mime_type: array, attributes: list}|array{_: 'webDocumentNoProxy', url: array, size: array, mime_type: array, attributes: list}, receipt_msg_id: int, currency: string, total_amount: int, start_param: string, extended_media?: array{_: 'messageExtendedMediaPreview', w: array, h: array, thumb?: array, video_duration: array}}|array{_: 'messageMediaGeoLive', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, heading: int, period: int, proximity_notification_radius: int}|array{_: 'messageMediaPoll', poll: array{_: 'poll', id: array, closed: array, public_voters: array, multiple_choice: array, quiz: array, question: array, answers: list, close_period: array, close_date: array}, results: array{_: 'pollResults', min: array, results: list, total_voters: array, recent_voters: list, solution: array, solution_entities: list}}|array{_: 'messageMediaDice', value: int, emoticon: string}, reply_markup?: array, entities: list, views: int, forwards: int, replies?: array{_: 'messageReplies', comments: array, replies: array, replies_pts: array, recent_repliers: list, channel_id: array, max_id: array, read_max_id: array}, edit_date: int, post_author: string, grouped_id: int, reactions?: array{_: 'messageReactions', min: array, can_see_list: array, results: list, recent_reactions: list}, restriction_reason: list, ttl_period: int}|array{_: 'messageService', peer_id: array|int|string, action: array{_: 'messageActionEmpty'}|array{_: 'messageActionChatCreate', title: array, users: list}|array{_: 'messageActionChatEditTitle', title: array}|array{_: 'messageActionChatEditPhoto', photo: array}|array{_: 'messageActionChatDeletePhoto'}|array{_: 'messageActionChatAddUser', users: list}|array{_: 'messageActionChatDeleteUser', user_id: array}|array{_: 'messageActionChatJoinedByLink', inviter_id: array}|array{_: 'messageActionChannelCreate', title: array}|array{_: 'messageActionChatMigrateTo', channel_id: array}|array{_: 'messageActionChannelMigrateFrom', chat_id: array, title: array}|array{_: 'messageActionPinMessage'}|array{_: 'messageActionHistoryClear'}|array{_: 'messageActionGameScore', game_id: array, score: array}|array{_: 'messageActionPaymentSentMe', charge: array, recurring_init: array, recurring_used: array, currency: array, total_amount: array, payload: array, info?: array, shipping_option_id: array}|array{_: 'messageActionPaymentSent', recurring_init: array, recurring_used: array, currency: array, total_amount: array, invoice_slug: array}|array{_: 'messageActionPhoneCall', video: array, call_id: array, reason?: array, duration: array}|array{_: 'messageActionScreenshotTaken'}|array{_: 'messageActionCustomAction', message: array}|array{_: 'messageActionBotAllowed', attach_menu: array, domain: array, app?: array}|array{_: 'messageActionSecureValuesSentMe', credentials: array, values: list}|array{_: 'messageActionSecureValuesSent', types: list}|array{_: 'messageActionContactSignUp'}|array{_: 'messageActionGeoProximityReached', from_id: array, to_id: array, distance: array}|array{_: 'messageActionGroupCall', call: array, duration: array}|array{_: 'messageActionInviteToGroupCall', call: array, users: list}|array{_: 'messageActionSetMessagesTTL', period: array, auto_setting_from: array}|array{_: 'messageActionGroupCallScheduled', call: array, schedule_date: array}|array{_: 'messageActionSetChatTheme', emoticon: array}|array{_: 'messageActionChatJoinedByRequest'}|array{_: 'messageActionWebViewDataSentMe', text: array, data: array}|array{_: 'messageActionWebViewDataSent', text: array}|array{_: 'messageActionGiftPremium', currency: array, amount: array, months: array, crypto_currency: array, crypto_amount: array}|array{_: 'messageActionTopicCreate', title: array, icon_color: array, icon_emoji_id: array}|array{_: 'messageActionTopicEdit', title: array, icon_emoji_id: array, closed?: array, hidden?: array}|array{_: 'messageActionSuggestProfilePhoto', photo: array}|array{_: 'messageActionRequestedPeer', peer: array, button_id: array}|array{_: 'messageActionSetChatWallPaper', wallpaper: array}|array{_: 'messageActionSetSameChatWallPaper', wallpaper: array}, out: bool, mentioned: bool, media_unread: bool, silent: bool, post: bool, legacy: bool, id: int, from_id?: array|int|string, reply_to?: array{_: 'messageReplyHeader', reply_to_scheduled: array, forum_topic: array, reply_to_msg_id: array, reply_to_peer_id?: array, reply_to_top_id: array}, date: int, ttl_period: int}>, chats: list, users: list}|array{_: 'messages.channelMessages', inexact: bool, pts: int, count: int, offset_id_offset: int, messages: list, video_sizes: list, dc_id: array}, ttl_seconds: int}|array{_: 'messageMediaGeo', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}}|array{_: 'messageMediaContact', phone_number: string, first_name: string, last_name: string, vcard: string, user_id: int}|array{_: 'messageMediaUnsupported'}|array{_: 'messageMediaDocument', nopremium: bool, spoiler: bool, document?: array{_: 'documentEmpty', id: array}|array{_: 'document', id: array, access_hash: array, file_reference: array, date: array, mime_type: array, size: array, thumbs: list, video_thumbs: list, dc_id: array, attributes: list}, ttl_seconds: int}|array{_: 'messageMediaWebPage', webpage: array{_: 'webPageEmpty', id: array}|array{_: 'webPagePending', id: array, date: array}|array{_: 'webPage', id: array, url: array, display_url: array, hash: array, type: array, site_name: array, title: array, description: array, photo?: array, embed_url: array, embed_type: array, embed_width: array, embed_height: array, duration: array, author: array, document?: array, cached_page?: array, attributes: list}|array{_: 'webPageNotModified', cached_page_views: array}}|array{_: 'messageMediaVenue', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, title: string, address: string, provider: string, venue_id: string, venue_type: string}|array{_: 'messageMediaGame', game: array{_: 'game', photo: array, id: array, access_hash: array, short_name: array, title: array, description: array, document?: array}}|array{_: 'messageMediaInvoice', shipping_address_requested: bool, test: bool, title: string, description: string, photo?: array{_: 'webDocument', url: array, access_hash: array, size: array, mime_type: array, attributes: list}|array{_: 'webDocumentNoProxy', url: array, size: array, mime_type: array, attributes: list}, receipt_msg_id: int, currency: string, total_amount: int, start_param: string, extended_media?: array{_: 'messageExtendedMediaPreview', w: array, h: array, thumb?: array, video_duration: array}}|array{_: 'messageMediaGeoLive', geo: array{_: 'geoPointEmpty'}|array{_: 'geoPoint', long: array, lat: array, access_hash: array, accuracy_radius: array}, heading: int, period: int, proximity_notification_radius: int}|array{_: 'messageMediaPoll', poll: array{_: 'poll', id: array, closed: array, public_voters: array, multiple_choice: array, quiz: array, question: array, answers: list, close_period: array, close_date: array}, results: array{_: 'pollResults', min: array, results: list, total_voters: array, recent_voters: list, solution: array, solution_entities: list}}|array{_: 'messageMediaDice', value: int, emoticon: string}, reply_markup?: array, entities: list, views: int, forwards: int, replies?: array{_: 'messageReplies', comments: array, replies: array, replies_pts: array, recent_repliers: list, channel_id: array, max_id: array, read_max_id: array}, edit_date: int, post_author: string, grouped_id: int, reactions?: array{_: 'messageReactions', min: array, can_see_list: array, results: list, recent_reactions: list}, restriction_reason: list, ttl_period: int}|array{_: 'messageService', peer_id: array|int|string, action: array{_: 'messageActionEmpty'}|array{_: 'messageActionChatCreate', title: array, users: list}|array{_: 'messageActionChatEditTitle', title: array}|array{_: 'messageActionChatEditPhoto', photo: array}|array{_: 'messageActionChatDeletePhoto'}|array{_: 'messageActionChatAddUser', users: list}|array{_: 'messageActionChatDeleteUser', user_id: array}|array{_: 'messageActionChatJoinedByLink', inviter_id: array}|array{_: 'messageActionChannelCreate', title: array}|array{_: 'messageActionChatMigrateTo', channel_id: array}|array{_: 'messageActionChannelMigrateFrom', chat_id: array, title: array}|array{_: 'messageActionPinMessage'}|array{_: 'messageActionHistoryClear'}|array{_: 'messageActionGameScore', game_id: array, score: array}|array{_: 'messageActionPaymentSentMe', charge: array, recurring_init: array, recurring_used: array, currency: array, total_amount: array, payload: array, info?: array, shipping_option_id: array}|array{_: 'messageActionPaymentSent', recurring_init: array, recurring_used: array, currency: array, total_amount: array, invoice_slug: array}|array{_: 'messageActionPhoneCall', video: array, call_id: array, reason?: array, duration: array}|array{_: 'messageActionScreenshotTaken'}|array{_: 'messageActionCustomAction', message: array}|array{_: 'messageActionBotAllowed', attach_menu: array, domain: array, app?: array}|array{_: 'messageActionSecureValuesSentMe', credentials: array, values: list}|array{_: 'messageActionSecureValuesSent', types: list}|array{_: 'messageActionContactSignUp'}|array{_: 'messageActionGeoProximityReached', from_id: array, to_id: array, distance: array}|array{_: 'messageActionGroupCall', call: array, duration: array}|array{_: 'messageActionInviteToGroupCall', call: array, users: list}|array{_: 'messageActionSetMessagesTTL', period: array, auto_setting_from: array}|array{_: 'messageActionGroupCallScheduled', call: array, schedule_date: array}|array{_: 'messageActionSetChatTheme', emoticon: array}|array{_: 'messageActionChatJoinedByRequest'}|array{_: 'messageActionWebViewDataSentMe', text: array, data: array}|array{_: 'messageActionWebViewDataSent', text: array}|array{_: 'messageActionGiftPremium', currency: array, amount: array, months: array, crypto_currency: array, crypto_amount: array}|array{_: 'messageActionTopicCreate', title: array, icon_color: array, icon_emoji_id: array}|array{_: 'messageActionTopicEdit', title: array, icon_emoji_id: array, closed?: array, hidden?: array}|array{_: 'messageActionSuggestProfilePhoto', photo: array}|array{_: 'messageActionRequestedPeer', peer: array, button_id: array}|array{_: 'messageActionSetChatWallPaper', wallpaper: array}|array{_: 'messageActionSetSameChatWallPaper', wallpaper: array}, out: bool, mentioned: bool, media_unread: bool, silent: bool, post: bool, legacy: bool, id: int, from_id?: array|int|string, reply_to?: array{_: 'messageReplyHeader', reply_to_scheduled: array, forum_topic: array, reply_to_msg_id: array, reply_to_peer_id?: array, reply_to_top_id: array}, date: int, ttl_period: int}>, topics: list, date: array}}>, chats: list, users: list}|array{_: 'messages.messagesNotModified', count: int} @see https://docs.madelineproto.xyz/API_docs/types/messages.Messages.html + * @return array{_: 'messages.messages', messages: list, chats: list, users: list}|array{_: 'messages.messagesSlice', inexact: array, count: array, next_rate: array, offset_id_offset: array, messages: list, chats: list, users: list}|array{_: 'messages.channelMessages', inexact: array, pts: array, count: array, offset_id_offset: array, messages: list, topics: list, chats: list, users: list}|array{_: 'messages.messagesNotModified', count: array} @see https://docs.madelineproto.xyz/API_docs/types/messages.Messages.html */ public function getMessagePublicForwards(array|int|string $channel, array|int|string $offset_peer, int $msg_id = 0, int $offset_rate = 0, int $offset_id = 0, int $limit = 0): array; diff --git a/src/Namespace/Stickers.php b/src/Namespace/Stickers.php index 14576821da..b272c1ec5a 100644 --- a/src/Namespace/Stickers.php +++ b/src/Namespace/Stickers.php @@ -21,7 +21,7 @@ interface Stickers * @param array|array $thumb Thumbnail @see https://docs.madelineproto.xyz/API_docs/types/InputDocument.html * @param list|array $stickers Array of Stickers @see https://docs.madelineproto.xyz/API_docs/types/InputStickerSetItem.html * @param string $software Used when [importing stickers using the sticker import SDKs](https://core.telegram.org/import-stickers), specifies the name of the software that created the stickers - * @return array{_: 'messages.stickerSet', set: array{_: 'stickerSet', archived: bool, official: bool, masks: bool, animated: bool, videos: bool, emojis: bool, installed_date: int, id: int, access_hash: int, title: string, short_name: string, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}, packs: list}>, keywords: list}>, documents: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int, attributes: list}>}|array{_: 'messages.stickerSetNotModified'} @see https://docs.madelineproto.xyz/API_docs/types/messages.StickerSet.html + * @return array{_: 'messages.stickerSet', set: array{_: 'stickerSet', archived: bool, official: bool, masks: bool, animated: bool, videos: bool, emojis: bool, installed_date: int, id: int, access_hash: int, title: string, short_name: string, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}, packs: list}>, keywords: list}>, documents: list, video_thumbs: list, dc_id: array, attributes: list}>}|array{_: 'messages.stickerSetNotModified'} @see https://docs.madelineproto.xyz/API_docs/types/messages.StickerSet.html */ public function createStickerSet(array|int|string $user_id, bool $masks = false, bool $animated = false, bool $videos = false, bool $emojis = false, bool $text_color = false, string $title = '', string $short_name = '', array $thumb = [], array $stickers = [], string $software = ''): array; @@ -29,7 +29,7 @@ public function createStickerSet(array|int|string $user_id, bool $masks = false, * Remove a sticker from the set where it belongs, bots only. The sticker set must have been created by the bot. * * @param array $sticker The sticker to remove @see https://docs.madelineproto.xyz/API_docs/types/InputDocument.html - * @return array{_: 'messages.stickerSet', set: array{_: 'stickerSet', archived: bool, official: bool, masks: bool, animated: bool, videos: bool, emojis: bool, installed_date: int, id: int, access_hash: int, title: string, short_name: string, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}, packs: list}>, keywords: list}>, documents: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int, attributes: list}>}|array{_: 'messages.stickerSetNotModified'} @see https://docs.madelineproto.xyz/API_docs/types/messages.StickerSet.html + * @return array{_: 'messages.stickerSet', set: array{_: 'stickerSet', archived: bool, official: bool, masks: bool, animated: bool, videos: bool, emojis: bool, installed_date: int, id: int, access_hash: int, title: string, short_name: string, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}, packs: list}>, keywords: list}>, documents: list, video_thumbs: list, dc_id: array, attributes: list}>}|array{_: 'messages.stickerSetNotModified'} @see https://docs.madelineproto.xyz/API_docs/types/messages.StickerSet.html */ public function removeStickerFromSet(array $sticker): array; @@ -38,7 +38,7 @@ public function removeStickerFromSet(array $sticker): array; * * @param array $sticker The sticker @see https://docs.madelineproto.xyz/API_docs/types/InputDocument.html * @param int $position The new position of the sticker, zero-based - * @return array{_: 'messages.stickerSet', set: array{_: 'stickerSet', archived: bool, official: bool, masks: bool, animated: bool, videos: bool, emojis: bool, installed_date: int, id: int, access_hash: int, title: string, short_name: string, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}, packs: list}>, keywords: list}>, documents: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int, attributes: list}>}|array{_: 'messages.stickerSetNotModified'} @see https://docs.madelineproto.xyz/API_docs/types/messages.StickerSet.html + * @return array{_: 'messages.stickerSet', set: array{_: 'stickerSet', archived: bool, official: bool, masks: bool, animated: bool, videos: bool, emojis: bool, installed_date: int, id: int, access_hash: int, title: string, short_name: string, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}, packs: list}>, keywords: list}>, documents: list, video_thumbs: list, dc_id: array, attributes: list}>}|array{_: 'messages.stickerSetNotModified'} @see https://docs.madelineproto.xyz/API_docs/types/messages.StickerSet.html */ public function changeStickerPosition(array $sticker, int $position = 0): array; @@ -47,7 +47,7 @@ public function changeStickerPosition(array $sticker, int $position = 0): array; * * @param array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id?: int, access_hash?: int}|array{_: 'inputStickerSetShortName', short_name?: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon?: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'} $stickerset The stickerset @see https://docs.madelineproto.xyz/API_docs/types/InputStickerSet.html * @param array{_: 'inputStickerSetItem', document: array, emoji?: string, mask_coords?: array{_: 'maskCoords', x: float, y: float, zoom: float, n?: int}, keywords?: string} $sticker The sticker @see https://docs.madelineproto.xyz/API_docs/types/InputStickerSetItem.html - * @return array{_: 'messages.stickerSet', set: array{_: 'stickerSet', archived: bool, official: bool, masks: bool, animated: bool, videos: bool, emojis: bool, installed_date: int, id: int, access_hash: int, title: string, short_name: string, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}, packs: list}>, keywords: list}>, documents: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int, attributes: list}>}|array{_: 'messages.stickerSetNotModified'} @see https://docs.madelineproto.xyz/API_docs/types/messages.StickerSet.html + * @return array{_: 'messages.stickerSet', set: array{_: 'stickerSet', archived: bool, official: bool, masks: bool, animated: bool, videos: bool, emojis: bool, installed_date: int, id: int, access_hash: int, title: string, short_name: string, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}, packs: list}>, keywords: list}>, documents: list, video_thumbs: list, dc_id: array, attributes: list}>}|array{_: 'messages.stickerSetNotModified'} @see https://docs.madelineproto.xyz/API_docs/types/messages.StickerSet.html */ public function addStickerToSet(array $stickerset, array $sticker): array; @@ -56,7 +56,7 @@ public function addStickerToSet(array $stickerset, array $sticker): array; * * @param array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id?: int, access_hash?: int}|array{_: 'inputStickerSetShortName', short_name?: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon?: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'} $stickerset Stickerset @see https://docs.madelineproto.xyz/API_docs/types/InputStickerSet.html * @param array|array $thumb Thumbnail @see https://docs.madelineproto.xyz/API_docs/types/InputDocument.html - * @return array{_: 'messages.stickerSet', set: array{_: 'stickerSet', archived: bool, official: bool, masks: bool, animated: bool, videos: bool, emojis: bool, installed_date: int, id: int, access_hash: int, title: string, short_name: string, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}, packs: list}>, keywords: list}>, documents: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int, attributes: list}>}|array{_: 'messages.stickerSetNotModified'} @see https://docs.madelineproto.xyz/API_docs/types/messages.StickerSet.html + * @return array{_: 'messages.stickerSet', set: array{_: 'stickerSet', archived: bool, official: bool, masks: bool, animated: bool, videos: bool, emojis: bool, installed_date: int, id: int, access_hash: int, title: string, short_name: string, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}, packs: list}>, keywords: list}>, documents: list, video_thumbs: list, dc_id: array, attributes: list}>}|array{_: 'messages.stickerSetNotModified'} @see https://docs.madelineproto.xyz/API_docs/types/messages.StickerSet.html */ public function setStickerSetThumb(array $stickerset, array $thumb = [], int $thumb_document_id = 0): array; @@ -80,7 +80,7 @@ public function suggestShortName(string $title = ''): array; * * @param array $sticker @see https://docs.madelineproto.xyz/API_docs/types/InputDocument.html * @param array{_: 'maskCoords', x: float, y: float, zoom: float, n?: int}|array $mask_coords @see https://docs.madelineproto.xyz/API_docs/types/MaskCoords.html - * @return array{_: 'messages.stickerSet', set: array{_: 'stickerSet', archived: bool, official: bool, masks: bool, animated: bool, videos: bool, emojis: bool, installed_date: int, id: int, access_hash: int, title: string, short_name: string, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}, packs: list}>, keywords: list}>, documents: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int, attributes: list}>}|array{_: 'messages.stickerSetNotModified'} @see https://docs.madelineproto.xyz/API_docs/types/messages.StickerSet.html + * @return array{_: 'messages.stickerSet', set: array{_: 'stickerSet', archived: bool, official: bool, masks: bool, animated: bool, videos: bool, emojis: bool, installed_date: int, id: int, access_hash: int, title: string, short_name: string, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}, packs: list}>, keywords: list}>, documents: list, video_thumbs: list, dc_id: array, attributes: list}>}|array{_: 'messages.stickerSetNotModified'} @see https://docs.madelineproto.xyz/API_docs/types/messages.StickerSet.html */ public function changeSticker(array $sticker, string $emoji = '', array $mask_coords = [], string $keywords = ''): array; @@ -88,7 +88,7 @@ public function changeSticker(array $sticker, string $emoji = '', array $mask_co * * * @param array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id?: int, access_hash?: int}|array{_: 'inputStickerSetShortName', short_name?: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon?: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'} $stickerset @see https://docs.madelineproto.xyz/API_docs/types/InputStickerSet.html - * @return array{_: 'messages.stickerSet', set: array{_: 'stickerSet', archived: bool, official: bool, masks: bool, animated: bool, videos: bool, emojis: bool, installed_date: int, id: int, access_hash: int, title: string, short_name: string, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}, packs: list}>, keywords: list}>, documents: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, video_thumbs: list}|array{_: 'videoSizeStickerMarkup', stickerset: array{_: 'inputStickerSetEmpty'}|array{_: 'inputStickerSetID', id: int, access_hash: int}|array{_: 'inputStickerSetShortName', short_name: string}|array{_: 'inputStickerSetAnimatedEmoji'}|array{_: 'inputStickerSetDice', emoticon: string}|array{_: 'inputStickerSetAnimatedEmojiAnimations'}|array{_: 'inputStickerSetPremiumGifts'}|array{_: 'inputStickerSetEmojiGenericAnimations'}|array{_: 'inputStickerSetEmojiDefaultStatuses'}|array{_: 'inputStickerSetEmojiDefaultTopicIcons'}, sticker_id: int, background_colors: list}>, dc_id: int, attributes: list}>}|array{_: 'messages.stickerSetNotModified'} @see https://docs.madelineproto.xyz/API_docs/types/messages.StickerSet.html + * @return array{_: 'messages.stickerSet', set: array{_: 'stickerSet', archived: bool, official: bool, masks: bool, animated: bool, videos: bool, emojis: bool, installed_date: int, id: int, access_hash: int, title: string, short_name: string, thumbs: list}|array{_: 'photoPathSize', type: string, bytes: string}|array{_: 'photoSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, size: int}|array{_: 'photoCachedSize', location: array{_: 'fileLocationUnavailable', volume_id: int, local_id: int, secret: int}|array{_: 'fileLocation', dc_id: int, volume_id: int, local_id: int, secret: int}, type: string, w: int, h: int, bytes: string}>, thumb_dc_id: int, thumb_version: int, thumb_document_id: int, count: int, hash: int}, packs: list}>, keywords: list}>, documents: list, video_thumbs: list, dc_id: array, attributes: list}>}|array{_: 'messages.stickerSetNotModified'} @see https://docs.madelineproto.xyz/API_docs/types/messages.StickerSet.html */ public function renameStickerSet(array $stickerset, string $title = ''): array; diff --git a/src/Wrappers/Login.php b/src/Wrappers/Login.php index 68000f2a76..bce93e5442 100644 --- a/src/Wrappers/Login.php +++ b/src/Wrappers/Login.php @@ -233,9 +233,8 @@ public function complete2faLogin(string $password) if ($this->authorized !== MTProto::WAITING_PASSWORD) { throw new Exception(Lang::$current_lang['2fa_uncalled']); } - $hasher = new PasswordCalculator($this->methodCallAsyncRead('account.getPassword', [])); $this->logger->logger(Lang::$current_lang['login_user'], Logger::NOTICE); - $this->authorization = $this->methodCallAsyncRead('auth.checkPassword', ['password' => $hasher->getCheckPassword($password)]); + $this->authorization = $this->methodCallAsyncRead('auth.checkPassword', ['password' => $password]); $this->authorized = MTProto::LOGGED_IN; $this->datacenter->getDataCenterConnection($this->datacenter->currentDatacenter)->authorized(true); $this->initAuthorization();