From 6d737dabb431026d03ead28b283245001c80b7f5 Mon Sep 17 00:00:00 2001 From: Temirkhan Myrzamadi Date: Thu, 30 Jan 2020 00:14:30 +0600 Subject: [PATCH] Remove the actual token --- examples/ping_pong_bot/src/main.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/ping_pong_bot/src/main.rs b/examples/ping_pong_bot/src/main.rs index 448a1d5e..9a621787 100644 --- a/examples/ping_pong_bot/src/main.rs +++ b/examples/ping_pong_bot/src/main.rs @@ -6,9 +6,7 @@ async fn main() { pretty_env_logger::init(); log::info!("Starting the ping-pong bot!"); - let bot = Bot::new("1061598315:AAErEDodTsrqD3UxA_EvFyEfXbKA6DT25G0"); - - Dispatcher::new(bot) + Dispatcher::new(Bot::new("MyAwesomeToken")) .message_handler(|ctx: HandlerCtx| ctx.reply("pong")) .dispatch() .await;