Raw.messages.SetInlineBotResults

Raw.messages.SetInlineBotResults

Answer an inline query, for bots only

messages.setInlineBotResults#bb12a419 flags:# gallery:flags.0?true private:flags.1?true query_id:long results:Vector<InputBotInlineResult> cache_time:int next_offset:flags.2?string switch_pm:flags.3?InlineBotSwitchPM switch_webview:flags.4?InlineBotWebView = Bool;
export namespace Raw {
  export namespace messages {
    export class SetInlineBotResults {
      constructor(params: {
        gallery?: boolean;
        private?: boolean;
        queryId: bigint;
        results: Array<Raw.TypeInputBotInlineResult>;
        cacheTime: number;
        nextOffset?: string;
        switchPm?: Raw.TypeInlineBotSwitchPM;
        switchWebview?: Raw.TypeInlineBotWebView;
      }) {}
    }
  }
}

This is a function constructor, you can use it as method when call invoke

Layer: 185
Constructor ID: 0xbb12a419

Property

  • gallery : boolean or undefined

    Set this flag if the results are composed of media files

  • private : boolean or undefined

    Set this flag if results may be cached on the server side only for the user that sent the query. by default, results may be returned to any user who sends the same query

  • queryId : bigint

    Unique identifier for the answered query

  • results : Array of Raw.TypeInputBotInlineResult

    Vector of results for the inline query

  • cacheTime : number

    The maximum amount of time in seconds that the result of the inline query may be cached on the server. defaults to 300.

  • nextOffset : string or undefined

    Pass the offset that a client should send in the next query with the same text to receive more results. pass an empty string if there are no more results or if you don’t support pagination. offset length can’t exceed 64 bytes.

  • switchPm : Raw.TypeInlineBotSwitchPM or undefined

    If passed, clients will display a button on top of the remaining inline result list with the specified text, that switches the user to a private chat with the bot and sends the bot a start message with a certain parameter.

  • switchWebview : Raw.TypeInlineBotWebView or undefined

    If passed, clients will display a button on top of the remaining inline result list with the specified text, that switches the user to the specified inline mode mini app.

Results

boolean

Bots can use