mirror of
https://github.com/danog/MadelineProtoDocs.git
synced 2024-11-26 12:25:08 +01:00
Bump
This commit is contained in:
parent
7731074c0b
commit
45b48bbb98
@ -18,7 +18,7 @@ Change settings related to a session.
|
||||
| Name | Type | Description | Required |
|
||||
|----------|---------------|-------------|----------|
|
||||
|confirmed|[Bool](/API_docs/types/Bool.html) | If set, [confirms a newly logged in session »](https://core.telegram.org/api/auth#confirming-login). | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long|string.html) | Session ID from the [authorization](../constructors/authorization.html) constructor, fetchable using [account.getAuthorizations](../methods/account.getAuthorizations.html) | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long\|string.html) | Session ID from the [authorization](../constructors/authorization.html) constructor, fetchable using [account.getAuthorizations](../methods/account.getAuthorizations.html) | Optional|
|
||||
|encrypted\_requests\_disabled|[Bool](/API_docs/types/Bool.html) | Whether to enable or disable receiving encrypted chats: if the flag is not set, the previous setting is not changed | Optional|
|
||||
|call\_requests\_disabled|[Bool](/API_docs/types/Bool.html) | Whether to enable or disable receiving calls: if the flag is not set, the previous setting is not changed | Optional|
|
||||
|
||||
@ -40,6 +40,6 @@ include 'madeline.php';
|
||||
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
|
||||
$MadelineProto->start();
|
||||
|
||||
$Bool = $MadelineProto->account->changeAuthorizationSettings(confirmed: $Bool, hash: [$long|string, $long|string], encrypted_requests_disabled: $Bool, call_requests_disabled: $Bool, );
|
||||
$Bool = $MadelineProto->account->changeAuthorizationSettings(confirmed: $Bool, hash: [$long\|string, $long\|string], encrypted_requests_disabled: $Bool, call_requests_disabled: $Bool, );
|
||||
```
|
||||
|
||||
|
@ -17,7 +17,7 @@ Get a list of default suggested [channel emoji statuses](https://core.telegram.o
|
||||
|
||||
| Name | Type | Description | Required |
|
||||
|----------|---------------|-------------|----------|
|
||||
|hash|Array of [long\|string](/API_docs/types/long|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long\|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional|
|
||||
|
||||
|
||||
### Return type: [account.EmojiStatuses](/API_docs/types/account.EmojiStatuses.html)
|
||||
@ -37,6 +37,6 @@ include 'madeline.php';
|
||||
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
|
||||
$MadelineProto->start();
|
||||
|
||||
$account_EmojiStatuses = $MadelineProto->account->getChannelDefaultEmojiStatuses(hash: [$long|string, $long|string], );
|
||||
$account_EmojiStatuses = $MadelineProto->account->getChannelDefaultEmojiStatuses(hash: [$long\|string, $long\|string], );
|
||||
```
|
||||
|
||||
|
@ -17,7 +17,7 @@ Returns fetch the full list of [custom emoji IDs »](https://core.telegram.org/a
|
||||
|
||||
| Name | Type | Description | Required |
|
||||
|----------|---------------|-------------|----------|
|
||||
|hash|Array of [long\|string](/API_docs/types/long|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long\|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional|
|
||||
|
||||
|
||||
### Return type: [EmojiList](/API_docs/types/EmojiList.html)
|
||||
@ -37,6 +37,6 @@ include 'madeline.php';
|
||||
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
|
||||
$MadelineProto->start();
|
||||
|
||||
$EmojiList = $MadelineProto->account->getChannelRestrictedStatusEmojis(hash: [$long|string, $long|string], );
|
||||
$EmojiList = $MadelineProto->account->getChannelRestrictedStatusEmojis(hash: [$long\|string, $long\|string], );
|
||||
```
|
||||
|
||||
|
@ -17,7 +17,7 @@ Get all available chat [themes »](https://core.telegram.org/api/themes).
|
||||
|
||||
| Name | Type | Description | Required |
|
||||
|----------|---------------|-------------|----------|
|
||||
|hash|Array of [long\|string](/API_docs/types/long|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long\|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional|
|
||||
|
||||
|
||||
### Return type: [account.Themes](/API_docs/types/account.Themes.html)
|
||||
@ -37,6 +37,6 @@ include 'madeline.php';
|
||||
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
|
||||
$MadelineProto->start();
|
||||
|
||||
$account_Themes = $MadelineProto->account->getChatThemes(hash: [$long|string, $long|string], );
|
||||
$account_Themes = $MadelineProto->account->getChatThemes(hash: [$long\|string, $long\|string], );
|
||||
```
|
||||
|
||||
|
@ -17,7 +17,7 @@ Get a set of suggested [custom emoji stickers](https://core.telegram.org/api/cus
|
||||
|
||||
| Name | Type | Description | Required |
|
||||
|----------|---------------|-------------|----------|
|
||||
|hash|Array of [long\|string](/API_docs/types/long|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long\|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional|
|
||||
|
||||
|
||||
### Return type: [EmojiList](/API_docs/types/EmojiList.html)
|
||||
@ -37,6 +37,6 @@ include 'madeline.php';
|
||||
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
|
||||
$MadelineProto->start();
|
||||
|
||||
$EmojiList = $MadelineProto->account->getDefaultBackgroundEmojis(hash: [$long|string, $long|string], );
|
||||
$EmojiList = $MadelineProto->account->getDefaultBackgroundEmojis(hash: [$long\|string, $long\|string], );
|
||||
```
|
||||
|
||||
|
@ -17,7 +17,7 @@ Get a list of default suggested [emoji statuses](https://core.telegram.org/api/e
|
||||
|
||||
| Name | Type | Description | Required |
|
||||
|----------|---------------|-------------|----------|
|
||||
|hash|Array of [long\|string](/API_docs/types/long|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long\|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional|
|
||||
|
||||
|
||||
### Return type: [account.EmojiStatuses](/API_docs/types/account.EmojiStatuses.html)
|
||||
@ -37,6 +37,6 @@ include 'madeline.php';
|
||||
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
|
||||
$MadelineProto->start();
|
||||
|
||||
$account_EmojiStatuses = $MadelineProto->account->getDefaultEmojiStatuses(hash: [$long|string, $long|string], );
|
||||
$account_EmojiStatuses = $MadelineProto->account->getDefaultEmojiStatuses(hash: [$long\|string, $long\|string], );
|
||||
```
|
||||
|
||||
|
@ -17,7 +17,7 @@ Get a set of suggested [custom emoji stickers](https://core.telegram.org/api/cus
|
||||
|
||||
| Name | Type | Description | Required |
|
||||
|----------|---------------|-------------|----------|
|
||||
|hash|Array of [long\|string](/API_docs/types/long|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long\|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional|
|
||||
|
||||
|
||||
### Return type: [EmojiList](/API_docs/types/EmojiList.html)
|
||||
@ -37,6 +37,6 @@ include 'madeline.php';
|
||||
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
|
||||
$MadelineProto->start();
|
||||
|
||||
$EmojiList = $MadelineProto->account->getDefaultGroupPhotoEmojis(hash: [$long|string, $long|string], );
|
||||
$EmojiList = $MadelineProto->account->getDefaultGroupPhotoEmojis(hash: [$long\|string, $long\|string], );
|
||||
```
|
||||
|
||||
|
@ -17,7 +17,7 @@ Get a set of suggested [custom emoji stickers](https://core.telegram.org/api/cus
|
||||
|
||||
| Name | Type | Description | Required |
|
||||
|----------|---------------|-------------|----------|
|
||||
|hash|Array of [long\|string](/API_docs/types/long|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long\|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional|
|
||||
|
||||
|
||||
### Return type: [EmojiList](/API_docs/types/EmojiList.html)
|
||||
@ -37,6 +37,6 @@ include 'madeline.php';
|
||||
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
|
||||
$MadelineProto->start();
|
||||
|
||||
$EmojiList = $MadelineProto->account->getDefaultProfilePhotoEmojis(hash: [$long|string, $long|string], );
|
||||
$EmojiList = $MadelineProto->account->getDefaultProfilePhotoEmojis(hash: [$long\|string, $long\|string], );
|
||||
```
|
||||
|
||||
|
@ -17,7 +17,7 @@ Get recently used [emoji statuses](https://core.telegram.org/api/emoji-status)
|
||||
|
||||
| Name | Type | Description | Required |
|
||||
|----------|---------------|-------------|----------|
|
||||
|hash|Array of [long\|string](/API_docs/types/long|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long\|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional|
|
||||
|
||||
|
||||
### Return type: [account.EmojiStatuses](/API_docs/types/account.EmojiStatuses.html)
|
||||
@ -37,6 +37,6 @@ include 'madeline.php';
|
||||
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
|
||||
$MadelineProto->start();
|
||||
|
||||
$account_EmojiStatuses = $MadelineProto->account->getRecentEmojiStatuses(hash: [$long|string, $long|string], );
|
||||
$account_EmojiStatuses = $MadelineProto->account->getRecentEmojiStatuses(hash: [$long\|string, $long\|string], );
|
||||
```
|
||||
|
||||
|
@ -17,7 +17,7 @@ Fetch saved notification sounds
|
||||
|
||||
| Name | Type | Description | Required |
|
||||
|----------|---------------|-------------|----------|
|
||||
|hash|Array of [long\|string](/API_docs/types/long|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long\|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional|
|
||||
|
||||
|
||||
### Return type: [account.SavedRingtones](/API_docs/types/account.SavedRingtones.html)
|
||||
@ -37,6 +37,6 @@ include 'madeline.php';
|
||||
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
|
||||
$MadelineProto->start();
|
||||
|
||||
$account_SavedRingtones = $MadelineProto->account->getSavedRingtones(hash: [$long|string, $long|string], );
|
||||
$account_SavedRingtones = $MadelineProto->account->getSavedRingtones(hash: [$long\|string, $long\|string], );
|
||||
```
|
||||
|
||||
|
@ -18,7 +18,7 @@ Get installed themes
|
||||
| Name | Type | Description | Required |
|
||||
|----------|---------------|-------------|----------|
|
||||
|format|[string](/API_docs/types/string.html) | Theme format, a string that identifies the theming engines supported by the client | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long\|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional|
|
||||
|
||||
|
||||
### Return type: [account.Themes](/API_docs/types/account.Themes.html)
|
||||
@ -38,6 +38,6 @@ include 'madeline.php';
|
||||
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
|
||||
$MadelineProto->start();
|
||||
|
||||
$account_Themes = $MadelineProto->account->getThemes(format: 'string', hash: [$long|string, $long|string], );
|
||||
$account_Themes = $MadelineProto->account->getThemes(format: 'string', hash: [$long\|string, $long\|string], );
|
||||
```
|
||||
|
||||
|
@ -17,7 +17,7 @@ Returns a list of available [wallpapers](https://core.telegram.org/api/wallpaper
|
||||
|
||||
| Name | Type | Description | Required |
|
||||
|----------|---------------|-------------|----------|
|
||||
|hash|Array of [long\|string](/API_docs/types/long|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long\|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional|
|
||||
|
||||
|
||||
### Return type: [account.WallPapers](/API_docs/types/account.WallPapers.html)
|
||||
@ -37,6 +37,6 @@ include 'madeline.php';
|
||||
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
|
||||
$MadelineProto->start();
|
||||
|
||||
$account_WallPapers = $MadelineProto->account->getWallPapers(hash: [$long|string, $long|string], );
|
||||
$account_WallPapers = $MadelineProto->account->getWallPapers(hash: [$long\|string, $long\|string], );
|
||||
```
|
||||
|
||||
|
@ -17,7 +17,7 @@ Log out an active [authorized session](https://core.telegram.org/api/auth) by it
|
||||
|
||||
| Name | Type | Description | Required |
|
||||
|----------|---------------|-------------|----------|
|
||||
|hash|Array of [long\|string](/API_docs/types/long|string.html) | Session hash | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long\|string.html) | Session hash | Optional|
|
||||
|
||||
|
||||
### Return type: [Bool](/API_docs/types/Bool.html)
|
||||
@ -37,6 +37,6 @@ include 'madeline.php';
|
||||
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
|
||||
$MadelineProto->start();
|
||||
|
||||
$Bool = $MadelineProto->account->resetAuthorization(hash: [$long|string, $long|string], );
|
||||
$Bool = $MadelineProto->account->resetAuthorization(hash: [$long\|string, $long\|string], );
|
||||
```
|
||||
|
||||
|
@ -17,7 +17,7 @@ Log out an active web [telegram login](https://core.telegram.org/widgets/login)
|
||||
|
||||
| Name | Type | Description | Required |
|
||||
|----------|---------------|-------------|----------|
|
||||
|hash|Array of [long\|string](/API_docs/types/long|string.html) | [Session](../constructors/webAuthorization.html) hash | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long\|string.html) | [Session](../constructors/webAuthorization.html) hash | Optional|
|
||||
|
||||
|
||||
### Return type: [Bool](/API_docs/types/Bool.html)
|
||||
@ -37,6 +37,6 @@ include 'madeline.php';
|
||||
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
|
||||
$MadelineProto->start();
|
||||
|
||||
$Bool = $MadelineProto->account->resetWebAuthorization(hash: [$long|string, $long|string], );
|
||||
$Bool = $MadelineProto->account->resetWebAuthorization(hash: [$long\|string, $long\|string], );
|
||||
```
|
||||
|
||||
|
@ -21,7 +21,7 @@ Get the participants of a [supergroup/channel](https://core.telegram.org/api/cha
|
||||
|filter|[ChannelParticipantsFilter](/API_docs/types/ChannelParticipantsFilter.html) | Which participant types to fetch | Yes|
|
||||
|offset|[int](/API_docs/types/int.html) | [Offset](https://core.telegram.org/api/offsets) | Optional|
|
||||
|limit|[int](/API_docs/types/int.html) | [Limit](https://core.telegram.org/api/offsets) | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long|string.html) | [Hash](https://core.telegram.org/api/offsets) | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long\|string.html) | [Hash](https://core.telegram.org/api/offsets) | Optional|
|
||||
|
||||
|
||||
### Return type: [channels.ChannelParticipants](/API_docs/types/channels.ChannelParticipants.html)
|
||||
@ -41,6 +41,6 @@ include 'madeline.php';
|
||||
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
|
||||
$MadelineProto->start();
|
||||
|
||||
$channels_ChannelParticipants = $MadelineProto->channels->getParticipants(channel: $InputChannel, filter: $ChannelParticipantsFilter, offset: $int, limit: $int, hash: [$long|string, $long|string], );
|
||||
$channels_ChannelParticipants = $MadelineProto->channels->getParticipants(channel: $InputChannel, filter: $ChannelParticipantsFilter, offset: $int, limit: $int, hash: [$long\|string, $long\|string], );
|
||||
```
|
||||
|
||||
|
@ -18,7 +18,7 @@ Returns an array of Telegram user IDs for all contacts (0 if a contact does not
|
||||
|
||||
| Name | Type | Description | Required |
|
||||
|----------|---------------|-------------|----------|
|
||||
|hash|Array of [long\|string](/API_docs/types/long|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long\|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional|
|
||||
|
||||
|
||||
### Return type: [Vector\_of\_int](/API_docs/types/int.html)
|
||||
@ -38,6 +38,6 @@ include 'madeline.php';
|
||||
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
|
||||
$MadelineProto->start();
|
||||
|
||||
$Vector_of_int = $MadelineProto->contacts->getContactIDs(hash: [$long|string, $long|string], );
|
||||
$Vector_of_int = $MadelineProto->contacts->getContactIDs(hash: [$long\|string, $long\|string], );
|
||||
```
|
||||
|
||||
|
@ -17,7 +17,7 @@ Returns the current user's contact list.
|
||||
|
||||
| Name | Type | Description | Required |
|
||||
|----------|---------------|-------------|----------|
|
||||
|hash|Array of [long\|string](/API_docs/types/long|string.html) | If there already is a full contact list on the client, a [hash](https://core.telegram.org/api/offsets#hash-generation) of a the list of contact IDs in ascending order may be passed in this parameter. If the contact set was not changed, [(contacts.contactsNotModified)](../constructors/contacts.contactsNotModified.html) will be returned. | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long\|string.html) | If there already is a full contact list on the client, a [hash](https://core.telegram.org/api/offsets#hash-generation) of a the list of contact IDs in ascending order may be passed in this parameter. If the contact set was not changed, [(contacts.contactsNotModified)](../constructors/contacts.contactsNotModified.html) will be returned. | Optional|
|
||||
|
||||
|
||||
### Return type: [contacts.Contacts](/API_docs/types/contacts.Contacts.html)
|
||||
@ -37,6 +37,6 @@ include 'madeline.php';
|
||||
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
|
||||
$MadelineProto->start();
|
||||
|
||||
$contacts_Contacts = $MadelineProto->contacts->getContacts(hash: [$long|string, $long|string], );
|
||||
$contacts_Contacts = $MadelineProto->contacts->getContacts(hash: [$long\|string, $long\|string], );
|
||||
```
|
||||
|
||||
|
@ -28,7 +28,7 @@ Get most used peers
|
||||
|bots\_app|[Bool](/API_docs/types/Bool.html) | | Optional|
|
||||
|offset|[int](/API_docs/types/int.html) | Offset for [pagination](https://core.telegram.org/api/offsets) | Optional|
|
||||
|limit|[int](/API_docs/types/int.html) | Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets) | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long\|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional|
|
||||
|
||||
|
||||
### Return type: [contacts.TopPeers](/API_docs/types/contacts.TopPeers.html)
|
||||
@ -48,6 +48,6 @@ include 'madeline.php';
|
||||
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
|
||||
$MadelineProto->start();
|
||||
|
||||
$contacts_TopPeers = $MadelineProto->contacts->getTopPeers(correspondents: $Bool, bots_pm: $Bool, bots_inline: $Bool, phone_calls: $Bool, forward_users: $Bool, forward_chats: $Bool, groups: $Bool, channels: $Bool, bots_app: $Bool, offset: $int, limit: $int, hash: [$long|string, $long|string], );
|
||||
$contacts_TopPeers = $MadelineProto->contacts->getTopPeers(correspondents: $Bool, bots_pm: $Bool, bots_inline: $Bool, phone_calls: $Bool, forward_users: $Bool, forward_chats: $Bool, groups: $Bool, channels: $Bool, bots_app: $Bool, offset: $int, limit: $int, hash: [$long\|string, $long\|string], );
|
||||
```
|
||||
|
||||
|
@ -17,7 +17,7 @@ Get app-specific configuration, see [client configuration](https://core.telegram
|
||||
|
||||
| Name | Type | Description | Required |
|
||||
|----------|---------------|-------------|----------|
|
||||
|hash|Array of [long\|string](/API_docs/types/long|string.html) | | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long\|string.html) | | Optional|
|
||||
|
||||
|
||||
### Return type: [help.AppConfig](/API_docs/types/help.AppConfig.html)
|
||||
@ -37,6 +37,6 @@ include 'madeline.php';
|
||||
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
|
||||
$MadelineProto->start();
|
||||
|
||||
$help_AppConfig = $MadelineProto->help->getAppConfig(hash: [$long|string, $long|string], );
|
||||
$help_AppConfig = $MadelineProto->help->getAppConfig(hash: [$long\|string, $long\|string], );
|
||||
```
|
||||
|
||||
|
@ -18,7 +18,7 @@ Get name, ISO code, localized name and phone codes/patterns of all available cou
|
||||
| Name | Type | Description | Required |
|
||||
|----------|---------------|-------------|----------|
|
||||
|lang\_code|[string](/API_docs/types/string.html) | Language code of the current user | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long|string.html) | | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long\|string.html) | | Optional|
|
||||
|
||||
|
||||
### Return type: [help.CountriesList](/API_docs/types/help.CountriesList.html)
|
||||
@ -38,6 +38,6 @@ include 'madeline.php';
|
||||
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
|
||||
$MadelineProto->start();
|
||||
|
||||
$help_CountriesList = $MadelineProto->help->getCountriesList(lang_code: 'string', hash: [$long|string, $long|string], );
|
||||
$help_CountriesList = $MadelineProto->help->getCountriesList(lang_code: 'string', hash: [$long\|string, $long\|string], );
|
||||
```
|
||||
|
||||
|
@ -17,7 +17,7 @@ Get [passport](https://core.telegram.org/passport) configuration
|
||||
|
||||
| Name | Type | Description | Required |
|
||||
|----------|---------------|-------------|----------|
|
||||
|hash|Array of [long\|string](/API_docs/types/long|string.html) | | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long\|string.html) | | Optional|
|
||||
|
||||
|
||||
### Return type: [help.PassportConfig](/API_docs/types/help.PassportConfig.html)
|
||||
@ -37,6 +37,6 @@ include 'madeline.php';
|
||||
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
|
||||
$MadelineProto->start();
|
||||
|
||||
$help_PassportConfig = $MadelineProto->help->getPassportConfig(hash: [$long|string, $long|string], );
|
||||
$help_PassportConfig = $MadelineProto->help->getPassportConfig(hash: [$long\|string, $long\|string], );
|
||||
```
|
||||
|
||||
|
@ -17,7 +17,7 @@ Get the set of [accent color palettes »](https://core.telegram.org/api/colors)
|
||||
|
||||
| Name | Type | Description | Required |
|
||||
|----------|---------------|-------------|----------|
|
||||
|hash|Array of [long\|string](/API_docs/types/long|string.html) | | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long\|string.html) | | Optional|
|
||||
|
||||
|
||||
### Return type: [help.PeerColors](/API_docs/types/help.PeerColors.html)
|
||||
@ -37,6 +37,6 @@ include 'madeline.php';
|
||||
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
|
||||
$MadelineProto->start();
|
||||
|
||||
$help_PeerColors = $MadelineProto->help->getPeerColors(hash: [$long|string, $long|string], );
|
||||
$help_PeerColors = $MadelineProto->help->getPeerColors(hash: [$long\|string, $long\|string], );
|
||||
```
|
||||
|
||||
|
@ -17,7 +17,7 @@ Get the set of [accent color palettes »](https://core.telegram.org/api/colors)
|
||||
|
||||
| Name | Type | Description | Required |
|
||||
|----------|---------------|-------------|----------|
|
||||
|hash|Array of [long\|string](/API_docs/types/long|string.html) | | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long\|string.html) | | Optional|
|
||||
|
||||
|
||||
### Return type: [help.PeerColors](/API_docs/types/help.PeerColors.html)
|
||||
@ -37,6 +37,6 @@ include 'madeline.php';
|
||||
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
|
||||
$MadelineProto->start();
|
||||
|
||||
$help_PeerColors = $MadelineProto->help->getPeerProfileColors(hash: [$long|string, $long|string], );
|
||||
$help_PeerColors = $MadelineProto->help->getPeerProfileColors(hash: [$long\|string, $long\|string], );
|
||||
```
|
||||
|
||||
|
@ -15,7 +15,7 @@ redirect_from: /API_docs/methods/help_getTimezonesList.html
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|---------------|----------|
|
||||
|hash|Array of [long\|string](/API_docs/types/long|string.html) | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long\|string.html) | Optional|
|
||||
|
||||
|
||||
### Return type: [help.TimezonesList](/API_docs/types/help.TimezonesList.html)
|
||||
@ -35,6 +35,6 @@ include 'madeline.php';
|
||||
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
|
||||
$MadelineProto->start();
|
||||
|
||||
$help_TimezonesList = $MadelineProto->help->getTimezonesList(hash: [$long|string, $long|string], );
|
||||
$help_TimezonesList = $MadelineProto->help->getTimezonesList(hash: [$long\|string, $long\|string], );
|
||||
```
|
||||
|
||||
|
@ -17,7 +17,7 @@ Get all installed stickers
|
||||
|
||||
| Name | Type | Description | Required |
|
||||
|----------|---------------|-------------|----------|
|
||||
|hash|Array of [long\|string](/API_docs/types/long|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long\|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional|
|
||||
|
||||
|
||||
### Return type: [messages.AllStickers](/API_docs/types/messages.AllStickers.html)
|
||||
@ -37,6 +37,6 @@ include 'madeline.php';
|
||||
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
|
||||
$MadelineProto->start();
|
||||
|
||||
$messages_AllStickers = $MadelineProto->messages->getAllStickers(hash: [$long|string, $long|string], );
|
||||
$messages_AllStickers = $MadelineProto->messages->getAllStickers(hash: [$long\|string, $long\|string], );
|
||||
```
|
||||
|
||||
|
@ -17,7 +17,7 @@ Returns installed attachment menu [bot mini apps »](https://core.telegram.org/a
|
||||
|
||||
| Name | Type | Description | Required |
|
||||
|----------|---------------|-------------|----------|
|
||||
|hash|Array of [long\|string](/API_docs/types/long|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long\|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional|
|
||||
|
||||
|
||||
### Return type: [AttachMenuBots](/API_docs/types/AttachMenuBots.html)
|
||||
@ -37,6 +37,6 @@ include 'madeline.php';
|
||||
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
|
||||
$MadelineProto->start();
|
||||
|
||||
$AttachMenuBots = $MadelineProto->messages->getAttachMenuBots(hash: [$long|string, $long|string], );
|
||||
$AttachMenuBots = $MadelineProto->messages->getAttachMenuBots(hash: [$long\|string, $long\|string], );
|
||||
```
|
||||
|
||||
|
@ -15,7 +15,7 @@ redirect_from: /API_docs/methods/messages_getAvailableEffects.html
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|---------------|----------|
|
||||
|hash|Array of [long\|string](/API_docs/types/long|string.html) | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long\|string.html) | Optional|
|
||||
|
||||
|
||||
### Return type: [messages.AvailableEffects](/API_docs/types/messages.AvailableEffects.html)
|
||||
@ -35,6 +35,6 @@ include 'madeline.php';
|
||||
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
|
||||
$MadelineProto->start();
|
||||
|
||||
$messages_AvailableEffects = $MadelineProto->messages->getAvailableEffects(hash: [$long|string, $long|string], );
|
||||
$messages_AvailableEffects = $MadelineProto->messages->getAvailableEffects(hash: [$long\|string, $long\|string], );
|
||||
```
|
||||
|
||||
|
@ -17,7 +17,7 @@ Obtain available [message reactions »](https://core.telegram.org/api/reactions)
|
||||
|
||||
| Name | Type | Description | Required |
|
||||
|----------|---------------|-------------|----------|
|
||||
|hash|Array of [long\|string](/API_docs/types/long|string.html) | | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long\|string.html) | | Optional|
|
||||
|
||||
|
||||
### Return type: [messages.AvailableReactions](/API_docs/types/messages.AvailableReactions.html)
|
||||
@ -37,6 +37,6 @@ include 'madeline.php';
|
||||
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
|
||||
$MadelineProto->start();
|
||||
|
||||
$messages_AvailableReactions = $MadelineProto->messages->getAvailableReactions(hash: [$long|string, $long|string], );
|
||||
$messages_AvailableReactions = $MadelineProto->messages->getAvailableReactions(hash: [$long\|string, $long\|string], );
|
||||
```
|
||||
|
||||
|
@ -18,7 +18,7 @@ Obtain information about a [direct link Mini App](https://core.telegram.org/api/
|
||||
| Name | Type | Description | Required |
|
||||
|----------|---------------|-------------|----------|
|
||||
|app|[InputBotApp](/API_docs/types/InputBotApp.html) | Bot app information obtained from a [Direct Mini App deep link »](https://core.telegram.org/api/links#direct-mini-app-links). | Yes|
|
||||
|hash|Array of [long\|string](/API_docs/types/long|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long\|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional|
|
||||
|
||||
|
||||
### Return type: [messages.BotApp](/API_docs/types/messages.BotApp.html)
|
||||
@ -38,6 +38,6 @@ include 'madeline.php';
|
||||
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
|
||||
$MadelineProto->start();
|
||||
|
||||
$messages_BotApp = $MadelineProto->messages->getBotApp(app: $InputBotApp, hash: [$long|string, $long|string], );
|
||||
$messages_BotApp = $MadelineProto->messages->getBotApp(app: $InputBotApp, hash: [$long\|string, $long\|string], );
|
||||
```
|
||||
|
||||
|
@ -15,7 +15,7 @@ redirect_from: /API_docs/methods/messages_getDefaultTagReactions.html
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|---------------|----------|
|
||||
|hash|Array of [long\|string](/API_docs/types/long|string.html) | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long\|string.html) | Optional|
|
||||
|
||||
|
||||
### Return type: [messages.Reactions](/API_docs/types/messages.Reactions.html)
|
||||
@ -35,6 +35,6 @@ include 'madeline.php';
|
||||
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
|
||||
$MadelineProto->start();
|
||||
|
||||
$messages_Reactions = $MadelineProto->messages->getDefaultTagReactions(hash: [$long|string, $long|string], );
|
||||
$messages_Reactions = $MadelineProto->messages->getDefaultTagReactions(hash: [$long\|string, $long\|string], );
|
||||
```
|
||||
|
||||
|
@ -23,7 +23,7 @@ Returns the current user dialog list.
|
||||
|offset\_id|[int](/API_docs/types/int.html) | [Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets) (`top_message` ID used for pagination) | Optional|
|
||||
|offset\_peer|[Username, chat ID, Update, Message or InputPeer](/API_docs/types/InputPeer.html) | [Offset peer for pagination](https://core.telegram.org/api/offsets) | Optional|
|
||||
|limit|[int](/API_docs/types/int.html) | Number of list elements to be returned | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long\|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional|
|
||||
|
||||
|
||||
### Return type: [messages.Dialogs](/API_docs/types/messages.Dialogs.html)
|
||||
@ -43,6 +43,6 @@ include 'madeline.php';
|
||||
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
|
||||
$MadelineProto->start();
|
||||
|
||||
$messages_Dialogs = $MadelineProto->messages->getDialogs(exclude_pinned: $Bool, folder_id: $int, offset_date: $int, offset_id: $int, offset_peer: $InputPeer, limit: $int, hash: [$long|string, $long|string], );
|
||||
$messages_Dialogs = $MadelineProto->messages->getDialogs(exclude_pinned: $Bool, folder_id: $int, offset_date: $int, offset_id: $int, offset_peer: $InputPeer, limit: $int, hash: [$long\|string, $long\|string], );
|
||||
```
|
||||
|
||||
|
@ -17,7 +17,7 @@ Represents a list of [emoji categories](https://core.telegram.org/api/custom-emo
|
||||
|
||||
| Name | Type | Description | Required |
|
||||
|----------|---------------|-------------|----------|
|
||||
|hash|Array of [long\|string](/API_docs/types/long|string.html) | | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long\|string.html) | | Optional|
|
||||
|
||||
|
||||
### Return type: [messages.EmojiGroups](/API_docs/types/messages.EmojiGroups.html)
|
||||
@ -37,6 +37,6 @@ include 'madeline.php';
|
||||
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
|
||||
$MadelineProto->start();
|
||||
|
||||
$messages_EmojiGroups = $MadelineProto->messages->getEmojiGroups(hash: [$long|string, $long|string], );
|
||||
$messages_EmojiGroups = $MadelineProto->messages->getEmojiGroups(hash: [$long\|string, $long\|string], );
|
||||
```
|
||||
|
||||
|
@ -17,7 +17,7 @@ Represents a list of [emoji categories](https://core.telegram.org/api/custom-emo
|
||||
|
||||
| Name | Type | Description | Required |
|
||||
|----------|---------------|-------------|----------|
|
||||
|hash|Array of [long\|string](/API_docs/types/long|string.html) | | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long\|string.html) | | Optional|
|
||||
|
||||
|
||||
### Return type: [messages.EmojiGroups](/API_docs/types/messages.EmojiGroups.html)
|
||||
@ -37,6 +37,6 @@ include 'madeline.php';
|
||||
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
|
||||
$MadelineProto->start();
|
||||
|
||||
$messages_EmojiGroups = $MadelineProto->messages->getEmojiProfilePhotoGroups(hash: [$long|string, $long|string], );
|
||||
$messages_EmojiGroups = $MadelineProto->messages->getEmojiProfilePhotoGroups(hash: [$long\|string, $long\|string], );
|
||||
```
|
||||
|
||||
|
@ -17,7 +17,7 @@ Represents a list of [emoji categories](https://core.telegram.org/api/custom-emo
|
||||
|
||||
| Name | Type | Description | Required |
|
||||
|----------|---------------|-------------|----------|
|
||||
|hash|Array of [long\|string](/API_docs/types/long|string.html) | | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long\|string.html) | | Optional|
|
||||
|
||||
|
||||
### Return type: [messages.EmojiGroups](/API_docs/types/messages.EmojiGroups.html)
|
||||
@ -37,6 +37,6 @@ include 'madeline.php';
|
||||
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
|
||||
$MadelineProto->start();
|
||||
|
||||
$messages_EmojiGroups = $MadelineProto->messages->getEmojiStatusGroups(hash: [$long|string, $long|string], );
|
||||
$messages_EmojiGroups = $MadelineProto->messages->getEmojiStatusGroups(hash: [$long\|string, $long\|string], );
|
||||
```
|
||||
|
||||
|
@ -15,7 +15,7 @@ redirect_from: /API_docs/methods/messages_getEmojiStickerGroups.html
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|---------------|----------|
|
||||
|hash|Array of [long\|string](/API_docs/types/long|string.html) | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long\|string.html) | Optional|
|
||||
|
||||
|
||||
### Return type: [messages.EmojiGroups](/API_docs/types/messages.EmojiGroups.html)
|
||||
@ -35,6 +35,6 @@ include 'madeline.php';
|
||||
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
|
||||
$MadelineProto->start();
|
||||
|
||||
$messages_EmojiGroups = $MadelineProto->messages->getEmojiStickerGroups(hash: [$long|string, $long|string], );
|
||||
$messages_EmojiGroups = $MadelineProto->messages->getEmojiStickerGroups(hash: [$long\|string, $long\|string], );
|
||||
```
|
||||
|
||||
|
@ -17,7 +17,7 @@ Gets the list of currently installed [custom emoji stickersets](https://core.tel
|
||||
|
||||
| Name | Type | Description | Required |
|
||||
|----------|---------------|-------------|----------|
|
||||
|hash|Array of [long\|string](/API_docs/types/long|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long\|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional|
|
||||
|
||||
|
||||
### Return type: [messages.AllStickers](/API_docs/types/messages.AllStickers.html)
|
||||
@ -37,6 +37,6 @@ include 'madeline.php';
|
||||
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
|
||||
$MadelineProto->start();
|
||||
|
||||
$messages_AllStickers = $MadelineProto->messages->getEmojiStickers(hash: [$long|string, $long|string], );
|
||||
$messages_AllStickers = $MadelineProto->messages->getEmojiStickers(hash: [$long\|string, $long\|string], );
|
||||
```
|
||||
|
||||
|
@ -17,7 +17,7 @@ Get faved stickers
|
||||
|
||||
| Name | Type | Description | Required |
|
||||
|----------|---------------|-------------|----------|
|
||||
|hash|Array of [long\|string](/API_docs/types/long|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long\|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional|
|
||||
|
||||
|
||||
### Return type: [messages.FavedStickers](/API_docs/types/messages.FavedStickers.html)
|
||||
@ -37,6 +37,6 @@ include 'madeline.php';
|
||||
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
|
||||
$MadelineProto->start();
|
||||
|
||||
$messages_FavedStickers = $MadelineProto->messages->getFavedStickers(hash: [$long|string, $long|string], );
|
||||
$messages_FavedStickers = $MadelineProto->messages->getFavedStickers(hash: [$long\|string, $long\|string], );
|
||||
```
|
||||
|
||||
|
@ -17,7 +17,7 @@ Gets featured custom emoji stickersets.
|
||||
|
||||
| Name | Type | Description | Required |
|
||||
|----------|---------------|-------------|----------|
|
||||
|hash|Array of [long\|string](/API_docs/types/long|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long\|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional|
|
||||
|
||||
|
||||
### Return type: [messages.FeaturedStickers](/API_docs/types/messages.FeaturedStickers.html)
|
||||
@ -37,6 +37,6 @@ include 'madeline.php';
|
||||
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
|
||||
$MadelineProto->start();
|
||||
|
||||
$messages_FeaturedStickers = $MadelineProto->messages->getFeaturedEmojiStickers(hash: [$long|string, $long|string], );
|
||||
$messages_FeaturedStickers = $MadelineProto->messages->getFeaturedEmojiStickers(hash: [$long\|string, $long\|string], );
|
||||
```
|
||||
|
||||
|
@ -17,7 +17,7 @@ Get featured stickers
|
||||
|
||||
| Name | Type | Description | Required |
|
||||
|----------|---------------|-------------|----------|
|
||||
|hash|Array of [long\|string](/API_docs/types/long|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long\|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional|
|
||||
|
||||
|
||||
### Return type: [messages.FeaturedStickers](/API_docs/types/messages.FeaturedStickers.html)
|
||||
@ -37,6 +37,6 @@ include 'madeline.php';
|
||||
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
|
||||
$MadelineProto->start();
|
||||
|
||||
$messages_FeaturedStickers = $MadelineProto->messages->getFeaturedStickers(hash: [$long|string, $long|string], );
|
||||
$messages_FeaturedStickers = $MadelineProto->messages->getFeaturedStickers(hash: [$long\|string, $long\|string], );
|
||||
```
|
||||
|
||||
|
@ -33,7 +33,7 @@ Returns the conversation history with one interlocutor / within a chat
|
||||
|limit|[int](/API_docs/types/int.html) | Number of results to return | Optional|
|
||||
|max\_id|[int](/API_docs/types/int.html) | If a positive value was transferred, the method will return only messages with IDs less than **max\_id** | Optional|
|
||||
|min\_id|[int](/API_docs/types/int.html) | If a positive value was transferred, the method will return only messages with IDs more than **min\_id** | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long|string.html) | [Result hash](https://core.telegram.org/api/offsets) | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long\|string.html) | [Result hash](https://core.telegram.org/api/offsets) | Optional|
|
||||
|
||||
|
||||
### Return type: [messages.Messages](/API_docs/types/messages.Messages.html)
|
||||
@ -53,6 +53,6 @@ include 'madeline.php';
|
||||
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
|
||||
$MadelineProto->start();
|
||||
|
||||
$messages_Messages = $MadelineProto->messages->getHistory(peer: $InputPeer, offset_id: $int, offset_date: $int, add_offset: $int, limit: $int, max_id: $int, min_id: $int, hash: [$long|string, $long|string], );
|
||||
$messages_Messages = $MadelineProto->messages->getHistory(peer: $InputPeer, offset_id: $int, offset_date: $int, add_offset: $int, limit: $int, max_id: $int, min_id: $int, hash: [$long\|string, $long\|string], );
|
||||
```
|
||||
|
||||
|
@ -17,7 +17,7 @@ Get installed mask stickers
|
||||
|
||||
| Name | Type | Description | Required |
|
||||
|----------|---------------|-------------|----------|
|
||||
|hash|Array of [long\|string](/API_docs/types/long|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long\|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional|
|
||||
|
||||
|
||||
### Return type: [messages.AllStickers](/API_docs/types/messages.AllStickers.html)
|
||||
@ -37,6 +37,6 @@ include 'madeline.php';
|
||||
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
|
||||
$MadelineProto->start();
|
||||
|
||||
$messages_AllStickers = $MadelineProto->messages->getMaskStickers(hash: [$long|string, $long|string], );
|
||||
$messages_AllStickers = $MadelineProto->messages->getMaskStickers(hash: [$long\|string, $long\|string], );
|
||||
```
|
||||
|
||||
|
@ -19,7 +19,7 @@ Method for fetching previously featured stickers
|
||||
|----------|---------------|-------------|----------|
|
||||
|offset|[int](/API_docs/types/int.html) | Offset | Optional|
|
||||
|limit|[int](/API_docs/types/int.html) | Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets) | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long\|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional|
|
||||
|
||||
|
||||
### Return type: [messages.FeaturedStickers](/API_docs/types/messages.FeaturedStickers.html)
|
||||
@ -39,6 +39,6 @@ include 'madeline.php';
|
||||
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
|
||||
$MadelineProto->start();
|
||||
|
||||
$messages_FeaturedStickers = $MadelineProto->messages->getOldFeaturedStickers(offset: $int, limit: $int, hash: [$long|string, $long|string], );
|
||||
$messages_FeaturedStickers = $MadelineProto->messages->getOldFeaturedStickers(offset: $int, limit: $int, hash: [$long\|string, $long\|string], );
|
||||
```
|
||||
|
||||
|
@ -15,7 +15,7 @@ redirect_from: /API_docs/methods/messages_getQuickReplies.html
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|---------------|----------|
|
||||
|hash|Array of [long\|string](/API_docs/types/long|string.html) | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long\|string.html) | Optional|
|
||||
|
||||
|
||||
### Return type: [messages.QuickReplies](/API_docs/types/messages.QuickReplies.html)
|
||||
@ -35,6 +35,6 @@ include 'madeline.php';
|
||||
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
|
||||
$MadelineProto->start();
|
||||
|
||||
$messages_QuickReplies = $MadelineProto->messages->getQuickReplies(hash: [$long|string, $long|string], );
|
||||
$messages_QuickReplies = $MadelineProto->messages->getQuickReplies(hash: [$long\|string, $long\|string], );
|
||||
```
|
||||
|
||||
|
@ -17,7 +17,7 @@ redirect_from: /API_docs/methods/messages_getQuickReplyMessages.html
|
||||
|----------|---------------|----------|
|
||||
|shortcut\_id|[int](/API_docs/types/int.html) | Optional|
|
||||
|id|Array of [int](/API_docs/types/int.html) | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long|string.html) | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long\|string.html) | Optional|
|
||||
|
||||
|
||||
### Return type: [messages.Messages](/API_docs/types/messages.Messages.html)
|
||||
@ -37,6 +37,6 @@ include 'madeline.php';
|
||||
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
|
||||
$MadelineProto->start();
|
||||
|
||||
$messages_Messages = $MadelineProto->messages->getQuickReplyMessages(shortcut_id: $int, id: [$int, $int], hash: [$long|string, $long|string], );
|
||||
$messages_Messages = $MadelineProto->messages->getQuickReplyMessages(shortcut_id: $int, id: [$int, $int], hash: [$long\|string, $long\|string], );
|
||||
```
|
||||
|
||||
|
@ -19,7 +19,7 @@ Get live location history of a certain user
|
||||
|----------|---------------|-------------|----------|
|
||||
|peer|[Username, chat ID, Update, Message or InputPeer](/API_docs/types/InputPeer.html) | User | Optional|
|
||||
|limit|[int](/API_docs/types/int.html) | Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets) | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long\|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional|
|
||||
|
||||
|
||||
### Return type: [messages.Messages](/API_docs/types/messages.Messages.html)
|
||||
@ -39,6 +39,6 @@ include 'madeline.php';
|
||||
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
|
||||
$MadelineProto->start();
|
||||
|
||||
$messages_Messages = $MadelineProto->messages->getRecentLocations(peer: $InputPeer, limit: $int, hash: [$long|string, $long|string], );
|
||||
$messages_Messages = $MadelineProto->messages->getRecentLocations(peer: $InputPeer, limit: $int, hash: [$long\|string, $long\|string], );
|
||||
```
|
||||
|
||||
|
@ -18,7 +18,7 @@ Get recently used [message reactions](https://core.telegram.org/api/reactions)
|
||||
| Name | Type | Description | Required |
|
||||
|----------|---------------|-------------|----------|
|
||||
|limit|[int](/API_docs/types/int.html) | Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets) | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long\|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional|
|
||||
|
||||
|
||||
### Return type: [messages.Reactions](/API_docs/types/messages.Reactions.html)
|
||||
@ -38,6 +38,6 @@ include 'madeline.php';
|
||||
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
|
||||
$MadelineProto->start();
|
||||
|
||||
$messages_Reactions = $MadelineProto->messages->getRecentReactions(limit: $int, hash: [$long|string, $long|string], );
|
||||
$messages_Reactions = $MadelineProto->messages->getRecentReactions(limit: $int, hash: [$long\|string, $long\|string], );
|
||||
```
|
||||
|
||||
|
@ -18,7 +18,7 @@ Get recent stickers
|
||||
| Name | Type | Description | Required |
|
||||
|----------|---------------|-------------|----------|
|
||||
|attached|[Bool](/API_docs/types/Bool.html) | Get stickers recently attached to photo or video files | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long\|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional|
|
||||
|
||||
|
||||
### Return type: [messages.RecentStickers](/API_docs/types/messages.RecentStickers.html)
|
||||
@ -38,6 +38,6 @@ include 'madeline.php';
|
||||
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
|
||||
$MadelineProto->start();
|
||||
|
||||
$messages_RecentStickers = $MadelineProto->messages->getRecentStickers(attached: $Bool, hash: [$long|string, $long|string], );
|
||||
$messages_RecentStickers = $MadelineProto->messages->getRecentStickers(attached: $Bool, hash: [$long\|string, $long\|string], );
|
||||
```
|
||||
|
||||
|
@ -25,7 +25,7 @@ Get messages in a reply thread
|
||||
|limit|[int](/API_docs/types/int.html) | Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets) | Optional|
|
||||
|max\_id|[int](/API_docs/types/int.html) | If a positive value was transferred, the method will return only messages with ID smaller than max\_id | Optional|
|
||||
|min\_id|[int](/API_docs/types/int.html) | If a positive value was transferred, the method will return only messages with ID bigger than min\_id | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long\|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional|
|
||||
|
||||
|
||||
### Return type: [messages.Messages](/API_docs/types/messages.Messages.html)
|
||||
@ -45,6 +45,6 @@ include 'madeline.php';
|
||||
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
|
||||
$MadelineProto->start();
|
||||
|
||||
$messages_Messages = $MadelineProto->messages->getReplies(peer: $InputPeer, msg_id: $int, offset_id: $int, offset_date: $int, add_offset: $int, limit: $int, max_id: $int, min_id: $int, hash: [$long|string, $long|string], );
|
||||
$messages_Messages = $MadelineProto->messages->getReplies(peer: $InputPeer, msg_id: $int, offset_id: $int, offset_date: $int, add_offset: $int, limit: $int, max_id: $int, min_id: $int, hash: [$long\|string, $long\|string], );
|
||||
```
|
||||
|
||||
|
@ -22,7 +22,7 @@ Returns the current saved dialog list, see [here »](https://core.telegram.org/a
|
||||
|offset\_id|[int](/API_docs/types/int.html) | [Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets) (`top_message` ID used for pagination) | Optional|
|
||||
|offset\_peer|[Username, chat ID, Update, Message or InputPeer](/API_docs/types/InputPeer.html) | [Offset peer for pagination](https://core.telegram.org/api/offsets) | Optional|
|
||||
|limit|[int](/API_docs/types/int.html) | Number of list elements to be returned | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long\|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional|
|
||||
|
||||
|
||||
### Return type: [messages.SavedDialogs](/API_docs/types/messages.SavedDialogs.html)
|
||||
@ -42,6 +42,6 @@ include 'madeline.php';
|
||||
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
|
||||
$MadelineProto->start();
|
||||
|
||||
$messages_SavedDialogs = $MadelineProto->messages->getSavedDialogs(exclude_pinned: $Bool, offset_date: $int, offset_id: $int, offset_peer: $InputPeer, limit: $int, hash: [$long|string, $long|string], );
|
||||
$messages_SavedDialogs = $MadelineProto->messages->getSavedDialogs(exclude_pinned: $Bool, offset_date: $int, offset_id: $int, offset_peer: $InputPeer, limit: $int, hash: [$long\|string, $long\|string], );
|
||||
```
|
||||
|
||||
|
@ -17,7 +17,7 @@ Get saved GIFs
|
||||
|
||||
| Name | Type | Description | Required |
|
||||
|----------|---------------|-------------|----------|
|
||||
|hash|Array of [long\|string](/API_docs/types/long|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long\|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional|
|
||||
|
||||
|
||||
### Return type: [messages.SavedGifs](/API_docs/types/messages.SavedGifs.html)
|
||||
@ -37,6 +37,6 @@ include 'madeline.php';
|
||||
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
|
||||
$MadelineProto->start();
|
||||
|
||||
$messages_SavedGifs = $MadelineProto->messages->getSavedGifs(hash: [$long|string, $long|string], );
|
||||
$messages_SavedGifs = $MadelineProto->messages->getSavedGifs(hash: [$long\|string, $long\|string], );
|
||||
```
|
||||
|
||||
|
@ -24,7 +24,7 @@ Returns [saved messages »](https://core.telegram.org/api/saved-messages) forwar
|
||||
|limit|[int](/API_docs/types/int.html) | Number of results to return | Optional|
|
||||
|max\_id|[int](/API_docs/types/int.html) | If a positive value was transferred, the method will return only messages with IDs less than **max\_id** | Optional|
|
||||
|min\_id|[int](/API_docs/types/int.html) | If a positive value was transferred, the method will return only messages with IDs more than **min\_id** | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long|string.html) | [Result hash](https://core.telegram.org/api/offsets) | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long\|string.html) | [Result hash](https://core.telegram.org/api/offsets) | Optional|
|
||||
|
||||
|
||||
### Return type: [messages.Messages](/API_docs/types/messages.Messages.html)
|
||||
@ -44,6 +44,6 @@ include 'madeline.php';
|
||||
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
|
||||
$MadelineProto->start();
|
||||
|
||||
$messages_Messages = $MadelineProto->messages->getSavedHistory(peer: $InputPeer, offset_id: $int, offset_date: $int, add_offset: $int, limit: $int, max_id: $int, min_id: $int, hash: [$long|string, $long|string], );
|
||||
$messages_Messages = $MadelineProto->messages->getSavedHistory(peer: $InputPeer, offset_id: $int, offset_date: $int, add_offset: $int, limit: $int, max_id: $int, min_id: $int, hash: [$long\|string, $long\|string], );
|
||||
```
|
||||
|
||||
|
@ -16,7 +16,7 @@ redirect_from: /API_docs/methods/messages_getSavedReactionTags.html
|
||||
| Name | Type | Required |
|
||||
|----------|---------------|----------|
|
||||
|peer|[Username, chat ID, Update, Message or InputPeer](/API_docs/types/InputPeer.html) | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long|string.html) | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long\|string.html) | Optional|
|
||||
|
||||
|
||||
### Return type: [messages.SavedReactionTags](/API_docs/types/messages.SavedReactionTags.html)
|
||||
@ -36,6 +36,6 @@ include 'madeline.php';
|
||||
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
|
||||
$MadelineProto->start();
|
||||
|
||||
$messages_SavedReactionTags = $MadelineProto->messages->getSavedReactionTags(peer: $InputPeer, hash: [$long|string, $long|string], );
|
||||
$messages_SavedReactionTags = $MadelineProto->messages->getSavedReactionTags(peer: $InputPeer, hash: [$long\|string, $long\|string], );
|
||||
```
|
||||
|
||||
|
@ -18,7 +18,7 @@ Get scheduled messages
|
||||
| Name | Type | Description | Required |
|
||||
|----------|---------------|-------------|----------|
|
||||
|peer|[Username, chat ID, Update, Message or InputPeer](/API_docs/types/InputPeer.html) | Peer | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long\|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional|
|
||||
|
||||
|
||||
### Return type: [messages.Messages](/API_docs/types/messages.Messages.html)
|
||||
@ -38,6 +38,6 @@ include 'madeline.php';
|
||||
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
|
||||
$MadelineProto->start();
|
||||
|
||||
$messages_Messages = $MadelineProto->messages->getScheduledHistory(peer: $InputPeer, hash: [$long|string, $long|string], );
|
||||
$messages_Messages = $MadelineProto->messages->getScheduledHistory(peer: $InputPeer, hash: [$long\|string, $long\|string], );
|
||||
```
|
||||
|
||||
|
@ -18,7 +18,7 @@ Get info about a stickerset
|
||||
| Name | Type | Description | Required |
|
||||
|----------|---------------|-------------|----------|
|
||||
|stickerset|[InputStickerSet](/API_docs/types/InputStickerSet.html) | Stickerset | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long|string.html) | | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long\|string.html) | | Optional|
|
||||
|
||||
|
||||
### Return type: [messages.StickerSet](/API_docs/types/messages.StickerSet.html)
|
||||
@ -38,6 +38,6 @@ include 'madeline.php';
|
||||
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
|
||||
$MadelineProto->start();
|
||||
|
||||
$messages_StickerSet = $MadelineProto->messages->getStickerSet(stickerset: $InputStickerSet, hash: [$long|string, $long|string], );
|
||||
$messages_StickerSet = $MadelineProto->messages->getStickerSet(stickerset: $InputStickerSet, hash: [$long\|string, $long\|string], );
|
||||
```
|
||||
|
||||
|
@ -18,7 +18,7 @@ Get stickers by emoji
|
||||
| Name | Type | Description | Required |
|
||||
|----------|---------------|-------------|----------|
|
||||
|emoticon|[string](/API_docs/types/string.html) | The emoji | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long\|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional|
|
||||
|
||||
|
||||
### Return type: [messages.Stickers](/API_docs/types/messages.Stickers.html)
|
||||
@ -38,6 +38,6 @@ include 'madeline.php';
|
||||
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
|
||||
$MadelineProto->start();
|
||||
|
||||
$messages_Stickers = $MadelineProto->messages->getStickers(emoticon: 'string', hash: [$long|string, $long|string], );
|
||||
$messages_Stickers = $MadelineProto->messages->getStickers(emoticon: 'string', hash: [$long\|string, $long\|string], );
|
||||
```
|
||||
|
||||
|
@ -18,7 +18,7 @@ Got popular [message reactions](https://core.telegram.org/api/reactions)
|
||||
| Name | Type | Description | Required |
|
||||
|----------|---------------|-------------|----------|
|
||||
|limit|[int](/API_docs/types/int.html) | Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets) | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long\|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional|
|
||||
|
||||
|
||||
### Return type: [messages.Reactions](/API_docs/types/messages.Reactions.html)
|
||||
@ -38,6 +38,6 @@ include 'madeline.php';
|
||||
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
|
||||
$MadelineProto->start();
|
||||
|
||||
$messages_Reactions = $MadelineProto->messages->getTopReactions(limit: $int, hash: [$long|string, $long|string], );
|
||||
$messages_Reactions = $MadelineProto->messages->getTopReactions(limit: $int, hash: [$long\|string, $long\|string], );
|
||||
```
|
||||
|
||||
|
@ -18,7 +18,7 @@ Get [instant view](https://instantview.telegram.org) page
|
||||
| Name | Type | Description | Required |
|
||||
|----------|---------------|-------------|----------|
|
||||
|url|[string](/API_docs/types/string.html) | URL of IV page to fetch | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long|string.html) | | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long\|string.html) | | Optional|
|
||||
|
||||
|
||||
### Return type: [messages.WebPage](/API_docs/types/messages.WebPage.html)
|
||||
@ -38,6 +38,6 @@ include 'madeline.php';
|
||||
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
|
||||
$MadelineProto->start();
|
||||
|
||||
$messages_WebPage = $MadelineProto->messages->getWebPage(url: 'string', hash: [$long|string, $long|string], );
|
||||
$messages_WebPage = $MadelineProto->messages->getWebPage(url: 'string', hash: [$long\|string, $long\|string], );
|
||||
```
|
||||
|
||||
|
@ -31,7 +31,7 @@ Search for messages.
|
||||
|limit|[int](/API_docs/types/int.html) | [Number of results to return](https://core.telegram.org/api/offsets) | Optional|
|
||||
|max\_id|[int](/API_docs/types/int.html) | [Maximum message ID to return](https://core.telegram.org/api/offsets) | Optional|
|
||||
|min\_id|[int](/API_docs/types/int.html) | [Minimum message ID to return](https://core.telegram.org/api/offsets) | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long|string.html) | [Hash](https://core.telegram.org/api/offsets) | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long\|string.html) | [Hash](https://core.telegram.org/api/offsets) | Optional|
|
||||
|
||||
|
||||
### Return type: [messages.Messages](/API_docs/types/messages.Messages.html)
|
||||
@ -51,6 +51,6 @@ include 'madeline.php';
|
||||
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
|
||||
$MadelineProto->start();
|
||||
|
||||
$messages_Messages = $MadelineProto->messages->search(peer: $InputPeer, q: 'string', from_id: $InputPeer, saved_peer_id: $InputPeer, saved_reaction: [$Reaction, $Reaction], top_msg_id: $int, filter: $MessagesFilter, min_date: $int, max_date: $int, offset_id: $int, add_offset: $int, limit: $int, max_id: $int, min_id: $int, hash: [$long|string, $long|string], );
|
||||
$messages_Messages = $MadelineProto->messages->search(peer: $InputPeer, q: 'string', from_id: $InputPeer, saved_peer_id: $InputPeer, saved_reaction: [$Reaction, $Reaction], top_msg_id: $int, filter: $MessagesFilter, min_date: $int, max_date: $int, offset_id: $int, add_offset: $int, limit: $int, max_id: $int, min_id: $int, hash: [$long\|string, $long\|string], );
|
||||
```
|
||||
|
||||
|
@ -18,7 +18,7 @@ Look for [custom emojis](https://core.telegram.org/api/custom-emoji) associated
|
||||
| Name | Type | Description | Required |
|
||||
|----------|---------------|-------------|----------|
|
||||
|emoticon|[string](/API_docs/types/string.html) | The emoji | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long\|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional|
|
||||
|
||||
|
||||
### Return type: [EmojiList](/API_docs/types/EmojiList.html)
|
||||
@ -38,6 +38,6 @@ include 'madeline.php';
|
||||
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
|
||||
$MadelineProto->start();
|
||||
|
||||
$EmojiList = $MadelineProto->messages->searchCustomEmoji(emoticon: 'string', hash: [$long|string, $long|string], );
|
||||
$EmojiList = $MadelineProto->messages->searchCustomEmoji(emoticon: 'string', hash: [$long\|string, $long\|string], );
|
||||
```
|
||||
|
||||
|
@ -19,7 +19,7 @@ Search for [custom emoji stickersets »](https://core.telegram.org/api/custom-em
|
||||
|----------|---------------|-------------|----------|
|
||||
|exclude\_featured|[Bool](/API_docs/types/Bool.html) | Exclude featured stickersets from results | Optional|
|
||||
|q|[string](/API_docs/types/string.html) | Query string | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long\|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional|
|
||||
|
||||
|
||||
### Return type: [messages.FoundStickerSets](/API_docs/types/messages.FoundStickerSets.html)
|
||||
@ -39,6 +39,6 @@ include 'madeline.php';
|
||||
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
|
||||
$MadelineProto->start();
|
||||
|
||||
$messages_FoundStickerSets = $MadelineProto->messages->searchEmojiStickerSets(exclude_featured: $Bool, q: 'string', hash: [$long|string, $long|string], );
|
||||
$messages_FoundStickerSets = $MadelineProto->messages->searchEmojiStickerSets(exclude_featured: $Bool, q: 'string', hash: [$long\|string, $long\|string], );
|
||||
```
|
||||
|
||||
|
@ -19,7 +19,7 @@ Search for stickersets
|
||||
|----------|---------------|-------------|----------|
|
||||
|exclude\_featured|[Bool](/API_docs/types/Bool.html) | Exclude featured stickersets from results | Optional|
|
||||
|q|[string](/API_docs/types/string.html) | Query string | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional|
|
||||
|hash|Array of [long\|string](/API_docs/types/long\|string.html) | [Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation) | Optional|
|
||||
|
||||
|
||||
### Return type: [messages.FoundStickerSets](/API_docs/types/messages.FoundStickerSets.html)
|
||||
@ -39,6 +39,6 @@ include 'madeline.php';
|
||||
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
|
||||
$MadelineProto->start();
|
||||
|
||||
$messages_FoundStickerSets = $MadelineProto->messages->searchStickerSets(exclude_featured: $Bool, q: 'string', hash: [$long|string, $long|string], );
|
||||
$messages_FoundStickerSets = $MadelineProto->messages->searchStickerSets(exclude_featured: $Bool, q: 'string', hash: [$long\|string, $long\|string], );
|
||||
```
|
||||
|
||||
|
@ -42,6 +42,7 @@ Represents the type of a bot API dialog ID.
|
||||
* [`toChatId(int $id): int`](#toChatId)
|
||||
* [`fromUserId(int $id): int`](#fromUserId)
|
||||
* [`toUserId(int $id): int`](#toUserId)
|
||||
* [`toMTProtoId(int $id): int`](#toMTProtoId)
|
||||
* [`cases(): array`](#cases)
|
||||
|
||||
## Methods:
|
||||
@ -192,6 +193,17 @@ Parameters:
|
||||
|
||||
|
||||
|
||||
### <a name="toMTProtoId"></a> `toMTProtoId(int $id): int`
|
||||
|
||||
Convert bot API ID to MTProto ID (automatically detecting the correct type).
|
||||
|
||||
|
||||
Parameters:
|
||||
|
||||
* `$id`: `int` Bot API dialog ID
|
||||
|
||||
|
||||
|
||||
### <a name="cases"></a> `cases(): array`
|
||||
|
||||
|
||||
|
@ -130,7 +130,7 @@ Main API wrapper for MadelineProto.
|
||||
* [`flock(string $file, integer $operation, float $polling = 0.1, ?\Amp\Cancellation $token = NULL, ?\Closure $failureCb = NULL): ($token is null ? Closure(): void : (Closure(): void | null))`](#flock)
|
||||
* [`fullChatLastUpdated(mixed $id): int`](#fullChatLastUpdated)
|
||||
* [`fullGetSelf(): array|false`](#fullGetSelf)
|
||||
* [`genVectorHash(array $longs): string`](#genVectorHash)
|
||||
* [`genVectorHash(array<(string|int)> $longs): string`](#genVectorHash)
|
||||
* [`getAdminIds(): array`](#getAdminIds)
|
||||
* [`getAllCalls(): array<int, \danog\MadelineProto\VoIP>`](#getAllCalls)
|
||||
* [`getAllMethods(): array`](#getAllMethods)
|
||||
@ -1092,7 +1092,7 @@ Get info about the logged-in user, not cached.
|
||||
|
||||
|
||||
|
||||
### <a name="genVectorHash"></a> `genVectorHash(array $longs): string`
|
||||
### <a name="genVectorHash"></a> `genVectorHash(array<(string|int)> $longs): string`
|
||||
|
||||
Generate MTProto vector hash.
|
||||
|
||||
@ -1101,7 +1101,7 @@ Returns a vector hash.
|
||||
|
||||
Parameters:
|
||||
|
||||
* `$longs`: `array` IDs
|
||||
* `$longs`: `array<(string|int)>` IDs
|
||||
|
||||
|
||||
|
||||
|
@ -95,7 +95,7 @@ Event handler.
|
||||
* [`flock(string $file, integer $operation, float $polling = 0.1, ?\Amp\Cancellation $token = NULL, ?\Closure $failureCb = NULL): ($token is null ? Closure(): void : (Closure(): void | null))`](#flock)
|
||||
* [`fullChatLastUpdated(mixed $id): int`](#fullChatLastUpdated)
|
||||
* [`fullGetSelf(): array|false`](#fullGetSelf)
|
||||
* [`genVectorHash(array $longs): string`](#genVectorHash)
|
||||
* [`genVectorHash(array<(string|int)> $longs): string`](#genVectorHash)
|
||||
* [`getAdminIds(): array`](#getAdminIds)
|
||||
* [`getAllCalls(): array<int, \danog\MadelineProto\VoIP>`](#getAllCalls)
|
||||
* [`getAllMethods(): array`](#getAllMethods)
|
||||
@ -1100,7 +1100,7 @@ Get info about the logged-in user, not cached.
|
||||
|
||||
|
||||
|
||||
### <a name="genVectorHash"></a> `genVectorHash(array $longs): string`
|
||||
### <a name="genVectorHash"></a> `genVectorHash(array<(string|int)> $longs): string`
|
||||
|
||||
Generate MTProto vector hash.
|
||||
|
||||
@ -1109,7 +1109,7 @@ Returns a vector hash.
|
||||
|
||||
Parameters:
|
||||
|
||||
* `$longs`: `array` IDs
|
||||
* `$longs`: `array<(string|int)>` IDs
|
||||
|
||||
|
||||
|
||||
|
@ -97,7 +97,7 @@ Plugin that offers a /restart command to admins that can be used to restart the
|
||||
* [`flock(string $file, integer $operation, float $polling = 0.1, ?\Amp\Cancellation $token = NULL, ?\Closure $failureCb = NULL): ($token is null ? Closure(): void : (Closure(): void | null))`](#flock)
|
||||
* [`fullChatLastUpdated(mixed $id): int`](#fullChatLastUpdated)
|
||||
* [`fullGetSelf(): array|false`](#fullGetSelf)
|
||||
* [`genVectorHash(array $longs): string`](#genVectorHash)
|
||||
* [`genVectorHash(array<(string|int)> $longs): string`](#genVectorHash)
|
||||
* [`getAdminIds(): array`](#getAdminIds)
|
||||
* [`getAllCalls(): array<int, \danog\MadelineProto\VoIP>`](#getAllCalls)
|
||||
* [`getAllMethods(): array`](#getAllMethods)
|
||||
@ -1116,7 +1116,7 @@ Get info about the logged-in user, not cached.
|
||||
|
||||
|
||||
|
||||
### <a name="genVectorHash"></a> `genVectorHash(array $longs): string`
|
||||
### <a name="genVectorHash"></a> `genVectorHash(array<(string|int)> $longs): string`
|
||||
|
||||
Generate MTProto vector hash.
|
||||
|
||||
@ -1125,7 +1125,7 @@ Returns a vector hash.
|
||||
|
||||
Parameters:
|
||||
|
||||
* `$longs`: `array` IDs
|
||||
* `$longs`: `array<(string|int)>` IDs
|
||||
|
||||
|
||||
|
||||
|
@ -96,7 +96,7 @@ Plugin event handler class.
|
||||
* [`flock(string $file, integer $operation, float $polling = 0.1, ?\Amp\Cancellation $token = NULL, ?\Closure $failureCb = NULL): ($token is null ? Closure(): void : (Closure(): void | null))`](#flock)
|
||||
* [`fullChatLastUpdated(mixed $id): int`](#fullChatLastUpdated)
|
||||
* [`fullGetSelf(): array|false`](#fullGetSelf)
|
||||
* [`genVectorHash(array $longs): string`](#genVectorHash)
|
||||
* [`genVectorHash(array<(string|int)> $longs): string`](#genVectorHash)
|
||||
* [`getAdminIds(): array`](#getAdminIds)
|
||||
* [`getAllCalls(): array<int, \danog\MadelineProto\VoIP>`](#getAllCalls)
|
||||
* [`getAllMethods(): array`](#getAllMethods)
|
||||
@ -1099,7 +1099,7 @@ Get info about the logged-in user, not cached.
|
||||
|
||||
|
||||
|
||||
### <a name="genVectorHash"></a> `genVectorHash(array $longs): string`
|
||||
### <a name="genVectorHash"></a> `genVectorHash(array<(string|int)> $longs): string`
|
||||
|
||||
Generate MTProto vector hash.
|
||||
|
||||
@ -1108,7 +1108,7 @@ Returns a vector hash.
|
||||
|
||||
Parameters:
|
||||
|
||||
* `$longs`: `array` IDs
|
||||
* `$longs`: `array<(string|int)>` IDs
|
||||
|
||||
|
||||
|
||||
|
@ -95,7 +95,7 @@ Simple event handler class: by extending this class, you can use filters, crons
|
||||
* [`flock(string $file, integer $operation, float $polling = 0.1, ?\Amp\Cancellation $token = NULL, ?\Closure $failureCb = NULL): ($token is null ? Closure(): void : (Closure(): void | null))`](#flock)
|
||||
* [`fullChatLastUpdated(mixed $id): int`](#fullChatLastUpdated)
|
||||
* [`fullGetSelf(): array|false`](#fullGetSelf)
|
||||
* [`genVectorHash(array $longs): string`](#genVectorHash)
|
||||
* [`genVectorHash(array<(string|int)> $longs): string`](#genVectorHash)
|
||||
* [`getAdminIds(): array`](#getAdminIds)
|
||||
* [`getAllCalls(): array<int, \danog\MadelineProto\VoIP>`](#getAllCalls)
|
||||
* [`getAllMethods(): array`](#getAllMethods)
|
||||
@ -1100,7 +1100,7 @@ Get info about the logged-in user, not cached.
|
||||
|
||||
|
||||
|
||||
### <a name="genVectorHash"></a> `genVectorHash(array $longs): string`
|
||||
### <a name="genVectorHash"></a> `genVectorHash(array<(string|int)> $longs): string`
|
||||
|
||||
Generate MTProto vector hash.
|
||||
|
||||
@ -1109,7 +1109,7 @@ Returns a vector hash.
|
||||
|
||||
Parameters:
|
||||
|
||||
* `$longs`: `array` IDs
|
||||
* `$longs`: `array<(string|int)>` IDs
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user