Raw.channels.SearchPosts

Raw.channels.SearchPosts

Globally search for posts from public channels (including those we aren’t a member of) containing a specific hashtag.

channels.searchPosts#d19f987b hashtag:string offset_rate:int offset_peer:InputPeer offset_id:int limit:int = messages.Messages;
export namespace Raw {
  export namespace channels {
    export class SearchPosts {
      constructor(params: {
        hashtag: string;
        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: 0xd19f987b

Property

  • hashtag : string

    The hashtag to search, without the # character.

  • 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

    Maximum number of results to return, see pagination

Results

Raw.messages.TypeMessages