[−][src]Struct tgbot::methods::StopPoll
Use this method to stop a poll which was sent by the bot
On success, the stopped Poll with the final results is returned
Methods
impl StopPoll
[src]
pub fn new<C>(chat_id: C, message_id: Integer) -> Self where
C: Into<ChatId>,
[src]
C: Into<ChatId>,
Creates a new StopPoll
Arguments
- chat_id - Unique identifier for the target chat
- message_id - Identifier of the original message with the poll
pub fn reply_markup<R: Into<InlineKeyboardMarkup>>(
self,
reply_markup: R
) -> Self
[src]
self,
reply_markup: R
) -> Self
A JSON-serialized object for a new message inline keyboard
Trait Implementations
impl Clone for StopPoll
[src]
impl Debug for StopPoll
[src]
impl Method for StopPoll
[src]
impl Serialize for StopPoll
[src]
Auto Trait Implementations
impl RefUnwindSafe for StopPoll
impl Send for StopPoll
impl Sync for StopPoll
impl Unpin for StopPoll
impl UnwindSafe for StopPoll
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,