diff --git a/docs/API_docs/methods/account.changeAuthorizationSettings.md b/docs/API_docs/methods/account.changeAuthorizationSettings.md index c79bf7c06f..c3e9855264 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\|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| +|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|string, $long|string], 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 65c4923254..47c26e0e95 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\|string](/API_docs/types/long|string.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|string, $long|string], ); +$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 376bbd2af5..c7743440db 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\|string](/API_docs/types/long|string.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|string, $long|string], ); +$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 36b6caa645..674b84560e 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\|string](/API_docs/types/long|string.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|string, $long|string], ); +$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 03b144d925..6ce656a72f 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\|string](/API_docs/types/long|string.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|string, $long|string], ); +$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 d8ec70dc2e..f239172b2c 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\|string](/API_docs/types/long|string.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|string, $long|string], ); +$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 8b1b50014d..96a693193e 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\|string](/API_docs/types/long|string.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|string, $long|string], ); +$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 01dafbf938..2f753f8e94 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\|string](/API_docs/types/long|string.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|string, $long|string], ); +$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 ddcb77aae6..1447617463 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\|string](/API_docs/types/long|string.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|string, $long|string], ); +$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 6daf110980..86a3087378 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\|string](/API_docs/types/long|string.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|string, $long|string], ); +$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 b2aee22a06..a35fe80b77 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\|string](/API_docs/types/long|string.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|string, $long|string], ); +$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 9837abf2ee..fd09bbe7af 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\|string](/API_docs/types/long|string.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|string, $long|string], ); +$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 f6efa4df54..406a387ada 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\|string](/API_docs/types/long|string.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|string, $long|string], ); +$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 1a75902607..0b5fd965bb 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\|string](/API_docs/types/long|string.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|string, $long|string], ); +$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 5b529bcbf8..5d60445877 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\|string](/API_docs/types/long|string.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|string, $long|string], ); +$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 0a3d6cb473..59e3129ee2 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\|string](/API_docs/types/long|string.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|string, $long|string], ); +$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 f023d550a6..1723836cda 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\|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| +|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|string, $long|string], ); +$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 8e7b4badbe..52eb952191 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\|string](/API_docs/types/long|string.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|string, $long|string], ); +$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 365476957c..0b60a04729 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\|string](/API_docs/types/long|string.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|string, $long|string], ); +$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 de0177a2d3..36a845d0f6 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\|string](/API_docs/types/long|string.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|string, $long|string], ); +$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 822c462525..a3a075679e 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\|string](/API_docs/types/long|string.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|string, $long|string], ); +$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 0dc04ac0dc..1afa60dcc3 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\|string](/API_docs/types/long|string.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|string, $long|string], ); +$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 5a82f1ad35..2a38be56aa 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\|string](/API_docs/types/long|string.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|string, $long|string], ); +$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 1cd117726f..722ad6ce8b 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\|string](/API_docs/types/long|string.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|string, $long|string], ); +$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 51b0aba52c..7cb2abd95f 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\|string](/API_docs/types/long|string.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|string, $long|string], ); +$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 a3f1308ee7..47f9b6f561 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\|string](/API_docs/types/long|string.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|string, $long|string], ); +$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 e55364f772..7ea4e06463 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\|string](/API_docs/types/long|string.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|string, $long|string], ); +$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 2789904a5f..c790e8ecc4 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\|string](/API_docs/types/long|string.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|string, $long|string], ); +$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 8cf7fd0881..4a92d1a8c0 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\|string](/API_docs/types/long|string.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|string, $long|string], ); +$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 a935146b9a..7ca4c24355 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\|string](/API_docs/types/long|string.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|string, $long|string], ); +$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 bde13d6f59..4a2583dae8 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\|string](/API_docs/types/long|string.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|string, $long|string], ); +$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 1ef9d5edfa..2e3ffde7f3 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\|string](/API_docs/types/long|string.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|string, $long|string], ); +$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 78c930373d..9ab7684617 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\|string](/API_docs/types/long|string.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|string, $long|string], ); +$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 06d83b5c90..cd8422caec 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\|string](/API_docs/types/long|string.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|string, $long|string], ); +$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 c176115fab..06ac59f268 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\|string](/API_docs/types/long|string.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|string, $long|string], ); +$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 7bd692079f..3e4779c18d 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\|string](/API_docs/types/long|string.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|string, $long|string], ); +$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 7372136ba7..865d5462ae 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\|string](/API_docs/types/long|string.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|string, $long|string], ); +$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 234bb7ea3f..06165a37e2 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\|string](/API_docs/types/long|string.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|string, $long|string], ); +$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 582784d9e6..888a400440 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\|string](/API_docs/types/long|string.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|string, $long|string], ); +$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 60e00fd16e..2cc622cfef 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\|string](/API_docs/types/long|string.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|string, $long|string], ); +$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 873f5a8b96..bfc42f3afb 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\|string](/API_docs/types/long|string.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|string, $long|string], ); +$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 2e167e7e48..42a65dd87c 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\|string](/API_docs/types/long|string.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|string, $long|string], ); +$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 ef478197e4..47722b0f7e 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\|string](/API_docs/types/long|string.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|string, $long|string], ); +$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 e94ecb5092..45d569eeda 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\|string](/API_docs/types/long|string.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|string, $long|string], ); +$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 6f7e717837..a1efabc71f 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\|string](/API_docs/types/long|string.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|string, $long|string], ); +$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 9e245e9af9..d442f726f2 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\|string](/API_docs/types/long|string.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|string, $long|string], ); +$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 d95c8c6b93..2ac1cdf2fb 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\|string](/API_docs/types/long|string.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|string, $long|string], ); +$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 63dba67915..caa90b687a 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\|string](/API_docs/types/long|string.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|string, $long|string], ); +$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 bdceb823c5..5402819c82 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\|string](/API_docs/types/long|string.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|string, $long|string], ); +$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 87ff463b2a..a2a137e941 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\|string](/API_docs/types/long|string.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|string, $long|string], ); +$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 42fdee9bc0..4266c035c2 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\|string](/API_docs/types/long|string.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|string, $long|string], ); +$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 33f006c5ef..e08c7a475f 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\|string](/API_docs/types/long|string.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|string, $long|string], ); +$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 8e5a34ac08..73fdef5295 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\|string](/API_docs/types/long|string.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|string, $long|string], ); +$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 937b2861b4..07bd5a4883 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\|string](/API_docs/types/long|string.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|string, $long|string], ); +$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 b855f33deb..f968c1b69d 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\|string](/API_docs/types/long|string.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|string, $long|string], ); +$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 3f6015be75..58bf27f20b 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\|string](/API_docs/types/long|string.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|string, $long|string], ); +$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 40b908f92e..a260990d4b 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\|string](/API_docs/types/long|string.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|string, $long|string], ); +$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 b839528437..521787ff45 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\|string](/API_docs/types/long|string.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|string, $long|string], ); +$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 dff795d78c..e57949ed6d 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\|string](/API_docs/types/long|string.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|string, $long|string], ); +$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 e0e7aa5e09..ae2af24487 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\|string](/API_docs/types/long|string.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|string, $long|string], ); +$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 379c02e002..f59c702527 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\|string](/API_docs/types/long|string.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|string, $long|string], ); +$messages_FoundStickerSets = $MadelineProto->messages->searchStickerSets(exclude_featured: $Bool, q: 'string', hash: [$long\|string, $long\|string], ); ``` diff --git a/docs/PHP/danog/DialogId/DialogId.md b/docs/PHP/danog/DialogId/DialogId.md index 8a49564eda..ba00b2d9a8 100644 --- a/docs/PHP/danog/DialogId/DialogId.md +++ b/docs/PHP/danog/DialogId/DialogId.md @@ -42,6 +42,7 @@ Represents the type of a bot API dialog ID. * [`toChatId(int $id): int`](#toChatId) * [`fromUserId(int $id): int`](#fromUserId) * [`toUserId(int $id): int`](#toUserId) +* [`toMTProtoId(int $id): int`](#toMTProtoId) * [`cases(): array`](#cases) ## Methods: @@ -192,6 +193,17 @@ Parameters: +### `toMTProtoId(int $id): int` + +Convert bot API ID to MTProto ID (automatically detecting the correct type). + + +Parameters: + +* `$id`: `int` Bot API dialog ID + + + ### `cases(): array` diff --git a/docs/PHP/danog/MadelineProto/API.md b/docs/PHP/danog/MadelineProto/API.md index 67a7b3cebd..1d923fe10d 100644 --- a/docs/PHP/danog/MadelineProto/API.md +++ b/docs/PHP/danog/MadelineProto/API.md @@ -130,7 +130,7 @@ Main API wrapper for MadelineProto. * [`flock(string $file, integer $operation, float $polling = 0.1, ?\Amp\Cancellation $token = NULL, ?\Closure $failureCb = NULL): ($token is null ? Closure(): void : (Closure(): void | null))`](#flock) * [`fullChatLastUpdated(mixed $id): int`](#fullChatLastUpdated) * [`fullGetSelf(): array|false`](#fullGetSelf) -* [`genVectorHash(array $longs): string`](#genVectorHash) +* [`genVectorHash(array<(string|int)> $longs): string`](#genVectorHash) * [`getAdminIds(): array`](#getAdminIds) * [`getAllCalls(): array`](#getAllCalls) * [`getAllMethods(): array`](#getAllMethods) @@ -1092,7 +1092,7 @@ Get info about the logged-in user, not cached. -### `genVectorHash(array $longs): string` +### `genVectorHash(array<(string|int)> $longs): string` Generate MTProto vector hash. @@ -1101,7 +1101,7 @@ Returns a vector hash. Parameters: -* `$longs`: `array` IDs +* `$longs`: `array<(string|int)>` IDs diff --git a/docs/PHP/danog/MadelineProto/EventHandler.md b/docs/PHP/danog/MadelineProto/EventHandler.md index 0b14ff0a13..7b630304c1 100644 --- a/docs/PHP/danog/MadelineProto/EventHandler.md +++ b/docs/PHP/danog/MadelineProto/EventHandler.md @@ -95,7 +95,7 @@ Event handler. * [`flock(string $file, integer $operation, float $polling = 0.1, ?\Amp\Cancellation $token = NULL, ?\Closure $failureCb = NULL): ($token is null ? Closure(): void : (Closure(): void | null))`](#flock) * [`fullChatLastUpdated(mixed $id): int`](#fullChatLastUpdated) * [`fullGetSelf(): array|false`](#fullGetSelf) -* [`genVectorHash(array $longs): string`](#genVectorHash) +* [`genVectorHash(array<(string|int)> $longs): string`](#genVectorHash) * [`getAdminIds(): array`](#getAdminIds) * [`getAllCalls(): array`](#getAllCalls) * [`getAllMethods(): array`](#getAllMethods) @@ -1100,7 +1100,7 @@ Get info about the logged-in user, not cached. -### `genVectorHash(array $longs): string` +### `genVectorHash(array<(string|int)> $longs): string` Generate MTProto vector hash. @@ -1109,7 +1109,7 @@ Returns a vector hash. Parameters: -* `$longs`: `array` IDs +* `$longs`: `array<(string|int)>` IDs diff --git a/docs/PHP/danog/MadelineProto/EventHandler/Plugin/RestartPlugin.md b/docs/PHP/danog/MadelineProto/EventHandler/Plugin/RestartPlugin.md index d87491ba44..e6e4b61321 100644 --- a/docs/PHP/danog/MadelineProto/EventHandler/Plugin/RestartPlugin.md +++ b/docs/PHP/danog/MadelineProto/EventHandler/Plugin/RestartPlugin.md @@ -97,7 +97,7 @@ Plugin that offers a /restart command to admins that can be used to restart the * [`flock(string $file, integer $operation, float $polling = 0.1, ?\Amp\Cancellation $token = NULL, ?\Closure $failureCb = NULL): ($token is null ? Closure(): void : (Closure(): void | null))`](#flock) * [`fullChatLastUpdated(mixed $id): int`](#fullChatLastUpdated) * [`fullGetSelf(): array|false`](#fullGetSelf) -* [`genVectorHash(array $longs): string`](#genVectorHash) +* [`genVectorHash(array<(string|int)> $longs): string`](#genVectorHash) * [`getAdminIds(): array`](#getAdminIds) * [`getAllCalls(): array`](#getAllCalls) * [`getAllMethods(): array`](#getAllMethods) @@ -1116,7 +1116,7 @@ Get info about the logged-in user, not cached. -### `genVectorHash(array $longs): string` +### `genVectorHash(array<(string|int)> $longs): string` Generate MTProto vector hash. @@ -1125,7 +1125,7 @@ Returns a vector hash. Parameters: -* `$longs`: `array` IDs +* `$longs`: `array<(string|int)>` IDs diff --git a/docs/PHP/danog/MadelineProto/PluginEventHandler.md b/docs/PHP/danog/MadelineProto/PluginEventHandler.md index f9707970ac..d0524f4df1 100644 --- a/docs/PHP/danog/MadelineProto/PluginEventHandler.md +++ b/docs/PHP/danog/MadelineProto/PluginEventHandler.md @@ -96,7 +96,7 @@ Plugin event handler class. * [`flock(string $file, integer $operation, float $polling = 0.1, ?\Amp\Cancellation $token = NULL, ?\Closure $failureCb = NULL): ($token is null ? Closure(): void : (Closure(): void | null))`](#flock) * [`fullChatLastUpdated(mixed $id): int`](#fullChatLastUpdated) * [`fullGetSelf(): array|false`](#fullGetSelf) -* [`genVectorHash(array $longs): string`](#genVectorHash) +* [`genVectorHash(array<(string|int)> $longs): string`](#genVectorHash) * [`getAdminIds(): array`](#getAdminIds) * [`getAllCalls(): array`](#getAllCalls) * [`getAllMethods(): array`](#getAllMethods) @@ -1099,7 +1099,7 @@ Get info about the logged-in user, not cached. -### `genVectorHash(array $longs): string` +### `genVectorHash(array<(string|int)> $longs): string` Generate MTProto vector hash. @@ -1108,7 +1108,7 @@ Returns a vector hash. Parameters: -* `$longs`: `array` IDs +* `$longs`: `array<(string|int)>` IDs diff --git a/docs/PHP/danog/MadelineProto/SimpleEventHandler.md b/docs/PHP/danog/MadelineProto/SimpleEventHandler.md index 62657a6282..ee76d3fc78 100644 --- a/docs/PHP/danog/MadelineProto/SimpleEventHandler.md +++ b/docs/PHP/danog/MadelineProto/SimpleEventHandler.md @@ -95,7 +95,7 @@ Simple event handler class: by extending this class, you can use filters, crons * [`flock(string $file, integer $operation, float $polling = 0.1, ?\Amp\Cancellation $token = NULL, ?\Closure $failureCb = NULL): ($token is null ? Closure(): void : (Closure(): void | null))`](#flock) * [`fullChatLastUpdated(mixed $id): int`](#fullChatLastUpdated) * [`fullGetSelf(): array|false`](#fullGetSelf) -* [`genVectorHash(array $longs): string`](#genVectorHash) +* [`genVectorHash(array<(string|int)> $longs): string`](#genVectorHash) * [`getAdminIds(): array`](#getAdminIds) * [`getAllCalls(): array`](#getAllCalls) * [`getAllMethods(): array`](#getAllMethods) @@ -1100,7 +1100,7 @@ Get info about the logged-in user, not cached. -### `genVectorHash(array $longs): string` +### `genVectorHash(array<(string|int)> $longs): string` Generate MTProto vector hash. @@ -1109,7 +1109,7 @@ Returns a vector hash. Parameters: -* `$longs`: `array` IDs +* `$longs`: `array<(string|int)>` IDs