Update src/bot/mod.rs

Co-authored-by: Temirkhan Myrzamadi <hirrolot@gmail.com>
This commit is contained in:
Waffle Lapkin 2020-08-21 14:31:25 +03:00 committed by GitHub
parent 7527179f3f
commit ac4f7f88e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -56,7 +56,7 @@ impl Bot {
///
/// [`reqwest::Client`]: https://docs.rs/reqwest/0.10.1/reqwest/struct.Client.html
/// [issue 223]: https://github.com/teloxide/teloxide/issues/223
#[deprecated = "Deprecated in favour of BotBuilder because the later provides more options (notably default parse_mode and env defaults)"]
#[deprecated = "Deprecated in favour of BotBuilder because the later provides more options (notably default parse_mode)"]
pub fn from_env_with_client(client: Client) -> Self {
#[allow(deprecated)]
Self::with_client(&get_env(TELOXIDE_TOKEN), client)