messages.searchGlobal
Search for messages and peers globally
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
broadcasts_only | true | Nein | 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 | Nein | Whether to search only in groups |
users_only | true | Nein | Whether to search only in private chats |
folder_id | int | Nein | [Peer-Ordner-ID, für weitere Informationen klicken Sie hier](https://core.telegram.org/api/folders.md#peer-folders) |
community | InputChannel | Nein | TL Type: InputChannel. |
q | string | Ja | Query |
filter | MessagesFilter | Ja | Global search filter |
min_date | int | Ja | If a positive value was specified, the method will return only messages with date bigger than min_date |
max_date | int | Ja | If a positive value was transferred, the method will return only messages with date smaller than max_date |
offset_rate | int | Ja | 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 | Ja | [Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md) |
offset_id | int | Ja | [Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md) |
limit | int | Ja | [Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md) |
Antworten
messages.Messages
MTProto RPC
- 400 · FOLDER_ID_INVALID – Ungültige Ordner-ID.
- 400 · INPUT_FILTER_INVALID – Der angegebene Filter ist ungültig.
- 400 · SEARCH_QUERY_EMPTY – Die Suchanfrage ist leer.