Hirrolot
fa5d1f738b
Remove support for the old dispatching
2022-03-29 01:55:09 +06:00
Maybe Waffle
91bea5be5e
Apply suggestions from the review
...
- remove `username_from_bot`
- add `username_from_me`
2022-03-27 22:11:17 +04:00
Maybe Waffle
86cc3d782f
Add CommandDescription[s]
...
Add two new types - `CommandDescription` and `CommandDescriptions`, make
`BotCommands` return the latter.
2022-03-27 22:10:50 +04:00
Maybe Waffle
b3b8073a12
Rename BotCommand
-> BotCommands
(the trait)
...
This removes the ambiguity with `types::BotCommand` and also the new
name just makes more sense, since this trait is usually implemented for
enums that can be many different commands and not a single one.
Note: this requires changes in the `teloxide-macro` crate.
2022-03-27 22:10:50 +04:00
Maybe Waffle
dbc7633fdb
Deprecate enable_logging!
in favour of configuring logging yourself
2022-03-21 18:55:34 +04:00
Hirrolot
d4a4719b58
Simplify examples/dispatching2_features.rs
2022-02-05 00:53:55 +06:00
Hirrolot
108d7b7d94
Update examples/dispatching2_features.rs
...
Co-authored-by: Waffle Maybe <waffle.lapkin@gmail.com>
2022-02-05 00:33:28 +06:00
Hirrolot
67901fa53b
Update dptree
2022-02-05 00:02:22 +06:00
Hirrolot
a59b3a7957
Make default_handler
a closure
2022-02-04 22:32:06 +06:00
Hirrolot
9efa2f6cbd
DispatcherBuilder::new
=> Dispatcher::builder
2022-02-04 20:09:53 +06:00
Hirrolot
0000839144
HandlerExt::add_command
=> HandlerExt::filter_command
2022-02-04 19:46:34 +06:00
Hirrolot
6ad7a5b0a2
Fix Clippy
2022-02-03 20:48:40 +06:00
Hirrolot
3307a0915c
Use .setup_ctrlc_handler()
in the examples
2022-02-03 16:34:40 +06:00
Hirrolot
62934f29bd
Harmonise naming convention across the examples
2022-02-02 15:40:22 +06:00
Hirrolot
21eb048ca2
Decouple Dispatcher
from DispatcherBuilder
2022-02-02 04:51:36 +06:00
Hirrolot
3b3f5f855f
Make all examples just *.rs
files
2022-02-02 03:54:00 +06:00