ayrat555 / frankenstein

Telegram bot API client for Rust
Do What The F*ck You Want To Public License
268 stars 28 forks source link

refactor(api): reuse new_url #199

Closed EdJoPaTo closed 2 months ago

EdJoPaTo commented 2 months ago

As the (Async)Api::new is basically a shortcut for the new_url it's a bit more obvious to reuse the new_url method more explicitly.

Also improves the linking to the actual methods in the doc comments. (Which also allows it to check that the given method actually exists which is neat on refactorings.)