telegram api method · layer 229 · #107e31a0
messages.searchSentMedia
View and search recently sent media.
This method does not support pagination.
definition
messages.searchSentMedia#107e31a0 q:string filter:MessagesFilter limit:int = messages.Messages;
parameters
| name | type | description |
|---|---|---|
q | string | Optional search query |
filter | MessagesFilter | Message filter |
limit | int | Maximum number of results to return (max 100). |
returns
errors (3)
| code | error | description |
|---|---|---|
| 400 | BUSINESS_CONNECTION_NOT_ALLOWED | This method was invoked over a business connection using invokeWithBusinessConnection, but either (1) we're a user, and users cannot invoke methods over a business connection; (2) we're a bot, but business mode was disabled in @botfather or (3); we're a bot, but this method cannot be invoked over a business connection. |
| 400 | FILTER_NOT_SUPPORTED | The specified filter cannot be used in this context. |
| 401 | AUTH_KEY_UNREGISTERED | The specified authorization key is not registered in the system (for example, a PFS temporary key has expired). |
history
present in layers 139–229
| id | layers |
|---|---|
| #107e31a0 | 139–229 |