A chatbot cli to actively check or receive scheduled/threshold notifications about China Unicom flow usage.
You need to use Oxidebot with this handler.
use china_unicom_oxidebot::ChinaUnicomHandler;
use telegram_bot_oxidebot::bot::TelegramBot;
#[tokio::main]
async fn main() {
tracing_subscriber::fmt::init();
oxidebot::OxideBotManager::new()
.bot(
TelegramBot::new(
"token".to_string(),
Default::default(),
)
.await,
)
.await
.wait_handler(|s| Box::pin(async move { ChinaUnicomHandler::new(s).await }))
.await
.run_block()
.await;
}