use openlark_core::config::Config;
use std::sync::Arc;
#[derive(Clone)]
pub struct BotService {
#[cfg_attr(not(feature = "v4"), expect(dead_code))]
config: Arc<Config>,
}
impl BotService {
pub fn new(config: Config) -> Self {
Self {
config: Arc::new(config),
}
}
#[cfg(feature = "v4")]
pub fn search_bot(&self) -> crate::bot::bot::v4::bot::search::SearchBotRequest {
crate::bot::bot::v4::bot::search::SearchBotRequest::new(self.config.clone())
}
}