SetBotShippingResultsRequest
Both users and bots can use this request. See code examples.
---functions--- messages.setBotShippingResults#e5f672fa flags:# query_id:long error:flags.0?string shipping_options:flags.1?Vector<ShippingOption> = Bool
Returns
Bool |
This type has no instances available.
Parameters
query_id | long | |
error | string | This argument defaults to None and can be omitted. |
shipping_options | ShippingOption | This argument defaults to None and can be omitted. Otherwise, a list must be supplied. |
Known RPC errors
This request can cause 1 known error:
QueryIdInvalidError | The query ID is invalid. |
You can import these from telethon.errors
.
Example
from telethon.sync import TelegramClient from telethon import functions, types with TelegramClient(name, api_id, api_hash) as client: result = client(functions.messages.SetBotShippingResultsRequest( query_id=-12398745604826, error='some string here', shipping_options=[types.ShippingOption( id='some string here', title='My awesome title', prices=[types.LabeledPrice( label='some string here', amount=-12398745604826 )] )] )) print(result)