mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-14 11:44:04 +01:00
Apply suggestions from code review
Co-authored-by: Temirkhan Myrzamadi <hirrolot@gmail.com>
This commit is contained in:
parent
ac4f7f88e7
commit
de9ce863d5
1 changed files with 2 additions and 2 deletions
|
@ -69,7 +69,7 @@ impl Bot {
|
|||
/// If it cannot create [`reqwest::Client`].
|
||||
///
|
||||
/// [`reqwest::Client`]: https://docs.rs/reqwest/latest/reqwest/struct.Client.html
|
||||
#[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 new<S>(token: S) -> Self
|
||||
where
|
||||
S: Into<String>,
|
||||
|
@ -87,7 +87,7 @@ impl Bot {
|
|||
///
|
||||
/// [`reqwest::Client`]: https://docs.rs/reqwest/latest/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 with_client<S>(token: S, client: Client) -> Self
|
||||
where
|
||||
S: Into<String>,
|
||||
|
|
Loading…
Add table
Reference in a new issue