mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 14:35:36 +01:00
fix errors
This commit is contained in:
parent
5296a74e65
commit
0ae31c6454
2 changed files with 5 additions and 5 deletions
|
@ -90,7 +90,7 @@ impl<'a> SendPoll<'a> {
|
|||
|
||||
pub fn disable_notification<T>(mut self, disable_notification: T) -> Self
|
||||
where
|
||||
T: Into<Vec<bool>>,
|
||||
T: Into<bool>,
|
||||
{
|
||||
self.disable_notification = Some(disable_notification.into());
|
||||
self
|
||||
|
@ -98,7 +98,7 @@ impl<'a> SendPoll<'a> {
|
|||
|
||||
pub fn reply_to_message_id<T>(mut self, reply_to_message_id: T) -> Self
|
||||
where
|
||||
T: Into<Vec<i32>>,
|
||||
T: Into<i32>,
|
||||
{
|
||||
self.reply_to_message_id = Some(reply_to_message_id.into());
|
||||
self
|
||||
|
|
|
@ -54,7 +54,7 @@ impl<'a> Request<'a> for SendVenue<'a> {
|
|||
&self.ctx.client,
|
||||
&self.ctx.token,
|
||||
"sendVenue",
|
||||
Some(&self),
|
||||
&self,
|
||||
)
|
||||
.await
|
||||
})
|
||||
|
@ -142,7 +142,7 @@ impl<'a> SendVenue<'a> {
|
|||
|
||||
pub fn foursquare_type<T>(mut self, foursquare_type: T) -> Self
|
||||
where
|
||||
T: Into<bool>,
|
||||
T: Into<String>,
|
||||
{
|
||||
self.foursquare_type = Some(foursquare_type.into());
|
||||
self
|
||||
|
@ -152,7 +152,7 @@ impl<'a> SendVenue<'a> {
|
|||
where
|
||||
T: Into<ReplyMarkup>,
|
||||
{
|
||||
self.reply_markup = Some(ReplyMarkup.into());
|
||||
self.reply_markup = Some(reply_markup.into());
|
||||
self
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue