This commit is contained in:
Daniil Gentili 2024-08-15 18:21:24 +02:00
parent 999eee65a6
commit ffea6f27ef
66 changed files with 147 additions and 127 deletions

View File

@ -18,7 +18,7 @@ Change settings related to a session.
| Name | Type | Description | Required | | 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| |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| |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| |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 = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start(); $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, );
``` ```

View File

@ -17,7 +17,7 @@ Get a list of default suggested [channel emoji statuses](https://core.telegram.o
| Name | Type | Description | Required | | 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) ### 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 = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start(); $MadelineProto->start();
$account_EmojiStatuses = $MadelineProto->account->getChannelDefaultEmojiStatuses(hash: [$long, $long], ); $account_EmojiStatuses = $MadelineProto->account->getChannelDefaultEmojiStatuses(hash: [$long|string, $long|string], );
``` ```

View File

@ -17,7 +17,7 @@ Returns fetch the full list of [custom emoji IDs »](https://core.telegram.org/a
| Name | Type | Description | Required | | 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) ### Return type: [EmojiList](/API_docs/types/EmojiList.html)
@ -37,6 +37,6 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start(); $MadelineProto->start();
$EmojiList = $MadelineProto->account->getChannelRestrictedStatusEmojis(hash: [$long, $long], ); $EmojiList = $MadelineProto->account->getChannelRestrictedStatusEmojis(hash: [$long|string, $long|string], );
``` ```

View File

@ -17,7 +17,7 @@ Get all available chat [themes »](https://core.telegram.org/api/themes).
| Name | Type | Description | Required | | 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) ### 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 = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start(); $MadelineProto->start();
$account_Themes = $MadelineProto->account->getChatThemes(hash: [$long, $long], ); $account_Themes = $MadelineProto->account->getChatThemes(hash: [$long|string, $long|string], );
``` ```

View File

@ -17,7 +17,7 @@ Get a set of suggested [custom emoji stickers](https://core.telegram.org/api/cus
| Name | Type | Description | Required | | 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) ### Return type: [EmojiList](/API_docs/types/EmojiList.html)
@ -37,6 +37,6 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start(); $MadelineProto->start();
$EmojiList = $MadelineProto->account->getDefaultBackgroundEmojis(hash: [$long, $long], ); $EmojiList = $MadelineProto->account->getDefaultBackgroundEmojis(hash: [$long|string, $long|string], );
``` ```

View File

@ -17,7 +17,7 @@ Get a list of default suggested [emoji statuses](https://core.telegram.org/api/e
| Name | Type | Description | Required | | 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) ### 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 = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start(); $MadelineProto->start();
$account_EmojiStatuses = $MadelineProto->account->getDefaultEmojiStatuses(hash: [$long, $long], ); $account_EmojiStatuses = $MadelineProto->account->getDefaultEmojiStatuses(hash: [$long|string, $long|string], );
``` ```

View File

@ -17,7 +17,7 @@ Get a set of suggested [custom emoji stickers](https://core.telegram.org/api/cus
| Name | Type | Description | Required | | 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) ### Return type: [EmojiList](/API_docs/types/EmojiList.html)
@ -37,6 +37,6 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start(); $MadelineProto->start();
$EmojiList = $MadelineProto->account->getDefaultGroupPhotoEmojis(hash: [$long, $long], ); $EmojiList = $MadelineProto->account->getDefaultGroupPhotoEmojis(hash: [$long|string, $long|string], );
``` ```

View File

@ -17,7 +17,7 @@ Get a set of suggested [custom emoji stickers](https://core.telegram.org/api/cus
| Name | Type | Description | Required | | 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) ### Return type: [EmojiList](/API_docs/types/EmojiList.html)
@ -37,6 +37,6 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start(); $MadelineProto->start();
$EmojiList = $MadelineProto->account->getDefaultProfilePhotoEmojis(hash: [$long, $long], ); $EmojiList = $MadelineProto->account->getDefaultProfilePhotoEmojis(hash: [$long|string, $long|string], );
``` ```

View File

@ -17,7 +17,7 @@ Get recently used [emoji statuses](https://core.telegram.org/api/emoji-status)
| Name | Type | Description | Required | | 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) ### 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 = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start(); $MadelineProto->start();
$account_EmojiStatuses = $MadelineProto->account->getRecentEmojiStatuses(hash: [$long, $long], ); $account_EmojiStatuses = $MadelineProto->account->getRecentEmojiStatuses(hash: [$long|string, $long|string], );
``` ```

View File

@ -17,7 +17,7 @@ Fetch saved notification sounds
| Name | Type | Description | Required | | 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) ### 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 = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start(); $MadelineProto->start();
$account_SavedRingtones = $MadelineProto->account->getSavedRingtones(hash: [$long, $long], ); $account_SavedRingtones = $MadelineProto->account->getSavedRingtones(hash: [$long|string, $long|string], );
``` ```

View File

@ -18,7 +18,7 @@ Get installed themes
| Name | Type | Description | Required | | 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| |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) ### 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 = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start(); $MadelineProto->start();
$account_Themes = $MadelineProto->account->getThemes(format: 'string', hash: [$long, $long], ); $account_Themes = $MadelineProto->account->getThemes(format: 'string', hash: [$long|string, $long|string], );
``` ```

View File

@ -17,7 +17,7 @@ Returns a list of available [wallpapers](https://core.telegram.org/api/wallpaper
| Name | Type | Description | Required | | 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) ### 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 = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start(); $MadelineProto->start();
$account_WallPapers = $MadelineProto->account->getWallPapers(hash: [$long, $long], ); $account_WallPapers = $MadelineProto->account->getWallPapers(hash: [$long|string, $long|string], );
``` ```

View File

@ -17,7 +17,7 @@ Log out an active [authorized session](https://core.telegram.org/api/auth) by it
| Name | Type | Description | Required | | 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) ### Return type: [Bool](/API_docs/types/Bool.html)
@ -37,6 +37,6 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start(); $MadelineProto->start();
$Bool = $MadelineProto->account->resetAuthorization(hash: [$long, $long], ); $Bool = $MadelineProto->account->resetAuthorization(hash: [$long|string, $long|string], );
``` ```

View File

@ -17,7 +17,7 @@ Log out an active web [telegram login](https://core.telegram.org/widgets/login)
| Name | Type | Description | Required | | 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) ### Return type: [Bool](/API_docs/types/Bool.html)
@ -37,6 +37,6 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start(); $MadelineProto->start();
$Bool = $MadelineProto->account->resetWebAuthorization(hash: [$long, $long], ); $Bool = $MadelineProto->account->resetWebAuthorization(hash: [$long|string, $long|string], );
``` ```

View File

@ -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| |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| |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| |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) ### 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 = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start(); $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], );
``` ```

View File

@ -18,7 +18,7 @@ Returns an array of Telegram user IDs for all contacts (0 if a contact does not
| Name | Type | Description | Required | | 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) ### 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 = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start(); $MadelineProto->start();
$Vector_of_int = $MadelineProto->contacts->getContactIDs(hash: [$long, $long], ); $Vector_of_int = $MadelineProto->contacts->getContactIDs(hash: [$long|string, $long|string], );
``` ```

View File

@ -17,7 +17,7 @@ Returns the current user's contact list.
| Name | Type | Description | Required | | 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) ### 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 = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start(); $MadelineProto->start();
$contacts_Contacts = $MadelineProto->contacts->getContacts(hash: [$long, $long], ); $contacts_Contacts = $MadelineProto->contacts->getContacts(hash: [$long|string, $long|string], );
``` ```

View File

@ -28,7 +28,7 @@ Get most used peers
|bots\_app|[Bool](/API_docs/types/Bool.html) | | Optional| |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| |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| |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) ### 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 = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start(); $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], );
``` ```

View File

@ -17,7 +17,7 @@ Get app-specific configuration, see [client configuration](https://core.telegram
| Name | Type | Description | Required | | 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) ### 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 = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start(); $MadelineProto->start();
$help_AppConfig = $MadelineProto->help->getAppConfig(hash: [$long, $long], ); $help_AppConfig = $MadelineProto->help->getAppConfig(hash: [$long|string, $long|string], );
``` ```

View File

@ -18,7 +18,7 @@ Get name, ISO code, localized name and phone codes/patterns of all available cou
| Name | Type | Description | Required | | Name | Type | Description | Required |
|----------|---------------|-------------|----------| |----------|---------------|-------------|----------|
|lang\_code|[string](/API_docs/types/string.html) | Language code of the current user | Optional| |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) ### 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 = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start(); $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], );
``` ```

View File

@ -17,7 +17,7 @@ Get [passport](https://core.telegram.org/passport) configuration
| Name | Type | Description | Required | | 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) ### 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 = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start(); $MadelineProto->start();
$help_PassportConfig = $MadelineProto->help->getPassportConfig(hash: [$long, $long], ); $help_PassportConfig = $MadelineProto->help->getPassportConfig(hash: [$long|string, $long|string], );
``` ```

View File

@ -17,7 +17,7 @@ Get the set of [accent color palettes »](https://core.telegram.org/api/colors)
| Name | Type | Description | Required | | 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) ### 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 = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start(); $MadelineProto->start();
$help_PeerColors = $MadelineProto->help->getPeerColors(hash: [$long, $long], ); $help_PeerColors = $MadelineProto->help->getPeerColors(hash: [$long|string, $long|string], );
``` ```

View File

@ -17,7 +17,7 @@ Get the set of [accent color palettes »](https://core.telegram.org/api/colors)
| Name | Type | Description | Required | | 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) ### 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 = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start(); $MadelineProto->start();
$help_PeerColors = $MadelineProto->help->getPeerProfileColors(hash: [$long, $long], ); $help_PeerColors = $MadelineProto->help->getPeerProfileColors(hash: [$long|string, $long|string], );
``` ```

View File

@ -15,7 +15,7 @@ redirect_from: /API_docs/methods/help_getTimezonesList.html
| Name | Type | Required | | 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) ### 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 = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start(); $MadelineProto->start();
$help_TimezonesList = $MadelineProto->help->getTimezonesList(hash: [$long, $long], ); $help_TimezonesList = $MadelineProto->help->getTimezonesList(hash: [$long|string, $long|string], );
``` ```

View File

@ -17,7 +17,7 @@ Get all installed stickers
| Name | Type | Description | Required | | 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) ### 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 = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start(); $MadelineProto->start();
$messages_AllStickers = $MadelineProto->messages->getAllStickers(hash: [$long, $long], ); $messages_AllStickers = $MadelineProto->messages->getAllStickers(hash: [$long|string, $long|string], );
``` ```

View File

@ -17,7 +17,7 @@ Returns installed attachment menu [bot mini apps »](https://core.telegram.org/a
| Name | Type | Description | Required | | 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) ### Return type: [AttachMenuBots](/API_docs/types/AttachMenuBots.html)
@ -37,6 +37,6 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start(); $MadelineProto->start();
$AttachMenuBots = $MadelineProto->messages->getAttachMenuBots(hash: [$long, $long], ); $AttachMenuBots = $MadelineProto->messages->getAttachMenuBots(hash: [$long|string, $long|string], );
``` ```

View File

@ -15,7 +15,7 @@ redirect_from: /API_docs/methods/messages_getAvailableEffects.html
| Name | Type | Required | | 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) ### 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 = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start(); $MadelineProto->start();
$messages_AvailableEffects = $MadelineProto->messages->getAvailableEffects(hash: [$long, $long], ); $messages_AvailableEffects = $MadelineProto->messages->getAvailableEffects(hash: [$long|string, $long|string], );
``` ```

View File

@ -17,7 +17,7 @@ Obtain available [message reactions »](https://core.telegram.org/api/reactions)
| Name | Type | Description | Required | | 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) ### 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 = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start(); $MadelineProto->start();
$messages_AvailableReactions = $MadelineProto->messages->getAvailableReactions(hash: [$long, $long], ); $messages_AvailableReactions = $MadelineProto->messages->getAvailableReactions(hash: [$long|string, $long|string], );
``` ```

View File

@ -18,7 +18,7 @@ Obtain information about a [direct link Mini App](https://core.telegram.org/api/
| Name | Type | Description | Required | | 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| |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) ### 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 = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start(); $MadelineProto->start();
$messages_BotApp = $MadelineProto->messages->getBotApp(app: $InputBotApp, hash: [$long, $long], ); $messages_BotApp = $MadelineProto->messages->getBotApp(app: $InputBotApp, hash: [$long|string, $long|string], );
``` ```

View File

@ -15,7 +15,7 @@ redirect_from: /API_docs/methods/messages_getDefaultTagReactions.html
| Name | Type | Required | | 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) ### 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 = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start(); $MadelineProto->start();
$messages_Reactions = $MadelineProto->messages->getDefaultTagReactions(hash: [$long, $long], ); $messages_Reactions = $MadelineProto->messages->getDefaultTagReactions(hash: [$long|string, $long|string], );
``` ```

View File

@ -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\_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| |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| |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) ### 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 = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start(); $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], );
``` ```

View File

@ -17,7 +17,7 @@ Represents a list of [emoji categories](https://core.telegram.org/api/custom-emo
| Name | Type | Description | Required | | 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) ### 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 = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start(); $MadelineProto->start();
$messages_EmojiGroups = $MadelineProto->messages->getEmojiGroups(hash: [$long, $long], ); $messages_EmojiGroups = $MadelineProto->messages->getEmojiGroups(hash: [$long|string, $long|string], );
``` ```

View File

@ -17,7 +17,7 @@ Represents a list of [emoji categories](https://core.telegram.org/api/custom-emo
| Name | Type | Description | Required | | 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) ### 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 = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start(); $MadelineProto->start();
$messages_EmojiGroups = $MadelineProto->messages->getEmojiProfilePhotoGroups(hash: [$long, $long], ); $messages_EmojiGroups = $MadelineProto->messages->getEmojiProfilePhotoGroups(hash: [$long|string, $long|string], );
``` ```

View File

@ -17,7 +17,7 @@ Represents a list of [emoji categories](https://core.telegram.org/api/custom-emo
| Name | Type | Description | Required | | 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) ### 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 = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start(); $MadelineProto->start();
$messages_EmojiGroups = $MadelineProto->messages->getEmojiStatusGroups(hash: [$long, $long], ); $messages_EmojiGroups = $MadelineProto->messages->getEmojiStatusGroups(hash: [$long|string, $long|string], );
``` ```

View File

@ -15,7 +15,7 @@ redirect_from: /API_docs/methods/messages_getEmojiStickerGroups.html
| Name | Type | Required | | 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) ### 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 = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start(); $MadelineProto->start();
$messages_EmojiGroups = $MadelineProto->messages->getEmojiStickerGroups(hash: [$long, $long], ); $messages_EmojiGroups = $MadelineProto->messages->getEmojiStickerGroups(hash: [$long|string, $long|string], );
``` ```

View File

@ -17,7 +17,7 @@ Gets the list of currently installed [custom emoji stickersets](https://core.tel
| Name | Type | Description | Required | | 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) ### 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 = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start(); $MadelineProto->start();
$messages_AllStickers = $MadelineProto->messages->getEmojiStickers(hash: [$long, $long], ); $messages_AllStickers = $MadelineProto->messages->getEmojiStickers(hash: [$long|string, $long|string], );
``` ```

View File

@ -17,7 +17,7 @@ Get faved stickers
| Name | Type | Description | Required | | 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) ### 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 = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start(); $MadelineProto->start();
$messages_FavedStickers = $MadelineProto->messages->getFavedStickers(hash: [$long, $long], ); $messages_FavedStickers = $MadelineProto->messages->getFavedStickers(hash: [$long|string, $long|string], );
``` ```

View File

@ -17,7 +17,7 @@ Gets featured custom emoji stickersets.
| Name | Type | Description | Required | | 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) ### 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 = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start(); $MadelineProto->start();
$messages_FeaturedStickers = $MadelineProto->messages->getFeaturedEmojiStickers(hash: [$long, $long], ); $messages_FeaturedStickers = $MadelineProto->messages->getFeaturedEmojiStickers(hash: [$long|string, $long|string], );
``` ```

View File

@ -17,7 +17,7 @@ Get featured stickers
| Name | Type | Description | Required | | 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) ### 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 = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start(); $MadelineProto->start();
$messages_FeaturedStickers = $MadelineProto->messages->getFeaturedStickers(hash: [$long, $long], ); $messages_FeaturedStickers = $MadelineProto->messages->getFeaturedStickers(hash: [$long|string, $long|string], );
``` ```

View File

@ -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| |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| |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| |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) ### 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 = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start(); $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], );
``` ```

View File

@ -17,7 +17,7 @@ Get installed mask stickers
| Name | Type | Description | Required | | 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) ### 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 = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start(); $MadelineProto->start();
$messages_AllStickers = $MadelineProto->messages->getMaskStickers(hash: [$long, $long], ); $messages_AllStickers = $MadelineProto->messages->getMaskStickers(hash: [$long|string, $long|string], );
``` ```

View File

@ -19,7 +19,7 @@ Method for fetching previously featured stickers
|----------|---------------|-------------|----------| |----------|---------------|-------------|----------|
|offset|[int](/API_docs/types/int.html) | Offset | Optional| |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| |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) ### 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 = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start(); $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], );
``` ```

View File

@ -15,7 +15,7 @@ redirect_from: /API_docs/methods/messages_getQuickReplies.html
| Name | Type | Required | | 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) ### 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 = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start(); $MadelineProto->start();
$messages_QuickReplies = $MadelineProto->messages->getQuickReplies(hash: [$long, $long], ); $messages_QuickReplies = $MadelineProto->messages->getQuickReplies(hash: [$long|string, $long|string], );
``` ```

View File

@ -17,7 +17,7 @@ redirect_from: /API_docs/methods/messages_getQuickReplyMessages.html
|----------|---------------|----------| |----------|---------------|----------|
|shortcut\_id|[int](/API_docs/types/int.html) | Optional| |shortcut\_id|[int](/API_docs/types/int.html) | Optional|
|id|Array of [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) ### 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 = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start(); $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], );
``` ```

View File

@ -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| |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| |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) ### 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 = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start(); $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], );
``` ```

View File

@ -18,7 +18,7 @@ Get recently used [message reactions](https://core.telegram.org/api/reactions)
| Name | Type | Description | Required | | 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| |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) ### 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 = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start(); $MadelineProto->start();
$messages_Reactions = $MadelineProto->messages->getRecentReactions(limit: $int, hash: [$long, $long], ); $messages_Reactions = $MadelineProto->messages->getRecentReactions(limit: $int, hash: [$long|string, $long|string], );
``` ```

View File

@ -18,7 +18,7 @@ Get recent stickers
| Name | Type | Description | Required | | Name | Type | Description | Required |
|----------|---------------|-------------|----------| |----------|---------------|-------------|----------|
|attached|[Bool](/API_docs/types/Bool.html) | Get stickers recently attached to photo or video files | Optional| |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) ### 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 = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start(); $MadelineProto->start();
$messages_RecentStickers = $MadelineProto->messages->getRecentStickers(attached: $Bool, hash: [$long, $long], ); $messages_RecentStickers = $MadelineProto->messages->getRecentStickers(attached: $Bool, hash: [$long|string, $long|string], );
``` ```

View File

@ -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| |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| |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| |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) ### 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 = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start(); $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], );
``` ```

View File

@ -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\_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| |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| |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) ### 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 = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start(); $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], );
``` ```

View File

@ -17,7 +17,7 @@ Get saved GIFs
| Name | Type | Description | Required | | 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) ### 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 = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start(); $MadelineProto->start();
$messages_SavedGifs = $MadelineProto->messages->getSavedGifs(hash: [$long, $long], ); $messages_SavedGifs = $MadelineProto->messages->getSavedGifs(hash: [$long|string, $long|string], );
``` ```

View File

@ -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| |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| |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| |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) ### 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 = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start(); $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], );
``` ```

View File

@ -16,7 +16,7 @@ redirect_from: /API_docs/methods/messages_getSavedReactionTags.html
| Name | Type | Required | | Name | Type | Required |
|----------|---------------|----------| |----------|---------------|----------|
|peer|[Username, chat ID, Update, Message or InputPeer](/API_docs/types/InputPeer.html) | Optional| |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) ### 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 = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start(); $MadelineProto->start();
$messages_SavedReactionTags = $MadelineProto->messages->getSavedReactionTags(peer: $InputPeer, hash: [$long, $long], ); $messages_SavedReactionTags = $MadelineProto->messages->getSavedReactionTags(peer: $InputPeer, hash: [$long|string, $long|string], );
``` ```

View File

@ -18,7 +18,7 @@ Get scheduled messages
| Name | Type | Description | Required | | Name | Type | Description | Required |
|----------|---------------|-------------|----------| |----------|---------------|-------------|----------|
|peer|[Username, chat ID, Update, Message or InputPeer](/API_docs/types/InputPeer.html) | Peer | Optional| |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) ### 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 = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start(); $MadelineProto->start();
$messages_Messages = $MadelineProto->messages->getScheduledHistory(peer: $InputPeer, hash: [$long, $long], ); $messages_Messages = $MadelineProto->messages->getScheduledHistory(peer: $InputPeer, hash: [$long|string, $long|string], );
``` ```

View File

@ -18,7 +18,7 @@ Get info about a stickerset
| Name | Type | Description | Required | | Name | Type | Description | Required |
|----------|---------------|-------------|----------| |----------|---------------|-------------|----------|
|stickerset|[InputStickerSet](/API_docs/types/InputStickerSet.html) | Stickerset | Optional| |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) ### 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 = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start(); $MadelineProto->start();
$messages_StickerSet = $MadelineProto->messages->getStickerSet(stickerset: $InputStickerSet, hash: [$long, $long], ); $messages_StickerSet = $MadelineProto->messages->getStickerSet(stickerset: $InputStickerSet, hash: [$long|string, $long|string], );
``` ```

View File

@ -18,7 +18,7 @@ Get stickers by emoji
| Name | Type | Description | Required | | Name | Type | Description | Required |
|----------|---------------|-------------|----------| |----------|---------------|-------------|----------|
|emoticon|[string](/API_docs/types/string.html) | The emoji | Optional| |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) ### 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 = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start(); $MadelineProto->start();
$messages_Stickers = $MadelineProto->messages->getStickers(emoticon: 'string', hash: [$long, $long], ); $messages_Stickers = $MadelineProto->messages->getStickers(emoticon: 'string', hash: [$long|string, $long|string], );
``` ```

View File

@ -18,7 +18,7 @@ Got popular [message reactions](https://core.telegram.org/api/reactions)
| Name | Type | Description | Required | | 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| |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) ### 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 = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start(); $MadelineProto->start();
$messages_Reactions = $MadelineProto->messages->getTopReactions(limit: $int, hash: [$long, $long], ); $messages_Reactions = $MadelineProto->messages->getTopReactions(limit: $int, hash: [$long|string, $long|string], );
``` ```

View File

@ -18,7 +18,7 @@ Get [instant view](https://instantview.telegram.org) page
| Name | Type | Description | Required | | Name | Type | Description | Required |
|----------|---------------|-------------|----------| |----------|---------------|-------------|----------|
|url|[string](/API_docs/types/string.html) | URL of IV page to fetch | Optional| |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) ### 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 = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start(); $MadelineProto->start();
$messages_WebPage = $MadelineProto->messages->getWebPage(url: 'string', hash: [$long, $long], ); $messages_WebPage = $MadelineProto->messages->getWebPage(url: 'string', hash: [$long|string, $long|string], );
``` ```

View File

@ -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| |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| |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| |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) ### 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 = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start(); $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], );
``` ```

View File

@ -18,7 +18,7 @@ Look for [custom emojis](https://core.telegram.org/api/custom-emoji) associated
| Name | Type | Description | Required | | Name | Type | Description | Required |
|----------|---------------|-------------|----------| |----------|---------------|-------------|----------|
|emoticon|[string](/API_docs/types/string.html) | The emoji | Optional| |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) ### Return type: [EmojiList](/API_docs/types/EmojiList.html)
@ -38,6 +38,6 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start(); $MadelineProto->start();
$EmojiList = $MadelineProto->messages->searchCustomEmoji(emoticon: 'string', hash: [$long, $long], ); $EmojiList = $MadelineProto->messages->searchCustomEmoji(emoticon: 'string', hash: [$long|string, $long|string], );
``` ```

View File

@ -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| |exclude\_featured|[Bool](/API_docs/types/Bool.html) | Exclude featured stickersets from results | Optional|
|q|[string](/API_docs/types/string.html) | Query string | 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) ### 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 = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start(); $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], );
``` ```

View File

@ -19,7 +19,7 @@ Search for stickersets
|----------|---------------|-------------|----------| |----------|---------------|-------------|----------|
|exclude\_featured|[Bool](/API_docs/types/Bool.html) | Exclude featured stickersets from results | Optional| |exclude\_featured|[Bool](/API_docs/types/Bool.html) | Exclude featured stickersets from results | Optional|
|q|[string](/API_docs/types/string.html) | Query string | 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) ### 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 = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start(); $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], );
``` ```

View File

@ -1,6 +1,6 @@
--- ---
title: long 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 nav_exclude: true
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
--- ---

View File

@ -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.

View File

@ -25,7 +25,7 @@ Some tools.
* [`getMaps(): ?int`](#getMaps) * [`getMaps(): ?int`](#getMaps)
* [`getMaxMaps(): ?int`](#getMaxMaps) * [`getMaxMaps(): ?int`](#getMaxMaps)
* [`stringToStream(string $str): \Amp\ByteStream\ReadableBuffer`](#stringToStream) * [`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) * [`randomInt(integer $modulus = 0): int`](#randomInt)
* [`random(integer $length): string`](#random) * [`random(integer $length): string`](#random)
* [`posmod(int $a, int $b): int`](#posmod) * [`posmod(int $a, int $b): int`](#posmod)
@ -119,7 +119,7 @@ Parameters:
### <a name="genVectorHash"></a> `genVectorHash(array $longs): string` ### <a name="genVectorHash"></a> `genVectorHash(array<(string|int)> $longs): string`
Generate MTProto vector hash. Generate MTProto vector hash.
@ -128,7 +128,7 @@ Returns a vector hash.
Parameters: Parameters:
* `$longs`: `array` IDs * `$longs`: `array<(string|int)>` IDs

View File

@ -1,6 +1,6 @@
--- ---
title: long 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 nav_exclude: true
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
--- ---

10
template/long|string.md Normal file
View File

@ -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.