From ffea6f27ef15623eb0efe9ebce30ae213a0aba4d Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Thu, 15 Aug 2024 18:21:24 +0200 Subject: [PATCH] Bump --- .../methods/account.changeAuthorizationSettings.md | 4 ++-- .../methods/account.getChannelDefaultEmojiStatuses.md | 4 ++-- .../account.getChannelRestrictedStatusEmojis.md | 4 ++-- docs/API_docs/methods/account.getChatThemes.md | 4 ++-- .../methods/account.getDefaultBackgroundEmojis.md | 4 ++-- .../methods/account.getDefaultEmojiStatuses.md | 4 ++-- .../methods/account.getDefaultGroupPhotoEmojis.md | 4 ++-- .../methods/account.getDefaultProfilePhotoEmojis.md | 4 ++-- .../API_docs/methods/account.getRecentEmojiStatuses.md | 4 ++-- docs/API_docs/methods/account.getSavedRingtones.md | 4 ++-- docs/API_docs/methods/account.getThemes.md | 4 ++-- docs/API_docs/methods/account.getWallPapers.md | 4 ++-- docs/API_docs/methods/account.resetAuthorization.md | 4 ++-- docs/API_docs/methods/account.resetWebAuthorization.md | 4 ++-- docs/API_docs/methods/channels.getParticipants.md | 4 ++-- docs/API_docs/methods/contacts.getContactIDs.md | 4 ++-- docs/API_docs/methods/contacts.getContacts.md | 4 ++-- docs/API_docs/methods/contacts.getTopPeers.md | 4 ++-- docs/API_docs/methods/help.getAppConfig.md | 4 ++-- docs/API_docs/methods/help.getCountriesList.md | 4 ++-- docs/API_docs/methods/help.getPassportConfig.md | 4 ++-- docs/API_docs/methods/help.getPeerColors.md | 4 ++-- docs/API_docs/methods/help.getPeerProfileColors.md | 4 ++-- docs/API_docs/methods/help.getTimezonesList.md | 4 ++-- docs/API_docs/methods/messages.getAllStickers.md | 4 ++-- docs/API_docs/methods/messages.getAttachMenuBots.md | 4 ++-- docs/API_docs/methods/messages.getAvailableEffects.md | 4 ++-- .../API_docs/methods/messages.getAvailableReactions.md | 4 ++-- docs/API_docs/methods/messages.getBotApp.md | 4 ++-- .../methods/messages.getDefaultTagReactions.md | 4 ++-- docs/API_docs/methods/messages.getDialogs.md | 4 ++-- docs/API_docs/methods/messages.getEmojiGroups.md | 4 ++-- .../methods/messages.getEmojiProfilePhotoGroups.md | 4 ++-- docs/API_docs/methods/messages.getEmojiStatusGroups.md | 4 ++-- .../API_docs/methods/messages.getEmojiStickerGroups.md | 4 ++-- docs/API_docs/methods/messages.getEmojiStickers.md | 4 ++-- docs/API_docs/methods/messages.getFavedStickers.md | 4 ++-- .../methods/messages.getFeaturedEmojiStickers.md | 4 ++-- docs/API_docs/methods/messages.getFeaturedStickers.md | 4 ++-- docs/API_docs/methods/messages.getHistory.md | 4 ++-- docs/API_docs/methods/messages.getMaskStickers.md | 4 ++-- .../methods/messages.getOldFeaturedStickers.md | 4 ++-- docs/API_docs/methods/messages.getQuickReplies.md | 4 ++-- .../API_docs/methods/messages.getQuickReplyMessages.md | 4 ++-- docs/API_docs/methods/messages.getRecentLocations.md | 4 ++-- docs/API_docs/methods/messages.getRecentReactions.md | 4 ++-- docs/API_docs/methods/messages.getRecentStickers.md | 4 ++-- docs/API_docs/methods/messages.getReplies.md | 4 ++-- docs/API_docs/methods/messages.getSavedDialogs.md | 4 ++-- docs/API_docs/methods/messages.getSavedGifs.md | 4 ++-- docs/API_docs/methods/messages.getSavedHistory.md | 4 ++-- docs/API_docs/methods/messages.getSavedReactionTags.md | 4 ++-- docs/API_docs/methods/messages.getScheduledHistory.md | 4 ++-- docs/API_docs/methods/messages.getStickerSet.md | 4 ++-- docs/API_docs/methods/messages.getStickers.md | 4 ++-- docs/API_docs/methods/messages.getTopReactions.md | 4 ++-- docs/API_docs/methods/messages.getWebPage.md | 4 ++-- docs/API_docs/methods/messages.search.md | 4 ++-- docs/API_docs/methods/messages.searchCustomEmoji.md | 4 ++-- .../methods/messages.searchEmojiStickerSets.md | 4 ++-- docs/API_docs/methods/messages.searchStickerSets.md | 4 ++-- docs/API_docs/types/long.md | 2 +- docs/API_docs/types/long|string.md | 10 ++++++++++ docs/PHP/danog/MadelineProto/Tools.md | 6 +++--- template/long.md | 2 +- template/long|string.md | 10 ++++++++++ 66 files changed, 147 insertions(+), 127 deletions(-) create mode 100644 docs/API_docs/types/long|string.md create mode 100644 template/long|string.md diff --git a/docs/API_docs/methods/account.changeAuthorizationSettings.md b/docs/API_docs/methods/account.changeAuthorizationSettings.md index 9ca5bf1d41..c74dab4524 100644 --- a/docs/API_docs/methods/account.changeAuthorizationSettings.md +++ b/docs/API_docs/methods/account.changeAuthorizationSettings.md @@ -18,7 +18,7 @@ Change settings related to a session. | Name | Type | Description | Required | |----------|---------------|-------------|----------| |confirmed|[Bool](/API_docs/types/Bool.html) | If set, [confirms a newly logged in session »](https://core.telegram.org/api/auth#confirming-login). | Optional| -|hash|Array of [long](/API_docs/types/long.html) | Session ID from the [authorization](../constructors/authorization.html) constructor, fetchable using [account.getAuthorizations](../methods/account.getAuthorizations.html) | Optional| +|hash|Array of [long|string](/API_docs/types/long|string.html) | Session ID from the [authorization](../constructors/authorization.html) constructor, fetchable using [account.getAuthorizations](../methods/account.getAuthorizations.html) | Optional| |encrypted\_requests\_disabled|[Bool](/API_docs/types/Bool.html) | Whether to enable or disable receiving encrypted chats: if the flag is not set, the previous setting is not changed | Optional| |call\_requests\_disabled|[Bool](/API_docs/types/Bool.html) | Whether to enable or disable receiving calls: if the flag is not set, the previous setting is not changed | Optional| @@ -40,6 +40,6 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$Bool = $MadelineProto->account->changeAuthorizationSettings(confirmed: $Bool, hash: [$long, $long], encrypted_requests_disabled: $Bool, call_requests_disabled: $Bool, ); +$Bool = $MadelineProto->account->changeAuthorizationSettings(confirmed: $Bool, hash: [$long|string, $long|string], encrypted_requests_disabled: $Bool, call_requests_disabled: $Bool, ); ``` diff --git a/docs/API_docs/methods/account.getChannelDefaultEmojiStatuses.md b/docs/API_docs/methods/account.getChannelDefaultEmojiStatuses.md index 054113f043..8562272bac 100644 --- a/docs/API_docs/methods/account.getChannelDefaultEmojiStatuses.md +++ b/docs/API_docs/methods/account.getChannelDefaultEmojiStatuses.md @@ -17,7 +17,7 @@ Get a list of default suggested [channel emoji statuses](https://core.telegram.o | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|hash|Array of [long](/API_docs/types/long.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional| +|hash|Array of [long|string](/API_docs/types/long|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional| ### Return type: [account.EmojiStatuses](/API_docs/types/account.EmojiStatuses.html) @@ -37,6 +37,6 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$account_EmojiStatuses = $MadelineProto->account->getChannelDefaultEmojiStatuses(hash: [$long, $long], ); +$account_EmojiStatuses = $MadelineProto->account->getChannelDefaultEmojiStatuses(hash: [$long|string, $long|string], ); ``` diff --git a/docs/API_docs/methods/account.getChannelRestrictedStatusEmojis.md b/docs/API_docs/methods/account.getChannelRestrictedStatusEmojis.md index 42fcd6e89d..01239ef9de 100644 --- a/docs/API_docs/methods/account.getChannelRestrictedStatusEmojis.md +++ b/docs/API_docs/methods/account.getChannelRestrictedStatusEmojis.md @@ -17,7 +17,7 @@ Returns fetch the full list of [custom emoji IDs »](https://core.telegram.org/a | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|hash|Array of [long](/API_docs/types/long.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional| +|hash|Array of [long|string](/API_docs/types/long|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional| ### Return type: [EmojiList](/API_docs/types/EmojiList.html) @@ -37,6 +37,6 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$EmojiList = $MadelineProto->account->getChannelRestrictedStatusEmojis(hash: [$long, $long], ); +$EmojiList = $MadelineProto->account->getChannelRestrictedStatusEmojis(hash: [$long|string, $long|string], ); ``` diff --git a/docs/API_docs/methods/account.getChatThemes.md b/docs/API_docs/methods/account.getChatThemes.md index 7fd977b357..5a46f18ebe 100644 --- a/docs/API_docs/methods/account.getChatThemes.md +++ b/docs/API_docs/methods/account.getChatThemes.md @@ -17,7 +17,7 @@ Get all available chat [themes »](https://core.telegram.org/api/themes). | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|hash|Array of [long](/API_docs/types/long.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional| +|hash|Array of [long|string](/API_docs/types/long|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional| ### Return type: [account.Themes](/API_docs/types/account.Themes.html) @@ -37,6 +37,6 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$account_Themes = $MadelineProto->account->getChatThemes(hash: [$long, $long], ); +$account_Themes = $MadelineProto->account->getChatThemes(hash: [$long|string, $long|string], ); ``` diff --git a/docs/API_docs/methods/account.getDefaultBackgroundEmojis.md b/docs/API_docs/methods/account.getDefaultBackgroundEmojis.md index 65edc03fb1..81578db855 100644 --- a/docs/API_docs/methods/account.getDefaultBackgroundEmojis.md +++ b/docs/API_docs/methods/account.getDefaultBackgroundEmojis.md @@ -17,7 +17,7 @@ Get a set of suggested [custom emoji stickers](https://core.telegram.org/api/cus | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|hash|Array of [long](/API_docs/types/long.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional| +|hash|Array of [long|string](/API_docs/types/long|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional| ### Return type: [EmojiList](/API_docs/types/EmojiList.html) @@ -37,6 +37,6 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$EmojiList = $MadelineProto->account->getDefaultBackgroundEmojis(hash: [$long, $long], ); +$EmojiList = $MadelineProto->account->getDefaultBackgroundEmojis(hash: [$long|string, $long|string], ); ``` diff --git a/docs/API_docs/methods/account.getDefaultEmojiStatuses.md b/docs/API_docs/methods/account.getDefaultEmojiStatuses.md index cf938407a3..7744caae13 100644 --- a/docs/API_docs/methods/account.getDefaultEmojiStatuses.md +++ b/docs/API_docs/methods/account.getDefaultEmojiStatuses.md @@ -17,7 +17,7 @@ Get a list of default suggested [emoji statuses](https://core.telegram.org/api/e | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|hash|Array of [long](/API_docs/types/long.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional| +|hash|Array of [long|string](/API_docs/types/long|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional| ### Return type: [account.EmojiStatuses](/API_docs/types/account.EmojiStatuses.html) @@ -37,6 +37,6 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$account_EmojiStatuses = $MadelineProto->account->getDefaultEmojiStatuses(hash: [$long, $long], ); +$account_EmojiStatuses = $MadelineProto->account->getDefaultEmojiStatuses(hash: [$long|string, $long|string], ); ``` diff --git a/docs/API_docs/methods/account.getDefaultGroupPhotoEmojis.md b/docs/API_docs/methods/account.getDefaultGroupPhotoEmojis.md index dfb57ec3af..b8d6770480 100644 --- a/docs/API_docs/methods/account.getDefaultGroupPhotoEmojis.md +++ b/docs/API_docs/methods/account.getDefaultGroupPhotoEmojis.md @@ -17,7 +17,7 @@ Get a set of suggested [custom emoji stickers](https://core.telegram.org/api/cus | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|hash|Array of [long](/API_docs/types/long.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional| +|hash|Array of [long|string](/API_docs/types/long|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional| ### Return type: [EmojiList](/API_docs/types/EmojiList.html) @@ -37,6 +37,6 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$EmojiList = $MadelineProto->account->getDefaultGroupPhotoEmojis(hash: [$long, $long], ); +$EmojiList = $MadelineProto->account->getDefaultGroupPhotoEmojis(hash: [$long|string, $long|string], ); ``` diff --git a/docs/API_docs/methods/account.getDefaultProfilePhotoEmojis.md b/docs/API_docs/methods/account.getDefaultProfilePhotoEmojis.md index 68a0f3114d..d5744521dd 100644 --- a/docs/API_docs/methods/account.getDefaultProfilePhotoEmojis.md +++ b/docs/API_docs/methods/account.getDefaultProfilePhotoEmojis.md @@ -17,7 +17,7 @@ Get a set of suggested [custom emoji stickers](https://core.telegram.org/api/cus | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|hash|Array of [long](/API_docs/types/long.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional| +|hash|Array of [long|string](/API_docs/types/long|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional| ### Return type: [EmojiList](/API_docs/types/EmojiList.html) @@ -37,6 +37,6 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$EmojiList = $MadelineProto->account->getDefaultProfilePhotoEmojis(hash: [$long, $long], ); +$EmojiList = $MadelineProto->account->getDefaultProfilePhotoEmojis(hash: [$long|string, $long|string], ); ``` diff --git a/docs/API_docs/methods/account.getRecentEmojiStatuses.md b/docs/API_docs/methods/account.getRecentEmojiStatuses.md index 7a8012069a..914477ad61 100644 --- a/docs/API_docs/methods/account.getRecentEmojiStatuses.md +++ b/docs/API_docs/methods/account.getRecentEmojiStatuses.md @@ -17,7 +17,7 @@ Get recently used [emoji statuses](https://core.telegram.org/api/emoji-status) | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|hash|Array of [long](/API_docs/types/long.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional| +|hash|Array of [long|string](/API_docs/types/long|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional| ### Return type: [account.EmojiStatuses](/API_docs/types/account.EmojiStatuses.html) @@ -37,6 +37,6 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$account_EmojiStatuses = $MadelineProto->account->getRecentEmojiStatuses(hash: [$long, $long], ); +$account_EmojiStatuses = $MadelineProto->account->getRecentEmojiStatuses(hash: [$long|string, $long|string], ); ``` diff --git a/docs/API_docs/methods/account.getSavedRingtones.md b/docs/API_docs/methods/account.getSavedRingtones.md index b908b331a1..0a3b6d6d90 100644 --- a/docs/API_docs/methods/account.getSavedRingtones.md +++ b/docs/API_docs/methods/account.getSavedRingtones.md @@ -17,7 +17,7 @@ Fetch saved notification sounds | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|hash|Array of [long](/API_docs/types/long.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional| +|hash|Array of [long|string](/API_docs/types/long|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional| ### Return type: [account.SavedRingtones](/API_docs/types/account.SavedRingtones.html) @@ -37,6 +37,6 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$account_SavedRingtones = $MadelineProto->account->getSavedRingtones(hash: [$long, $long], ); +$account_SavedRingtones = $MadelineProto->account->getSavedRingtones(hash: [$long|string, $long|string], ); ``` diff --git a/docs/API_docs/methods/account.getThemes.md b/docs/API_docs/methods/account.getThemes.md index 9318a6decf..d83e5f55af 100644 --- a/docs/API_docs/methods/account.getThemes.md +++ b/docs/API_docs/methods/account.getThemes.md @@ -18,7 +18,7 @@ Get installed themes | Name | Type | Description | Required | |----------|---------------|-------------|----------| |format|[string](/API_docs/types/string.html) | Theme format, a string that identifies the theming engines supported by the client | Optional| -|hash|Array of [long](/API_docs/types/long.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional| +|hash|Array of [long|string](/API_docs/types/long|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional| ### Return type: [account.Themes](/API_docs/types/account.Themes.html) @@ -38,6 +38,6 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$account_Themes = $MadelineProto->account->getThemes(format: 'string', hash: [$long, $long], ); +$account_Themes = $MadelineProto->account->getThemes(format: 'string', hash: [$long|string, $long|string], ); ``` diff --git a/docs/API_docs/methods/account.getWallPapers.md b/docs/API_docs/methods/account.getWallPapers.md index 9890ece20a..5478dab7ef 100644 --- a/docs/API_docs/methods/account.getWallPapers.md +++ b/docs/API_docs/methods/account.getWallPapers.md @@ -17,7 +17,7 @@ Returns a list of available [wallpapers](https://core.telegram.org/api/wallpaper | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|hash|Array of [long](/API_docs/types/long.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional| +|hash|Array of [long|string](/API_docs/types/long|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional| ### Return type: [account.WallPapers](/API_docs/types/account.WallPapers.html) @@ -37,6 +37,6 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$account_WallPapers = $MadelineProto->account->getWallPapers(hash: [$long, $long], ); +$account_WallPapers = $MadelineProto->account->getWallPapers(hash: [$long|string, $long|string], ); ``` diff --git a/docs/API_docs/methods/account.resetAuthorization.md b/docs/API_docs/methods/account.resetAuthorization.md index beccaa0fca..3f75c46748 100644 --- a/docs/API_docs/methods/account.resetAuthorization.md +++ b/docs/API_docs/methods/account.resetAuthorization.md @@ -17,7 +17,7 @@ Log out an active [authorized session](https://core.telegram.org/api/auth) by it | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|hash|Array of [long](/API_docs/types/long.html) | Session hash | Optional| +|hash|Array of [long|string](/API_docs/types/long|string.html) | Session hash | Optional| ### Return type: [Bool](/API_docs/types/Bool.html) @@ -37,6 +37,6 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$Bool = $MadelineProto->account->resetAuthorization(hash: [$long, $long], ); +$Bool = $MadelineProto->account->resetAuthorization(hash: [$long|string, $long|string], ); ``` diff --git a/docs/API_docs/methods/account.resetWebAuthorization.md b/docs/API_docs/methods/account.resetWebAuthorization.md index ceb8b046b6..38a9d3a2c2 100644 --- a/docs/API_docs/methods/account.resetWebAuthorization.md +++ b/docs/API_docs/methods/account.resetWebAuthorization.md @@ -17,7 +17,7 @@ Log out an active web [telegram login](https://core.telegram.org/widgets/login) | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|hash|Array of [long](/API_docs/types/long.html) | [Session](../constructors/webAuthorization.html) hash | Optional| +|hash|Array of [long|string](/API_docs/types/long|string.html) | [Session](../constructors/webAuthorization.html) hash | Optional| ### Return type: [Bool](/API_docs/types/Bool.html) @@ -37,6 +37,6 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$Bool = $MadelineProto->account->resetWebAuthorization(hash: [$long, $long], ); +$Bool = $MadelineProto->account->resetWebAuthorization(hash: [$long|string, $long|string], ); ``` diff --git a/docs/API_docs/methods/channels.getParticipants.md b/docs/API_docs/methods/channels.getParticipants.md index 10cdf053ed..e3da779b97 100644 --- a/docs/API_docs/methods/channels.getParticipants.md +++ b/docs/API_docs/methods/channels.getParticipants.md @@ -21,7 +21,7 @@ Get the participants of a [supergroup/channel](https://core.telegram.org/api/cha |filter|[ChannelParticipantsFilter](/API_docs/types/ChannelParticipantsFilter.html) | Which participant types to fetch | Yes| |offset|[int](/API_docs/types/int.html) | [Offset](https://core.telegram.org/api/offsets) | Optional| |limit|[int](/API_docs/types/int.html) | [Limit](https://core.telegram.org/api/offsets) | Optional| -|hash|Array of [long](/API_docs/types/long.html) | [Hash](https://core.telegram.org/api/offsets) | Optional| +|hash|Array of [long|string](/API_docs/types/long|string.html) | [Hash](https://core.telegram.org/api/offsets) | Optional| ### Return type: [channels.ChannelParticipants](/API_docs/types/channels.ChannelParticipants.html) @@ -41,6 +41,6 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$channels_ChannelParticipants = $MadelineProto->channels->getParticipants(channel: $InputChannel, filter: $ChannelParticipantsFilter, offset: $int, limit: $int, hash: [$long, $long], ); +$channels_ChannelParticipants = $MadelineProto->channels->getParticipants(channel: $InputChannel, filter: $ChannelParticipantsFilter, offset: $int, limit: $int, hash: [$long|string, $long|string], ); ``` diff --git a/docs/API_docs/methods/contacts.getContactIDs.md b/docs/API_docs/methods/contacts.getContactIDs.md index 62235623b0..c3608152f5 100644 --- a/docs/API_docs/methods/contacts.getContactIDs.md +++ b/docs/API_docs/methods/contacts.getContactIDs.md @@ -18,7 +18,7 @@ Returns an array of Telegram user IDs for all contacts (0 if a contact does not | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|hash|Array of [long](/API_docs/types/long.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional| +|hash|Array of [long|string](/API_docs/types/long|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional| ### Return type: [Vector\_of\_int](/API_docs/types/int.html) @@ -38,6 +38,6 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$Vector_of_int = $MadelineProto->contacts->getContactIDs(hash: [$long, $long], ); +$Vector_of_int = $MadelineProto->contacts->getContactIDs(hash: [$long|string, $long|string], ); ``` diff --git a/docs/API_docs/methods/contacts.getContacts.md b/docs/API_docs/methods/contacts.getContacts.md index 336f027a1e..040864bd57 100644 --- a/docs/API_docs/methods/contacts.getContacts.md +++ b/docs/API_docs/methods/contacts.getContacts.md @@ -17,7 +17,7 @@ Returns the current user's contact list. | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|hash|Array of [long](/API_docs/types/long.html) | If there already is a full contact list on the client, a [hash](https://core.telegram.org/api/offsets#hash-generation) of a the list of contact IDs in ascending order may be passed in this parameter. If the contact set was not changed, [(contacts.contactsNotModified)](../constructors/contacts.contactsNotModified.html) will be returned. | Optional| +|hash|Array of [long|string](/API_docs/types/long|string.html) | If there already is a full contact list on the client, a [hash](https://core.telegram.org/api/offsets#hash-generation) of a the list of contact IDs in ascending order may be passed in this parameter. If the contact set was not changed, [(contacts.contactsNotModified)](../constructors/contacts.contactsNotModified.html) will be returned. | Optional| ### Return type: [contacts.Contacts](/API_docs/types/contacts.Contacts.html) @@ -37,6 +37,6 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$contacts_Contacts = $MadelineProto->contacts->getContacts(hash: [$long, $long], ); +$contacts_Contacts = $MadelineProto->contacts->getContacts(hash: [$long|string, $long|string], ); ``` diff --git a/docs/API_docs/methods/contacts.getTopPeers.md b/docs/API_docs/methods/contacts.getTopPeers.md index 2df93567c7..e1010dc548 100644 --- a/docs/API_docs/methods/contacts.getTopPeers.md +++ b/docs/API_docs/methods/contacts.getTopPeers.md @@ -28,7 +28,7 @@ Get most used peers |bots\_app|[Bool](/API_docs/types/Bool.html) | | Optional| |offset|[int](/API_docs/types/int.html) | Offset for [pagination](https://core.telegram.org/api/offsets) | Optional| |limit|[int](/API_docs/types/int.html) | Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets) | Optional| -|hash|Array of [long](/API_docs/types/long.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional| +|hash|Array of [long|string](/API_docs/types/long|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional| ### Return type: [contacts.TopPeers](/API_docs/types/contacts.TopPeers.html) @@ -48,6 +48,6 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$contacts_TopPeers = $MadelineProto->contacts->getTopPeers(correspondents: $Bool, bots_pm: $Bool, bots_inline: $Bool, phone_calls: $Bool, forward_users: $Bool, forward_chats: $Bool, groups: $Bool, channels: $Bool, bots_app: $Bool, offset: $int, limit: $int, hash: [$long, $long], ); +$contacts_TopPeers = $MadelineProto->contacts->getTopPeers(correspondents: $Bool, bots_pm: $Bool, bots_inline: $Bool, phone_calls: $Bool, forward_users: $Bool, forward_chats: $Bool, groups: $Bool, channels: $Bool, bots_app: $Bool, offset: $int, limit: $int, hash: [$long|string, $long|string], ); ``` diff --git a/docs/API_docs/methods/help.getAppConfig.md b/docs/API_docs/methods/help.getAppConfig.md index 7a20b06c6b..aa44b8e3ca 100644 --- a/docs/API_docs/methods/help.getAppConfig.md +++ b/docs/API_docs/methods/help.getAppConfig.md @@ -17,7 +17,7 @@ Get app-specific configuration, see [client configuration](https://core.telegram | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|hash|Array of [long](/API_docs/types/long.html) | | Optional| +|hash|Array of [long|string](/API_docs/types/long|string.html) | | Optional| ### Return type: [help.AppConfig](/API_docs/types/help.AppConfig.html) @@ -37,6 +37,6 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$help_AppConfig = $MadelineProto->help->getAppConfig(hash: [$long, $long], ); +$help_AppConfig = $MadelineProto->help->getAppConfig(hash: [$long|string, $long|string], ); ``` diff --git a/docs/API_docs/methods/help.getCountriesList.md b/docs/API_docs/methods/help.getCountriesList.md index 679041c00c..d7f2802772 100644 --- a/docs/API_docs/methods/help.getCountriesList.md +++ b/docs/API_docs/methods/help.getCountriesList.md @@ -18,7 +18,7 @@ Get name, ISO code, localized name and phone codes/patterns of all available cou | Name | Type | Description | Required | |----------|---------------|-------------|----------| |lang\_code|[string](/API_docs/types/string.html) | Language code of the current user | Optional| -|hash|Array of [long](/API_docs/types/long.html) | | Optional| +|hash|Array of [long|string](/API_docs/types/long|string.html) | | Optional| ### Return type: [help.CountriesList](/API_docs/types/help.CountriesList.html) @@ -38,6 +38,6 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$help_CountriesList = $MadelineProto->help->getCountriesList(lang_code: 'string', hash: [$long, $long], ); +$help_CountriesList = $MadelineProto->help->getCountriesList(lang_code: 'string', hash: [$long|string, $long|string], ); ``` diff --git a/docs/API_docs/methods/help.getPassportConfig.md b/docs/API_docs/methods/help.getPassportConfig.md index ae5ce28247..dd2a008d69 100644 --- a/docs/API_docs/methods/help.getPassportConfig.md +++ b/docs/API_docs/methods/help.getPassportConfig.md @@ -17,7 +17,7 @@ Get [passport](https://core.telegram.org/passport) configuration | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|hash|Array of [long](/API_docs/types/long.html) | | Optional| +|hash|Array of [long|string](/API_docs/types/long|string.html) | | Optional| ### Return type: [help.PassportConfig](/API_docs/types/help.PassportConfig.html) @@ -37,6 +37,6 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$help_PassportConfig = $MadelineProto->help->getPassportConfig(hash: [$long, $long], ); +$help_PassportConfig = $MadelineProto->help->getPassportConfig(hash: [$long|string, $long|string], ); ``` diff --git a/docs/API_docs/methods/help.getPeerColors.md b/docs/API_docs/methods/help.getPeerColors.md index 1b9df22c0c..80f76a9d96 100644 --- a/docs/API_docs/methods/help.getPeerColors.md +++ b/docs/API_docs/methods/help.getPeerColors.md @@ -17,7 +17,7 @@ Get the set of [accent color palettes »](https://core.telegram.org/api/colors) | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|hash|Array of [long](/API_docs/types/long.html) | | Optional| +|hash|Array of [long|string](/API_docs/types/long|string.html) | | Optional| ### Return type: [help.PeerColors](/API_docs/types/help.PeerColors.html) @@ -37,6 +37,6 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$help_PeerColors = $MadelineProto->help->getPeerColors(hash: [$long, $long], ); +$help_PeerColors = $MadelineProto->help->getPeerColors(hash: [$long|string, $long|string], ); ``` diff --git a/docs/API_docs/methods/help.getPeerProfileColors.md b/docs/API_docs/methods/help.getPeerProfileColors.md index 06fc38b3ac..65dc1a27f7 100644 --- a/docs/API_docs/methods/help.getPeerProfileColors.md +++ b/docs/API_docs/methods/help.getPeerProfileColors.md @@ -17,7 +17,7 @@ Get the set of [accent color palettes »](https://core.telegram.org/api/colors) | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|hash|Array of [long](/API_docs/types/long.html) | | Optional| +|hash|Array of [long|string](/API_docs/types/long|string.html) | | Optional| ### Return type: [help.PeerColors](/API_docs/types/help.PeerColors.html) @@ -37,6 +37,6 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$help_PeerColors = $MadelineProto->help->getPeerProfileColors(hash: [$long, $long], ); +$help_PeerColors = $MadelineProto->help->getPeerProfileColors(hash: [$long|string, $long|string], ); ``` diff --git a/docs/API_docs/methods/help.getTimezonesList.md b/docs/API_docs/methods/help.getTimezonesList.md index e7bb79fef5..dd8faf1324 100644 --- a/docs/API_docs/methods/help.getTimezonesList.md +++ b/docs/API_docs/methods/help.getTimezonesList.md @@ -15,7 +15,7 @@ redirect_from: /API_docs/methods/help_getTimezonesList.html | Name | Type | Required | |----------|---------------|----------| -|hash|Array of [long](/API_docs/types/long.html) | Optional| +|hash|Array of [long|string](/API_docs/types/long|string.html) | Optional| ### Return type: [help.TimezonesList](/API_docs/types/help.TimezonesList.html) @@ -35,6 +35,6 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$help_TimezonesList = $MadelineProto->help->getTimezonesList(hash: [$long, $long], ); +$help_TimezonesList = $MadelineProto->help->getTimezonesList(hash: [$long|string, $long|string], ); ``` diff --git a/docs/API_docs/methods/messages.getAllStickers.md b/docs/API_docs/methods/messages.getAllStickers.md index 217127ad9e..f6e36df639 100644 --- a/docs/API_docs/methods/messages.getAllStickers.md +++ b/docs/API_docs/methods/messages.getAllStickers.md @@ -17,7 +17,7 @@ Get all installed stickers | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|hash|Array of [long](/API_docs/types/long.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional| +|hash|Array of [long|string](/API_docs/types/long|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional| ### Return type: [messages.AllStickers](/API_docs/types/messages.AllStickers.html) @@ -37,6 +37,6 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$messages_AllStickers = $MadelineProto->messages->getAllStickers(hash: [$long, $long], ); +$messages_AllStickers = $MadelineProto->messages->getAllStickers(hash: [$long|string, $long|string], ); ``` diff --git a/docs/API_docs/methods/messages.getAttachMenuBots.md b/docs/API_docs/methods/messages.getAttachMenuBots.md index ae8ced0562..c8397f0486 100644 --- a/docs/API_docs/methods/messages.getAttachMenuBots.md +++ b/docs/API_docs/methods/messages.getAttachMenuBots.md @@ -17,7 +17,7 @@ Returns installed attachment menu [bot mini apps »](https://core.telegram.org/a | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|hash|Array of [long](/API_docs/types/long.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional| +|hash|Array of [long|string](/API_docs/types/long|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional| ### Return type: [AttachMenuBots](/API_docs/types/AttachMenuBots.html) @@ -37,6 +37,6 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$AttachMenuBots = $MadelineProto->messages->getAttachMenuBots(hash: [$long, $long], ); +$AttachMenuBots = $MadelineProto->messages->getAttachMenuBots(hash: [$long|string, $long|string], ); ``` diff --git a/docs/API_docs/methods/messages.getAvailableEffects.md b/docs/API_docs/methods/messages.getAvailableEffects.md index 3cc16d723b..50564d54db 100644 --- a/docs/API_docs/methods/messages.getAvailableEffects.md +++ b/docs/API_docs/methods/messages.getAvailableEffects.md @@ -15,7 +15,7 @@ redirect_from: /API_docs/methods/messages_getAvailableEffects.html | Name | Type | Required | |----------|---------------|----------| -|hash|Array of [long](/API_docs/types/long.html) | Optional| +|hash|Array of [long|string](/API_docs/types/long|string.html) | Optional| ### Return type: [messages.AvailableEffects](/API_docs/types/messages.AvailableEffects.html) @@ -35,6 +35,6 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$messages_AvailableEffects = $MadelineProto->messages->getAvailableEffects(hash: [$long, $long], ); +$messages_AvailableEffects = $MadelineProto->messages->getAvailableEffects(hash: [$long|string, $long|string], ); ``` diff --git a/docs/API_docs/methods/messages.getAvailableReactions.md b/docs/API_docs/methods/messages.getAvailableReactions.md index e6e0ca804d..ec3d731922 100644 --- a/docs/API_docs/methods/messages.getAvailableReactions.md +++ b/docs/API_docs/methods/messages.getAvailableReactions.md @@ -17,7 +17,7 @@ Obtain available [message reactions »](https://core.telegram.org/api/reactions) | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|hash|Array of [long](/API_docs/types/long.html) | | Optional| +|hash|Array of [long|string](/API_docs/types/long|string.html) | | Optional| ### Return type: [messages.AvailableReactions](/API_docs/types/messages.AvailableReactions.html) @@ -37,6 +37,6 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$messages_AvailableReactions = $MadelineProto->messages->getAvailableReactions(hash: [$long, $long], ); +$messages_AvailableReactions = $MadelineProto->messages->getAvailableReactions(hash: [$long|string, $long|string], ); ``` diff --git a/docs/API_docs/methods/messages.getBotApp.md b/docs/API_docs/methods/messages.getBotApp.md index 9fa4d2b1ce..1a79b8aa05 100644 --- a/docs/API_docs/methods/messages.getBotApp.md +++ b/docs/API_docs/methods/messages.getBotApp.md @@ -18,7 +18,7 @@ Obtain information about a [direct link Mini App](https://core.telegram.org/api/ | Name | Type | Description | Required | |----------|---------------|-------------|----------| |app|[InputBotApp](/API_docs/types/InputBotApp.html) | Bot app information obtained from a [Direct Mini App deep link »](https://core.telegram.org/api/links#direct-mini-app-links). | Yes| -|hash|Array of [long](/API_docs/types/long.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional| +|hash|Array of [long|string](/API_docs/types/long|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional| ### Return type: [messages.BotApp](/API_docs/types/messages.BotApp.html) @@ -38,6 +38,6 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$messages_BotApp = $MadelineProto->messages->getBotApp(app: $InputBotApp, hash: [$long, $long], ); +$messages_BotApp = $MadelineProto->messages->getBotApp(app: $InputBotApp, hash: [$long|string, $long|string], ); ``` diff --git a/docs/API_docs/methods/messages.getDefaultTagReactions.md b/docs/API_docs/methods/messages.getDefaultTagReactions.md index 3bbb18fda1..77cd210776 100644 --- a/docs/API_docs/methods/messages.getDefaultTagReactions.md +++ b/docs/API_docs/methods/messages.getDefaultTagReactions.md @@ -15,7 +15,7 @@ redirect_from: /API_docs/methods/messages_getDefaultTagReactions.html | Name | Type | Required | |----------|---------------|----------| -|hash|Array of [long](/API_docs/types/long.html) | Optional| +|hash|Array of [long|string](/API_docs/types/long|string.html) | Optional| ### Return type: [messages.Reactions](/API_docs/types/messages.Reactions.html) @@ -35,6 +35,6 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$messages_Reactions = $MadelineProto->messages->getDefaultTagReactions(hash: [$long, $long], ); +$messages_Reactions = $MadelineProto->messages->getDefaultTagReactions(hash: [$long|string, $long|string], ); ``` diff --git a/docs/API_docs/methods/messages.getDialogs.md b/docs/API_docs/methods/messages.getDialogs.md index 6cfdbd8a12..ed2b2eeffe 100644 --- a/docs/API_docs/methods/messages.getDialogs.md +++ b/docs/API_docs/methods/messages.getDialogs.md @@ -23,7 +23,7 @@ Returns the current user dialog list. |offset\_id|[int](/API_docs/types/int.html) | [Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets) (`top_message` ID used for pagination) | Optional| |offset\_peer|[Username, chat ID, Update, Message or InputPeer](/API_docs/types/InputPeer.html) | [Offset peer for pagination](https://core.telegram.org/api/offsets) | Optional| |limit|[int](/API_docs/types/int.html) | Number of list elements to be returned | Optional| -|hash|Array of [long](/API_docs/types/long.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional| +|hash|Array of [long|string](/API_docs/types/long|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional| ### Return type: [messages.Dialogs](/API_docs/types/messages.Dialogs.html) @@ -43,6 +43,6 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$messages_Dialogs = $MadelineProto->messages->getDialogs(exclude_pinned: $Bool, folder_id: $int, offset_date: $int, offset_id: $int, offset_peer: $InputPeer, limit: $int, hash: [$long, $long], ); +$messages_Dialogs = $MadelineProto->messages->getDialogs(exclude_pinned: $Bool, folder_id: $int, offset_date: $int, offset_id: $int, offset_peer: $InputPeer, limit: $int, hash: [$long|string, $long|string], ); ``` diff --git a/docs/API_docs/methods/messages.getEmojiGroups.md b/docs/API_docs/methods/messages.getEmojiGroups.md index 15ea7304f8..9a4b2c147f 100644 --- a/docs/API_docs/methods/messages.getEmojiGroups.md +++ b/docs/API_docs/methods/messages.getEmojiGroups.md @@ -17,7 +17,7 @@ Represents a list of [emoji categories](https://core.telegram.org/api/custom-emo | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|hash|Array of [long](/API_docs/types/long.html) | | Optional| +|hash|Array of [long|string](/API_docs/types/long|string.html) | | Optional| ### Return type: [messages.EmojiGroups](/API_docs/types/messages.EmojiGroups.html) @@ -37,6 +37,6 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$messages_EmojiGroups = $MadelineProto->messages->getEmojiGroups(hash: [$long, $long], ); +$messages_EmojiGroups = $MadelineProto->messages->getEmojiGroups(hash: [$long|string, $long|string], ); ``` diff --git a/docs/API_docs/methods/messages.getEmojiProfilePhotoGroups.md b/docs/API_docs/methods/messages.getEmojiProfilePhotoGroups.md index 361242e7b8..0e5d7aa179 100644 --- a/docs/API_docs/methods/messages.getEmojiProfilePhotoGroups.md +++ b/docs/API_docs/methods/messages.getEmojiProfilePhotoGroups.md @@ -17,7 +17,7 @@ Represents a list of [emoji categories](https://core.telegram.org/api/custom-emo | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|hash|Array of [long](/API_docs/types/long.html) | | Optional| +|hash|Array of [long|string](/API_docs/types/long|string.html) | | Optional| ### Return type: [messages.EmojiGroups](/API_docs/types/messages.EmojiGroups.html) @@ -37,6 +37,6 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$messages_EmojiGroups = $MadelineProto->messages->getEmojiProfilePhotoGroups(hash: [$long, $long], ); +$messages_EmojiGroups = $MadelineProto->messages->getEmojiProfilePhotoGroups(hash: [$long|string, $long|string], ); ``` diff --git a/docs/API_docs/methods/messages.getEmojiStatusGroups.md b/docs/API_docs/methods/messages.getEmojiStatusGroups.md index 772f741cb6..df11bc9cec 100644 --- a/docs/API_docs/methods/messages.getEmojiStatusGroups.md +++ b/docs/API_docs/methods/messages.getEmojiStatusGroups.md @@ -17,7 +17,7 @@ Represents a list of [emoji categories](https://core.telegram.org/api/custom-emo | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|hash|Array of [long](/API_docs/types/long.html) | | Optional| +|hash|Array of [long|string](/API_docs/types/long|string.html) | | Optional| ### Return type: [messages.EmojiGroups](/API_docs/types/messages.EmojiGroups.html) @@ -37,6 +37,6 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$messages_EmojiGroups = $MadelineProto->messages->getEmojiStatusGroups(hash: [$long, $long], ); +$messages_EmojiGroups = $MadelineProto->messages->getEmojiStatusGroups(hash: [$long|string, $long|string], ); ``` diff --git a/docs/API_docs/methods/messages.getEmojiStickerGroups.md b/docs/API_docs/methods/messages.getEmojiStickerGroups.md index 7c55c09221..d239ec3ffa 100644 --- a/docs/API_docs/methods/messages.getEmojiStickerGroups.md +++ b/docs/API_docs/methods/messages.getEmojiStickerGroups.md @@ -15,7 +15,7 @@ redirect_from: /API_docs/methods/messages_getEmojiStickerGroups.html | Name | Type | Required | |----------|---------------|----------| -|hash|Array of [long](/API_docs/types/long.html) | Optional| +|hash|Array of [long|string](/API_docs/types/long|string.html) | Optional| ### Return type: [messages.EmojiGroups](/API_docs/types/messages.EmojiGroups.html) @@ -35,6 +35,6 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$messages_EmojiGroups = $MadelineProto->messages->getEmojiStickerGroups(hash: [$long, $long], ); +$messages_EmojiGroups = $MadelineProto->messages->getEmojiStickerGroups(hash: [$long|string, $long|string], ); ``` diff --git a/docs/API_docs/methods/messages.getEmojiStickers.md b/docs/API_docs/methods/messages.getEmojiStickers.md index e00d219b1e..7f17e3c8f4 100644 --- a/docs/API_docs/methods/messages.getEmojiStickers.md +++ b/docs/API_docs/methods/messages.getEmojiStickers.md @@ -17,7 +17,7 @@ Gets the list of currently installed [custom emoji stickersets](https://core.tel | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|hash|Array of [long](/API_docs/types/long.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional| +|hash|Array of [long|string](/API_docs/types/long|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional| ### Return type: [messages.AllStickers](/API_docs/types/messages.AllStickers.html) @@ -37,6 +37,6 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$messages_AllStickers = $MadelineProto->messages->getEmojiStickers(hash: [$long, $long], ); +$messages_AllStickers = $MadelineProto->messages->getEmojiStickers(hash: [$long|string, $long|string], ); ``` diff --git a/docs/API_docs/methods/messages.getFavedStickers.md b/docs/API_docs/methods/messages.getFavedStickers.md index 9bf05db122..4e06af1750 100644 --- a/docs/API_docs/methods/messages.getFavedStickers.md +++ b/docs/API_docs/methods/messages.getFavedStickers.md @@ -17,7 +17,7 @@ Get faved stickers | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|hash|Array of [long](/API_docs/types/long.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional| +|hash|Array of [long|string](/API_docs/types/long|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional| ### Return type: [messages.FavedStickers](/API_docs/types/messages.FavedStickers.html) @@ -37,6 +37,6 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$messages_FavedStickers = $MadelineProto->messages->getFavedStickers(hash: [$long, $long], ); +$messages_FavedStickers = $MadelineProto->messages->getFavedStickers(hash: [$long|string, $long|string], ); ``` diff --git a/docs/API_docs/methods/messages.getFeaturedEmojiStickers.md b/docs/API_docs/methods/messages.getFeaturedEmojiStickers.md index d2cf6524c4..e1587523f5 100644 --- a/docs/API_docs/methods/messages.getFeaturedEmojiStickers.md +++ b/docs/API_docs/methods/messages.getFeaturedEmojiStickers.md @@ -17,7 +17,7 @@ Gets featured custom emoji stickersets. | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|hash|Array of [long](/API_docs/types/long.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional| +|hash|Array of [long|string](/API_docs/types/long|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional| ### Return type: [messages.FeaturedStickers](/API_docs/types/messages.FeaturedStickers.html) @@ -37,6 +37,6 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$messages_FeaturedStickers = $MadelineProto->messages->getFeaturedEmojiStickers(hash: [$long, $long], ); +$messages_FeaturedStickers = $MadelineProto->messages->getFeaturedEmojiStickers(hash: [$long|string, $long|string], ); ``` diff --git a/docs/API_docs/methods/messages.getFeaturedStickers.md b/docs/API_docs/methods/messages.getFeaturedStickers.md index 7bfc995554..1ae7f818b7 100644 --- a/docs/API_docs/methods/messages.getFeaturedStickers.md +++ b/docs/API_docs/methods/messages.getFeaturedStickers.md @@ -17,7 +17,7 @@ Get featured stickers | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|hash|Array of [long](/API_docs/types/long.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional| +|hash|Array of [long|string](/API_docs/types/long|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional| ### Return type: [messages.FeaturedStickers](/API_docs/types/messages.FeaturedStickers.html) @@ -37,6 +37,6 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$messages_FeaturedStickers = $MadelineProto->messages->getFeaturedStickers(hash: [$long, $long], ); +$messages_FeaturedStickers = $MadelineProto->messages->getFeaturedStickers(hash: [$long|string, $long|string], ); ``` diff --git a/docs/API_docs/methods/messages.getHistory.md b/docs/API_docs/methods/messages.getHistory.md index 770b86c75b..6253137db5 100644 --- a/docs/API_docs/methods/messages.getHistory.md +++ b/docs/API_docs/methods/messages.getHistory.md @@ -33,7 +33,7 @@ Returns the conversation history with one interlocutor / within a chat |limit|[int](/API_docs/types/int.html) | Number of results to return | Optional| |max\_id|[int](/API_docs/types/int.html) | If a positive value was transferred, the method will return only messages with IDs less than **max\_id** | Optional| |min\_id|[int](/API_docs/types/int.html) | If a positive value was transferred, the method will return only messages with IDs more than **min\_id** | Optional| -|hash|Array of [long](/API_docs/types/long.html) | [Result hash](https://core.telegram.org/api/offsets) | Optional| +|hash|Array of [long|string](/API_docs/types/long|string.html) | [Result hash](https://core.telegram.org/api/offsets) | Optional| ### Return type: [messages.Messages](/API_docs/types/messages.Messages.html) @@ -53,6 +53,6 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$messages_Messages = $MadelineProto->messages->getHistory(peer: $InputPeer, offset_id: $int, offset_date: $int, add_offset: $int, limit: $int, max_id: $int, min_id: $int, hash: [$long, $long], ); +$messages_Messages = $MadelineProto->messages->getHistory(peer: $InputPeer, offset_id: $int, offset_date: $int, add_offset: $int, limit: $int, max_id: $int, min_id: $int, hash: [$long|string, $long|string], ); ``` diff --git a/docs/API_docs/methods/messages.getMaskStickers.md b/docs/API_docs/methods/messages.getMaskStickers.md index e12eb44284..3aa198aecc 100644 --- a/docs/API_docs/methods/messages.getMaskStickers.md +++ b/docs/API_docs/methods/messages.getMaskStickers.md @@ -17,7 +17,7 @@ Get installed mask stickers | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|hash|Array of [long](/API_docs/types/long.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional| +|hash|Array of [long|string](/API_docs/types/long|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional| ### Return type: [messages.AllStickers](/API_docs/types/messages.AllStickers.html) @@ -37,6 +37,6 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$messages_AllStickers = $MadelineProto->messages->getMaskStickers(hash: [$long, $long], ); +$messages_AllStickers = $MadelineProto->messages->getMaskStickers(hash: [$long|string, $long|string], ); ``` diff --git a/docs/API_docs/methods/messages.getOldFeaturedStickers.md b/docs/API_docs/methods/messages.getOldFeaturedStickers.md index ec7969f30a..e9cf560b8d 100644 --- a/docs/API_docs/methods/messages.getOldFeaturedStickers.md +++ b/docs/API_docs/methods/messages.getOldFeaturedStickers.md @@ -19,7 +19,7 @@ Method for fetching previously featured stickers |----------|---------------|-------------|----------| |offset|[int](/API_docs/types/int.html) | Offset | Optional| |limit|[int](/API_docs/types/int.html) | Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets) | Optional| -|hash|Array of [long](/API_docs/types/long.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional| +|hash|Array of [long|string](/API_docs/types/long|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional| ### Return type: [messages.FeaturedStickers](/API_docs/types/messages.FeaturedStickers.html) @@ -39,6 +39,6 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$messages_FeaturedStickers = $MadelineProto->messages->getOldFeaturedStickers(offset: $int, limit: $int, hash: [$long, $long], ); +$messages_FeaturedStickers = $MadelineProto->messages->getOldFeaturedStickers(offset: $int, limit: $int, hash: [$long|string, $long|string], ); ``` diff --git a/docs/API_docs/methods/messages.getQuickReplies.md b/docs/API_docs/methods/messages.getQuickReplies.md index ba8376bbb3..d5e4fd861f 100644 --- a/docs/API_docs/methods/messages.getQuickReplies.md +++ b/docs/API_docs/methods/messages.getQuickReplies.md @@ -15,7 +15,7 @@ redirect_from: /API_docs/methods/messages_getQuickReplies.html | Name | Type | Required | |----------|---------------|----------| -|hash|Array of [long](/API_docs/types/long.html) | Optional| +|hash|Array of [long|string](/API_docs/types/long|string.html) | Optional| ### Return type: [messages.QuickReplies](/API_docs/types/messages.QuickReplies.html) @@ -35,6 +35,6 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$messages_QuickReplies = $MadelineProto->messages->getQuickReplies(hash: [$long, $long], ); +$messages_QuickReplies = $MadelineProto->messages->getQuickReplies(hash: [$long|string, $long|string], ); ``` diff --git a/docs/API_docs/methods/messages.getQuickReplyMessages.md b/docs/API_docs/methods/messages.getQuickReplyMessages.md index cef05ad6f7..cf4f921b99 100644 --- a/docs/API_docs/methods/messages.getQuickReplyMessages.md +++ b/docs/API_docs/methods/messages.getQuickReplyMessages.md @@ -17,7 +17,7 @@ redirect_from: /API_docs/methods/messages_getQuickReplyMessages.html |----------|---------------|----------| |shortcut\_id|[int](/API_docs/types/int.html) | Optional| |id|Array of [int](/API_docs/types/int.html) | Optional| -|hash|Array of [long](/API_docs/types/long.html) | Optional| +|hash|Array of [long|string](/API_docs/types/long|string.html) | Optional| ### Return type: [messages.Messages](/API_docs/types/messages.Messages.html) @@ -37,6 +37,6 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$messages_Messages = $MadelineProto->messages->getQuickReplyMessages(shortcut_id: $int, id: [$int, $int], hash: [$long, $long], ); +$messages_Messages = $MadelineProto->messages->getQuickReplyMessages(shortcut_id: $int, id: [$int, $int], hash: [$long|string, $long|string], ); ``` diff --git a/docs/API_docs/methods/messages.getRecentLocations.md b/docs/API_docs/methods/messages.getRecentLocations.md index d46869c756..dfea94e9a2 100644 --- a/docs/API_docs/methods/messages.getRecentLocations.md +++ b/docs/API_docs/methods/messages.getRecentLocations.md @@ -19,7 +19,7 @@ Get live location history of a certain user |----------|---------------|-------------|----------| |peer|[Username, chat ID, Update, Message or InputPeer](/API_docs/types/InputPeer.html) | User | Optional| |limit|[int](/API_docs/types/int.html) | Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets) | Optional| -|hash|Array of [long](/API_docs/types/long.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional| +|hash|Array of [long|string](/API_docs/types/long|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional| ### Return type: [messages.Messages](/API_docs/types/messages.Messages.html) @@ -39,6 +39,6 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$messages_Messages = $MadelineProto->messages->getRecentLocations(peer: $InputPeer, limit: $int, hash: [$long, $long], ); +$messages_Messages = $MadelineProto->messages->getRecentLocations(peer: $InputPeer, limit: $int, hash: [$long|string, $long|string], ); ``` diff --git a/docs/API_docs/methods/messages.getRecentReactions.md b/docs/API_docs/methods/messages.getRecentReactions.md index d522a65977..5c640ca4e9 100644 --- a/docs/API_docs/methods/messages.getRecentReactions.md +++ b/docs/API_docs/methods/messages.getRecentReactions.md @@ -18,7 +18,7 @@ Get recently used [message reactions](https://core.telegram.org/api/reactions) | Name | Type | Description | Required | |----------|---------------|-------------|----------| |limit|[int](/API_docs/types/int.html) | Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets) | Optional| -|hash|Array of [long](/API_docs/types/long.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional| +|hash|Array of [long|string](/API_docs/types/long|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional| ### Return type: [messages.Reactions](/API_docs/types/messages.Reactions.html) @@ -38,6 +38,6 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$messages_Reactions = $MadelineProto->messages->getRecentReactions(limit: $int, hash: [$long, $long], ); +$messages_Reactions = $MadelineProto->messages->getRecentReactions(limit: $int, hash: [$long|string, $long|string], ); ``` diff --git a/docs/API_docs/methods/messages.getRecentStickers.md b/docs/API_docs/methods/messages.getRecentStickers.md index f87268c9b0..c379fc4e17 100644 --- a/docs/API_docs/methods/messages.getRecentStickers.md +++ b/docs/API_docs/methods/messages.getRecentStickers.md @@ -18,7 +18,7 @@ Get recent stickers | Name | Type | Description | Required | |----------|---------------|-------------|----------| |attached|[Bool](/API_docs/types/Bool.html) | Get stickers recently attached to photo or video files | Optional| -|hash|Array of [long](/API_docs/types/long.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional| +|hash|Array of [long|string](/API_docs/types/long|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional| ### Return type: [messages.RecentStickers](/API_docs/types/messages.RecentStickers.html) @@ -38,6 +38,6 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$messages_RecentStickers = $MadelineProto->messages->getRecentStickers(attached: $Bool, hash: [$long, $long], ); +$messages_RecentStickers = $MadelineProto->messages->getRecentStickers(attached: $Bool, hash: [$long|string, $long|string], ); ``` diff --git a/docs/API_docs/methods/messages.getReplies.md b/docs/API_docs/methods/messages.getReplies.md index db8ae03bd1..e82488967a 100644 --- a/docs/API_docs/methods/messages.getReplies.md +++ b/docs/API_docs/methods/messages.getReplies.md @@ -25,7 +25,7 @@ Get messages in a reply thread |limit|[int](/API_docs/types/int.html) | Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets) | Optional| |max\_id|[int](/API_docs/types/int.html) | If a positive value was transferred, the method will return only messages with ID smaller than max\_id | Optional| |min\_id|[int](/API_docs/types/int.html) | If a positive value was transferred, the method will return only messages with ID bigger than min\_id | Optional| -|hash|Array of [long](/API_docs/types/long.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional| +|hash|Array of [long|string](/API_docs/types/long|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional| ### Return type: [messages.Messages](/API_docs/types/messages.Messages.html) @@ -45,6 +45,6 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$messages_Messages = $MadelineProto->messages->getReplies(peer: $InputPeer, msg_id: $int, offset_id: $int, offset_date: $int, add_offset: $int, limit: $int, max_id: $int, min_id: $int, hash: [$long, $long], ); +$messages_Messages = $MadelineProto->messages->getReplies(peer: $InputPeer, msg_id: $int, offset_id: $int, offset_date: $int, add_offset: $int, limit: $int, max_id: $int, min_id: $int, hash: [$long|string, $long|string], ); ``` diff --git a/docs/API_docs/methods/messages.getSavedDialogs.md b/docs/API_docs/methods/messages.getSavedDialogs.md index 2ac38424b0..86fc13e5b6 100644 --- a/docs/API_docs/methods/messages.getSavedDialogs.md +++ b/docs/API_docs/methods/messages.getSavedDialogs.md @@ -22,7 +22,7 @@ Returns the current saved dialog list, see [here »](https://core.telegram.org/a |offset\_id|[int](/API_docs/types/int.html) | [Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets) (`top_message` ID used for pagination) | Optional| |offset\_peer|[Username, chat ID, Update, Message or InputPeer](/API_docs/types/InputPeer.html) | [Offset peer for pagination](https://core.telegram.org/api/offsets) | Optional| |limit|[int](/API_docs/types/int.html) | Number of list elements to be returned | Optional| -|hash|Array of [long](/API_docs/types/long.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional| +|hash|Array of [long|string](/API_docs/types/long|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional| ### Return type: [messages.SavedDialogs](/API_docs/types/messages.SavedDialogs.html) @@ -42,6 +42,6 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$messages_SavedDialogs = $MadelineProto->messages->getSavedDialogs(exclude_pinned: $Bool, offset_date: $int, offset_id: $int, offset_peer: $InputPeer, limit: $int, hash: [$long, $long], ); +$messages_SavedDialogs = $MadelineProto->messages->getSavedDialogs(exclude_pinned: $Bool, offset_date: $int, offset_id: $int, offset_peer: $InputPeer, limit: $int, hash: [$long|string, $long|string], ); ``` diff --git a/docs/API_docs/methods/messages.getSavedGifs.md b/docs/API_docs/methods/messages.getSavedGifs.md index b9f30499eb..2383b4e472 100644 --- a/docs/API_docs/methods/messages.getSavedGifs.md +++ b/docs/API_docs/methods/messages.getSavedGifs.md @@ -17,7 +17,7 @@ Get saved GIFs | Name | Type | Description | Required | |----------|---------------|-------------|----------| -|hash|Array of [long](/API_docs/types/long.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional| +|hash|Array of [long|string](/API_docs/types/long|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional| ### Return type: [messages.SavedGifs](/API_docs/types/messages.SavedGifs.html) @@ -37,6 +37,6 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$messages_SavedGifs = $MadelineProto->messages->getSavedGifs(hash: [$long, $long], ); +$messages_SavedGifs = $MadelineProto->messages->getSavedGifs(hash: [$long|string, $long|string], ); ``` diff --git a/docs/API_docs/methods/messages.getSavedHistory.md b/docs/API_docs/methods/messages.getSavedHistory.md index 94a84314d2..1458387879 100644 --- a/docs/API_docs/methods/messages.getSavedHistory.md +++ b/docs/API_docs/methods/messages.getSavedHistory.md @@ -24,7 +24,7 @@ Returns [saved messages »](https://core.telegram.org/api/saved-messages) forwar |limit|[int](/API_docs/types/int.html) | Number of results to return | Optional| |max\_id|[int](/API_docs/types/int.html) | If a positive value was transferred, the method will return only messages with IDs less than **max\_id** | Optional| |min\_id|[int](/API_docs/types/int.html) | If a positive value was transferred, the method will return only messages with IDs more than **min\_id** | Optional| -|hash|Array of [long](/API_docs/types/long.html) | [Result hash](https://core.telegram.org/api/offsets) | Optional| +|hash|Array of [long|string](/API_docs/types/long|string.html) | [Result hash](https://core.telegram.org/api/offsets) | Optional| ### Return type: [messages.Messages](/API_docs/types/messages.Messages.html) @@ -44,6 +44,6 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$messages_Messages = $MadelineProto->messages->getSavedHistory(peer: $InputPeer, offset_id: $int, offset_date: $int, add_offset: $int, limit: $int, max_id: $int, min_id: $int, hash: [$long, $long], ); +$messages_Messages = $MadelineProto->messages->getSavedHistory(peer: $InputPeer, offset_id: $int, offset_date: $int, add_offset: $int, limit: $int, max_id: $int, min_id: $int, hash: [$long|string, $long|string], ); ``` diff --git a/docs/API_docs/methods/messages.getSavedReactionTags.md b/docs/API_docs/methods/messages.getSavedReactionTags.md index b25314aa0f..3ed3adad17 100644 --- a/docs/API_docs/methods/messages.getSavedReactionTags.md +++ b/docs/API_docs/methods/messages.getSavedReactionTags.md @@ -16,7 +16,7 @@ redirect_from: /API_docs/methods/messages_getSavedReactionTags.html | Name | Type | Required | |----------|---------------|----------| |peer|[Username, chat ID, Update, Message or InputPeer](/API_docs/types/InputPeer.html) | Optional| -|hash|Array of [long](/API_docs/types/long.html) | Optional| +|hash|Array of [long|string](/API_docs/types/long|string.html) | Optional| ### Return type: [messages.SavedReactionTags](/API_docs/types/messages.SavedReactionTags.html) @@ -36,6 +36,6 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$messages_SavedReactionTags = $MadelineProto->messages->getSavedReactionTags(peer: $InputPeer, hash: [$long, $long], ); +$messages_SavedReactionTags = $MadelineProto->messages->getSavedReactionTags(peer: $InputPeer, hash: [$long|string, $long|string], ); ``` diff --git a/docs/API_docs/methods/messages.getScheduledHistory.md b/docs/API_docs/methods/messages.getScheduledHistory.md index 062d6cdaa3..97977850a8 100644 --- a/docs/API_docs/methods/messages.getScheduledHistory.md +++ b/docs/API_docs/methods/messages.getScheduledHistory.md @@ -18,7 +18,7 @@ Get scheduled messages | Name | Type | Description | Required | |----------|---------------|-------------|----------| |peer|[Username, chat ID, Update, Message or InputPeer](/API_docs/types/InputPeer.html) | Peer | Optional| -|hash|Array of [long](/API_docs/types/long.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional| +|hash|Array of [long|string](/API_docs/types/long|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional| ### Return type: [messages.Messages](/API_docs/types/messages.Messages.html) @@ -38,6 +38,6 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$messages_Messages = $MadelineProto->messages->getScheduledHistory(peer: $InputPeer, hash: [$long, $long], ); +$messages_Messages = $MadelineProto->messages->getScheduledHistory(peer: $InputPeer, hash: [$long|string, $long|string], ); ``` diff --git a/docs/API_docs/methods/messages.getStickerSet.md b/docs/API_docs/methods/messages.getStickerSet.md index 025860db6c..a0ca4b40b7 100644 --- a/docs/API_docs/methods/messages.getStickerSet.md +++ b/docs/API_docs/methods/messages.getStickerSet.md @@ -18,7 +18,7 @@ Get info about a stickerset | Name | Type | Description | Required | |----------|---------------|-------------|----------| |stickerset|[InputStickerSet](/API_docs/types/InputStickerSet.html) | Stickerset | Optional| -|hash|Array of [long](/API_docs/types/long.html) | | Optional| +|hash|Array of [long|string](/API_docs/types/long|string.html) | | Optional| ### Return type: [messages.StickerSet](/API_docs/types/messages.StickerSet.html) @@ -38,6 +38,6 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$messages_StickerSet = $MadelineProto->messages->getStickerSet(stickerset: $InputStickerSet, hash: [$long, $long], ); +$messages_StickerSet = $MadelineProto->messages->getStickerSet(stickerset: $InputStickerSet, hash: [$long|string, $long|string], ); ``` diff --git a/docs/API_docs/methods/messages.getStickers.md b/docs/API_docs/methods/messages.getStickers.md index ed2f17aeb9..2a517e64a9 100644 --- a/docs/API_docs/methods/messages.getStickers.md +++ b/docs/API_docs/methods/messages.getStickers.md @@ -18,7 +18,7 @@ Get stickers by emoji | Name | Type | Description | Required | |----------|---------------|-------------|----------| |emoticon|[string](/API_docs/types/string.html) | The emoji | Optional| -|hash|Array of [long](/API_docs/types/long.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional| +|hash|Array of [long|string](/API_docs/types/long|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional| ### Return type: [messages.Stickers](/API_docs/types/messages.Stickers.html) @@ -38,6 +38,6 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$messages_Stickers = $MadelineProto->messages->getStickers(emoticon: 'string', hash: [$long, $long], ); +$messages_Stickers = $MadelineProto->messages->getStickers(emoticon: 'string', hash: [$long|string, $long|string], ); ``` diff --git a/docs/API_docs/methods/messages.getTopReactions.md b/docs/API_docs/methods/messages.getTopReactions.md index c0af37f645..32afe0539a 100644 --- a/docs/API_docs/methods/messages.getTopReactions.md +++ b/docs/API_docs/methods/messages.getTopReactions.md @@ -18,7 +18,7 @@ Got popular [message reactions](https://core.telegram.org/api/reactions) | Name | Type | Description | Required | |----------|---------------|-------------|----------| |limit|[int](/API_docs/types/int.html) | Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets) | Optional| -|hash|Array of [long](/API_docs/types/long.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional| +|hash|Array of [long|string](/API_docs/types/long|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional| ### Return type: [messages.Reactions](/API_docs/types/messages.Reactions.html) @@ -38,6 +38,6 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$messages_Reactions = $MadelineProto->messages->getTopReactions(limit: $int, hash: [$long, $long], ); +$messages_Reactions = $MadelineProto->messages->getTopReactions(limit: $int, hash: [$long|string, $long|string], ); ``` diff --git a/docs/API_docs/methods/messages.getWebPage.md b/docs/API_docs/methods/messages.getWebPage.md index b7c114e365..82538d062e 100644 --- a/docs/API_docs/methods/messages.getWebPage.md +++ b/docs/API_docs/methods/messages.getWebPage.md @@ -18,7 +18,7 @@ Get [instant view](https://instantview.telegram.org) page | Name | Type | Description | Required | |----------|---------------|-------------|----------| |url|[string](/API_docs/types/string.html) | URL of IV page to fetch | Optional| -|hash|Array of [long](/API_docs/types/long.html) | | Optional| +|hash|Array of [long|string](/API_docs/types/long|string.html) | | Optional| ### Return type: [messages.WebPage](/API_docs/types/messages.WebPage.html) @@ -38,6 +38,6 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$messages_WebPage = $MadelineProto->messages->getWebPage(url: 'string', hash: [$long, $long], ); +$messages_WebPage = $MadelineProto->messages->getWebPage(url: 'string', hash: [$long|string, $long|string], ); ``` diff --git a/docs/API_docs/methods/messages.search.md b/docs/API_docs/methods/messages.search.md index 6be94f88df..fb7f3cb6c1 100644 --- a/docs/API_docs/methods/messages.search.md +++ b/docs/API_docs/methods/messages.search.md @@ -31,7 +31,7 @@ Search for messages. |limit|[int](/API_docs/types/int.html) | [Number of results to return](https://core.telegram.org/api/offsets) | Optional| |max\_id|[int](/API_docs/types/int.html) | [Maximum message ID to return](https://core.telegram.org/api/offsets) | Optional| |min\_id|[int](/API_docs/types/int.html) | [Minimum message ID to return](https://core.telegram.org/api/offsets) | Optional| -|hash|Array of [long](/API_docs/types/long.html) | [Hash](https://core.telegram.org/api/offsets) | Optional| +|hash|Array of [long|string](/API_docs/types/long|string.html) | [Hash](https://core.telegram.org/api/offsets) | Optional| ### Return type: [messages.Messages](/API_docs/types/messages.Messages.html) @@ -51,6 +51,6 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$messages_Messages = $MadelineProto->messages->search(peer: $InputPeer, q: 'string', from_id: $InputPeer, saved_peer_id: $InputPeer, saved_reaction: [$Reaction, $Reaction], top_msg_id: $int, filter: $MessagesFilter, min_date: $int, max_date: $int, offset_id: $int, add_offset: $int, limit: $int, max_id: $int, min_id: $int, hash: [$long, $long], ); +$messages_Messages = $MadelineProto->messages->search(peer: $InputPeer, q: 'string', from_id: $InputPeer, saved_peer_id: $InputPeer, saved_reaction: [$Reaction, $Reaction], top_msg_id: $int, filter: $MessagesFilter, min_date: $int, max_date: $int, offset_id: $int, add_offset: $int, limit: $int, max_id: $int, min_id: $int, hash: [$long|string, $long|string], ); ``` diff --git a/docs/API_docs/methods/messages.searchCustomEmoji.md b/docs/API_docs/methods/messages.searchCustomEmoji.md index 449e45516f..325a1fea7e 100644 --- a/docs/API_docs/methods/messages.searchCustomEmoji.md +++ b/docs/API_docs/methods/messages.searchCustomEmoji.md @@ -18,7 +18,7 @@ Look for [custom emojis](https://core.telegram.org/api/custom-emoji) associated | Name | Type | Description | Required | |----------|---------------|-------------|----------| |emoticon|[string](/API_docs/types/string.html) | The emoji | Optional| -|hash|Array of [long](/API_docs/types/long.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional| +|hash|Array of [long|string](/API_docs/types/long|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional| ### Return type: [EmojiList](/API_docs/types/EmojiList.html) @@ -38,6 +38,6 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$EmojiList = $MadelineProto->messages->searchCustomEmoji(emoticon: 'string', hash: [$long, $long], ); +$EmojiList = $MadelineProto->messages->searchCustomEmoji(emoticon: 'string', hash: [$long|string, $long|string], ); ``` diff --git a/docs/API_docs/methods/messages.searchEmojiStickerSets.md b/docs/API_docs/methods/messages.searchEmojiStickerSets.md index 717acafce6..c8238c47ff 100644 --- a/docs/API_docs/methods/messages.searchEmojiStickerSets.md +++ b/docs/API_docs/methods/messages.searchEmojiStickerSets.md @@ -19,7 +19,7 @@ Search for [custom emoji stickersets »](https://core.telegram.org/api/custom-em |----------|---------------|-------------|----------| |exclude\_featured|[Bool](/API_docs/types/Bool.html) | Exclude featured stickersets from results | Optional| |q|[string](/API_docs/types/string.html) | Query string | Optional| -|hash|Array of [long](/API_docs/types/long.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional| +|hash|Array of [long|string](/API_docs/types/long|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional| ### Return type: [messages.FoundStickerSets](/API_docs/types/messages.FoundStickerSets.html) @@ -39,6 +39,6 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$messages_FoundStickerSets = $MadelineProto->messages->searchEmojiStickerSets(exclude_featured: $Bool, q: 'string', hash: [$long, $long], ); +$messages_FoundStickerSets = $MadelineProto->messages->searchEmojiStickerSets(exclude_featured: $Bool, q: 'string', hash: [$long|string, $long|string], ); ``` diff --git a/docs/API_docs/methods/messages.searchStickerSets.md b/docs/API_docs/methods/messages.searchStickerSets.md index 289643fc42..efea36b9e7 100644 --- a/docs/API_docs/methods/messages.searchStickerSets.md +++ b/docs/API_docs/methods/messages.searchStickerSets.md @@ -19,7 +19,7 @@ Search for stickersets |----------|---------------|-------------|----------| |exclude\_featured|[Bool](/API_docs/types/Bool.html) | Exclude featured stickersets from results | Optional| |q|[string](/API_docs/types/string.html) | Query string | Optional| -|hash|Array of [long](/API_docs/types/long.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional| +|hash|Array of [long|string](/API_docs/types/long|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional| ### Return type: [messages.FoundStickerSets](/API_docs/types/messages.FoundStickerSets.html) @@ -39,6 +39,6 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$messages_FoundStickerSets = $MadelineProto->messages->searchStickerSets(exclude_featured: $Bool, q: 'string', hash: [$long, $long], ); +$messages_FoundStickerSets = $MadelineProto->messages->searchStickerSets(exclude_featured: $Bool, q: 'string', hash: [$long|string, $long|string], ); ``` diff --git a/docs/API_docs/types/long.md b/docs/API_docs/types/long.md index 4465a550d2..9c9c074752 100644 --- a/docs/API_docs/types/long.md +++ b/docs/API_docs/types/long.md @@ -1,6 +1,6 @@ --- title: long -description: A 32 bit signed integer ranging from -9223372036854775808 to 9223372036854775807 +description: A 64 bit signed integer ranging from -9223372036854775808 to 9223372036854775807 nav_exclude: true image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- diff --git a/docs/API_docs/types/long|string.md b/docs/API_docs/types/long|string.md new file mode 100644 index 0000000000..43857e1a95 --- /dev/null +++ b/docs/API_docs/types/long|string.md @@ -0,0 +1,10 @@ +--- +title: long|string +description: A 64 bit signed integer ranging from -9223372036854775808 to 9223372036854775807 or a string +nav_exclude: true +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +## Type: long|string +[Back to constructor index](index.html) + +A 64 bit signed integer ranging from `-9223372036854775808` to `9223372036854775807` or a string containing any value. diff --git a/docs/PHP/danog/MadelineProto/Tools.md b/docs/PHP/danog/MadelineProto/Tools.md index b6b5182c63..b5ae64e168 100644 --- a/docs/PHP/danog/MadelineProto/Tools.md +++ b/docs/PHP/danog/MadelineProto/Tools.md @@ -25,7 +25,7 @@ Some tools. * [`getMaps(): ?int`](#getMaps) * [`getMaxMaps(): ?int`](#getMaxMaps) * [`stringToStream(string $str): \Amp\ByteStream\ReadableBuffer`](#stringToStream) -* [`genVectorHash(array $longs): string`](#genVectorHash) +* [`genVectorHash(array<(string|int)> $longs): string`](#genVectorHash) * [`randomInt(integer $modulus = 0): int`](#randomInt) * [`random(integer $length): string`](#random) * [`posmod(int $a, int $b): int`](#posmod) @@ -119,7 +119,7 @@ Parameters: -### `genVectorHash(array $longs): string` +### `genVectorHash(array<(string|int)> $longs): string` Generate MTProto vector hash. @@ -128,7 +128,7 @@ Returns a vector hash. Parameters: -* `$longs`: `array` IDs +* `$longs`: `array<(string|int)>` IDs diff --git a/template/long.md b/template/long.md index 4465a550d2..9c9c074752 100644 --- a/template/long.md +++ b/template/long.md @@ -1,6 +1,6 @@ --- title: long -description: A 32 bit signed integer ranging from -9223372036854775808 to 9223372036854775807 +description: A 64 bit signed integer ranging from -9223372036854775808 to 9223372036854775807 nav_exclude: true image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- diff --git a/template/long|string.md b/template/long|string.md new file mode 100644 index 0000000000..43857e1a95 --- /dev/null +++ b/template/long|string.md @@ -0,0 +1,10 @@ +--- +title: long|string +description: A 64 bit signed integer ranging from -9223372036854775808 to 9223372036854775807 or a string +nav_exclude: true +image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +--- +## Type: long|string +[Back to constructor index](index.html) + +A 64 bit signed integer ranging from `-9223372036854775808` to `9223372036854775807` or a string containing any value.