Commit graph

49 commits

Author SHA1 Message Date
p0lunin
e2891d6d00 remove #[out()] attribute 2021-12-29 14:21:37 +02:00
p0lunin
72dfef4963 added DialogueState macro 2021-12-29 13:33:51 +02:00
p0lunin
6c0f1b9fc4 Added handler_factory.rs 2021-12-28 18:24:56 +02:00
p0lunin
600330f827 remove state.rs file 2021-12-27 17:23:37 +02:00
Hirrolot
2c2cfae0e0 Merge branch 'dispatching2' of https://github.com/teloxide/teloxide into dispatching2 2021-12-27 21:13:57 +06:00
Hirrolot
b253b7eec2 Don't define async fn run()
rustc now emits enough good compiler error messages for procedural macros such as `#[tokio::main]`.
2021-12-27 21:13:46 +06:00
p0lunin
50f37cf43b update dialogue_bot example 2021-12-27 17:12:31 +02:00
Temirkhan Myrzamadi
9a90148114 Fix examples/dialogue_bot 2021-03-18 01:56:41 +06:00
Temirkhan Myrzamadi
30458ab724 Oops, push the examples too 2021-03-06 03:24:10 +06:00
Temirkhan Myrzamadi
e2d536bc91 Update examples/dialogue_bot 2020-07-31 18:47:20 +06:00
Temirkhan Myrzamadi
bdd2ffad2a .unwrap() -> .expect(std::convert::Infallible) 2020-07-28 22:18:43 +06:00
Temirkhan Myrzamadi
38a1f470ad Use the default characters per line limit 2020-07-26 23:47:02 +06:00
Temirkhan Myrzamadi
f9c192aad0 Fix the docs 2020-07-26 23:37:56 +06:00
Temirkhan Myrzamadi
54a6bf440b Add an auxiliary parameter to (sub)transitions 2020-07-26 23:16:49 +06:00
Temirkhan Myrzamadi
477d8a67d3 Remove DialogueWithCx::unpack 2020-07-26 13:46:43 +06:00
Temirkhan Myrzamadi
71f38bcb92 Small refinements 2020-07-26 13:18:29 +06:00
Temirkhan Myrzamadi
a3faf0356e Fill the blank instead of a test in examples/dialogue_bot 2020-07-26 03:24:00 +06:00
Temirkhan Myrzamadi
094a95e8d8 Add append_field 2020-07-26 03:10:48 +06:00
Temirkhan Myrzamadi
bf114de249 A nicer approach to manage dialogues via #[derive(Transition)] + #[teloxide(transition)] 2020-07-25 22:37:58 +06:00
Temirkhan Myrzamadi
56be9a2c59 Use three dots instead of the exclamation in the examples 2020-07-25 19:46:05 +06:00
Temirkhan Myrzamadi
18b813c159 Unify TransitionIn with TransitionOut 2020-07-24 19:26:49 +06:00
Temirkhan Myrzamadi
34633ad57b Refactor examples/dialogue_bot 2020-07-24 18:25:52 +06:00
Temirkhan Myrzamadi
462b42c526 Trying to compile examples/dialogue_bot... 2020-07-24 01:04:42 +06:00
Temirkhan Myrzamadi
f67d960d43 Make a test in examples/dialogue_bot 2020-07-23 21:40:36 +06:00
Temirkhan Myrzamadi
03ab247262 Update redis_remember_bot 2020-07-01 19:25:10 +06:00
Temirkhan Myrzamadi
0ac679c443 Remove the frunk dependency 2020-07-01 18:52:53 +06:00
Temirkhan Myrzamadi
eabc77caab Remove wrap_dialogue! 2020-06-26 18:18:31 +06:00
Temirkhan Myrzamadi
f3fb72d527 DispatcherHandlerCx -> UpdateWithCx, DialogueDispatcherHandler -> DialogueWithCx 2020-05-26 15:01:57 +06:00
Temirkhan Myrzamadi
3ffb2c70fb Document the newest macros 2020-05-24 22:28:08 +06:00
Temirkhan Myrzamadi
a33bd7205c Separate modules of examples/dialogue_bot 2020-05-24 18:55:13 +06:00
Temirkhan Myrzamadi
5b2fa285aa Simplify examples/dialogue_bot 2020-05-24 18:42:40 +06:00
Temirkhan Myrzamadi
572d41fbf8 Extract FavouriteMusic into favourite_music.rs (examples/dialogue_bot) 2020-05-24 18:39:41 +06:00
Temirkhan Myrzamadi
c9393aa5d6 Prettify examples/dialogues_bot a little bit 2020-05-24 17:36:20 +06:00
Temirkhan Myrzamadi
01dc7a0d42 Improve wrap_dialogue! 2020-05-24 17:15:46 +06:00
Temirkhan Myrzamadi
6ff1800f12 Add auxiliary dialogues macros 2020-05-24 17:08:40 +06:00
Temirkhan Myrzamadi
963218bba0 Use a coproduct as a dialogue FSM 2020-05-24 14:19:46 +06:00
Temirkhan Myrzamadi
ddd94543d1 Update examples/dialogue_bot 2020-05-24 01:06:04 +06:00
Temirkhan Myrzamadi
267a1dd053 Add 'up' operations (examples/dialogue_bot) 2020-05-24 00:46:00 +06:00
Temirkhan Myrzamadi
bc89fe7b01 Prettify the examples 2020-03-16 17:55:49 +06:00
GoldsteinE
fff1e55a58 Improve readability of dialogue_bot example 2020-03-10 15:05:48 +03:00
Maximilian Siling
ecb09659b3 Refactor Storage so operations can fail 2020-03-09 20:19:27 +03:00
Temirkhan Myrzamadi
fa554a8252 Fixes 2020-02-19 04:54:41 +06:00
Temirkhan Myrzamadi
fc36cf142a Fix a typo in examples/dialogue_bot 2020-02-14 00:17:31 +06:00
Temirkhan Myrzamadi
34d44e5195 Add a description to examples/dialogue_bot 2020-02-13 23:38:05 +06:00
Temirkhan Myrzamadi
42e2f3fb42 Refactor 2020-02-13 23:23:22 +06:00
Temirkhan Myrzamadi
7a7254b8a1 Add BotBuilder 2020-02-13 20:12:24 +06:00
Temirkhan Myrzamadi
690fdd06b4 Add Bot::{from_env, from_env_with_client} 2020-02-13 18:36:12 +06:00
Temirkhan Myrzamadi
7cf6aaff90 Add multiple_handlers_bot 2020-02-13 14:55:46 +06:00
Temirkhan Myrzamadi
e9a62be453 Rename simple_dialogue -> dialogue_bot 2020-02-12 20:44:40 +06:00
Renamed from examples/simple_dialogue/src/main.rs (Browse further)