Raw.messages.Search
Search for messages.
messages.search#29ee847a flags:# peer:InputPeer q:string from_id:flags.0?InputPeer saved_peer_id:flags.2?InputPeer saved_reaction:flags.3?Vector<Reaction> top_msg_id:flags.1?int filter:MessagesFilter min_date:int max_date:int offset_id:int add_offset:int limit:int max_id:int min_id:int hash:long = messages.Messages;
export namespace Raw {
export namespace messages {
export class Search {
constructor(params: {
peer: Raw.TypeInputPeer;
q: string;
fromId?: Raw.TypeInputPeer;
savedPeerId?: Raw.TypeInputPeer;
savedReaction?: Array<Raw.TypeReaction>;
topMsgId?: number;
filter: Raw.TypeMessagesFilter;
minDate: number;
maxDate: number;
offsetId: number;
addOffset: number;
limit: number;
maxId: number;
minId: number;
hash: bigint;
}) {}
}
}
}
This is a function constructor, you can use it as method when call invoke
Layer: 185
Constructor ID: 0x29ee847a
Property
peer
: Raw.TypeInputPeerUser or chat, histories with which are searched, or (inputpeerempty) constructor to search in all private chats and normal groups (not channels). use messages.searchglobal to search globally in all chats, groups, supergroups and channels.
q
: stringText search request
fromId
: Raw.TypeInputPeer or undefinedOnly return messages sent by the specified user id
savedPeerId
: Raw.TypeInputPeer or undefinedSearch within the saved message dialog with this id.
savedReaction
: Array of Raw.TypeReaction or undefinedYou may search for saved messages tagged with one or more reactions using this flag.
topMsgId
: number or undefinedThread id
filter
: Raw.TypeMessagesFilterFilter to return only specified message types
minDate
: numberIf a positive value was transferred, only messages with a sending date bigger than the transferred one will be returned
maxDate
: numberIf a positive value was transferred, only messages with a sending date smaller than the transferred one will be returned
offsetId
: numberOnly return messages starting from the specified message id
addOffset
: numberAdditional offset
limit
: numberNumber of results to return
maxId
: numberMaximum message id to return
minId
: numberMinimum message id to return
hash
: bigintHash