diff --git a/README.md b/README.md index 591480b8..d96435f9 100644 --- a/README.md +++ b/README.md @@ -129,6 +129,7 @@ Tip: if you receive an error (or nothing), [send us](https://t.me/pwrtelegramgro * [Translation](https://docs.madelineproto.xyz/docs/CONTRIBUTING.html#translation) * [Contribution guide](https://docs.madelineproto.xyz/docs/CONTRIBUTING.html#contribution-guide) * [Credits](https://docs.madelineproto.xyz/docs/CONTRIBUTING.html#credits) +* [Web templates for `$MadelineProto->start()`](https://docs.madelineproto.xyz/docs/TEMPLATES.html) ## Very complex and complete examples diff --git a/build_docs_index.php b/build_docs_index.php index 644f50c6..c4fdb49e 100644 --- a/build_docs_index.php +++ b/build_docs_index.php @@ -45,8 +45,8 @@ foreach ($files as $file) { $orderedfiles[19] = $file; } else if ($base === 'CONTRIBUTING') { $orderedfiles[20] = $file; - } else { - $orderedfiles[] = $file; + } else if ($base === 'TEMPLATES') { + $orderedfiles[21] = $file; } ksort($orderedfiles); } diff --git a/docs/API_docs/methods/contacts_resetTopPeerRating.md b/docs/API_docs/methods/contacts_resetTopPeerRating.md index a1da33bb..4b485921 100644 --- a/docs/API_docs/methods/contacts_resetTopPeerRating.md +++ b/docs/API_docs/methods/contacts_resetTopPeerRating.md @@ -1,17 +1,19 @@ --- title: contacts.resetTopPeerRating -description: contacts.resetTopPeerRating parameters, return type and example +description: Reset top peer rating for a certain category/peer --- ## Method: contacts.resetTopPeerRating [Back to methods index](index.md) +Reset top peer rating for a certain category/peer + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|category|[CLICK ME TopPeerCategory](../types/TopPeerCategory.md) | Yes| -|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|category|[CLICK ME TopPeerCategory](../types/TopPeerCategory.md) | Yes|The category | +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional|The peer| ### Return type: [Bool](../types/Bool.md) diff --git a/docs/API_docs/methods/messages_getMessages.md b/docs/API_docs/methods/messages_getMessages.md index 54660219..81744474 100644 --- a/docs/API_docs/methods/messages_getMessages.md +++ b/docs/API_docs/methods/messages_getMessages.md @@ -1,16 +1,18 @@ --- title: messages.getMessages -description: messages.getMessages parameters, return type and example +description: Get messages --- ## Method: messages.getMessages [Back to methods index](index.md) +Get messages + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [Message ID or InputMessage](../types/InputMessage.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [Message ID or InputMessage](../types/InputMessage.md) | Yes|The IDs of messages to fetch (only for users and normal groups)| ### Return type: [messages\_Messages](../types/messages_Messages.md) diff --git a/docs/docs/CALLS.md b/docs/docs/CALLS.md index 4c1b6e53..b29827d4 100644 --- a/docs/docs/CALLS.md +++ b/docs/docs/CALLS.md @@ -118,4 +118,6 @@ foreach ($updates as $update) { + +
\ No newline at end of file diff --git a/docs/docs/CHAT_INFO.md b/docs/docs/CHAT_INFO.md index 4abe1e6a..2073ca77 100644 --- a/docs/docs/CHAT_INFO.md +++ b/docs/docs/CHAT_INFO.md @@ -43,4 +43,6 @@ You can also use `get_info` to get chat info, see [here for the parameters and t * Caching: full + +
\ No newline at end of file diff --git a/docs/docs/CONTRIBUTING.md b/docs/docs/CONTRIBUTING.md index 805c5b24..b44351ad 100644 --- a/docs/docs/CONTRIBUTING.md +++ b/docs/docs/CONTRIBUTING.md @@ -27,7 +27,7 @@ Then create a pull request from branch `localization-yourlanguage` You can use this scheme of the structure of this project to help yourself: -```php +``` build_docs.php - Builds API docs from TL scheme file src/danog/MadelineProto/ MTProtoTools/ @@ -90,4 +90,6 @@ Thanks to the devs that contributed to these projects, MadelineProto is now an e -
\ No newline at end of file + + +
\ No newline at end of file diff --git a/docs/docs/CREATING_A_CLIENT.md b/docs/docs/CREATING_A_CLIENT.md index 3f1d0621..888e3bbd 100644 --- a/docs/docs/CREATING_A_CLIENT.md +++ b/docs/docs/CREATING_A_CLIENT.md @@ -21,4 +21,6 @@ $MadelineProto->session = 'newsession.madeline'; ``` + +
\ No newline at end of file diff --git a/docs/docs/DIALOGS.md b/docs/docs/DIALOGS.md index 2e91af5d..2b3c040b 100644 --- a/docs/docs/DIALOGS.md +++ b/docs/docs/DIALOGS.md @@ -32,4 +32,6 @@ Since bots cannot run `get_dialogs`, you must make use of the internal MadelineP + +
\ No newline at end of file diff --git a/docs/docs/EXCEPTIONS.md b/docs/docs/EXCEPTIONS.md index 800d3fd7..3e017bb2 100644 --- a/docs/docs/EXCEPTIONS.md +++ b/docs/docs/EXCEPTIONS.md @@ -107,4 +107,6 @@ try { + +
\ No newline at end of file diff --git a/docs/docs/FEATURES.md b/docs/docs/FEATURES.md index f6f5b96a..0baa6981 100644 --- a/docs/docs/FEATURES.md +++ b/docs/docs/FEATURES.md @@ -43,4 +43,6 @@ + +
\ No newline at end of file diff --git a/docs/docs/FILES.md b/docs/docs/FILES.md index 0958d8e7..34ae9105 100644 --- a/docs/docs/FILES.md +++ b/docs/docs/FILES.md @@ -428,4 +428,6 @@ $output_file_name = $MadelineProto->download_to_file( + +
\ No newline at end of file diff --git a/docs/docs/FLOOD_WAIT.md b/docs/docs/FLOOD_WAIT.md index ac0e66cf..b32f9239 100644 --- a/docs/docs/FLOOD_WAIT.md +++ b/docs/docs/FLOOD_WAIT.md @@ -14,4 +14,6 @@ Use sleep to execute max N calls in `floodwaitrate` seconds, this way you won't + +
\ No newline at end of file diff --git a/docs/docs/INLINE_BUTTONS.md b/docs/docs/INLINE_BUTTONS.md index d9922b7d..8337f18b 100644 --- a/docs/docs/INLINE_BUTTONS.md +++ b/docs/docs/INLINE_BUTTONS.md @@ -53,4 +53,6 @@ $button->click(); + +
\ No newline at end of file diff --git a/docs/docs/INSTALLATION.md b/docs/docs/INSTALLATION.md index f165c1b3..3c96519c 100644 --- a/docs/docs/INSTALLATION.md +++ b/docs/docs/INSTALLATION.md @@ -122,4 +122,6 @@ Now open `.env` and edit its values as needed. + +
\ No newline at end of file diff --git a/docs/docs/LOGGING.md b/docs/docs/LOGGING.md index 98148f15..9d47a0dc 100644 --- a/docs/docs/LOGGING.md +++ b/docs/docs/LOGGING.md @@ -19,4 +19,6 @@ By default, `$level` is `\danog\MadelineProto\Logger:NOTICE`. + +
\ No newline at end of file diff --git a/docs/docs/LOGIN.md b/docs/docs/LOGIN.md index 8ce86b5b..fa1a8058 100644 --- a/docs/docs/LOGIN.md +++ b/docs/docs/LOGIN.md @@ -60,4 +60,6 @@ Use `logout` to logout, see [here for the parameters and the result](https://doc + +
\ No newline at end of file diff --git a/docs/docs/LUA.md b/docs/docs/LUA.md index c185ce2d..d80471e8 100644 --- a/docs/docs/LUA.md +++ b/docs/docs/LUA.md @@ -18,4 +18,6 @@ td-cli wrappers are also present: you can use the tdcli_function in lua and pass + +
\ No newline at end of file diff --git a/docs/docs/PROXY.md b/docs/docs/PROXY.md index d3fbdbea..5f37f78b 100644 --- a/docs/docs/PROXY.md +++ b/docs/docs/PROXY.md @@ -122,4 +122,6 @@ Can return additional HTTP headers to use when the HTTP protocol is being used. + +
\ No newline at end of file diff --git a/docs/docs/REQUIREMENTS.md b/docs/docs/REQUIREMENTS.md index 5daae80c..86a66525 100644 --- a/docs/docs/REQUIREMENTS.md +++ b/docs/docs/REQUIREMENTS.md @@ -15,4 +15,6 @@ Next, follow the instructions on voip.madelineproto.xyz and prime.madelineproto. + +
\ No newline at end of file diff --git a/docs/docs/SECRET_CHATS.md b/docs/docs/SECRET_CHATS.md index 408f6deb..eb27ae8a 100644 --- a/docs/docs/SECRET_CHATS.md +++ b/docs/docs/SECRET_CHATS.md @@ -70,4 +70,6 @@ This method gets info about a certain chat. + +
\ No newline at end of file diff --git a/docs/docs/SELF.md b/docs/docs/SELF.md index ac9564e9..6c804757 100644 --- a/docs/docs/SELF.md +++ b/docs/docs/SELF.md @@ -10,4 +10,6 @@ $me = $MadelineProto->get_self(); + +
\ No newline at end of file diff --git a/docs/docs/SETTINGS.md b/docs/docs/SETTINGS.md index 455db80a..2670daf8 100644 --- a/docs/docs/SETTINGS.md +++ b/docs/docs/SETTINGS.md @@ -365,7 +365,7 @@ Description: Should I handle old updates on startup? Default: -1 Description: If positive and bigger than zero, no requests will be sent to the socket to request updates in N seconds, passive update listening will be used instead -### `$settings['updates']['calback']` +### `$settings['updates']['callback']` Default: `'get_updates_update_handler'` Description: A callable function that will be called every time an update is received, must accept an array (for the update) as the only parameter. @@ -399,4 +399,6 @@ $MadelineProto->settings['updates']['handle_updates'] = true; // reenable update + +
\ No newline at end of file diff --git a/docs/docs/TEMPLATES.md b/docs/docs/TEMPLATES.md new file mode 100644 index 00000000..344d665b --- /dev/null +++ b/docs/docs/TEMPLATES.md @@ -0,0 +1,35 @@ +# Web templates for `$MadelineProto->start()` + +You get the web template used for the `$MadelineProto->start()` web UI thusly: + +```php +$template = $MadelineProto->get_web_template(); +``` + +By default, it is equal to: +```html + + + + MadelineProto + + +

MadelineProto

+
+ %s + +
+

%s

+ + +``` + +To modify the web template, use: +```php +$MadelineProto->set_web_template($new_template); +``` + +The new template must have a structure similar the the default template. + + +
\ No newline at end of file diff --git a/docs/docs/UPDATES.md b/docs/docs/UPDATES.md index 1f81517a..26a9e9cd 100644 --- a/docs/docs/UPDATES.md +++ b/docs/docs/UPDATES.md @@ -200,4 +200,6 @@ Note that multiprocessing is not the same as multithreading, and should be avoid + +
\ No newline at end of file diff --git a/docs/docs/USING_METHODS.md b/docs/docs/USING_METHODS.md index 9b74e2c9..0c007719 100644 --- a/docs/docs/USING_METHODS.md +++ b/docs/docs/USING_METHODS.md @@ -99,4 +99,6 @@ $MadelineProto->messages->sendMessage(['peer' => '@danogentili', 'message' => 'l If the queue if the specified queue name does not exist, it will be created. + +
\ No newline at end of file diff --git a/docs/index.md b/docs/index.md index 85f85746..8ad95b0d 100644 --- a/docs/index.md +++ b/docs/index.md @@ -43,7 +43,7 @@ $MadelineProto->messages->sendMessage(['peer' => 'https://t.me/joinchat/Bgrajz6K echo 'OK, done!'.PHP_EOL; ``` -Run this code in a browser or in a console. +Run this code in a browser or in a console. Tip: if you receive an error (or nothing), [send us](https://t.me/pwrtelegramgroup) the error message and the `MadelineProto.log` file that was created in the same directory (if running from a browser). @@ -111,7 +111,7 @@ Tip: if you receive an error (or nothing), [send us](https://t.me/pwrtelegramgro * [Full chat info with full list of participants](https://docs.madelineproto.xyz/docs/CHAT_INFO.html#get_pwr_chat) * [Full chat info](https://docs.madelineproto.xyz/docs/CHAT_INFO.html#get_full_info) * [Reduced chat info (very fast)](https://docs.madelineproto.xyz/docs/CHAT_INFO.html#get_info) -* [Getting all chats](https://docs.madelineproto.xyz/docs/DIALOGS.html) +* [Getting all chats (dialogs)](https://docs.madelineproto.xyz/docs/DIALOGS.html) * [As user](https://docs.madelineproto.xyz/docs/DIALOGS.html#user-get_dialogs) * [As bot](https://docs.madelineproto.xyz/docs/DIALOGS.html#bot-internal-peer-database) * [Inline buttons](https://docs.madelineproto.xyz/docs/INLINE_BUTTONS.html) @@ -133,6 +133,7 @@ Tip: if you receive an error (or nothing), [send us](https://t.me/pwrtelegramgro * [Translation](https://docs.madelineproto.xyz/docs/CONTRIBUTING.html#translation) * [Contribution guide](https://docs.madelineproto.xyz/docs/CONTRIBUTING.html#contribution-guide) * [Credits](https://docs.madelineproto.xyz/docs/CONTRIBUTING.html#credits) +* [Web templates for `$MadelineProto->start()`](https://docs.madelineproto.xyz/docs/TEMPLATES.html) ## Very complex and complete examples diff --git a/old_docs/API_docs_v18/methods/messages_getMessages.md b/old_docs/API_docs_v18/methods/messages_getMessages.md index 61120cdd..86d1da8a 100644 --- a/old_docs/API_docs_v18/methods/messages_getMessages.md +++ b/old_docs/API_docs_v18/methods/messages_getMessages.md @@ -1,16 +1,18 @@ --- title: messages.getMessages -description: messages.getMessages parameters, return type and example +description: Get messages --- ## Method: messages.getMessages [Back to methods index](index.md) +Get messages + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [CLICK ME int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [CLICK ME int](../types/int.md) | Yes|The IDs of messages to fetch (only for users and normal groups)| ### Return type: [messages\_Messages](../types/messages_Messages.md) diff --git a/old_docs/API_docs_v23/methods/messages_getMessages.md b/old_docs/API_docs_v23/methods/messages_getMessages.md index 61120cdd..86d1da8a 100644 --- a/old_docs/API_docs_v23/methods/messages_getMessages.md +++ b/old_docs/API_docs_v23/methods/messages_getMessages.md @@ -1,16 +1,18 @@ --- title: messages.getMessages -description: messages.getMessages parameters, return type and example +description: Get messages --- ## Method: messages.getMessages [Back to methods index](index.md) +Get messages + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [CLICK ME int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [CLICK ME int](../types/int.md) | Yes|The IDs of messages to fetch (only for users and normal groups)| ### Return type: [messages\_Messages](../types/messages_Messages.md) diff --git a/old_docs/API_docs_v25/methods/messages_getMessages.md b/old_docs/API_docs_v25/methods/messages_getMessages.md index 61120cdd..86d1da8a 100644 --- a/old_docs/API_docs_v25/methods/messages_getMessages.md +++ b/old_docs/API_docs_v25/methods/messages_getMessages.md @@ -1,16 +1,18 @@ --- title: messages.getMessages -description: messages.getMessages parameters, return type and example +description: Get messages --- ## Method: messages.getMessages [Back to methods index](index.md) +Get messages + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [CLICK ME int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [CLICK ME int](../types/int.md) | Yes|The IDs of messages to fetch (only for users and normal groups)| ### Return type: [messages\_Messages](../types/messages_Messages.md) diff --git a/old_docs/API_docs_v27/methods/messages_getMessages.md b/old_docs/API_docs_v27/methods/messages_getMessages.md index 61120cdd..86d1da8a 100644 --- a/old_docs/API_docs_v27/methods/messages_getMessages.md +++ b/old_docs/API_docs_v27/methods/messages_getMessages.md @@ -1,16 +1,18 @@ --- title: messages.getMessages -description: messages.getMessages parameters, return type and example +description: Get messages --- ## Method: messages.getMessages [Back to methods index](index.md) +Get messages + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [CLICK ME int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [CLICK ME int](../types/int.md) | Yes|The IDs of messages to fetch (only for users and normal groups)| ### Return type: [messages\_Messages](../types/messages_Messages.md) diff --git a/old_docs/API_docs_v33/methods/messages_getMessages.md b/old_docs/API_docs_v33/methods/messages_getMessages.md index 61120cdd..86d1da8a 100644 --- a/old_docs/API_docs_v33/methods/messages_getMessages.md +++ b/old_docs/API_docs_v33/methods/messages_getMessages.md @@ -1,16 +1,18 @@ --- title: messages.getMessages -description: messages.getMessages parameters, return type and example +description: Get messages --- ## Method: messages.getMessages [Back to methods index](index.md) +Get messages + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [CLICK ME int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [CLICK ME int](../types/int.md) | Yes|The IDs of messages to fetch (only for users and normal groups)| ### Return type: [messages\_Messages](../types/messages_Messages.md) diff --git a/old_docs/API_docs_v38/methods/messages_getMessages.md b/old_docs/API_docs_v38/methods/messages_getMessages.md index 61120cdd..86d1da8a 100644 --- a/old_docs/API_docs_v38/methods/messages_getMessages.md +++ b/old_docs/API_docs_v38/methods/messages_getMessages.md @@ -1,16 +1,18 @@ --- title: messages.getMessages -description: messages.getMessages parameters, return type and example +description: Get messages --- ## Method: messages.getMessages [Back to methods index](index.md) +Get messages + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [CLICK ME int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [CLICK ME int](../types/int.md) | Yes|The IDs of messages to fetch (only for users and normal groups)| ### Return type: [messages\_Messages](../types/messages_Messages.md) diff --git a/old_docs/API_docs_v40/methods/messages_getMessages.md b/old_docs/API_docs_v40/methods/messages_getMessages.md index 61120cdd..86d1da8a 100644 --- a/old_docs/API_docs_v40/methods/messages_getMessages.md +++ b/old_docs/API_docs_v40/methods/messages_getMessages.md @@ -1,16 +1,18 @@ --- title: messages.getMessages -description: messages.getMessages parameters, return type and example +description: Get messages --- ## Method: messages.getMessages [Back to methods index](index.md) +Get messages + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [CLICK ME int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [CLICK ME int](../types/int.md) | Yes|The IDs of messages to fetch (only for users and normal groups)| ### Return type: [messages\_Messages](../types/messages_Messages.md) diff --git a/old_docs/API_docs_v41/methods/messages_getMessages.md b/old_docs/API_docs_v41/methods/messages_getMessages.md index 61120cdd..86d1da8a 100644 --- a/old_docs/API_docs_v41/methods/messages_getMessages.md +++ b/old_docs/API_docs_v41/methods/messages_getMessages.md @@ -1,16 +1,18 @@ --- title: messages.getMessages -description: messages.getMessages parameters, return type and example +description: Get messages --- ## Method: messages.getMessages [Back to methods index](index.md) +Get messages + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [CLICK ME int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [CLICK ME int](../types/int.md) | Yes|The IDs of messages to fetch (only for users and normal groups)| ### Return type: [messages\_Messages](../types/messages_Messages.md) diff --git a/old_docs/API_docs_v42/methods/messages_getMessages.md b/old_docs/API_docs_v42/methods/messages_getMessages.md index 61120cdd..86d1da8a 100644 --- a/old_docs/API_docs_v42/methods/messages_getMessages.md +++ b/old_docs/API_docs_v42/methods/messages_getMessages.md @@ -1,16 +1,18 @@ --- title: messages.getMessages -description: messages.getMessages parameters, return type and example +description: Get messages --- ## Method: messages.getMessages [Back to methods index](index.md) +Get messages + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [CLICK ME int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [CLICK ME int](../types/int.md) | Yes|The IDs of messages to fetch (only for users and normal groups)| ### Return type: [messages\_Messages](../types/messages_Messages.md) diff --git a/old_docs/API_docs_v44/methods/messages_getMessages.md b/old_docs/API_docs_v44/methods/messages_getMessages.md index 61120cdd..86d1da8a 100644 --- a/old_docs/API_docs_v44/methods/messages_getMessages.md +++ b/old_docs/API_docs_v44/methods/messages_getMessages.md @@ -1,16 +1,18 @@ --- title: messages.getMessages -description: messages.getMessages parameters, return type and example +description: Get messages --- ## Method: messages.getMessages [Back to methods index](index.md) +Get messages + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [CLICK ME int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [CLICK ME int](../types/int.md) | Yes|The IDs of messages to fetch (only for users and normal groups)| ### Return type: [messages\_Messages](../types/messages_Messages.md) diff --git a/old_docs/API_docs_v45/methods/messages_getMessages.md b/old_docs/API_docs_v45/methods/messages_getMessages.md index 61120cdd..86d1da8a 100644 --- a/old_docs/API_docs_v45/methods/messages_getMessages.md +++ b/old_docs/API_docs_v45/methods/messages_getMessages.md @@ -1,16 +1,18 @@ --- title: messages.getMessages -description: messages.getMessages parameters, return type and example +description: Get messages --- ## Method: messages.getMessages [Back to methods index](index.md) +Get messages + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [CLICK ME int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [CLICK ME int](../types/int.md) | Yes|The IDs of messages to fetch (only for users and normal groups)| ### Return type: [messages\_Messages](../types/messages_Messages.md) diff --git a/old_docs/API_docs_v46/methods/messages_getMessages.md b/old_docs/API_docs_v46/methods/messages_getMessages.md index 61120cdd..86d1da8a 100644 --- a/old_docs/API_docs_v46/methods/messages_getMessages.md +++ b/old_docs/API_docs_v46/methods/messages_getMessages.md @@ -1,16 +1,18 @@ --- title: messages.getMessages -description: messages.getMessages parameters, return type and example +description: Get messages --- ## Method: messages.getMessages [Back to methods index](index.md) +Get messages + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [CLICK ME int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [CLICK ME int](../types/int.md) | Yes|The IDs of messages to fetch (only for users and normal groups)| ### Return type: [messages\_Messages](../types/messages_Messages.md) diff --git a/old_docs/API_docs_v51/methods/messages_getMessages.md b/old_docs/API_docs_v51/methods/messages_getMessages.md index 61120cdd..86d1da8a 100644 --- a/old_docs/API_docs_v51/methods/messages_getMessages.md +++ b/old_docs/API_docs_v51/methods/messages_getMessages.md @@ -1,16 +1,18 @@ --- title: messages.getMessages -description: messages.getMessages parameters, return type and example +description: Get messages --- ## Method: messages.getMessages [Back to methods index](index.md) +Get messages + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [CLICK ME int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [CLICK ME int](../types/int.md) | Yes|The IDs of messages to fetch (only for users and normal groups)| ### Return type: [messages\_Messages](../types/messages_Messages.md) diff --git a/old_docs/API_docs_v53/methods/contacts_resetTopPeerRating.md b/old_docs/API_docs_v53/methods/contacts_resetTopPeerRating.md index a1da33bb..4b485921 100644 --- a/old_docs/API_docs_v53/methods/contacts_resetTopPeerRating.md +++ b/old_docs/API_docs_v53/methods/contacts_resetTopPeerRating.md @@ -1,17 +1,19 @@ --- title: contacts.resetTopPeerRating -description: contacts.resetTopPeerRating parameters, return type and example +description: Reset top peer rating for a certain category/peer --- ## Method: contacts.resetTopPeerRating [Back to methods index](index.md) +Reset top peer rating for a certain category/peer + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|category|[CLICK ME TopPeerCategory](../types/TopPeerCategory.md) | Yes| -|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|category|[CLICK ME TopPeerCategory](../types/TopPeerCategory.md) | Yes|The category | +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional|The peer| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v53/methods/messages_getMessages.md b/old_docs/API_docs_v53/methods/messages_getMessages.md index 61120cdd..86d1da8a 100644 --- a/old_docs/API_docs_v53/methods/messages_getMessages.md +++ b/old_docs/API_docs_v53/methods/messages_getMessages.md @@ -1,16 +1,18 @@ --- title: messages.getMessages -description: messages.getMessages parameters, return type and example +description: Get messages --- ## Method: messages.getMessages [Back to methods index](index.md) +Get messages + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [CLICK ME int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [CLICK ME int](../types/int.md) | Yes|The IDs of messages to fetch (only for users and normal groups)| ### Return type: [messages\_Messages](../types/messages_Messages.md) diff --git a/old_docs/API_docs_v55/methods/contacts_resetTopPeerRating.md b/old_docs/API_docs_v55/methods/contacts_resetTopPeerRating.md index a1da33bb..4b485921 100644 --- a/old_docs/API_docs_v55/methods/contacts_resetTopPeerRating.md +++ b/old_docs/API_docs_v55/methods/contacts_resetTopPeerRating.md @@ -1,17 +1,19 @@ --- title: contacts.resetTopPeerRating -description: contacts.resetTopPeerRating parameters, return type and example +description: Reset top peer rating for a certain category/peer --- ## Method: contacts.resetTopPeerRating [Back to methods index](index.md) +Reset top peer rating for a certain category/peer + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|category|[CLICK ME TopPeerCategory](../types/TopPeerCategory.md) | Yes| -|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|category|[CLICK ME TopPeerCategory](../types/TopPeerCategory.md) | Yes|The category | +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional|The peer| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v55/methods/messages_getMessages.md b/old_docs/API_docs_v55/methods/messages_getMessages.md index 61120cdd..86d1da8a 100644 --- a/old_docs/API_docs_v55/methods/messages_getMessages.md +++ b/old_docs/API_docs_v55/methods/messages_getMessages.md @@ -1,16 +1,18 @@ --- title: messages.getMessages -description: messages.getMessages parameters, return type and example +description: Get messages --- ## Method: messages.getMessages [Back to methods index](index.md) +Get messages + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [CLICK ME int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [CLICK ME int](../types/int.md) | Yes|The IDs of messages to fetch (only for users and normal groups)| ### Return type: [messages\_Messages](../types/messages_Messages.md) diff --git a/old_docs/API_docs_v57/methods/contacts_resetTopPeerRating.md b/old_docs/API_docs_v57/methods/contacts_resetTopPeerRating.md index a1da33bb..4b485921 100644 --- a/old_docs/API_docs_v57/methods/contacts_resetTopPeerRating.md +++ b/old_docs/API_docs_v57/methods/contacts_resetTopPeerRating.md @@ -1,17 +1,19 @@ --- title: contacts.resetTopPeerRating -description: contacts.resetTopPeerRating parameters, return type and example +description: Reset top peer rating for a certain category/peer --- ## Method: contacts.resetTopPeerRating [Back to methods index](index.md) +Reset top peer rating for a certain category/peer + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|category|[CLICK ME TopPeerCategory](../types/TopPeerCategory.md) | Yes| -|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|category|[CLICK ME TopPeerCategory](../types/TopPeerCategory.md) | Yes|The category | +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional|The peer| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v57/methods/messages_getMessages.md b/old_docs/API_docs_v57/methods/messages_getMessages.md index 61120cdd..86d1da8a 100644 --- a/old_docs/API_docs_v57/methods/messages_getMessages.md +++ b/old_docs/API_docs_v57/methods/messages_getMessages.md @@ -1,16 +1,18 @@ --- title: messages.getMessages -description: messages.getMessages parameters, return type and example +description: Get messages --- ## Method: messages.getMessages [Back to methods index](index.md) +Get messages + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [CLICK ME int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [CLICK ME int](../types/int.md) | Yes|The IDs of messages to fetch (only for users and normal groups)| ### Return type: [messages\_Messages](../types/messages_Messages.md) diff --git a/old_docs/API_docs_v62/methods/contacts_resetTopPeerRating.md b/old_docs/API_docs_v62/methods/contacts_resetTopPeerRating.md index a1da33bb..4b485921 100644 --- a/old_docs/API_docs_v62/methods/contacts_resetTopPeerRating.md +++ b/old_docs/API_docs_v62/methods/contacts_resetTopPeerRating.md @@ -1,17 +1,19 @@ --- title: contacts.resetTopPeerRating -description: contacts.resetTopPeerRating parameters, return type and example +description: Reset top peer rating for a certain category/peer --- ## Method: contacts.resetTopPeerRating [Back to methods index](index.md) +Reset top peer rating for a certain category/peer + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|category|[CLICK ME TopPeerCategory](../types/TopPeerCategory.md) | Yes| -|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|category|[CLICK ME TopPeerCategory](../types/TopPeerCategory.md) | Yes|The category | +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional|The peer| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v62/methods/messages_getMessages.md b/old_docs/API_docs_v62/methods/messages_getMessages.md index 61120cdd..86d1da8a 100644 --- a/old_docs/API_docs_v62/methods/messages_getMessages.md +++ b/old_docs/API_docs_v62/methods/messages_getMessages.md @@ -1,16 +1,18 @@ --- title: messages.getMessages -description: messages.getMessages parameters, return type and example +description: Get messages --- ## Method: messages.getMessages [Back to methods index](index.md) +Get messages + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [CLICK ME int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [CLICK ME int](../types/int.md) | Yes|The IDs of messages to fetch (only for users and normal groups)| ### Return type: [messages\_Messages](../types/messages_Messages.md) diff --git a/old_docs/API_docs_v65/methods/contacts_resetTopPeerRating.md b/old_docs/API_docs_v65/methods/contacts_resetTopPeerRating.md index a1da33bb..4b485921 100644 --- a/old_docs/API_docs_v65/methods/contacts_resetTopPeerRating.md +++ b/old_docs/API_docs_v65/methods/contacts_resetTopPeerRating.md @@ -1,17 +1,19 @@ --- title: contacts.resetTopPeerRating -description: contacts.resetTopPeerRating parameters, return type and example +description: Reset top peer rating for a certain category/peer --- ## Method: contacts.resetTopPeerRating [Back to methods index](index.md) +Reset top peer rating for a certain category/peer + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|category|[CLICK ME TopPeerCategory](../types/TopPeerCategory.md) | Yes| -|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|category|[CLICK ME TopPeerCategory](../types/TopPeerCategory.md) | Yes|The category | +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional|The peer| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v65/methods/messages_getMessages.md b/old_docs/API_docs_v65/methods/messages_getMessages.md index 61120cdd..86d1da8a 100644 --- a/old_docs/API_docs_v65/methods/messages_getMessages.md +++ b/old_docs/API_docs_v65/methods/messages_getMessages.md @@ -1,16 +1,18 @@ --- title: messages.getMessages -description: messages.getMessages parameters, return type and example +description: Get messages --- ## Method: messages.getMessages [Back to methods index](index.md) +Get messages + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [CLICK ME int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [CLICK ME int](../types/int.md) | Yes|The IDs of messages to fetch (only for users and normal groups)| ### Return type: [messages\_Messages](../types/messages_Messages.md) diff --git a/old_docs/API_docs_v66/methods/contacts_resetTopPeerRating.md b/old_docs/API_docs_v66/methods/contacts_resetTopPeerRating.md index a1da33bb..4b485921 100644 --- a/old_docs/API_docs_v66/methods/contacts_resetTopPeerRating.md +++ b/old_docs/API_docs_v66/methods/contacts_resetTopPeerRating.md @@ -1,17 +1,19 @@ --- title: contacts.resetTopPeerRating -description: contacts.resetTopPeerRating parameters, return type and example +description: Reset top peer rating for a certain category/peer --- ## Method: contacts.resetTopPeerRating [Back to methods index](index.md) +Reset top peer rating for a certain category/peer + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|category|[CLICK ME TopPeerCategory](../types/TopPeerCategory.md) | Yes| -|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|category|[CLICK ME TopPeerCategory](../types/TopPeerCategory.md) | Yes|The category | +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional|The peer| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v66/methods/messages_getMessages.md b/old_docs/API_docs_v66/methods/messages_getMessages.md index 61120cdd..86d1da8a 100644 --- a/old_docs/API_docs_v66/methods/messages_getMessages.md +++ b/old_docs/API_docs_v66/methods/messages_getMessages.md @@ -1,16 +1,18 @@ --- title: messages.getMessages -description: messages.getMessages parameters, return type and example +description: Get messages --- ## Method: messages.getMessages [Back to methods index](index.md) +Get messages + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [CLICK ME int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [CLICK ME int](../types/int.md) | Yes|The IDs of messages to fetch (only for users and normal groups)| ### Return type: [messages\_Messages](../types/messages_Messages.md) diff --git a/old_docs/API_docs_v68/methods/contacts_resetTopPeerRating.md b/old_docs/API_docs_v68/methods/contacts_resetTopPeerRating.md index a1da33bb..4b485921 100644 --- a/old_docs/API_docs_v68/methods/contacts_resetTopPeerRating.md +++ b/old_docs/API_docs_v68/methods/contacts_resetTopPeerRating.md @@ -1,17 +1,19 @@ --- title: contacts.resetTopPeerRating -description: contacts.resetTopPeerRating parameters, return type and example +description: Reset top peer rating for a certain category/peer --- ## Method: contacts.resetTopPeerRating [Back to methods index](index.md) +Reset top peer rating for a certain category/peer + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|category|[CLICK ME TopPeerCategory](../types/TopPeerCategory.md) | Yes| -|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|category|[CLICK ME TopPeerCategory](../types/TopPeerCategory.md) | Yes|The category | +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional|The peer| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v68/methods/messages_getMessages.md b/old_docs/API_docs_v68/methods/messages_getMessages.md index 61120cdd..86d1da8a 100644 --- a/old_docs/API_docs_v68/methods/messages_getMessages.md +++ b/old_docs/API_docs_v68/methods/messages_getMessages.md @@ -1,16 +1,18 @@ --- title: messages.getMessages -description: messages.getMessages parameters, return type and example +description: Get messages --- ## Method: messages.getMessages [Back to methods index](index.md) +Get messages + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [CLICK ME int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [CLICK ME int](../types/int.md) | Yes|The IDs of messages to fetch (only for users and normal groups)| ### Return type: [messages\_Messages](../types/messages_Messages.md) diff --git a/old_docs/API_docs_v70/methods/contacts_resetTopPeerRating.md b/old_docs/API_docs_v70/methods/contacts_resetTopPeerRating.md index a1da33bb..4b485921 100644 --- a/old_docs/API_docs_v70/methods/contacts_resetTopPeerRating.md +++ b/old_docs/API_docs_v70/methods/contacts_resetTopPeerRating.md @@ -1,17 +1,19 @@ --- title: contacts.resetTopPeerRating -description: contacts.resetTopPeerRating parameters, return type and example +description: Reset top peer rating for a certain category/peer --- ## Method: contacts.resetTopPeerRating [Back to methods index](index.md) +Reset top peer rating for a certain category/peer + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|category|[CLICK ME TopPeerCategory](../types/TopPeerCategory.md) | Yes| -|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|category|[CLICK ME TopPeerCategory](../types/TopPeerCategory.md) | Yes|The category | +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional|The peer| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v70/methods/messages_getMessages.md b/old_docs/API_docs_v70/methods/messages_getMessages.md index 61120cdd..86d1da8a 100644 --- a/old_docs/API_docs_v70/methods/messages_getMessages.md +++ b/old_docs/API_docs_v70/methods/messages_getMessages.md @@ -1,16 +1,18 @@ --- title: messages.getMessages -description: messages.getMessages parameters, return type and example +description: Get messages --- ## Method: messages.getMessages [Back to methods index](index.md) +Get messages + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [CLICK ME int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [CLICK ME int](../types/int.md) | Yes|The IDs of messages to fetch (only for users and normal groups)| ### Return type: [messages\_Messages](../types/messages_Messages.md) diff --git a/old_docs/API_docs_v71/methods/contacts_resetTopPeerRating.md b/old_docs/API_docs_v71/methods/contacts_resetTopPeerRating.md index a1da33bb..4b485921 100644 --- a/old_docs/API_docs_v71/methods/contacts_resetTopPeerRating.md +++ b/old_docs/API_docs_v71/methods/contacts_resetTopPeerRating.md @@ -1,17 +1,19 @@ --- title: contacts.resetTopPeerRating -description: contacts.resetTopPeerRating parameters, return type and example +description: Reset top peer rating for a certain category/peer --- ## Method: contacts.resetTopPeerRating [Back to methods index](index.md) +Reset top peer rating for a certain category/peer + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|category|[CLICK ME TopPeerCategory](../types/TopPeerCategory.md) | Yes| -|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|category|[CLICK ME TopPeerCategory](../types/TopPeerCategory.md) | Yes|The category | +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional|The peer| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v71/methods/messages_getMessages.md b/old_docs/API_docs_v71/methods/messages_getMessages.md index 61120cdd..86d1da8a 100644 --- a/old_docs/API_docs_v71/methods/messages_getMessages.md +++ b/old_docs/API_docs_v71/methods/messages_getMessages.md @@ -1,16 +1,18 @@ --- title: messages.getMessages -description: messages.getMessages parameters, return type and example +description: Get messages --- ## Method: messages.getMessages [Back to methods index](index.md) +Get messages + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [CLICK ME int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [CLICK ME int](../types/int.md) | Yes|The IDs of messages to fetch (only for users and normal groups)| ### Return type: [messages\_Messages](../types/messages_Messages.md) diff --git a/old_docs/API_docs_v72/methods/contacts_resetTopPeerRating.md b/old_docs/API_docs_v72/methods/contacts_resetTopPeerRating.md index a1da33bb..4b485921 100644 --- a/old_docs/API_docs_v72/methods/contacts_resetTopPeerRating.md +++ b/old_docs/API_docs_v72/methods/contacts_resetTopPeerRating.md @@ -1,17 +1,19 @@ --- title: contacts.resetTopPeerRating -description: contacts.resetTopPeerRating parameters, return type and example +description: Reset top peer rating for a certain category/peer --- ## Method: contacts.resetTopPeerRating [Back to methods index](index.md) +Reset top peer rating for a certain category/peer + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|category|[CLICK ME TopPeerCategory](../types/TopPeerCategory.md) | Yes| -|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|category|[CLICK ME TopPeerCategory](../types/TopPeerCategory.md) | Yes|The category | +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional|The peer| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v72/methods/messages_getMessages.md b/old_docs/API_docs_v72/methods/messages_getMessages.md index 61120cdd..86d1da8a 100644 --- a/old_docs/API_docs_v72/methods/messages_getMessages.md +++ b/old_docs/API_docs_v72/methods/messages_getMessages.md @@ -1,16 +1,18 @@ --- title: messages.getMessages -description: messages.getMessages parameters, return type and example +description: Get messages --- ## Method: messages.getMessages [Back to methods index](index.md) +Get messages + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [CLICK ME int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [CLICK ME int](../types/int.md) | Yes|The IDs of messages to fetch (only for users and normal groups)| ### Return type: [messages\_Messages](../types/messages_Messages.md) diff --git a/old_docs/API_docs_v73/methods/contacts_resetTopPeerRating.md b/old_docs/API_docs_v73/methods/contacts_resetTopPeerRating.md index a1da33bb..4b485921 100644 --- a/old_docs/API_docs_v73/methods/contacts_resetTopPeerRating.md +++ b/old_docs/API_docs_v73/methods/contacts_resetTopPeerRating.md @@ -1,17 +1,19 @@ --- title: contacts.resetTopPeerRating -description: contacts.resetTopPeerRating parameters, return type and example +description: Reset top peer rating for a certain category/peer --- ## Method: contacts.resetTopPeerRating [Back to methods index](index.md) +Reset top peer rating for a certain category/peer + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|category|[CLICK ME TopPeerCategory](../types/TopPeerCategory.md) | Yes| -|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|category|[CLICK ME TopPeerCategory](../types/TopPeerCategory.md) | Yes|The category | +|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional|The peer| ### Return type: [Bool](../types/Bool.md) diff --git a/old_docs/API_docs_v73/methods/messages_getMessages.md b/old_docs/API_docs_v73/methods/messages_getMessages.md index 61120cdd..86d1da8a 100644 --- a/old_docs/API_docs_v73/methods/messages_getMessages.md +++ b/old_docs/API_docs_v73/methods/messages_getMessages.md @@ -1,16 +1,18 @@ --- title: messages.getMessages -description: messages.getMessages parameters, return type and example +description: Get messages --- ## Method: messages.getMessages [Back to methods index](index.md) +Get messages + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|id|Array of [CLICK ME int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|id|Array of [CLICK ME int](../types/int.md) | Yes|The IDs of messages to fetch (only for users and normal groups)| ### Return type: [messages\_Messages](../types/messages_Messages.md) diff --git a/src/danog/MadelineProto/Lang.php b/src/danog/MadelineProto/Lang.php index fbcdbd23..cd7a4306 100644 --- a/src/danog/MadelineProto/Lang.php +++ b/src/danog/MadelineProto/Lang.php @@ -508,12 +508,12 @@ class Lang 'method_contacts.getTopPeers_param_offset_type_int' => 'Initially 0, then `$offset += $contacts_TopPeers[\'categories\'][\'count\'];`', 'method_contacts.getTopPeers_param_limit_type_int' => 'How many results to fetch', 'method_contacts.getTopPeers_param_hash_type_int' => '', - 'method_contacts.resetTopPeerRating' => '', - 'method_contacts.resetTopPeerRating_param_category_type_TopPeerCategory' => '', - 'method_contacts.resetTopPeerRating_param_peer_type_InputPeer' => '', + 'method_contacts.resetTopPeerRating' => 'Reset top peer rating for a certain category/peer', + 'method_contacts.resetTopPeerRating_param_category_type_TopPeerCategory' => 'The category ', + 'method_contacts.resetTopPeerRating_param_peer_type_InputPeer' => 'The peer', 'method_contacts.resetSaved' => '', - 'method_messages.getMessages' => '', - 'method_messages.getMessages_param_id_type_Vector t' => '', + 'method_messages.getMessages' => 'Get messages', + 'method_messages.getMessages_param_id_type_Vector t' => 'The IDs of messages to fetch (only for users and normal groups)', 'method_messages.getDialogs' => '', 'method_messages.getDialogs_param_exclude_pinned_type_true' => '', 'method_messages.getDialogs_param_offset_date_type_int' => '', @@ -4459,15 +4459,15 @@ class Lang 'method_contacts.getTopPeers_param_phone_calls_type_true' => 'Fetch phone calls?', 'method_contacts.getTopPeers_param_groups_type_true' => 'Fetch groups?', 'method_contacts.getTopPeers_param_channels_type_true' => 'Fetch channels and supergroups?', - 'method_contacts.getTopPeers_param_offset_type_int' => 'Initially 0, then $offset += count(', - 'method_contacts.getTopPeers_param_limit_type_int' => '', + 'method_contacts.getTopPeers_param_offset_type_int' => 'Initially 0, then `$offset += $contacts_TopPeers[\'categories\'][\'count\'];`', + 'method_contacts.getTopPeers_param_limit_type_int' => 'How many results to fetch', 'method_contacts.getTopPeers_param_hash_type_int' => '', - 'method_contacts.resetTopPeerRating' => '', - 'method_contacts.resetTopPeerRating_param_category_type_TopPeerCategory' => '', - 'method_contacts.resetTopPeerRating_param_peer_type_InputPeer' => '', + 'method_contacts.resetTopPeerRating' => 'Reset top peer rating for a certain category/peer', + 'method_contacts.resetTopPeerRating_param_category_type_TopPeerCategory' => 'The category ', + 'method_contacts.resetTopPeerRating_param_peer_type_InputPeer' => 'The peer', 'method_contacts.resetSaved' => '', - 'method_messages.getMessages' => '', - 'method_messages.getMessages_param_id_type_Vector t' => '', + 'method_messages.getMessages' => 'Get messages', + 'method_messages.getMessages_param_id_type_Vector t' => 'The IDs of messages to fetch (only for users and normal groups)', 'method_messages.getDialogs' => '', 'method_messages.getDialogs_param_exclude_pinned_type_true' => '', 'method_messages.getDialogs_param_offset_date_type_int' => '', @@ -8063,4 +8063,4 @@ class Lang 'object_help.configSimple_param_ip_port_list_type_Vector t' => '', 'object_inputMessagesFilterMyMentionsUnread' => '', ); -} +} \ No newline at end of file