Apply a review suggestion

Co-authored-by: Waffle Maybe <waffle.lapkin@gmail.com>
This commit is contained in:
Hirrolot 2022-10-07 16:45:16 +06:00 committed by GitHub
parent 59b5047fa3
commit d690709dfb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -75,6 +75,8 @@ teloxide::repl(bot, |bot: Bot, msg: Message| async move {
This is because REPLs now require the closure to return `RequestError` instead of a generic error type, so type inference works perfectly for a return value. If you use something other than `RequestError`, you can transfer your code to `teloxide::dispatching`, which still permits a generic error type.
### macros
`parse_with` now accepts a Rust _path_ to a custom parser function instead of a string:
```diff,rust