Raw.messages.SetBotShippingResults
If you sent an invoice requesting a shipping address and the parameter isFlexible was specified, the bot will receive an updatebotshippingquery update. use this method to reply to shipping queries.
messages.setBotShippingResults#e5f672fa flags:# query_id:long error:flags.0?string shipping_options:flags.1?Vector<ShippingOption> = Bool;
export namespace Raw {
export namespace messages {
export class SetBotShippingResults {
constructor(params: {
queryId: bigint;
error?: string;
shippingOptions?: Array<Raw.TypeShippingOption>;
}) {}
}
}
}
This is a function constructor, you can use it as method when call invoke
Layer: 185
Constructor ID: 0xe5f672fa
Property
queryId
: bigintUnique identifier for the query to be answered
error
: string or undefinedError message in human readable form that explains why it is impossible to complete the order (e.g. “sorry, delivery to your desired address is unavailable”). telegram will display this message to the user.
shippingOptions
: Array of Raw.TypeShippingOption or undefinedA vector of available shipping options.