Raw.messages.SetBotPrecheckoutResults

Raw.messages.SetBotPrecheckoutResults

Once the user has confirmed their payment and shipping details, the bot receives an updatebotprecheckoutquery update. use this method to respond to such pre-checkout queries. note: telegram must receive an answer within 10 seconds after the pre-checkout query was sent.

messages.setBotPrecheckoutResults#9c2dd95 flags:# success:flags.1?true query_id:long error:flags.0?string = Bool;
export namespace Raw {
  export namespace messages {
    export class SetBotPrecheckoutResults {
      constructor(params: { success?: boolean; queryId: bigint; error?: string }) {}
    }
  }
}

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

Layer: 185
Constructor ID: 0x9c2dd95

Property

  • success : boolean or undefined

    Set this flag if everything is alright (goods are available, etc.) and the bot is ready to proceed with the order, otherwise do not set it, and set the error field, instead

  • queryId : bigint

    Unique identifier for the query to be answered

  • error : string or undefined

    Required if the success isn’t set. error message in human readable form that explains the reason for failure to proceed with the checkout (e.g. “sorry, somebody just bought the last of our amazing black t-shirts while you were busy filling out your payment details. please choose a different color or garment!”). telegram will display this message to the user.

Results

boolean

Bots can use