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 | いいえ | [ピアフォルダーID、詳細についてはここをクリック](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.