mirror of
https://github.com/flibusta-apps/book_bot.git
synced 2025-12-06 07:25:36 +01:00
Fix
This commit is contained in:
@@ -1,3 +1,10 @@
|
|||||||
|
use std::str::FromStr;
|
||||||
|
|
||||||
|
use regex::Regex;
|
||||||
|
|
||||||
|
use crate::bots::approved_bot::modules::utils::GetPaginationCallbackData;
|
||||||
|
|
||||||
|
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
pub enum BookCallbackData {
|
pub enum BookCallbackData {
|
||||||
Author { id: u32, page: u32 },
|
Author { id: u32, page: u32 },
|
||||||
|
|||||||
@@ -2,11 +2,9 @@ pub mod commands;
|
|||||||
pub mod callback_data;
|
pub mod callback_data;
|
||||||
|
|
||||||
use core::fmt::Debug;
|
use core::fmt::Debug;
|
||||||
use std::str::FromStr;
|
|
||||||
|
|
||||||
use smartstring::alias::String as SmartString;
|
use smartstring::alias::String as SmartString;
|
||||||
|
|
||||||
use regex::Regex;
|
|
||||||
use smallvec::SmallVec;
|
use smallvec::SmallVec;
|
||||||
use teloxide::{dispatching::UpdateFilterExt, dptree, prelude::*, adaptors::{Throttle, CacheMe}};
|
use teloxide::{dispatching::UpdateFilterExt, dptree, prelude::*, adaptors::{Throttle, CacheMe}};
|
||||||
use tracing::log;
|
use tracing::log;
|
||||||
@@ -22,10 +20,10 @@ use crate::bots::approved_bot::{
|
|||||||
tools::filter_callback_query,
|
tools::filter_callback_query,
|
||||||
};
|
};
|
||||||
|
|
||||||
use self::commands::BookCommand;
|
use self::{commands::BookCommand, callback_data::BookCallbackData};
|
||||||
|
|
||||||
use super::utils::{
|
use super::utils::{
|
||||||
filter_command, generic_get_pagination_keyboard, GetPaginationCallbackData,
|
filter_command, generic_get_pagination_keyboard
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user