1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
use crate::{types::poll::Answer, Bot};
common! {
/// The context for [`poll_answer`] handlers.
///
/// [`poll_answer`]: crate::EventLoop::poll_answer
struct PollAnswer {
/// The new answer in the poll.
answer: Answer,
}
}
impl PollAnswer {
pub(crate) const fn new(bot: Bot, answer: Answer) -> Self {
Self { bot, answer }
}
}