Struct telegram_bot_raw_ars::requests::send_poll::SendPoll
source · pub struct SendPoll<'q, 'o, 'e> { /* private fields */ }
Expand description
Use this method to send polls.
Implementations§
source§impl<'q, 'o, 'e> SendPoll<'q, 'o, 'e>
impl<'q, 'o, 'e> SendPoll<'q, 'o, 'e>
pub fn new<C, Q, O>(chat: C, question: Q, options: Vec<O>) -> Selfwhere
C: ToChatRef,
Q: Into<Cow<'q, str>>,
O: Into<Cow<'o, str>>,
pub fn add_option<O>(&mut self, option: O) -> &mut Selfwhere
O: Into<Cow<'o, str>>,
pub fn not_anonymous(&mut self) -> &mut Self
pub fn quiz(&mut self) -> &mut Self
pub fn regular(&mut self) -> &mut Self
pub fn allows_multiple_answers(&mut self) -> &mut Self
pub fn correct_option_id(&mut self, id: Integer) -> &mut Self
pub fn explanation<E>(&mut self, text: E) -> &mut Selfwhere
E: Into<Cow<'e, str>>,
pub fn explanation_parse_mode(&mut self, parse_mode: ParseMode) -> &mut Self
pub fn open_period(&mut self, period: Integer) -> &mut Self
pub fn close_date(&mut self, date: Integer) -> &mut Self
pub fn closed(&mut self) -> &mut Self
pub fn reply_to<R>(&mut self, to: R) -> &mut Selfwhere
R: ToMessageId,
pub fn reply_markup<R>(&mut self, reply_markup: R) -> &mut Selfwhere
R: Into<ReplyMarkup>,
Trait Implementations§
source§impl<'q, 'o, 'e> PartialEq<SendPoll<'q, 'o, 'e>> for SendPoll<'q, 'o, 'e>
impl<'q, 'o, 'e> PartialEq<SendPoll<'q, 'o, 'e>> for SendPoll<'q, 'o, 'e>
source§impl<'q, 'o, 'e> PartialOrd<SendPoll<'q, 'o, 'e>> for SendPoll<'q, 'o, 'e>
impl<'q, 'o, 'e> PartialOrd<SendPoll<'q, 'o, 'e>> for SendPoll<'q, 'o, 'e>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more