messages.search

Returns search messages.

messages.messages#8c718e87 messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.Messages;
messages.messagesSlice#b446ae3 count:int messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.Messages;
---functions---
messages.search#7e9f2ab peer:InputPeer q:string filter:MessagesFilter min_date:int max_date:int offset:int max_id:int limit:int = messages.Messages;

Params

peer InputPeer User or chat, histories with which are searched, or (inputPeerEmpty) constructor for global search
q string Text search request
filter MessagesFilter Additional filter
min_date int If a positive value was transferred, only messages with a sending date bigger than the transferred one will be returned
max_date int If a positive value was transferred, only messages with a sending date less than the transferred one will be returned
offset int Number of list elements to be skipped
max_id int If a positive value was transferred, the method will return only messages with IDs less than the set one
limit int Number of list elements to be returned

Result

messages.Messages