Raw.messages.SearchGlobal
Search for messages and peers globally
messages.searchGlobal#4bc6589a flags:# broadcasts_only:flags.1?true folder_id:flags.0?int q:string filter:MessagesFilter min_date:int max_date:int offset_rate:int offset_peer:InputPeer offset_id:int limit:int = messages.Messages;
export namespace Raw {
export namespace messages {
export class SearchGlobal {
constructor(params: {
broadcastsOnly?: boolean;
folderId?: number;
q: string;
filter: Raw.TypeMessagesFilter;
minDate: number;
maxDate: number;
offsetRate: number;
offsetPeer: Raw.TypeInputPeer;
offsetId: number;
limit: number;
}) {}
}
}
}
This is a function constructor, you can use it as method when call invoke
Layer: 185
Constructor ID: 0x4bc6589a
Property
broadcastsOnly
: boolean or undefinedIf set, only returns results from channels (used in the global channel search tab ).
folderId
: number or undefinedPeer folder id, for more info click here
q
: stringQuery
filter
: Raw.TypeMessagesFilterGlobal search filter
minDate
: numberIf a positive value was specified, the method will return only messages with date bigger than minDate
maxDate
: numberIf a positive value was transferred, the method will return only messages with date smaller than maxDate
offsetRate
: numberInitially 0, then set to the nextRate parameter of messages.messagesslice
offsetPeer
: Raw.TypeInputPeerOffsets for pagination, for more info click here
offsetId
: numberOffsets for pagination, for more info click here
limit
: numberOffsets for pagination, for more info click here