Raw.messages.Search

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.TypeInputPeer

    User 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 : string

    Text search request

  • fromId : Raw.TypeInputPeer or undefined

    Only return messages sent by the specified user id

  • savedPeerId : Raw.TypeInputPeer or undefined

    Search within the saved message dialog with this id.

  • savedReaction : Array of Raw.TypeReaction or undefined

    You may search for saved messages tagged with one or more reactions using this flag.

  • topMsgId : number or undefined

    Thread id

  • filter : Raw.TypeMessagesFilter

    Filter to return only specified message types

  • minDate : number

    If a positive value was transferred, only messages with a sending date bigger than the transferred one will be returned

  • maxDate : number

    If a positive value was transferred, only messages with a sending date smaller than the transferred one will be returned

  • offsetId : number

    Only return messages starting from the specified message id

  • addOffset : number

    Additional offset

  • limit : number

    Number of results to return

  • maxId : number

    Maximum message id to return

  • minId : number

    Minimum message id to return

  • hash : bigint

    Hash

Results

Raw.messages.TypeMessages