Remove the actual token

This commit is contained in:
Temirkhan Myrzamadi 2020-01-30 00:14:30 +06:00
parent 1d6a21acb0
commit 6d737dabb4

View file

@ -6,9 +6,7 @@ async fn main() {
pretty_env_logger::init(); pretty_env_logger::init();
log::info!("Starting the ping-pong bot!"); log::info!("Starting the ping-pong bot!");
let bot = Bot::new("1061598315:AAErEDodTsrqD3UxA_EvFyEfXbKA6DT25G0"); Dispatcher::new(Bot::new("MyAwesomeToken"))
Dispatcher::new(bot)
.message_handler(|ctx: HandlerCtx<Message>| ctx.reply("pong")) .message_handler(|ctx: HandlerCtx<Message>| ctx.reply("pong"))
.dispatch() .dispatch()
.await; .await;