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:
commit
739ddf8cbe
4 changed files with 2233 additions and 0 deletions
15
src/main.rs
Normal file
15
src/main.rs
Normal 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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue