Struct teloxide_core::payloads::AnswerPreCheckoutQuery
source · pub struct AnswerPreCheckoutQuery {
pub pre_checkout_query_id: String,
pub ok: bool,
pub error_message: Option<String>,
}
Expand description
Once the user has confirmed their payment and shipping details, the Bot API sends the final confirmation in the form of an Update
with the field pre_checkout_query. Use this method to respond to such pre-checkout queries. On success, True is returned. Note: The Bot API must receive an answer within 10 seconds after the pre-checkout query was sent.
Fields§
§pre_checkout_query_id: String
Unique identifier for the query to be answered
ok: bool
Specify True if everything is alright (goods are available, etc.) and the bot is ready to proceed with the order. Use False if there are any problems.
error_message: Option<String>
Required if ok is False. Error message in human readable form that explains the reason for failure to proceed with the checkout (e.g. “Sorry, somebody just bought the last of our amazing black T-shirts while you were busy filling out your payment details. Please choose a different color or garment!”). Telegram will display this message to the user.
Implementations§
Trait Implementations§
source§impl Clone for AnswerPreCheckoutQuery
impl Clone for AnswerPreCheckoutQuery
source§impl Debug for AnswerPreCheckoutQuery
impl Debug for AnswerPreCheckoutQuery
source§impl Hash for AnswerPreCheckoutQuery
impl Hash for AnswerPreCheckoutQuery
source§impl PartialEq<AnswerPreCheckoutQuery> for AnswerPreCheckoutQuery
impl PartialEq<AnswerPreCheckoutQuery> for AnswerPreCheckoutQuery
source§fn eq(&self, other: &AnswerPreCheckoutQuery) -> bool
fn eq(&self, other: &AnswerPreCheckoutQuery) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Payload for AnswerPreCheckoutQuery
impl Payload for AnswerPreCheckoutQuery
source§fn timeout_hint(&self) -> Option<Duration>
fn timeout_hint(&self) -> Option<Duration>
GetUpdates
with
big timeout
), the minimum timeout that should be used.source§impl Serialize for AnswerPreCheckoutQuery
impl Serialize for AnswerPreCheckoutQuery
impl Eq for AnswerPreCheckoutQuery
impl StructuralEq for AnswerPreCheckoutQuery
impl StructuralPartialEq for AnswerPreCheckoutQuery
Auto Trait Implementations§
impl RefUnwindSafe for AnswerPreCheckoutQuery
impl Send for AnswerPreCheckoutQuery
impl Sync for AnswerPreCheckoutQuery
impl Unpin for AnswerPreCheckoutQuery
impl UnwindSafe for AnswerPreCheckoutQuery
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.