Commit graph

275 commits

Author SHA1 Message Date
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
ef323889db Fix the docs of the Heroku example 2022-02-05 00:31:13 +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
24917a60d4 Use #[derive(BotCommand)] in examples/sqlite_remember.rs and examples/redis_remember.rs 2022-02-04 20:59:46 +06:00
Hirrolot
b66beef534 Explain handler params in examples/dialogue.rs 2022-02-04 20:21:16 +06:00
Hirrolot
09c3424097 Replace lazy_static with once_cell 2022-02-04 20:14:57 +06:00
Hirrolot
9efa2f6cbd DispatcherBuilder::new => Dispatcher::builder 2022-02-04 20:09:53 +06:00
Hirrolot
e5330cdec2 HandlerExt::add_dialogue => HandlerExt::enter_dialogue 2022-02-04 20:00:21 +06:00
Hirrolot
0000839144 HandlerExt::add_command => HandlerExt::filter_command 2022-02-04 19:46:34 +06:00
Hirrolot
5a00e970e4 .chat_id() => .chat.id 2022-02-04 19:45:35 +06:00
Hirrolot
ec9f701cf7 Revert ".chat_id() => .chat_id"
This reverts commit 26a28b1918.
2022-02-04 19:44:04 +06:00
Hirrolot
26a28b1918 .chat_id() => .chat_id 2022-02-04 19:38:06 +06:00
Hirrolot
ee3854c9a3 Merge branch 'dispatching2' of https://github.com/teloxide/teloxide into dispatching2 2022-02-04 19:09:43 +06:00
Hirrolot
879560f34a Fix the fixes 2022-02-04 19:09:32 +06:00
Hirrolot
47cc80d63e
Update examples/buttons.rs
Co-authored-by: Waffle Maybe <waffle.lapkin@gmail.com>
2022-02-04 16:46:26 +06:00
Hirrolot
263478a20a Simplify examples/dialogue.rs 2022-02-04 09:58:56 +06:00
Hirrolot
6ad7a5b0a2 Fix Clippy 2022-02-03 20:48:40 +06:00
Hirrolot
242bfef885 Fix merge conflicts 2022-02-03 20:39:32 +06:00
Hirrolot
3307a0915c Use .setup_ctrlc_handler() in the examples 2022-02-03 16:34:40 +06:00
Hirrolot
f97d699f74 Remove .unwraps in examples/dialogue.rs 2022-02-03 16:32:11 +06:00
Hirrolot
b11e5fdd19 Rewrite examples/redis_remember.rs & examples/sqlite_remember.rs 2022-02-03 03:36:53 +06:00
Hirrolot
b9ac6f70fb Rewrite examples/dialogue.rs to take advantage of multiple fields 2022-02-03 03:12:09 +06:00
Hirrolot
45293e3168 Fix dialogue examples 2022-02-03 02:36:36 +06:00
Hirrolot
62934f29bd Harmonise naming convention across the examples 2022-02-02 15:40:22 +06:00
Hirrolot
60df0a5cf8 Refactor Dialogue
Remove useless stuff, some cleanup, u know.
2022-02-02 15:25:23 +06:00
Hirrolot
d49b03edae Fix type aliases in the examples 2022-02-02 06:28:32 +06:00
Hirrolot
21eb048ca2 Decouple Dispatcher from DispatcherBuilder 2022-02-02 04:51:36 +06:00
Hirrolot
4b1bc22360 Update testing examples CI 2022-02-02 04:00:48 +06:00
Hirrolot
7b6d2cb86c examples/dices_bot.rs => examples/dices.rs 2022-02-02 03:57:51 +06:00
Hirrolot
37220975fe
Update examples/README.md 2022-02-02 03:56:43 +06:00
Hirrolot
3b3f5f855f Make all examples just *.rs files 2022-02-02 03:54:00 +06:00
Hirrolot
0a6487c23c Fix examples/admin_bot, examples/simple_commands_bot 2022-01-28 21:04:05 +06:00
Hirrolot
2058395d54 Add Me into the dependencies 2022-01-28 20:52:01 +06:00
Hirrolot
c017e59eb3 Update the examples 2022-01-26 15:51:51 +06:00
p0lunin
44f3a9e2a5 add dispatching2_features_bot example. 2022-01-12 15:45:01 +02:00
Maybe Waffle
85ef14867f Fix examples 2022-01-12 14:03:52 +03:00
Maybe Waffle
98855ecebe Update test_example.sh
- Remove BOM
- Fix shebang
- Do not run `cargo check` in parallel
  - `rustc` is good at utilizating cores by default
  - running `cargo check` in parallel messes up the output
2022-01-12 14:01:07 +03:00
p0lunin
7a9ae4fef6 update buttons_bot example 2022-01-12 12:41:19 +02:00
p0lunin
d7386a7dc1 remove old_dispatching feature, add prelude2 and repls2 modules 2022-01-06 14:50:59 +02:00
p0lunin
a8098350fc Merge branch 'dev' into dispatching2
# Conflicts:
#	Cargo.toml
#	examples/dialogue_bot/Cargo.toml
#	examples/inline_bot/src/main.rs
#	src/dispatching/mod.rs
#	src/lib.rs
2022-01-06 14:25:01 +02:00
p0lunin
ca1c1f3e33 update teloxide_macros dependency + update examples and tests using BotDialogue derive macro 2022-01-06 14:11:53 +02:00
p0lunin
d6e439b0cf update simple_commands_bot example 2022-01-06 14:04:09 +02:00
p0lunin
593dbc29f7 update shared_state_bot example 2022-01-06 13:59:50 +02:00
p0lunin
980aab5fd0 update redis_remember_bot example 2022-01-06 13:59:40 +02:00
p0lunin
0eb9314c71 update ngrok_bot example 2022-01-06 13:34:38 +02:00
p0lunin
9892096027 update inline_bot example 2022-01-06 13:30:27 +02:00
p0lunin
e0d2d141f0 update dices_bot example 2022-01-05 20:23:20 +02:00
p0lunin
18afd9a95e update heroku_ping_pong example 2022-01-05 20:20:02 +02:00
p0lunin
e2891d6d00 remove #[out()] attribute 2021-12-29 14:21:37 +02:00