mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-14 11:44:04 +01:00
Update src/bot/mod.rs
Co-authored-by: Temirkhan Myrzamadi <hirrolot@gmail.com>
This commit is contained in:
parent
7527179f3f
commit
ac4f7f88e7
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue