Commit graph

10 commits

Author SHA1 Message Date
Hirrolot
53be9d0e92 Reorder parameters in the examples
In reordering the parameters, I stick the following principle: place parameters from least changing to most changing. Thus, we have config and bot right from the beginning, next a dialogue with a possible payload, and next updates such as messages, inline queries, etc. This principle is used in languages with a native support for currying, although in Rust people appear to order parameters arbitrarily, so this commit is mostly for the sake of consistency.


Former-commit-id: 5922984f6c
2022-10-03 17:54:06 +06:00
Hirrolot
05501015ee Stop using AutoSend in the examples and docs
Former-commit-id: 00efbe163a
2022-09-29 09:37:20 +06:00
Maybe Waffle
11231655c2 Move ctrlc handler enable function to DispatcherBuilder
This helps with consistency -- every setting is changed in builder.
Also `Self -> Self` function sometimes plays more nicely with borrowck.


Former-commit-id: dd4af30727
2022-07-21 13:32:05 +04:00
Hirrolot
fb6699e555 Revert "Replace examples/dispatching_features.rs with examples/purchase.rs"
This reverts commit 018174790e [formerly 43a9bac87d].


Former-commit-id: 402764e363
2022-04-27 08:02:18 +06:00
Hirrolot
018174790e Replace examples/dispatching_features.rs with examples/purchase.rs
Former-commit-id: 43a9bac87d
2022-04-27 01:01:15 +06:00
Hirrolot
5723d7b9b7 Harmonise example bot initial logs
Former-commit-id: b8c3f48c7f
2022-04-27 01:00:08 +06:00
Maybe Waffle
2aa59d760a Update teloxide-core 0.4.5 -> 0.5.0 2022-04-13 15:58:29 +04:00
Hirrolot
5838b31834 Capture identifier in format strings (examples/) 2022-04-03 16:06:44 +06:00
Hirrolot
5000c4cec4 Some fixing stuff lol 2022-04-02 15:34:43 +06:00
Hirrolot
fa5d1f738b Remove support for the old dispatching 2022-03-29 01:55:09 +06:00
Renamed from examples/dispatching2_features.rs (Browse further)