mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-26 00:17:08 +01:00
fix errors
This commit is contained in:
parent
2437ccad2e
commit
5974402aea
1 changed files with 3 additions and 2 deletions
|
@ -8,6 +8,7 @@ use crate::core::network;
|
||||||
/// shipping_query field to the bot. Use this method to reply to shipping
|
/// shipping_query field to the bot. Use this method to reply to shipping
|
||||||
/// queries. On success, True is returned.
|
/// queries. On success, True is returned.
|
||||||
pub struct AnswerShippingQuery<'a> {
|
pub struct AnswerShippingQuery<'a> {
|
||||||
|
#[serde(skip_serializing)]
|
||||||
ctx: RequestContext<'a>,
|
ctx: RequestContext<'a>,
|
||||||
|
|
||||||
/// Unique identifier for the query to be answered
|
/// Unique identifier for the query to be answered
|
||||||
|
@ -40,7 +41,7 @@ impl<'a> Request<'a> for AnswerShippingQuery<'a> {
|
||||||
&self.ctx.token,
|
&self.ctx.token,
|
||||||
"answerShippingQuery",
|
"answerShippingQuery",
|
||||||
&self
|
&self
|
||||||
)
|
).await
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -77,7 +78,7 @@ impl<'a> AnswerShippingQuery<'a> {
|
||||||
pub fn shipping_options<T>(mut self, shipping_options: T) -> Self
|
pub fn shipping_options<T>(mut self, shipping_options: T) -> Self
|
||||||
where T: Into<Vec<ShippingOption>>
|
where T: Into<Vec<ShippingOption>>
|
||||||
{
|
{
|
||||||
self.shipping_options = shipping_options;
|
self.shipping_options = Some(shipping_options.into());
|
||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue