telegram.ShippingQuery¶
- class telegram.ShippingQuery(*args, **kwargs)[source]¶
Bases:
telegram.TelegramObject
This object contains information about an incoming shipping query.
Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their
id
is equal.- Parameters
from_user (
telegram.User
) – User who sent the query.invoice_payload (
str
) – Bot specified invoice payload.shipping_address (
telegram.ShippingAddress
) – User specified shipping address.bot (
telegram.Bot
, optional) – The Bot to use for instance methods.
- async answer(ok, shipping_options=None, error_message=None, *, read_timeout=None, write_timeout=None, connect_timeout=None, pool_timeout=None, api_kwargs=None)[source]¶
Shortcut for:
await bot.answer_shipping_query(update.shipping_query.id, *args, **kwargs)
For the documentation of the arguments, please see
telegram.Bot.answer_shipping_query()
.