Update docs

This commit is contained in:
Daniil Gentili 2018-08-29 17:18:37 +02:00
parent 20c8ae8cef
commit fbf6344695
164 changed files with 565 additions and 565 deletions

View File

@ -17,7 +17,7 @@ Get channel/supergroup participants (you should use `$MadelineProto->get_pwr_cha
|filter|[ChannelParticipantsFilter](../types/ChannelParticipantsFilter.md) | Member filter | Yes|
|offset|[int](../types/int.md) | Offset | Yes|
|limit|[int](../types/int.md) | Limit | Yes|
|hash|[int](../types/int.md) | $MadelineProto->gen_vector_hash(ids of previously fetched participant IDs) | Yes|
|hash|Array of [int](../types/int.md) | | Optional|
### Return type: [channels\_ChannelParticipants](../types/channels_ChannelParticipants.md)
@ -37,7 +37,7 @@ 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' => int, ]);
$channels_ChannelParticipants = $MadelineProto->channels->getParticipants(['channel' => InputChannel, 'filter' => ChannelParticipantsFilter, 'offset' => int, 'limit' => int, 'hash' => [int, int], ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
@ -49,7 +49,7 @@ POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - channels.getParticipants
* params - `{"channel": InputChannel, "filter": ChannelParticipantsFilter, "offset": int, "limit": int, "hash": int, }`
* params - `{"channel": InputChannel, "filter": ChannelParticipantsFilter, "offset": int, "limit": int, "hash": [int], }`
@ -67,7 +67,7 @@ offset - Json encoded int
limit - Json encoded int
hash - Json encoded int
hash - Json encoded array of int
@ -75,7 +75,7 @@ hash - Json encoded int
Or, if you're into Lua:
```
channels_ChannelParticipants = channels.getParticipants({channel=InputChannel, filter=ChannelParticipantsFilter, offset=int, limit=int, hash=int, })
channels_ChannelParticipants = channels.getParticipants({channel=InputChannel, filter=ChannelParticipantsFilter, offset=int, limit=int, hash={int}, })
```
### Errors this method can return:

View File

@ -13,7 +13,7 @@ Get all contacts
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|hash|[int](../types/int.md) | $ids is the list ids of previously fetched contacts, `$hash = $MadelineProto->gen_vector_hash($ids);` | Yes|
|hash|Array of [int](../types/int.md) | | Optional|
### Return type: [contacts\_Contacts](../types/contacts_Contacts.md)
@ -33,7 +33,7 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$contacts_Contacts = $MadelineProto->contacts->getContacts(['hash' => int, ]);
$contacts_Contacts = $MadelineProto->contacts->getContacts(['hash' => [int, int], ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
@ -46,7 +46,7 @@ POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/contacts.getContacts`
Parameters:
hash - Json encoded int
hash - Json encoded array of int
@ -54,6 +54,6 @@ hash - Json encoded int
Or, if you're into Lua:
```
contacts_Contacts = contacts.getContacts({hash=int, })
contacts_Contacts = contacts.getContacts({hash={int}, })
```

View File

@ -21,7 +21,7 @@ Get most used chats
|channels|[Bool](../types/Bool.md) | Fetch channels and supergroups? | Optional|
|offset|[int](../types/int.md) | Initially 0, then `$offset += $contacts_TopPeers['categories']['count'];` | Yes|
|limit|[int](../types/int.md) | How many results to fetch | Yes|
|hash|[int](../types/int.md) | $MadelineProto->gen_vector_hash(previously fetched peer ids); | Yes|
|hash|Array of [int](../types/int.md) | | Optional|
### Return type: [contacts\_TopPeers](../types/contacts_TopPeers.md)
@ -41,7 +41,7 @@ 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, 'groups' => Bool, 'channels' => Bool, 'offset' => int, 'limit' => int, 'hash' => int, ]);
$contacts_TopPeers = $MadelineProto->contacts->getTopPeers(['correspondents' => Bool, 'bots_pm' => Bool, 'bots_inline' => Bool, 'phone_calls' => Bool, 'groups' => Bool, 'channels' => Bool, 'offset' => int, 'limit' => int, 'hash' => [int, int], ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
@ -70,7 +70,7 @@ offset - Json encoded int
limit - Json encoded int
hash - Json encoded int
hash - Json encoded array of int
@ -78,7 +78,7 @@ hash - Json encoded int
Or, if you're into Lua:
```
contacts_TopPeers = contacts.getTopPeers({correspondents=Bool, bots_pm=Bool, bots_inline=Bool, phone_calls=Bool, groups=Bool, channels=Bool, offset=int, limit=int, hash=int, })
contacts_TopPeers = contacts.getTopPeers({correspondents=Bool, bots_pm=Bool, bots_inline=Bool, phone_calls=Bool, groups=Bool, channels=Bool, offset=int, limit=int, hash={int}, })
```
### Errors this method can return:

View File

@ -13,7 +13,7 @@ Get all stickerpacks
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|hash|[int](../types/int.md) | 0 or $result['hash'] | Yes|
|hash|Array of [int](../types/int.md) | | Optional|
### Return type: [messages\_AllStickers](../types/messages_AllStickers.md)
@ -33,7 +33,7 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => int, ]);
$messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => [int, int], ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
@ -46,7 +46,7 @@ POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getAllStickers`
Parameters:
hash - Json encoded int
hash - Json encoded array of int
@ -54,6 +54,6 @@ hash - Json encoded int
Or, if you're into Lua:
```
messages_AllStickers = messages.getAllStickers({hash=int, })
messages_AllStickers = messages.getAllStickers({hash={int}, })
```

View File

@ -18,7 +18,7 @@ Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https:
|offset\_id|[int](../types/int.md) | end($res['messages'])['id']; | Yes|
|offset\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | end($res['dialogs'])['peer']; | Optional|
|limit|[int](../types/int.md) | Number of dialogs to fetch | Yes|
|hash|[int](../types/int.md) | $MadelineProto->gen_vector_hash(ids of previously fetched dialogs or []) | Yes|
|hash|Array of [int](../types/int.md) | | Optional|
### Return type: [messages\_Dialogs](../types/messages_Dialogs.md)
@ -38,7 +38,7 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$messages_Dialogs = $MadelineProto->messages->getDialogs(['exclude_pinned' => Bool, 'offset_date' => int, 'offset_id' => int, 'offset_peer' => InputPeer, 'limit' => int, 'hash' => int, ]);
$messages_Dialogs = $MadelineProto->messages->getDialogs(['exclude_pinned' => Bool, 'offset_date' => int, 'offset_id' => int, 'offset_peer' => InputPeer, 'limit' => int, 'hash' => [int, int], ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
@ -61,7 +61,7 @@ offset_peer - Json encoded InputPeer
limit - Json encoded int
hash - Json encoded int
hash - Json encoded array of int
@ -69,7 +69,7 @@ hash - Json encoded int
Or, if you're into Lua:
```
messages_Dialogs = messages.getDialogs({exclude_pinned=Bool, offset_date=int, offset_id=int, offset_peer=InputPeer, limit=int, hash=int, })
messages_Dialogs = messages.getDialogs({exclude_pinned=Bool, offset_date=int, offset_id=int, offset_peer=InputPeer, limit=int, hash={int}, })
```
### Errors this method can return:

View File

@ -13,7 +13,7 @@ Get favorite stickers
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|hash|[int](../types/int.md) | 0 or $result['hash'] | Yes|
|hash|Array of [int](../types/int.md) | | Optional|
### Return type: [messages\_FavedStickers](../types/messages_FavedStickers.md)
@ -33,7 +33,7 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$messages_FavedStickers = $MadelineProto->messages->getFavedStickers(['hash' => int, ]);
$messages_FavedStickers = $MadelineProto->messages->getFavedStickers(['hash' => [int, int], ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
@ -45,7 +45,7 @@ POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - messages.getFavedStickers
* params - `{"hash": int, }`
* params - `{"hash": [int], }`
@ -55,7 +55,7 @@ POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getFavedStickers`
Parameters:
hash - Json encoded int
hash - Json encoded array of int
@ -63,6 +63,6 @@ hash - Json encoded int
Or, if you're into Lua:
```
messages_FavedStickers = messages.getFavedStickers({hash=int, })
messages_FavedStickers = messages.getFavedStickers({hash={int}, })
```

View File

@ -13,7 +13,7 @@ Get featured stickers
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|hash|[int](../types/int.md) | 0 or $result['hash'] | Yes|
|hash|Array of [int](../types/int.md) | | Optional|
### Return type: [messages\_FeaturedStickers](../types/messages_FeaturedStickers.md)
@ -33,7 +33,7 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$messages_FeaturedStickers = $MadelineProto->messages->getFeaturedStickers(['hash' => int, ]);
$messages_FeaturedStickers = $MadelineProto->messages->getFeaturedStickers(['hash' => [int, int], ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
@ -46,7 +46,7 @@ POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getFeaturedStickers`
Parameters:
hash - Json encoded int
hash - Json encoded array of int
@ -54,6 +54,6 @@ hash - Json encoded int
Or, if you're into Lua:
```
messages_FeaturedStickers = messages.getFeaturedStickers({hash=int, })
messages_FeaturedStickers = messages.getFeaturedStickers({hash={int}, })
```

View File

@ -20,7 +20,7 @@ Get previous messages of a group
|limit|[int](../types/int.md) | Number of messages to fetch | Yes|
|max\_id|[int](../types/int.md) | Maximum message ID to fetch | Yes|
|min\_id|[int](../types/int.md) | Minumum message ID to fetch | Yes|
|hash|[int](../types/int.md) | hash of old messages, $MadelineProto->gen_vector_hash($parsedMessageIds) | Yes|
|hash|Array of [int](../types/int.md) | | Optional|
### Return type: [messages\_Messages](../types/messages_Messages.md)
@ -40,7 +40,7 @@ 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' => int, ]);
$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' => [int, int], ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
@ -67,7 +67,7 @@ max_id - Json encoded int
min_id - Json encoded int
hash - Json encoded int
hash - Json encoded array of int
@ -75,7 +75,7 @@ hash - Json encoded int
Or, if you're into Lua:
```
messages_Messages = messages.getHistory({peer=InputPeer, offset_id=int, offset_date=int, add_offset=int, limit=int, max_id=int, min_id=int, hash=int, })
messages_Messages = messages.getHistory({peer=InputPeer, offset_id=int, offset_date=int, add_offset=int, limit=int, max_id=int, min_id=int, hash={int}, })
```
### Errors this method can return:

View File

@ -13,7 +13,7 @@ Get masks
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|hash|[int](../types/int.md) | 0 or $result['hash'] | Yes|
|hash|Array of [int](../types/int.md) | | Optional|
### Return type: [messages\_AllStickers](../types/messages_AllStickers.md)
@ -33,7 +33,7 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$messages_AllStickers = $MadelineProto->messages->getMaskStickers(['hash' => int, ]);
$messages_AllStickers = $MadelineProto->messages->getMaskStickers(['hash' => [int, int], ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
@ -46,7 +46,7 @@ POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getMaskStickers`
Parameters:
hash - Json encoded int
hash - Json encoded array of int
@ -54,6 +54,6 @@ hash - Json encoded int
Or, if you're into Lua:
```
messages_AllStickers = messages.getMaskStickers({hash=int, })
messages_AllStickers = messages.getMaskStickers({hash={int}, })
```

View File

@ -15,7 +15,7 @@ Get recent locations
|----------|---------------|-------------|----------|
|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | The chat where to search locations | Optional|
|limit|[int](../types/int.md) | Number of results to return | Yes|
|hash|[int](../types/int.md) | $MadelineProto->gen_vector_hash(ids of previously fetched locations, or []); | Yes|
|hash|Array of [int](../types/int.md) | | Optional|
### Return type: [messages\_Messages](../types/messages_Messages.md)
@ -35,7 +35,7 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$messages_Messages = $MadelineProto->messages->getRecentLocations(['peer' => InputPeer, 'limit' => int, 'hash' => int, ]);
$messages_Messages = $MadelineProto->messages->getRecentLocations(['peer' => InputPeer, 'limit' => int, 'hash' => [int, int], ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
@ -47,7 +47,7 @@ POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - messages.getRecentLocations
* params - `{"peer": InputPeer, "limit": int, "hash": int, }`
* params - `{"peer": InputPeer, "limit": int, "hash": [int], }`
@ -61,7 +61,7 @@ peer - Json encoded InputPeer
limit - Json encoded int
hash - Json encoded int
hash - Json encoded array of int
@ -69,6 +69,6 @@ hash - Json encoded int
Or, if you're into Lua:
```
messages_Messages = messages.getRecentLocations({peer=InputPeer, limit=int, hash=int, })
messages_Messages = messages.getRecentLocations({peer=InputPeer, limit=int, hash={int}, })
```

View File

@ -14,7 +14,7 @@ Get recent stickers
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|attached|[Bool](../types/Bool.md) | Get stickers attached to image? | Optional|
|hash|[int](../types/int.md) | 0 or $result['hash'] | Yes|
|hash|Array of [int](../types/int.md) | | Optional|
### Return type: [messages\_RecentStickers](../types/messages_RecentStickers.md)
@ -34,7 +34,7 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$messages_RecentStickers = $MadelineProto->messages->getRecentStickers(['attached' => Bool, 'hash' => int, ]);
$messages_RecentStickers = $MadelineProto->messages->getRecentStickers(['attached' => Bool, 'hash' => [int, int], ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
@ -49,7 +49,7 @@ Parameters:
attached - Json encoded Bool
hash - Json encoded int
hash - Json encoded array of int
@ -57,6 +57,6 @@ hash - Json encoded int
Or, if you're into Lua:
```
messages_RecentStickers = messages.getRecentStickers({attached=Bool, hash=int, })
messages_RecentStickers = messages.getRecentStickers({attached=Bool, hash={int}, })
```

View File

@ -13,7 +13,7 @@ Get saved gifs
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|hash|[int](../types/int.md) | 0 or $result['hash'] | Yes|
|hash|Array of [int](../types/int.md) | | Optional|
### Return type: [messages\_SavedGifs](../types/messages_SavedGifs.md)
@ -33,7 +33,7 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$messages_SavedGifs = $MadelineProto->messages->getSavedGifs(['hash' => int, ]);
$messages_SavedGifs = $MadelineProto->messages->getSavedGifs(['hash' => [int, int], ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
@ -46,7 +46,7 @@ POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getSavedGifs`
Parameters:
hash - Json encoded int
hash - Json encoded array of int
@ -54,6 +54,6 @@ hash - Json encoded int
Or, if you're into Lua:
```
messages_SavedGifs = messages.getSavedGifs({hash=int, })
messages_SavedGifs = messages.getSavedGifs({hash={int}, })
```

View File

@ -14,7 +14,7 @@ Get stickers
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|emoticon|[string](../types/string.md) | Search by emoji | Yes|
|hash|[int](../types/int.md) | $MadelineProto->gen_vector_hash(ids of previously fetched stickers, or []); | Yes|
|hash|Array of [int](../types/int.md) | | Optional|
### Return type: [messages\_Stickers](../types/messages_Stickers.md)
@ -34,7 +34,7 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$messages_Stickers = $MadelineProto->messages->getStickers(['emoticon' => 'string', 'hash' => int, ]);
$messages_Stickers = $MadelineProto->messages->getStickers(['emoticon' => 'string', 'hash' => [int, int], ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
@ -46,7 +46,7 @@ POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - messages.getStickers
* params - `{"emoticon": "string", "hash": int, }`
* params - `{"emoticon": "string", "hash": [int], }`
@ -58,7 +58,7 @@ Parameters:
emoticon - Json encoded string
hash - Json encoded int
hash - Json encoded array of int
@ -66,6 +66,6 @@ hash - Json encoded int
Or, if you're into Lua:
```
messages_Stickers = messages.getStickers({emoticon='string', hash=int, })
messages_Stickers = messages.getStickers({emoticon='string', hash={int}, })
```

View File

@ -14,7 +14,7 @@ Get webpage preview
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|url|[string](../types/string.md) | URL | Yes|
|hash|[int](../types/int.md) | 0 or $result['hash'] | Yes|
|hash|Array of [int](../types/int.md) | | Optional|
### Return type: [WebPage](../types/WebPage.md)
@ -34,7 +34,7 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$WebPage = $MadelineProto->messages->getWebPage(['url' => 'string', 'hash' => int, ]);
$WebPage = $MadelineProto->messages->getWebPage(['url' => 'string', 'hash' => [int, int], ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
@ -49,7 +49,7 @@ Parameters:
url - Json encoded string
hash - Json encoded int
hash - Json encoded array of int
@ -57,7 +57,7 @@ hash - Json encoded int
Or, if you're into Lua:
```
WebPage = messages.getWebPage({url='string', hash=int, })
WebPage = messages.getWebPage({url='string', hash={int}, })
```
### Errors this method can return:

View File

@ -24,7 +24,7 @@ Search peers or messages
|limit|[int](../types/int.md) | Number of results to return | Yes|
|max\_id|[int](../types/int.md) | Maximum message id to return | Yes|
|min\_id|[int](../types/int.md) | Minumum message id to return | Yes|
|hash|[int](../types/int.md) | $MadelineProto->gen_vector_hash(ids of previously fetched messages); | Yes|
|hash|Array of [int](../types/int.md) | | Optional|
### Return type: [messages\_Messages](../types/messages_Messages.md)
@ -44,7 +44,7 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$messages_Messages = $MadelineProto->messages->search(['peer' => InputPeer, 'q' => 'string', 'from_id' => InputUser, 'filter' => MessagesFilter, 'min_date' => int, 'max_date' => int, 'offset_id' => int, 'add_offset' => int, 'limit' => int, 'max_id' => int, 'min_id' => int, 'hash' => int, ]);
$messages_Messages = $MadelineProto->messages->search(['peer' => InputPeer, 'q' => 'string', 'from_id' => InputUser, 'filter' => MessagesFilter, 'min_date' => int, 'max_date' => int, 'offset_id' => int, 'add_offset' => int, 'limit' => int, 'max_id' => int, 'min_id' => int, 'hash' => [int, int], ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
@ -79,7 +79,7 @@ max_id - Json encoded int
min_id - Json encoded int
hash - Json encoded int
hash - Json encoded array of int
@ -87,7 +87,7 @@ hash - Json encoded int
Or, if you're into Lua:
```
messages_Messages = messages.search({peer=InputPeer, q='string', from_id=InputUser, filter=MessagesFilter, min_date=int, max_date=int, offset_id=int, add_offset=int, limit=int, max_id=int, min_id=int, hash=int, })
messages_Messages = messages.search({peer=InputPeer, q='string', from_id=InputUser, filter=MessagesFilter, min_date=int, max_date=int, offset_id=int, add_offset=int, limit=int, max_id=int, min_id=int, hash={int}, })
```
### Errors this method can return:

View File

@ -15,7 +15,7 @@ Find a sticker set
|----------|---------------|-------------|----------|
|exclude\_featured|[Bool](../types/Bool.md) | Exclude featured sticker sets from the search? | Optional|
|q|[string](../types/string.md) | The search query | Yes|
|hash|[int](../types/int.md) | $MadelineProto->gen_vector_hash(ids of previously searched stickers, or []); | Yes|
|hash|Array of [int](../types/int.md) | | Optional|
### Return type: [messages\_FoundStickerSets](../types/messages_FoundStickerSets.md)
@ -35,7 +35,7 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$messages_FoundStickerSets = $MadelineProto->messages->searchStickerSets(['exclude_featured' => Bool, 'q' => 'string', 'hash' => int, ]);
$messages_FoundStickerSets = $MadelineProto->messages->searchStickerSets(['exclude_featured' => Bool, 'q' => 'string', 'hash' => [int, int], ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
@ -47,7 +47,7 @@ POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - messages.searchStickerSets
* params - `{"exclude_featured": Bool, "q": "string", "hash": int, }`
* params - `{"exclude_featured": Bool, "q": "string", "hash": [int], }`
@ -61,7 +61,7 @@ exclude_featured - Json encoded Bool
q - Json encoded string
hash - Json encoded int
hash - Json encoded array of int
@ -69,6 +69,6 @@ hash - Json encoded int
Or, if you're into Lua:
```
messages_FoundStickerSets = messages.searchStickerSets({exclude_featured=Bool, q='string', hash=int, })
messages_FoundStickerSets = messages.searchStickerSets({exclude_featured=Bool, q='string', hash={int}, })
```

View File

@ -13,7 +13,7 @@ Get all contacts
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|hash|[string](../types/string.md) | $MadelineProto->gen_vector_hash(previously fetched user IDs); | Yes|
|hash|[string](../types/string.md) | List of contact user IDs you already cached | Yes|
### Return type: [contacts\_Contacts](../types/contacts_Contacts.md)

View File

@ -13,7 +13,7 @@ Get all contacts
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|hash|[string](../types/string.md) | $MadelineProto->gen_vector_hash(previously fetched user IDs); | Yes|
|hash|[string](../types/string.md) | List of contact user IDs you already cached | Yes|
### Return type: [contacts\_Contacts](../types/contacts_Contacts.md)

View File

@ -14,7 +14,7 @@ Get stickers
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|emoticon|[string](../types/string.md) | Search by emoji | Yes|
|hash|[string](../types/string.md) | 0 or $MadelineProto->gen_vector_hash(previously fetched sticker IDs) | Yes|
|hash|[string](../types/string.md) | previously fetched sticker IDs | Yes|
### Return type: [messages\_Stickers](../types/messages_Stickers.md)

View File

@ -13,7 +13,7 @@ Get all contacts
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|hash|[string](../types/string.md) | $MadelineProto->gen_vector_hash(previously fetched user IDs); | Yes|
|hash|[string](../types/string.md) | List of contact user IDs you already cached | Yes|
### Return type: [contacts\_Contacts](../types/contacts_Contacts.md)

View File

@ -14,7 +14,7 @@ Get stickers
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|emoticon|[string](../types/string.md) | Search by emoji | Yes|
|hash|[string](../types/string.md) | 0 or $MadelineProto->gen_vector_hash(previously fetched sticker IDs) | Yes|
|hash|[string](../types/string.md) | previously fetched sticker IDs | Yes|
### Return type: [messages\_Stickers](../types/messages_Stickers.md)

View File

@ -13,7 +13,7 @@ Get all contacts
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|hash|[string](../types/string.md) | $MadelineProto->gen_vector_hash(previously fetched user IDs); | Yes|
|hash|[string](../types/string.md) | List of contact user IDs you already cached | Yes|
### Return type: [contacts\_Contacts](../types/contacts_Contacts.md)

View File

@ -14,7 +14,7 @@ Get stickers
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|emoticon|[string](../types/string.md) | Search by emoji | Yes|
|hash|[string](../types/string.md) | 0 or $MadelineProto->gen_vector_hash(previously fetched sticker IDs) | Yes|
|hash|[string](../types/string.md) | previously fetched sticker IDs | Yes|
### Return type: [messages\_Stickers](../types/messages_Stickers.md)

View File

@ -13,7 +13,7 @@ Get all contacts
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|hash|[string](../types/string.md) | $MadelineProto->gen_vector_hash(previously fetched user IDs); | Yes|
|hash|[string](../types/string.md) | List of contact user IDs you already cached | Yes|
### Return type: [contacts\_Contacts](../types/contacts_Contacts.md)

View File

@ -14,7 +14,7 @@ Get stickers
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|emoticon|[string](../types/string.md) | Search by emoji | Yes|
|hash|[string](../types/string.md) | 0 or $MadelineProto->gen_vector_hash(previously fetched sticker IDs) | Yes|
|hash|[string](../types/string.md) | previously fetched sticker IDs | Yes|
### Return type: [messages\_Stickers](../types/messages_Stickers.md)

View File

@ -13,7 +13,7 @@ Get all contacts
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|hash|[string](../types/string.md) | $MadelineProto->gen_vector_hash(previously fetched user IDs); | Yes|
|hash|[string](../types/string.md) | List of contact user IDs you already cached | Yes|
### Return type: [contacts\_Contacts](../types/contacts_Contacts.md)

View File

@ -14,7 +14,7 @@ Get stickers
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|emoticon|[string](../types/string.md) | Search by emoji | Yes|
|hash|[string](../types/string.md) | 0 or $MadelineProto->gen_vector_hash(previously fetched sticker IDs) | Yes|
|hash|[string](../types/string.md) | previously fetched sticker IDs | Yes|
### Return type: [messages\_Stickers](../types/messages_Stickers.md)

View File

@ -13,7 +13,7 @@ Get all contacts
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|hash|[string](../types/string.md) | $MadelineProto->gen_vector_hash(previously fetched user IDs); | Yes|
|hash|[string](../types/string.md) | List of contact user IDs you already cached | Yes|
### Return type: [contacts\_Contacts](../types/contacts_Contacts.md)

View File

@ -14,7 +14,7 @@ Get stickers
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|emoticon|[string](../types/string.md) | Search by emoji | Yes|
|hash|[string](../types/string.md) | 0 or $MadelineProto->gen_vector_hash(previously fetched sticker IDs) | Yes|
|hash|[string](../types/string.md) | previously fetched sticker IDs | Yes|
### Return type: [messages\_Stickers](../types/messages_Stickers.md)

View File

@ -13,7 +13,7 @@ Get all contacts
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|hash|[string](../types/string.md) | $MadelineProto->gen_vector_hash(previously fetched user IDs); | Yes|
|hash|[string](../types/string.md) | List of contact user IDs you already cached | Yes|
### Return type: [contacts\_Contacts](../types/contacts_Contacts.md)

View File

@ -14,7 +14,7 @@ Get stickers
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|emoticon|[string](../types/string.md) | Search by emoji | Yes|
|hash|[string](../types/string.md) | 0 or $MadelineProto->gen_vector_hash(previously fetched sticker IDs) | Yes|
|hash|[string](../types/string.md) | previously fetched sticker IDs | Yes|
### Return type: [messages\_Stickers](../types/messages_Stickers.md)

View File

@ -13,7 +13,7 @@ Get all contacts
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|hash|[string](../types/string.md) | $MadelineProto->gen_vector_hash(previously fetched user IDs); | Yes|
|hash|[string](../types/string.md) | List of contact user IDs you already cached | Yes|
### Return type: [contacts\_Contacts](../types/contacts_Contacts.md)

View File

@ -14,7 +14,7 @@ Get stickers
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|emoticon|[string](../types/string.md) | Search by emoji | Yes|
|hash|[string](../types/string.md) | 0 or $MadelineProto->gen_vector_hash(previously fetched sticker IDs) | Yes|
|hash|[string](../types/string.md) | previously fetched sticker IDs | Yes|
### Return type: [messages\_Stickers](../types/messages_Stickers.md)

View File

@ -13,7 +13,7 @@ Get all contacts
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|hash|[string](../types/string.md) | $MadelineProto->gen_vector_hash(previously fetched user IDs); | Yes|
|hash|[string](../types/string.md) | List of contact user IDs you already cached | Yes|
### Return type: [contacts\_Contacts](../types/contacts_Contacts.md)

View File

@ -13,7 +13,7 @@ Get all stickerpacks
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|hash|[int](../types/int.md) | 0 or $result['hash'] | Yes|
|hash|Array of [int](../types/int.md) | | Optional|
### Return type: [messages\_AllStickers](../types/messages_AllStickers.md)
@ -33,7 +33,7 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => int, ]);
$messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => [int, int], ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
@ -46,7 +46,7 @@ POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getAllStickers`
Parameters:
hash - Json encoded int
hash - Json encoded array of int
@ -54,6 +54,6 @@ hash - Json encoded int
Or, if you're into Lua:
```
messages_AllStickers = messages.getAllStickers({hash=int, })
messages_AllStickers = messages.getAllStickers({hash={int}, })
```

View File

@ -14,7 +14,7 @@ Get stickers
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|emoticon|[string](../types/string.md) | Search by emoji | Yes|
|hash|[string](../types/string.md) | 0 or $MadelineProto->gen_vector_hash(previously fetched sticker IDs) | Yes|
|hash|[string](../types/string.md) | previously fetched sticker IDs | Yes|
### Return type: [messages\_Stickers](../types/messages_Stickers.md)

View File

@ -13,7 +13,7 @@ Get all contacts
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|hash|[string](../types/string.md) | $MadelineProto->gen_vector_hash(previously fetched user IDs); | Yes|
|hash|[string](../types/string.md) | List of contact user IDs you already cached | Yes|
### Return type: [contacts\_Contacts](../types/contacts_Contacts.md)

View File

@ -13,7 +13,7 @@ Get all stickerpacks
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|hash|[int](../types/int.md) | 0 or $result['hash'] | Yes|
|hash|Array of [int](../types/int.md) | | Optional|
### Return type: [messages\_AllStickers](../types/messages_AllStickers.md)
@ -33,7 +33,7 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => int, ]);
$messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => [int, int], ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
@ -46,7 +46,7 @@ POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getAllStickers`
Parameters:
hash - Json encoded int
hash - Json encoded array of int
@ -54,6 +54,6 @@ hash - Json encoded int
Or, if you're into Lua:
```
messages_AllStickers = messages.getAllStickers({hash=int, })
messages_AllStickers = messages.getAllStickers({hash={int}, })
```

View File

@ -13,7 +13,7 @@ Get saved gifs
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|hash|[int](../types/int.md) | 0 or $result['hash'] | Yes|
|hash|Array of [int](../types/int.md) | | Optional|
### Return type: [messages\_SavedGifs](../types/messages_SavedGifs.md)
@ -33,7 +33,7 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$messages_SavedGifs = $MadelineProto->messages->getSavedGifs(['hash' => int, ]);
$messages_SavedGifs = $MadelineProto->messages->getSavedGifs(['hash' => [int, int], ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
@ -46,7 +46,7 @@ POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getSavedGifs`
Parameters:
hash - Json encoded int
hash - Json encoded array of int
@ -54,6 +54,6 @@ hash - Json encoded int
Or, if you're into Lua:
```
messages_SavedGifs = messages.getSavedGifs({hash=int, })
messages_SavedGifs = messages.getSavedGifs({hash={int}, })
```

View File

@ -14,7 +14,7 @@ Get stickers
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|emoticon|[string](../types/string.md) | Search by emoji | Yes|
|hash|[string](../types/string.md) | 0 or $MadelineProto->gen_vector_hash(previously fetched sticker IDs) | Yes|
|hash|[string](../types/string.md) | previously fetched sticker IDs | Yes|
### Return type: [messages\_Stickers](../types/messages_Stickers.md)

View File

@ -13,7 +13,7 @@ Get all contacts
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|hash|[string](../types/string.md) | $MadelineProto->gen_vector_hash(previously fetched user IDs); | Yes|
|hash|[string](../types/string.md) | List of contact user IDs you already cached | Yes|
### Return type: [contacts\_Contacts](../types/contacts_Contacts.md)

View File

@ -13,7 +13,7 @@ Get all stickerpacks
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|hash|[int](../types/int.md) | 0 or $result['hash'] | Yes|
|hash|Array of [int](../types/int.md) | | Optional|
### Return type: [messages\_AllStickers](../types/messages_AllStickers.md)
@ -33,7 +33,7 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => int, ]);
$messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => [int, int], ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
@ -46,7 +46,7 @@ POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getAllStickers`
Parameters:
hash - Json encoded int
hash - Json encoded array of int
@ -54,6 +54,6 @@ hash - Json encoded int
Or, if you're into Lua:
```
messages_AllStickers = messages.getAllStickers({hash=int, })
messages_AllStickers = messages.getAllStickers({hash={int}, })
```

View File

@ -13,7 +13,7 @@ Get saved gifs
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|hash|[int](../types/int.md) | 0 or $result['hash'] | Yes|
|hash|Array of [int](../types/int.md) | | Optional|
### Return type: [messages\_SavedGifs](../types/messages_SavedGifs.md)
@ -33,7 +33,7 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$messages_SavedGifs = $MadelineProto->messages->getSavedGifs(['hash' => int, ]);
$messages_SavedGifs = $MadelineProto->messages->getSavedGifs(['hash' => [int, int], ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
@ -46,7 +46,7 @@ POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getSavedGifs`
Parameters:
hash - Json encoded int
hash - Json encoded array of int
@ -54,6 +54,6 @@ hash - Json encoded int
Or, if you're into Lua:
```
messages_SavedGifs = messages.getSavedGifs({hash=int, })
messages_SavedGifs = messages.getSavedGifs({hash={int}, })
```

View File

@ -14,7 +14,7 @@ Get stickers
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|emoticon|[string](../types/string.md) | Search by emoji | Yes|
|hash|[string](../types/string.md) | 0 or $MadelineProto->gen_vector_hash(previously fetched sticker IDs) | Yes|
|hash|[string](../types/string.md) | previously fetched sticker IDs | Yes|
### Return type: [messages\_Stickers](../types/messages_Stickers.md)

View File

@ -13,7 +13,7 @@ Get all contacts
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|hash|[string](../types/string.md) | $MadelineProto->gen_vector_hash(previously fetched user IDs); | Yes|
|hash|[string](../types/string.md) | List of contact user IDs you already cached | Yes|
### Return type: [contacts\_Contacts](../types/contacts_Contacts.md)

View File

@ -13,7 +13,7 @@ Get all stickerpacks
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|hash|[int](../types/int.md) | 0 or $result['hash'] | Yes|
|hash|Array of [int](../types/int.md) | | Optional|
### Return type: [messages\_AllStickers](../types/messages_AllStickers.md)
@ -33,7 +33,7 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => int, ]);
$messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => [int, int], ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
@ -46,7 +46,7 @@ POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getAllStickers`
Parameters:
hash - Json encoded int
hash - Json encoded array of int
@ -54,6 +54,6 @@ hash - Json encoded int
Or, if you're into Lua:
```
messages_AllStickers = messages.getAllStickers({hash=int, })
messages_AllStickers = messages.getAllStickers({hash={int}, })
```

View File

@ -13,7 +13,7 @@ Get saved gifs
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|hash|[int](../types/int.md) | 0 or $result['hash'] | Yes|
|hash|Array of [int](../types/int.md) | | Optional|
### Return type: [messages\_SavedGifs](../types/messages_SavedGifs.md)
@ -33,7 +33,7 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$messages_SavedGifs = $MadelineProto->messages->getSavedGifs(['hash' => int, ]);
$messages_SavedGifs = $MadelineProto->messages->getSavedGifs(['hash' => [int, int], ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
@ -46,7 +46,7 @@ POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getSavedGifs`
Parameters:
hash - Json encoded int
hash - Json encoded array of int
@ -54,6 +54,6 @@ hash - Json encoded int
Or, if you're into Lua:
```
messages_SavedGifs = messages.getSavedGifs({hash=int, })
messages_SavedGifs = messages.getSavedGifs({hash={int}, })
```

View File

@ -14,7 +14,7 @@ Get stickers
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|emoticon|[string](../types/string.md) | Search by emoji | Yes|
|hash|[string](../types/string.md) | 0 or $MadelineProto->gen_vector_hash(previously fetched sticker IDs) | Yes|
|hash|[string](../types/string.md) | previously fetched sticker IDs | Yes|
### Return type: [messages\_Stickers](../types/messages_Stickers.md)

View File

@ -13,7 +13,7 @@ Get all contacts
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|hash|[string](../types/string.md) | $MadelineProto->gen_vector_hash(previously fetched user IDs); | Yes|
|hash|[string](../types/string.md) | List of contact user IDs you already cached | Yes|
### Return type: [contacts\_Contacts](../types/contacts_Contacts.md)

View File

@ -20,7 +20,7 @@ Get most used chats
|channels|[Bool](../types/Bool.md) | Fetch channels and supergroups? | Optional|
|offset|[int](../types/int.md) | Initially 0, then `$offset += $contacts_TopPeers['categories']['count'];` | Yes|
|limit|[int](../types/int.md) | How many results to fetch | Yes|
|hash|[int](../types/int.md) | $MadelineProto->gen_vector_hash(previously fetched peer ids); | Yes|
|hash|Array of [int](../types/int.md) | | Optional|
### Return type: [contacts\_TopPeers](../types/contacts_TopPeers.md)
@ -40,7 +40,7 @@ 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, 'groups' => Bool, 'channels' => Bool, 'offset' => int, 'limit' => int, 'hash' => int, ]);
$contacts_TopPeers = $MadelineProto->contacts->getTopPeers(['correspondents' => Bool, 'bots_pm' => Bool, 'bots_inline' => Bool, 'groups' => Bool, 'channels' => Bool, 'offset' => int, 'limit' => int, 'hash' => [int, int], ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
@ -67,7 +67,7 @@ offset - Json encoded int
limit - Json encoded int
hash - Json encoded int
hash - Json encoded array of int
@ -75,7 +75,7 @@ hash - Json encoded int
Or, if you're into Lua:
```
contacts_TopPeers = contacts.getTopPeers({correspondents=Bool, bots_pm=Bool, bots_inline=Bool, groups=Bool, channels=Bool, offset=int, limit=int, hash=int, })
contacts_TopPeers = contacts.getTopPeers({correspondents=Bool, bots_pm=Bool, bots_inline=Bool, groups=Bool, channels=Bool, offset=int, limit=int, hash={int}, })
```
### Errors this method can return:

View File

@ -13,7 +13,7 @@ Get all stickerpacks
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|hash|[int](../types/int.md) | 0 or $result['hash'] | Yes|
|hash|Array of [int](../types/int.md) | | Optional|
### Return type: [messages\_AllStickers](../types/messages_AllStickers.md)
@ -33,7 +33,7 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => int, ]);
$messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => [int, int], ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
@ -46,7 +46,7 @@ POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getAllStickers`
Parameters:
hash - Json encoded int
hash - Json encoded array of int
@ -54,6 +54,6 @@ hash - Json encoded int
Or, if you're into Lua:
```
messages_AllStickers = messages.getAllStickers({hash=int, })
messages_AllStickers = messages.getAllStickers({hash={int}, })
```

View File

@ -13,7 +13,7 @@ Get saved gifs
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|hash|[int](../types/int.md) | 0 or $result['hash'] | Yes|
|hash|Array of [int](../types/int.md) | | Optional|
### Return type: [messages\_SavedGifs](../types/messages_SavedGifs.md)
@ -33,7 +33,7 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$messages_SavedGifs = $MadelineProto->messages->getSavedGifs(['hash' => int, ]);
$messages_SavedGifs = $MadelineProto->messages->getSavedGifs(['hash' => [int, int], ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
@ -46,7 +46,7 @@ POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getSavedGifs`
Parameters:
hash - Json encoded int
hash - Json encoded array of int
@ -54,6 +54,6 @@ hash - Json encoded int
Or, if you're into Lua:
```
messages_SavedGifs = messages.getSavedGifs({hash=int, })
messages_SavedGifs = messages.getSavedGifs({hash={int}, })
```

View File

@ -14,7 +14,7 @@ Get stickers
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|emoticon|[string](../types/string.md) | Search by emoji | Yes|
|hash|[string](../types/string.md) | 0 or $MadelineProto->gen_vector_hash(previously fetched sticker IDs) | Yes|
|hash|[string](../types/string.md) | previously fetched sticker IDs | Yes|
### Return type: [messages\_Stickers](../types/messages_Stickers.md)

View File

@ -13,7 +13,7 @@ Get all contacts
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|hash|[string](../types/string.md) | $MadelineProto->gen_vector_hash(previously fetched user IDs); | Yes|
|hash|[string](../types/string.md) | List of contact user IDs you already cached | Yes|
### Return type: [contacts\_Contacts](../types/contacts_Contacts.md)

View File

@ -20,7 +20,7 @@ Get most used chats
|channels|[Bool](../types/Bool.md) | Fetch channels and supergroups? | Optional|
|offset|[int](../types/int.md) | Initially 0, then `$offset += $contacts_TopPeers['categories']['count'];` | Yes|
|limit|[int](../types/int.md) | How many results to fetch | Yes|
|hash|[int](../types/int.md) | $MadelineProto->gen_vector_hash(previously fetched peer ids); | Yes|
|hash|Array of [int](../types/int.md) | | Optional|
### Return type: [contacts\_TopPeers](../types/contacts_TopPeers.md)
@ -40,7 +40,7 @@ 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, 'groups' => Bool, 'channels' => Bool, 'offset' => int, 'limit' => int, 'hash' => int, ]);
$contacts_TopPeers = $MadelineProto->contacts->getTopPeers(['correspondents' => Bool, 'bots_pm' => Bool, 'bots_inline' => Bool, 'groups' => Bool, 'channels' => Bool, 'offset' => int, 'limit' => int, 'hash' => [int, int], ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
@ -67,7 +67,7 @@ offset - Json encoded int
limit - Json encoded int
hash - Json encoded int
hash - Json encoded array of int
@ -75,7 +75,7 @@ hash - Json encoded int
Or, if you're into Lua:
```
contacts_TopPeers = contacts.getTopPeers({correspondents=Bool, bots_pm=Bool, bots_inline=Bool, groups=Bool, channels=Bool, offset=int, limit=int, hash=int, })
contacts_TopPeers = contacts.getTopPeers({correspondents=Bool, bots_pm=Bool, bots_inline=Bool, groups=Bool, channels=Bool, offset=int, limit=int, hash={int}, })
```
### Errors this method can return:

View File

@ -13,7 +13,7 @@ Get all stickerpacks
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|hash|[int](../types/int.md) | 0 or $result['hash'] | Yes|
|hash|Array of [int](../types/int.md) | | Optional|
### Return type: [messages\_AllStickers](../types/messages_AllStickers.md)
@ -33,7 +33,7 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => int, ]);
$messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => [int, int], ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
@ -46,7 +46,7 @@ POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getAllStickers`
Parameters:
hash - Json encoded int
hash - Json encoded array of int
@ -54,6 +54,6 @@ hash - Json encoded int
Or, if you're into Lua:
```
messages_AllStickers = messages.getAllStickers({hash=int, })
messages_AllStickers = messages.getAllStickers({hash={int}, })
```

View File

@ -13,7 +13,7 @@ Get featured stickers
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|hash|[int](../types/int.md) | 0 or $result['hash'] | Yes|
|hash|Array of [int](../types/int.md) | | Optional|
### Return type: [messages\_FeaturedStickers](../types/messages_FeaturedStickers.md)
@ -33,7 +33,7 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$messages_FeaturedStickers = $MadelineProto->messages->getFeaturedStickers(['hash' => int, ]);
$messages_FeaturedStickers = $MadelineProto->messages->getFeaturedStickers(['hash' => [int, int], ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
@ -46,7 +46,7 @@ POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getFeaturedStickers`
Parameters:
hash - Json encoded int
hash - Json encoded array of int
@ -54,6 +54,6 @@ hash - Json encoded int
Or, if you're into Lua:
```
messages_FeaturedStickers = messages.getFeaturedStickers({hash=int, })
messages_FeaturedStickers = messages.getFeaturedStickers({hash={int}, })
```

View File

@ -13,7 +13,7 @@ Get recent stickers
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|hash|[int](../types/int.md) | 0 or $result['hash'] | Yes|
|hash|Array of [int](../types/int.md) | | Optional|
### Return type: [messages\_RecentStickers](../types/messages_RecentStickers.md)
@ -33,7 +33,7 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$messages_RecentStickers = $MadelineProto->messages->getRecentStickers(['hash' => int, ]);
$messages_RecentStickers = $MadelineProto->messages->getRecentStickers(['hash' => [int, int], ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
@ -46,7 +46,7 @@ POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getRecentStickers`
Parameters:
hash - Json encoded int
hash - Json encoded array of int
@ -54,6 +54,6 @@ hash - Json encoded int
Or, if you're into Lua:
```
messages_RecentStickers = messages.getRecentStickers({hash=int, })
messages_RecentStickers = messages.getRecentStickers({hash={int}, })
```

View File

@ -13,7 +13,7 @@ Get saved gifs
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|hash|[int](../types/int.md) | 0 or $result['hash'] | Yes|
|hash|Array of [int](../types/int.md) | | Optional|
### Return type: [messages\_SavedGifs](../types/messages_SavedGifs.md)
@ -33,7 +33,7 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$messages_SavedGifs = $MadelineProto->messages->getSavedGifs(['hash' => int, ]);
$messages_SavedGifs = $MadelineProto->messages->getSavedGifs(['hash' => [int, int], ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
@ -46,7 +46,7 @@ POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getSavedGifs`
Parameters:
hash - Json encoded int
hash - Json encoded array of int
@ -54,6 +54,6 @@ hash - Json encoded int
Or, if you're into Lua:
```
messages_SavedGifs = messages.getSavedGifs({hash=int, })
messages_SavedGifs = messages.getSavedGifs({hash={int}, })
```

View File

@ -14,7 +14,7 @@ Get stickers
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|emoticon|[string](../types/string.md) | Search by emoji | Yes|
|hash|[string](../types/string.md) | 0 or $MadelineProto->gen_vector_hash(previously fetched sticker IDs) | Yes|
|hash|[string](../types/string.md) | previously fetched sticker IDs | Yes|
### Return type: [messages\_Stickers](../types/messages_Stickers.md)

View File

@ -13,7 +13,7 @@ Get all contacts
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|hash|[string](../types/string.md) | $MadelineProto->gen_vector_hash(previously fetched user IDs); | Yes|
|hash|[string](../types/string.md) | List of contact user IDs you already cached | Yes|
### Return type: [contacts\_Contacts](../types/contacts_Contacts.md)

View File

@ -20,7 +20,7 @@ Get most used chats
|channels|[Bool](../types/Bool.md) | Fetch channels and supergroups? | Optional|
|offset|[int](../types/int.md) | Initially 0, then `$offset += $contacts_TopPeers['categories']['count'];` | Yes|
|limit|[int](../types/int.md) | How many results to fetch | Yes|
|hash|[int](../types/int.md) | $MadelineProto->gen_vector_hash(previously fetched peer ids); | Yes|
|hash|Array of [int](../types/int.md) | | Optional|
### Return type: [contacts\_TopPeers](../types/contacts_TopPeers.md)
@ -40,7 +40,7 @@ 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, 'groups' => Bool, 'channels' => Bool, 'offset' => int, 'limit' => int, 'hash' => int, ]);
$contacts_TopPeers = $MadelineProto->contacts->getTopPeers(['correspondents' => Bool, 'bots_pm' => Bool, 'bots_inline' => Bool, 'groups' => Bool, 'channels' => Bool, 'offset' => int, 'limit' => int, 'hash' => [int, int], ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
@ -67,7 +67,7 @@ offset - Json encoded int
limit - Json encoded int
hash - Json encoded int
hash - Json encoded array of int
@ -75,7 +75,7 @@ hash - Json encoded int
Or, if you're into Lua:
```
contacts_TopPeers = contacts.getTopPeers({correspondents=Bool, bots_pm=Bool, bots_inline=Bool, groups=Bool, channels=Bool, offset=int, limit=int, hash=int, })
contacts_TopPeers = contacts.getTopPeers({correspondents=Bool, bots_pm=Bool, bots_inline=Bool, groups=Bool, channels=Bool, offset=int, limit=int, hash={int}, })
```
### Errors this method can return:

View File

@ -13,7 +13,7 @@ Get all stickerpacks
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|hash|[int](../types/int.md) | 0 or $result['hash'] | Yes|
|hash|Array of [int](../types/int.md) | | Optional|
### Return type: [messages\_AllStickers](../types/messages_AllStickers.md)
@ -33,7 +33,7 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => int, ]);
$messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => [int, int], ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
@ -46,7 +46,7 @@ POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getAllStickers`
Parameters:
hash - Json encoded int
hash - Json encoded array of int
@ -54,6 +54,6 @@ hash - Json encoded int
Or, if you're into Lua:
```
messages_AllStickers = messages.getAllStickers({hash=int, })
messages_AllStickers = messages.getAllStickers({hash={int}, })
```

View File

@ -13,7 +13,7 @@ Get featured stickers
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|hash|[int](../types/int.md) | 0 or $result['hash'] | Yes|
|hash|Array of [int](../types/int.md) | | Optional|
### Return type: [messages\_FeaturedStickers](../types/messages_FeaturedStickers.md)
@ -33,7 +33,7 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$messages_FeaturedStickers = $MadelineProto->messages->getFeaturedStickers(['hash' => int, ]);
$messages_FeaturedStickers = $MadelineProto->messages->getFeaturedStickers(['hash' => [int, int], ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
@ -46,7 +46,7 @@ POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getFeaturedStickers`
Parameters:
hash - Json encoded int
hash - Json encoded array of int
@ -54,6 +54,6 @@ hash - Json encoded int
Or, if you're into Lua:
```
messages_FeaturedStickers = messages.getFeaturedStickers({hash=int, })
messages_FeaturedStickers = messages.getFeaturedStickers({hash={int}, })
```

View File

@ -13,7 +13,7 @@ Get masks
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|hash|[int](../types/int.md) | 0 or $result['hash'] | Yes|
|hash|Array of [int](../types/int.md) | | Optional|
### Return type: [messages\_AllStickers](../types/messages_AllStickers.md)
@ -33,7 +33,7 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$messages_AllStickers = $MadelineProto->messages->getMaskStickers(['hash' => int, ]);
$messages_AllStickers = $MadelineProto->messages->getMaskStickers(['hash' => [int, int], ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
@ -46,7 +46,7 @@ POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getMaskStickers`
Parameters:
hash - Json encoded int
hash - Json encoded array of int
@ -54,6 +54,6 @@ hash - Json encoded int
Or, if you're into Lua:
```
messages_AllStickers = messages.getMaskStickers({hash=int, })
messages_AllStickers = messages.getMaskStickers({hash={int}, })
```

View File

@ -14,7 +14,7 @@ Get recent stickers
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|attached|[Bool](../types/Bool.md) | Get stickers attached to image? | Optional|
|hash|[int](../types/int.md) | 0 or $result['hash'] | Yes|
|hash|Array of [int](../types/int.md) | | Optional|
### Return type: [messages\_RecentStickers](../types/messages_RecentStickers.md)
@ -34,7 +34,7 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$messages_RecentStickers = $MadelineProto->messages->getRecentStickers(['attached' => Bool, 'hash' => int, ]);
$messages_RecentStickers = $MadelineProto->messages->getRecentStickers(['attached' => Bool, 'hash' => [int, int], ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
@ -49,7 +49,7 @@ Parameters:
attached - Json encoded Bool
hash - Json encoded int
hash - Json encoded array of int
@ -57,6 +57,6 @@ hash - Json encoded int
Or, if you're into Lua:
```
messages_RecentStickers = messages.getRecentStickers({attached=Bool, hash=int, })
messages_RecentStickers = messages.getRecentStickers({attached=Bool, hash={int}, })
```

View File

@ -13,7 +13,7 @@ Get saved gifs
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|hash|[int](../types/int.md) | 0 or $result['hash'] | Yes|
|hash|Array of [int](../types/int.md) | | Optional|
### Return type: [messages\_SavedGifs](../types/messages_SavedGifs.md)
@ -33,7 +33,7 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$messages_SavedGifs = $MadelineProto->messages->getSavedGifs(['hash' => int, ]);
$messages_SavedGifs = $MadelineProto->messages->getSavedGifs(['hash' => [int, int], ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
@ -46,7 +46,7 @@ POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getSavedGifs`
Parameters:
hash - Json encoded int
hash - Json encoded array of int
@ -54,6 +54,6 @@ hash - Json encoded int
Or, if you're into Lua:
```
messages_SavedGifs = messages.getSavedGifs({hash=int, })
messages_SavedGifs = messages.getSavedGifs({hash={int}, })
```

View File

@ -13,7 +13,7 @@ Get all contacts
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|hash|[string](../types/string.md) | $MadelineProto->gen_vector_hash(previously fetched user IDs); | Yes|
|hash|[string](../types/string.md) | List of contact user IDs you already cached | Yes|
### Return type: [contacts\_Contacts](../types/contacts_Contacts.md)

View File

@ -20,7 +20,7 @@ Get most used chats
|channels|[Bool](../types/Bool.md) | Fetch channels and supergroups? | Optional|
|offset|[int](../types/int.md) | Initially 0, then `$offset += $contacts_TopPeers['categories']['count'];` | Yes|
|limit|[int](../types/int.md) | How many results to fetch | Yes|
|hash|[int](../types/int.md) | $MadelineProto->gen_vector_hash(previously fetched peer ids); | Yes|
|hash|Array of [int](../types/int.md) | | Optional|
### Return type: [contacts\_TopPeers](../types/contacts_TopPeers.md)
@ -40,7 +40,7 @@ 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, 'groups' => Bool, 'channels' => Bool, 'offset' => int, 'limit' => int, 'hash' => int, ]);
$contacts_TopPeers = $MadelineProto->contacts->getTopPeers(['correspondents' => Bool, 'bots_pm' => Bool, 'bots_inline' => Bool, 'groups' => Bool, 'channels' => Bool, 'offset' => int, 'limit' => int, 'hash' => [int, int], ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
@ -67,7 +67,7 @@ offset - Json encoded int
limit - Json encoded int
hash - Json encoded int
hash - Json encoded array of int
@ -75,7 +75,7 @@ hash - Json encoded int
Or, if you're into Lua:
```
contacts_TopPeers = contacts.getTopPeers({correspondents=Bool, bots_pm=Bool, bots_inline=Bool, groups=Bool, channels=Bool, offset=int, limit=int, hash=int, })
contacts_TopPeers = contacts.getTopPeers({correspondents=Bool, bots_pm=Bool, bots_inline=Bool, groups=Bool, channels=Bool, offset=int, limit=int, hash={int}, })
```
### Errors this method can return:

View File

@ -13,7 +13,7 @@ Get all stickerpacks
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|hash|[int](../types/int.md) | 0 or $result['hash'] | Yes|
|hash|Array of [int](../types/int.md) | | Optional|
### Return type: [messages\_AllStickers](../types/messages_AllStickers.md)
@ -33,7 +33,7 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => int, ]);
$messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => [int, int], ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
@ -46,7 +46,7 @@ POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getAllStickers`
Parameters:
hash - Json encoded int
hash - Json encoded array of int
@ -54,6 +54,6 @@ hash - Json encoded int
Or, if you're into Lua:
```
messages_AllStickers = messages.getAllStickers({hash=int, })
messages_AllStickers = messages.getAllStickers({hash={int}, })
```

View File

@ -13,7 +13,7 @@ Get featured stickers
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|hash|[int](../types/int.md) | 0 or $result['hash'] | Yes|
|hash|Array of [int](../types/int.md) | | Optional|
### Return type: [messages\_FeaturedStickers](../types/messages_FeaturedStickers.md)
@ -33,7 +33,7 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$messages_FeaturedStickers = $MadelineProto->messages->getFeaturedStickers(['hash' => int, ]);
$messages_FeaturedStickers = $MadelineProto->messages->getFeaturedStickers(['hash' => [int, int], ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
@ -46,7 +46,7 @@ POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getFeaturedStickers`
Parameters:
hash - Json encoded int
hash - Json encoded array of int
@ -54,6 +54,6 @@ hash - Json encoded int
Or, if you're into Lua:
```
messages_FeaturedStickers = messages.getFeaturedStickers({hash=int, })
messages_FeaturedStickers = messages.getFeaturedStickers({hash={int}, })
```

View File

@ -13,7 +13,7 @@ Get masks
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|hash|[int](../types/int.md) | 0 or $result['hash'] | Yes|
|hash|Array of [int](../types/int.md) | | Optional|
### Return type: [messages\_AllStickers](../types/messages_AllStickers.md)
@ -33,7 +33,7 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$messages_AllStickers = $MadelineProto->messages->getMaskStickers(['hash' => int, ]);
$messages_AllStickers = $MadelineProto->messages->getMaskStickers(['hash' => [int, int], ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
@ -46,7 +46,7 @@ POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getMaskStickers`
Parameters:
hash - Json encoded int
hash - Json encoded array of int
@ -54,6 +54,6 @@ hash - Json encoded int
Or, if you're into Lua:
```
messages_AllStickers = messages.getMaskStickers({hash=int, })
messages_AllStickers = messages.getMaskStickers({hash={int}, })
```

View File

@ -14,7 +14,7 @@ Get recent stickers
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|attached|[Bool](../types/Bool.md) | Get stickers attached to image? | Optional|
|hash|[int](../types/int.md) | 0 or $result['hash'] | Yes|
|hash|Array of [int](../types/int.md) | | Optional|
### Return type: [messages\_RecentStickers](../types/messages_RecentStickers.md)
@ -34,7 +34,7 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$messages_RecentStickers = $MadelineProto->messages->getRecentStickers(['attached' => Bool, 'hash' => int, ]);
$messages_RecentStickers = $MadelineProto->messages->getRecentStickers(['attached' => Bool, 'hash' => [int, int], ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
@ -49,7 +49,7 @@ Parameters:
attached - Json encoded Bool
hash - Json encoded int
hash - Json encoded array of int
@ -57,6 +57,6 @@ hash - Json encoded int
Or, if you're into Lua:
```
messages_RecentStickers = messages.getRecentStickers({attached=Bool, hash=int, })
messages_RecentStickers = messages.getRecentStickers({attached=Bool, hash={int}, })
```

View File

@ -13,7 +13,7 @@ Get saved gifs
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|hash|[int](../types/int.md) | 0 or $result['hash'] | Yes|
|hash|Array of [int](../types/int.md) | | Optional|
### Return type: [messages\_SavedGifs](../types/messages_SavedGifs.md)
@ -33,7 +33,7 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$messages_SavedGifs = $MadelineProto->messages->getSavedGifs(['hash' => int, ]);
$messages_SavedGifs = $MadelineProto->messages->getSavedGifs(['hash' => [int, int], ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
@ -46,7 +46,7 @@ POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getSavedGifs`
Parameters:
hash - Json encoded int
hash - Json encoded array of int
@ -54,6 +54,6 @@ hash - Json encoded int
Or, if you're into Lua:
```
messages_SavedGifs = messages.getSavedGifs({hash=int, })
messages_SavedGifs = messages.getSavedGifs({hash={int}, })
```

View File

@ -14,7 +14,7 @@ Get webpage preview
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|url|[string](../types/string.md) | URL | Yes|
|hash|[int](../types/int.md) | 0 or $result['hash'] | Yes|
|hash|Array of [int](../types/int.md) | | Optional|
### Return type: [WebPage](../types/WebPage.md)
@ -34,7 +34,7 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$WebPage = $MadelineProto->messages->getWebPage(['url' => 'string', 'hash' => int, ]);
$WebPage = $MadelineProto->messages->getWebPage(['url' => 'string', 'hash' => [int, int], ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
@ -49,7 +49,7 @@ Parameters:
url - Json encoded string
hash - Json encoded int
hash - Json encoded array of int
@ -57,7 +57,7 @@ hash - Json encoded int
Or, if you're into Lua:
```
WebPage = messages.getWebPage({url='string', hash=int, })
WebPage = messages.getWebPage({url='string', hash={int}, })
```
### Errors this method can return:

View File

@ -13,7 +13,7 @@ Get all contacts
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|hash|[string](../types/string.md) | $MadelineProto->gen_vector_hash(previously fetched user IDs); | Yes|
|hash|[string](../types/string.md) | List of contact user IDs you already cached | Yes|
### Return type: [contacts\_Contacts](../types/contacts_Contacts.md)

View File

@ -20,7 +20,7 @@ Get most used chats
|channels|[Bool](../types/Bool.md) | Fetch channels and supergroups? | Optional|
|offset|[int](../types/int.md) | Initially 0, then `$offset += $contacts_TopPeers['categories']['count'];` | Yes|
|limit|[int](../types/int.md) | How many results to fetch | Yes|
|hash|[int](../types/int.md) | $MadelineProto->gen_vector_hash(previously fetched peer ids); | Yes|
|hash|Array of [int](../types/int.md) | | Optional|
### Return type: [contacts\_TopPeers](../types/contacts_TopPeers.md)
@ -40,7 +40,7 @@ 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, 'groups' => Bool, 'channels' => Bool, 'offset' => int, 'limit' => int, 'hash' => int, ]);
$contacts_TopPeers = $MadelineProto->contacts->getTopPeers(['correspondents' => Bool, 'bots_pm' => Bool, 'bots_inline' => Bool, 'groups' => Bool, 'channels' => Bool, 'offset' => int, 'limit' => int, 'hash' => [int, int], ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
@ -67,7 +67,7 @@ offset - Json encoded int
limit - Json encoded int
hash - Json encoded int
hash - Json encoded array of int
@ -75,7 +75,7 @@ hash - Json encoded int
Or, if you're into Lua:
```
contacts_TopPeers = contacts.getTopPeers({correspondents=Bool, bots_pm=Bool, bots_inline=Bool, groups=Bool, channels=Bool, offset=int, limit=int, hash=int, })
contacts_TopPeers = contacts.getTopPeers({correspondents=Bool, bots_pm=Bool, bots_inline=Bool, groups=Bool, channels=Bool, offset=int, limit=int, hash={int}, })
```
### Errors this method can return:

View File

@ -13,7 +13,7 @@ Get all stickerpacks
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|hash|[int](../types/int.md) | 0 or $result['hash'] | Yes|
|hash|Array of [int](../types/int.md) | | Optional|
### Return type: [messages\_AllStickers](../types/messages_AllStickers.md)
@ -33,7 +33,7 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => int, ]);
$messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => [int, int], ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
@ -46,7 +46,7 @@ POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getAllStickers`
Parameters:
hash - Json encoded int
hash - Json encoded array of int
@ -54,6 +54,6 @@ hash - Json encoded int
Or, if you're into Lua:
```
messages_AllStickers = messages.getAllStickers({hash=int, })
messages_AllStickers = messages.getAllStickers({hash={int}, })
```

View File

@ -13,7 +13,7 @@ Get featured stickers
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|hash|[int](../types/int.md) | 0 or $result['hash'] | Yes|
|hash|Array of [int](../types/int.md) | | Optional|
### Return type: [messages\_FeaturedStickers](../types/messages_FeaturedStickers.md)
@ -33,7 +33,7 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$messages_FeaturedStickers = $MadelineProto->messages->getFeaturedStickers(['hash' => int, ]);
$messages_FeaturedStickers = $MadelineProto->messages->getFeaturedStickers(['hash' => [int, int], ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
@ -46,7 +46,7 @@ POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getFeaturedStickers`
Parameters:
hash - Json encoded int
hash - Json encoded array of int
@ -54,6 +54,6 @@ hash - Json encoded int
Or, if you're into Lua:
```
messages_FeaturedStickers = messages.getFeaturedStickers({hash=int, })
messages_FeaturedStickers = messages.getFeaturedStickers({hash={int}, })
```

View File

@ -13,7 +13,7 @@ Get masks
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|hash|[int](../types/int.md) | 0 or $result['hash'] | Yes|
|hash|Array of [int](../types/int.md) | | Optional|
### Return type: [messages\_AllStickers](../types/messages_AllStickers.md)
@ -33,7 +33,7 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$messages_AllStickers = $MadelineProto->messages->getMaskStickers(['hash' => int, ]);
$messages_AllStickers = $MadelineProto->messages->getMaskStickers(['hash' => [int, int], ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
@ -46,7 +46,7 @@ POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getMaskStickers`
Parameters:
hash - Json encoded int
hash - Json encoded array of int
@ -54,6 +54,6 @@ hash - Json encoded int
Or, if you're into Lua:
```
messages_AllStickers = messages.getMaskStickers({hash=int, })
messages_AllStickers = messages.getMaskStickers({hash={int}, })
```

View File

@ -14,7 +14,7 @@ Get recent stickers
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|attached|[Bool](../types/Bool.md) | Get stickers attached to image? | Optional|
|hash|[int](../types/int.md) | 0 or $result['hash'] | Yes|
|hash|Array of [int](../types/int.md) | | Optional|
### Return type: [messages\_RecentStickers](../types/messages_RecentStickers.md)
@ -34,7 +34,7 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$messages_RecentStickers = $MadelineProto->messages->getRecentStickers(['attached' => Bool, 'hash' => int, ]);
$messages_RecentStickers = $MadelineProto->messages->getRecentStickers(['attached' => Bool, 'hash' => [int, int], ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
@ -49,7 +49,7 @@ Parameters:
attached - Json encoded Bool
hash - Json encoded int
hash - Json encoded array of int
@ -57,6 +57,6 @@ hash - Json encoded int
Or, if you're into Lua:
```
messages_RecentStickers = messages.getRecentStickers({attached=Bool, hash=int, })
messages_RecentStickers = messages.getRecentStickers({attached=Bool, hash={int}, })
```

View File

@ -13,7 +13,7 @@ Get saved gifs
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|hash|[int](../types/int.md) | 0 or $result['hash'] | Yes|
|hash|Array of [int](../types/int.md) | | Optional|
### Return type: [messages\_SavedGifs](../types/messages_SavedGifs.md)
@ -33,7 +33,7 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$messages_SavedGifs = $MadelineProto->messages->getSavedGifs(['hash' => int, ]);
$messages_SavedGifs = $MadelineProto->messages->getSavedGifs(['hash' => [int, int], ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
@ -46,7 +46,7 @@ POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getSavedGifs`
Parameters:
hash - Json encoded int
hash - Json encoded array of int
@ -54,6 +54,6 @@ hash - Json encoded int
Or, if you're into Lua:
```
messages_SavedGifs = messages.getSavedGifs({hash=int, })
messages_SavedGifs = messages.getSavedGifs({hash={int}, })
```

View File

@ -14,7 +14,7 @@ Get webpage preview
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|url|[string](../types/string.md) | URL | Yes|
|hash|[int](../types/int.md) | 0 or $result['hash'] | Yes|
|hash|Array of [int](../types/int.md) | | Optional|
### Return type: [WebPage](../types/WebPage.md)
@ -34,7 +34,7 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$WebPage = $MadelineProto->messages->getWebPage(['url' => 'string', 'hash' => int, ]);
$WebPage = $MadelineProto->messages->getWebPage(['url' => 'string', 'hash' => [int, int], ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
@ -49,7 +49,7 @@ Parameters:
url - Json encoded string
hash - Json encoded int
hash - Json encoded array of int
@ -57,7 +57,7 @@ hash - Json encoded int
Or, if you're into Lua:
```
WebPage = messages.getWebPage({url='string', hash=int, })
WebPage = messages.getWebPage({url='string', hash={int}, })
```
### Errors this method can return:

View File

@ -13,7 +13,7 @@ Get all contacts
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|hash|[string](../types/string.md) | $MadelineProto->gen_vector_hash(previously fetched user IDs); | Yes|
|hash|[string](../types/string.md) | List of contact user IDs you already cached | Yes|
### Return type: [contacts\_Contacts](../types/contacts_Contacts.md)

View File

@ -20,7 +20,7 @@ Get most used chats
|channels|[Bool](../types/Bool.md) | Fetch channels and supergroups? | Optional|
|offset|[int](../types/int.md) | Initially 0, then `$offset += $contacts_TopPeers['categories']['count'];` | Yes|
|limit|[int](../types/int.md) | How many results to fetch | Yes|
|hash|[int](../types/int.md) | $MadelineProto->gen_vector_hash(previously fetched peer ids); | Yes|
|hash|Array of [int](../types/int.md) | | Optional|
### Return type: [contacts\_TopPeers](../types/contacts_TopPeers.md)
@ -40,7 +40,7 @@ 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, 'groups' => Bool, 'channels' => Bool, 'offset' => int, 'limit' => int, 'hash' => int, ]);
$contacts_TopPeers = $MadelineProto->contacts->getTopPeers(['correspondents' => Bool, 'bots_pm' => Bool, 'bots_inline' => Bool, 'groups' => Bool, 'channels' => Bool, 'offset' => int, 'limit' => int, 'hash' => [int, int], ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
@ -67,7 +67,7 @@ offset - Json encoded int
limit - Json encoded int
hash - Json encoded int
hash - Json encoded array of int
@ -75,7 +75,7 @@ hash - Json encoded int
Or, if you're into Lua:
```
contacts_TopPeers = contacts.getTopPeers({correspondents=Bool, bots_pm=Bool, bots_inline=Bool, groups=Bool, channels=Bool, offset=int, limit=int, hash=int, })
contacts_TopPeers = contacts.getTopPeers({correspondents=Bool, bots_pm=Bool, bots_inline=Bool, groups=Bool, channels=Bool, offset=int, limit=int, hash={int}, })
```
### Errors this method can return:

View File

@ -13,7 +13,7 @@ Get all stickerpacks
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|hash|[int](../types/int.md) | 0 or $result['hash'] | Yes|
|hash|Array of [int](../types/int.md) | | Optional|
### Return type: [messages\_AllStickers](../types/messages_AllStickers.md)
@ -33,7 +33,7 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => int, ]);
$messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => [int, int], ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
@ -46,7 +46,7 @@ POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getAllStickers`
Parameters:
hash - Json encoded int
hash - Json encoded array of int
@ -54,6 +54,6 @@ hash - Json encoded int
Or, if you're into Lua:
```
messages_AllStickers = messages.getAllStickers({hash=int, })
messages_AllStickers = messages.getAllStickers({hash={int}, })
```

View File

@ -13,7 +13,7 @@ Get featured stickers
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|hash|[int](../types/int.md) | 0 or $result['hash'] | Yes|
|hash|Array of [int](../types/int.md) | | Optional|
### Return type: [messages\_FeaturedStickers](../types/messages_FeaturedStickers.md)
@ -33,7 +33,7 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$messages_FeaturedStickers = $MadelineProto->messages->getFeaturedStickers(['hash' => int, ]);
$messages_FeaturedStickers = $MadelineProto->messages->getFeaturedStickers(['hash' => [int, int], ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
@ -46,7 +46,7 @@ POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getFeaturedStickers`
Parameters:
hash - Json encoded int
hash - Json encoded array of int
@ -54,6 +54,6 @@ hash - Json encoded int
Or, if you're into Lua:
```
messages_FeaturedStickers = messages.getFeaturedStickers({hash=int, })
messages_FeaturedStickers = messages.getFeaturedStickers({hash={int}, })
```

View File

@ -13,7 +13,7 @@ Get masks
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|hash|[int](../types/int.md) | 0 or $result['hash'] | Yes|
|hash|Array of [int](../types/int.md) | | Optional|
### Return type: [messages\_AllStickers](../types/messages_AllStickers.md)
@ -33,7 +33,7 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$messages_AllStickers = $MadelineProto->messages->getMaskStickers(['hash' => int, ]);
$messages_AllStickers = $MadelineProto->messages->getMaskStickers(['hash' => [int, int], ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
@ -46,7 +46,7 @@ POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getMaskStickers`
Parameters:
hash - Json encoded int
hash - Json encoded array of int
@ -54,6 +54,6 @@ hash - Json encoded int
Or, if you're into Lua:
```
messages_AllStickers = messages.getMaskStickers({hash=int, })
messages_AllStickers = messages.getMaskStickers({hash={int}, })
```

View File

@ -14,7 +14,7 @@ Get recent stickers
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|attached|[Bool](../types/Bool.md) | Get stickers attached to image? | Optional|
|hash|[int](../types/int.md) | 0 or $result['hash'] | Yes|
|hash|Array of [int](../types/int.md) | | Optional|
### Return type: [messages\_RecentStickers](../types/messages_RecentStickers.md)
@ -34,7 +34,7 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$messages_RecentStickers = $MadelineProto->messages->getRecentStickers(['attached' => Bool, 'hash' => int, ]);
$messages_RecentStickers = $MadelineProto->messages->getRecentStickers(['attached' => Bool, 'hash' => [int, int], ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
@ -49,7 +49,7 @@ Parameters:
attached - Json encoded Bool
hash - Json encoded int
hash - Json encoded array of int
@ -57,6 +57,6 @@ hash - Json encoded int
Or, if you're into Lua:
```
messages_RecentStickers = messages.getRecentStickers({attached=Bool, hash=int, })
messages_RecentStickers = messages.getRecentStickers({attached=Bool, hash={int}, })
```

View File

@ -13,7 +13,7 @@ Get saved gifs
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|hash|[int](../types/int.md) | 0 or $result['hash'] | Yes|
|hash|Array of [int](../types/int.md) | | Optional|
### Return type: [messages\_SavedGifs](../types/messages_SavedGifs.md)
@ -33,7 +33,7 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$messages_SavedGifs = $MadelineProto->messages->getSavedGifs(['hash' => int, ]);
$messages_SavedGifs = $MadelineProto->messages->getSavedGifs(['hash' => [int, int], ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
@ -46,7 +46,7 @@ POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getSavedGifs`
Parameters:
hash - Json encoded int
hash - Json encoded array of int
@ -54,6 +54,6 @@ hash - Json encoded int
Or, if you're into Lua:
```
messages_SavedGifs = messages.getSavedGifs({hash=int, })
messages_SavedGifs = messages.getSavedGifs({hash={int}, })
```

View File

@ -14,7 +14,7 @@ Get webpage preview
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|url|[string](../types/string.md) | URL | Yes|
|hash|[int](../types/int.md) | 0 or $result['hash'] | Yes|
|hash|Array of [int](../types/int.md) | | Optional|
### Return type: [WebPage](../types/WebPage.md)
@ -34,7 +34,7 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$WebPage = $MadelineProto->messages->getWebPage(['url' => 'string', 'hash' => int, ]);
$WebPage = $MadelineProto->messages->getWebPage(['url' => 'string', 'hash' => [int, int], ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
@ -49,7 +49,7 @@ Parameters:
url - Json encoded string
hash - Json encoded int
hash - Json encoded array of int
@ -57,7 +57,7 @@ hash - Json encoded int
Or, if you're into Lua:
```
WebPage = messages.getWebPage({url='string', hash=int, })
WebPage = messages.getWebPage({url='string', hash={int}, })
```
### Errors this method can return:

View File

@ -13,7 +13,7 @@ Get all contacts
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|hash|[string](../types/string.md) | $MadelineProto->gen_vector_hash(previously fetched user IDs); | Yes|
|hash|[string](../types/string.md) | List of contact user IDs you already cached | Yes|
### Return type: [contacts\_Contacts](../types/contacts_Contacts.md)

View File

@ -21,7 +21,7 @@ Get most used chats
|channels|[Bool](../types/Bool.md) | Fetch channels and supergroups? | Optional|
|offset|[int](../types/int.md) | Initially 0, then `$offset += $contacts_TopPeers['categories']['count'];` | Yes|
|limit|[int](../types/int.md) | How many results to fetch | Yes|
|hash|[int](../types/int.md) | $MadelineProto->gen_vector_hash(previously fetched peer ids); | Yes|
|hash|Array of [int](../types/int.md) | | Optional|
### Return type: [contacts\_TopPeers](../types/contacts_TopPeers.md)
@ -41,7 +41,7 @@ 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, 'groups' => Bool, 'channels' => Bool, 'offset' => int, 'limit' => int, 'hash' => int, ]);
$contacts_TopPeers = $MadelineProto->contacts->getTopPeers(['correspondents' => Bool, 'bots_pm' => Bool, 'bots_inline' => Bool, 'phone_calls' => Bool, 'groups' => Bool, 'channels' => Bool, 'offset' => int, 'limit' => int, 'hash' => [int, int], ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
@ -70,7 +70,7 @@ offset - Json encoded int
limit - Json encoded int
hash - Json encoded int
hash - Json encoded array of int
@ -78,7 +78,7 @@ hash - Json encoded int
Or, if you're into Lua:
```
contacts_TopPeers = contacts.getTopPeers({correspondents=Bool, bots_pm=Bool, bots_inline=Bool, phone_calls=Bool, groups=Bool, channels=Bool, offset=int, limit=int, hash=int, })
contacts_TopPeers = contacts.getTopPeers({correspondents=Bool, bots_pm=Bool, bots_inline=Bool, phone_calls=Bool, groups=Bool, channels=Bool, offset=int, limit=int, hash={int}, })
```
### Errors this method can return:

View File

@ -13,7 +13,7 @@ Get all stickerpacks
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|hash|[int](../types/int.md) | 0 or $result['hash'] | Yes|
|hash|Array of [int](../types/int.md) | | Optional|
### Return type: [messages\_AllStickers](../types/messages_AllStickers.md)
@ -33,7 +33,7 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => int, ]);
$messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => [int, int], ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
@ -46,7 +46,7 @@ POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getAllStickers`
Parameters:
hash - Json encoded int
hash - Json encoded array of int
@ -54,6 +54,6 @@ hash - Json encoded int
Or, if you're into Lua:
```
messages_AllStickers = messages.getAllStickers({hash=int, })
messages_AllStickers = messages.getAllStickers({hash={int}, })
```

View File

@ -13,7 +13,7 @@ Get featured stickers
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|hash|[int](../types/int.md) | 0 or $result['hash'] | Yes|
|hash|Array of [int](../types/int.md) | | Optional|
### Return type: [messages\_FeaturedStickers](../types/messages_FeaturedStickers.md)
@ -33,7 +33,7 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$messages_FeaturedStickers = $MadelineProto->messages->getFeaturedStickers(['hash' => int, ]);
$messages_FeaturedStickers = $MadelineProto->messages->getFeaturedStickers(['hash' => [int, int], ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
@ -46,7 +46,7 @@ POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getFeaturedStickers`
Parameters:
hash - Json encoded int
hash - Json encoded array of int
@ -54,6 +54,6 @@ hash - Json encoded int
Or, if you're into Lua:
```
messages_FeaturedStickers = messages.getFeaturedStickers({hash=int, })
messages_FeaturedStickers = messages.getFeaturedStickers({hash={int}, })
```

View File

@ -13,7 +13,7 @@ Get masks
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|hash|[int](../types/int.md) | 0 or $result['hash'] | Yes|
|hash|Array of [int](../types/int.md) | | Optional|
### Return type: [messages\_AllStickers](../types/messages_AllStickers.md)
@ -33,7 +33,7 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$messages_AllStickers = $MadelineProto->messages->getMaskStickers(['hash' => int, ]);
$messages_AllStickers = $MadelineProto->messages->getMaskStickers(['hash' => [int, int], ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
@ -46,7 +46,7 @@ POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getMaskStickers`
Parameters:
hash - Json encoded int
hash - Json encoded array of int
@ -54,6 +54,6 @@ hash - Json encoded int
Or, if you're into Lua:
```
messages_AllStickers = messages.getMaskStickers({hash=int, })
messages_AllStickers = messages.getMaskStickers({hash={int}, })
```

View File

@ -14,7 +14,7 @@ Get recent stickers
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|attached|[Bool](../types/Bool.md) | Get stickers attached to image? | Optional|
|hash|[int](../types/int.md) | 0 or $result['hash'] | Yes|
|hash|Array of [int](../types/int.md) | | Optional|
### Return type: [messages\_RecentStickers](../types/messages_RecentStickers.md)
@ -34,7 +34,7 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$messages_RecentStickers = $MadelineProto->messages->getRecentStickers(['attached' => Bool, 'hash' => int, ]);
$messages_RecentStickers = $MadelineProto->messages->getRecentStickers(['attached' => Bool, 'hash' => [int, int], ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
@ -49,7 +49,7 @@ Parameters:
attached - Json encoded Bool
hash - Json encoded int
hash - Json encoded array of int
@ -57,6 +57,6 @@ hash - Json encoded int
Or, if you're into Lua:
```
messages_RecentStickers = messages.getRecentStickers({attached=Bool, hash=int, })
messages_RecentStickers = messages.getRecentStickers({attached=Bool, hash={int}, })
```

View File

@ -13,7 +13,7 @@ Get saved gifs
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|hash|[int](../types/int.md) | 0 or $result['hash'] | Yes|
|hash|Array of [int](../types/int.md) | | Optional|
### Return type: [messages\_SavedGifs](../types/messages_SavedGifs.md)
@ -33,7 +33,7 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$messages_SavedGifs = $MadelineProto->messages->getSavedGifs(['hash' => int, ]);
$messages_SavedGifs = $MadelineProto->messages->getSavedGifs(['hash' => [int, int], ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
@ -46,7 +46,7 @@ POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getSavedGifs`
Parameters:
hash - Json encoded int
hash - Json encoded array of int
@ -54,6 +54,6 @@ hash - Json encoded int
Or, if you're into Lua:
```
messages_SavedGifs = messages.getSavedGifs({hash=int, })
messages_SavedGifs = messages.getSavedGifs({hash={int}, })
```

View File

@ -14,7 +14,7 @@ Get webpage preview
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|url|[string](../types/string.md) | URL | Yes|
|hash|[int](../types/int.md) | 0 or $result['hash'] | Yes|
|hash|Array of [int](../types/int.md) | | Optional|
### Return type: [WebPage](../types/WebPage.md)
@ -34,7 +34,7 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$WebPage = $MadelineProto->messages->getWebPage(['url' => 'string', 'hash' => int, ]);
$WebPage = $MadelineProto->messages->getWebPage(['url' => 'string', 'hash' => [int, int], ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
@ -49,7 +49,7 @@ Parameters:
url - Json encoded string
hash - Json encoded int
hash - Json encoded array of int
@ -57,7 +57,7 @@ hash - Json encoded int
Or, if you're into Lua:
```
WebPage = messages.getWebPage({url='string', hash=int, })
WebPage = messages.getWebPage({url='string', hash={int}, })
```
### Errors this method can return:

View File

@ -13,7 +13,7 @@ Get all contacts
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|hash|[string](../types/string.md) | $MadelineProto->gen_vector_hash(previously fetched user IDs); | Yes|
|hash|[string](../types/string.md) | List of contact user IDs you already cached | Yes|
### Return type: [contacts\_Contacts](../types/contacts_Contacts.md)

Some files were not shown because too many files have changed in this diff Show More