Skip to content

canxin121/china_unicom_oxidebot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChinaUnicom Oxidebot

A chatbot cli to actively check or receive scheduled/threshold notifications about China Unicom flow usage.

example 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;
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages