1
Fork 0
mirror of https://github.com/thegeneralist01/social-media-video-downloader-bot synced 2026-03-10 02:30:34 +01:00

initial commit

This commit is contained in:
TheGeneralist 2025-03-31 20:46:15 +02:00
commit 739ddf8cbe
No known key found for this signature in database
GPG key ID: C391D4D52D630F45
4 changed files with 2233 additions and 0 deletions

15
src/main.rs Normal file
View file

@ -0,0 +1,15 @@
use teloxide::prelude::*;
#[tokio::main]
async fn main() {
dotenv::dotenv().ok();
pretty_env_logger::init();
log::info!("Starting the bot");
let bot = Bot::from_env();
teloxide::repl(bot, |bot: Bot, msg: Message| async move {
bot.send_message(msg.chat.id, "hi").await.ok();
Ok(())
}).await;
}