mirror of
https://github.com/teloxide/teloxide.git
synced 2025-01-03 09:49:07 +01:00
Remove the actual token
This commit is contained in:
parent
1d6a21acb0
commit
6d737dabb4
1 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue