telegram api method · layer 229 · #e5f672fa

messages.setBotShippingResults

usable by bots

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.

definition

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.

returns

Bool

errors (4)

codeerrordescription
400BUSINESS_CONNECTION_NOT_ALLOWEDThis method was invoked over a business connection using invokeWithBusinessConnection, but either (1) we're a user, and users cannot invoke methods over a business connection; (2) we're a bot, but business mode was disabled in @botfather or (3); we're a bot, but this method cannot be invoked over a business connection.
400QUERY_ID_INVALIDThe query ID is invalid.
400USER_BOT_REQUIREDThis method can only be called by a bot.
401AUTH_KEY_UNREGISTEREDThe specified authorization key is not registered in the system (for example, a PFS temporary key has expired).

history

present in layers 65–229

idlayers
#e5f672fa65–229