messages.setBotShippingResults #

If you sent an invoice requesting a shipping address and the parameter is_flexible was specified, the bot will receive an updateBotShippingQuery update. Use this method to reply to shipping queries.

Layer 223

boolFalse#bc799737 = Bool;
boolTrue#997275b5 = Bool;
---functions---
messages.setBotShippingResults#e5f672fa flags:# query_id:long error:flags.0?string shipping_options:flags.1?Vector<ShippingOption> = Bool;

Parameters #

NameTypeDescription
flags#Flags, see TL conditional fields
query_idlongUnique identifier for the query to be answered
errorflags.0?stringError 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.
shipping_optionsflags.1?Vector<ShippingOption>A vector of available shipping options.

Result #

Bool

Only bots can use this method #

Possible errors #

CodeTypeDescription
400QUERY_ID_INVALIDThe query ID is invalid.
400USER_BOT_REQUIREDThis method can only be called by a bot.

updateBotShippingQuery #

This object contains information about an incoming shipping query.