Raw.messages.SearchGlobal

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 undefined

    If set, only returns results from channels (used in the global channel search tab ).

  • folderId : number or undefined

    Peer folder id, for more info click here

  • q : string

    Query

  • filter : Raw.TypeMessagesFilter

    Global search filter

  • minDate : number

    If a positive value was specified, the method will return only messages with date bigger than minDate

  • maxDate : number

    If a positive value was transferred, the method will return only messages with date smaller than maxDate

  • offsetRate : number

    Initially 0, then set to the nextRate parameter of messages.messagesslice

  • offsetPeer : Raw.TypeInputPeer

    Offsets for pagination, for more info click here

  • offsetId : number

    Offsets for pagination, for more info click here

  • limit : number

    Offsets for pagination, for more info click here

Results

Raw.messages.TypeMessages