Struct teloxide_core::payloads::StopPoll
source · [−]pub struct StopPoll {
pub chat_id: Recipient,
pub message_id: MessageId,
pub reply_markup: Option<InlineKeyboardMarkup>,
}Expand description
Use this method to stop a poll which was sent by the bot. On success, the stopped Poll with the final results is returned.
Fields
chat_id: RecipientUnique identifier for the target chat or username of the target channel (in the format @channelusername).
message_id: MessageIdIdentifier of the message to edit
reply_markup: Option<InlineKeyboardMarkup>A JSON-serialized object for an inline keyboard.
Implementations
Trait Implementations
sourceimpl Payload for StopPoll
impl Payload for StopPoll
sourcefn timeout_hint(&self) -> Option<Duration>
fn timeout_hint(&self) -> Option<Duration>
If this payload may take long time to execute (e.g.
GetUpdates with
big timeout), the minimum timeout that should be used. Read moreimpl Eq for StopPoll
impl StructuralEq for StopPoll
impl StructuralPartialEq for StopPoll
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.