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: Recipient
Unique identifier for the target chat or username of the target channel (in the format @channelusername
).
message_id: MessageId
Identifier of the message to edit
reply_markup: Option<InlineKeyboardMarkup>
A JSON-serialized object for an inline keyboard.
Implementations§
Trait Implementations§
source§impl PartialEq<StopPoll> for StopPoll
impl PartialEq<StopPoll> for StopPoll
source§impl Payload for StopPoll
impl Payload for StopPoll
source§fn 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.impl 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§
source§impl<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,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.