Rename library functions from "main"

This commit is contained in:
George Kaklamanos 2023-06-30 18:02:40 +03:00
parent 6e6d4b227d
commit 983456997b
5 changed files with 8 additions and 8 deletions

View file

@ -43,7 +43,7 @@ async fn answer(
}
#[tokio::main]
pub async fn main(token: String) {
pub async fn telegram(token: String) {
teloxide::enable_logging!();
log::info!("Starting labadoor Telegram bot...");
let bot = Bot::new(token).auto_send();