messages.searchGlobal
Search for messages and peers globally
| الاسم | النوع | مطلوب | الوصف |
|---|---|---|---|
broadcasts_only | true | لأ | If set, only returns results from channels (used in the [global channel search tab »](https://core.telegram.org/api/search.md#global-search)). |
groups_only | true | لأ | Whether to search only in groups |
users_only | true | لأ | Whether to search only in private chats |
folder_id | int | لأ | [معرف مجلد النظير، لمزيد من المعلومات انقر هنا](https://core.telegram.org/api/folders.md#peer-folders) |
community | InputChannel | لأ | TL Type: InputChannel. |
q | string | أيوه | Query |
filter | MessagesFilter | أيوه | Global search filter |
min_date | int | أيوه | If a positive value was specified, the method will return only messages with date bigger than min_date |
max_date | int | أيوه | If a positive value was transferred, the method will return only messages with date smaller than max_date |
offset_rate | int | أيوه | Initially 0, then set to the [`next_rate` parameter of messages.messagesSlice](https://core.telegram.org/constructor/messages.messagesSlice.md), or if that is absent, the `date` of the last returned message. |
offset_peer | InputPeer | أيوه | [Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md) |
offset_id | int | أيوه | [Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md) |
limit | int | أيوه | [Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md) |
الردود
messages.Messages
MTProto RPC
- 400 · FOLDER_ID_INVALID — Invalid folder ID.
- 400 · INPUT_FILTER_INVALID — The specified filter is invalid.
- 400 · SEARCH_QUERY_EMPTY — The search query is empty.