Skip to content

Commit

Permalink
Use exiting data of telegram_bot_token variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
Edu4rdSHL committed Oct 30, 2019
1 parent 125ee1b commit abf1a82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/errors.rs
Expand Up @@ -57,7 +57,7 @@ pub fn check_monitoring_parameters(args: &mut args::Args) -> Result<()> {
} else if !args.telegram_bot_token.is_empty() && !args.telegram_chat_id.is_empty() {
args.telegram_webhook = format!(
"https://api.telegram.org/bot{}/sendMessage",
get_vars::get_auth_token("telegram")
args.telegram_bot_token
)
}
Ok(())
Expand Down

0 comments on commit abf1a82

Please sign in to comment.