mirror of
https://github.com/teloxide/teloxide.git
synced 2025-01-03 17:52:12 +01:00
fix option fields
This commit is contained in:
parent
b2fb7c2963
commit
d8c51bdde8
1 changed files with 2 additions and 2 deletions
|
@ -92,7 +92,7 @@ impl<'a> SendPoll<'a> {
|
||||||
where
|
where
|
||||||
T: Into<Vec<bool>>,
|
T: Into<Vec<bool>>,
|
||||||
{
|
{
|
||||||
self.disable_notification = disable_notification.into();
|
self.disable_notification = Some(disable_notification.into());
|
||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -100,7 +100,7 @@ impl<'a> SendPoll<'a> {
|
||||||
where
|
where
|
||||||
T: Into<Vec<i32>>,
|
T: Into<Vec<i32>>,
|
||||||
{
|
{
|
||||||
self.reply_to_message_id = reply_to_message_id.into();
|
self.reply_to_message_id = Some(reply_to_message_id.into());
|
||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue