Raw.messages.SendInlineBotResult

Raw.messages.SendInlineBotResult

Send a result obtained using messages.getinlinebotresults.

messages.sendInlineBotResult#3ebee86a flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true hide_via:flags.11?true peer:InputPeer reply_to:flags.0?InputReplyTo random_id:long query_id:long id:string schedule_date:flags.10?int send_as:flags.13?InputPeer quick_reply_shortcut:flags.17?InputQuickReplyShortcut = Updates;
export namespace Raw {
  export namespace messages {
    export class SendInlineBotResult {
      constructor(params: {
        silent?: boolean;
        background?: boolean;
        clearDraft?: boolean;
        hideVia?: boolean;
        peer: Raw.TypeInputPeer;
        replyTo?: Raw.TypeInputReplyTo;
        randomId: bigint;
        queryId: bigint;
        id: string;
        scheduleDate?: number;
        sendAs?: Raw.TypeInputPeer;
        quickReplyShortcut?: Raw.TypeInputQuickReplyShortcut;
      }) {}
    }
  }
}

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

Layer: 185
Constructor ID: 0x3ebee86a

Property

  • silent : boolean or undefined

    Whether to send the message silently (no notification will be triggered on the other client)

  • background : boolean or undefined

    Whether to send the message in background

  • clearDraft : boolean or undefined

    Whether to clear the draft

  • hideVia : boolean or undefined

    Whether to hide the via @botname in the resulting message (only for bot usernames encountered in the config)

  • peer : Raw.TypeInputPeer

    Destination

  • replyTo : Raw.TypeInputReplyTo or undefined

    If set, indicates that the message should be sent in reply to the specified message or story.

  • randomId : bigint

    Random id to avoid resending the same query

  • queryId : bigint

    Query id from messages.getinlinebotresults

  • id : string

    Result id from messages.getinlinebotresults

  • scheduleDate : number or undefined

    Scheduled message date for scheduled messages

  • sendAs : Raw.TypeInputPeer or undefined

    Send this message as the specified peer

  • quickReplyShortcut : Raw.TypeInputQuickReplyShortcut or undefined

    Add the message to the specified quick reply shortcut, instead.

Results

Raw.TypeUpdates