Commit graph

1461 commits

Author SHA1 Message Date
Maybe Waffle
31ff3a468d Fix compilation with non-default features 2022-03-08 12:20:01 +04:00
Maybe Waffle
ccd87a6ed3 Remove doc(cfg) annotations in favour of feature(doc_auto_cfg) 2022-02-10 16:39:21 +03:00
Hirrolot
24d5c38670 Fix the broken URL 2022-02-08 04:09:08 +06:00
Hirrolot
3ab5763afb Add test_tokio_spawn 2022-02-08 03:54:30 +06:00
Hirrolot
ba277991c9 Make the default and error handlers Send + Sync 2022-02-07 15:53:52 +06:00
Maybe Waffle
24c8035b3c Refactor ShutdownToken 2022-02-04 23:52:52 +03:00
Hirrolot
42e1cd2cd1 Update an example in src/dispatching2/mod.rs 2022-02-05 02:43:12 +06:00
Hirrolot
b4aa3a4504 Move storage back to dispatching 2022-02-05 02:37:01 +06:00
Hirrolot
5909e48e11 Deprecate the old dispatching system 2022-02-05 02:33:03 +06:00
Hirrolot
07b844db99 Add BotCommand::bot_commands 2022-02-05 02:18:47 +06:00
Hirrolot
735e6a41f2 Replace CARGO_PKG_NAME with CARGO_CRATE_NAME in logging 2022-02-05 01:07:28 +06:00
Hirrolot
c2c9620b48 Remove redundant examples from src/logging.rs 2022-02-05 01:01:24 +06:00
Hirrolot
08380790b8 Fix the docs of HandlerFactory 2022-02-05 00:32:12 +06:00
Hirrolot
aade493391 Update the docs of dialogue/mod.rs 2022-02-05 00:26:40 +06:00
Hirrolot
539c53abde Log errors in HandlerExt::enter_dialogue 2022-02-05 00:25:18 +06:00
Hirrolot
67901fa53b Update dptree 2022-02-05 00:02:22 +06:00
Hirrolot
bd73d79e80 Reuse dispatching::dialogue::storage 2022-02-04 22:54:12 +06:00
Hirrolot
a59b3a7957 Make default_handler a closure 2022-02-04 22:32:06 +06:00
Hirrolot
123ac1ec67 Make UpdateFilterExt and MessageFilterExt sealed 2022-02-04 22:01:50 +06:00
Hirrolot
b66beef534 Explain handler params in examples/dialogue.rs 2022-02-04 20:21:16 +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
8eb8e3c720 Move DialogueHandlerExt::add_dialogue to HandlerExt 2022-02-04 19:53:15 +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
879560f34a Fix the fixes 2022-02-04 19:09:32 +06:00
Hirrolot
9306f6d484
Update src/dispatching2/dispatcher.rs
Co-authored-by: Waffle Maybe <waffle.lapkin@gmail.com>
2022-02-04 16:43:52 +06:00
Hirrolot
242bfef885 Fix merge conflicts 2022-02-03 20:39:32 +06:00
Hirrolot
dedb1c85e1 Add high-level documentation 2022-02-03 20:27:45 +06:00
Hirrolot
d4fbaa74c4 Some tiny documentation tweaks 2022-02-03 16:38:54 +06:00
Hirrolot
d89eeb5847 Make setup_ctrlc_handler return &mut Self 2022-02-03 12:48:02 +06:00
Hirrolot
45293e3168 Fix dialogue examples 2022-02-03 02:36:36 +06:00
Hirrolot
60df0a5cf8 Refactor Dialogue
Remove useless stuff, some cleanup, u know.
2022-02-02 15:25:23 +06:00
Hirrolot
d25efa9e14 Document UpdateHandler, DefaultHandler 2022-02-02 05:00:45 +06:00
Hirrolot
5101786d0b requester => bot 2022-02-02 04:55:12 +06:00
Hirrolot
21eb048ca2 Decouple Dispatcher from DispatcherBuilder 2022-02-02 04:51:36 +06:00
Hirrolot
e92eef4a7c Document some stuff 2022-01-31 19:23:47 +06:00
Hirrolot
2058395d54 Add Me into the dependencies 2022-01-28 20:52:01 +06:00
Hirrolot
58311ef608 Add Update & UpdateFilterExt to prelude2 2022-01-26 15:51:43 +06:00
Hirrolot
b1fac57c94
Merge pull request #500 from teloxide/fix_stop_token_sendness
Fix `polling`'s `StopToken` not being `Send`
2022-01-26 12:34:32 +06:00
Maybe Waffle
e83688d4d3 Add toolchain file and fix formatting 2022-01-25 21:07:30 +03:00
Maybe Waffle
ea5eb16276 Clarify StatefulListener docs a little 2022-01-25 20:38:59 +03:00
Maybe Waffle
755ec44aea Cleanup update_listeners docs 2022-01-25 20:25:19 +03:00
Hirrolot
cd51bba180 Refactor Dispatcher 2022-01-24 13:20:13 +06:00
Hirrolot
7d6c374828 Accept the handler as a parameter in Dispatcher::new 2022-01-23 20:58:55 +06:00
Hirrolot
ad88db96b6 Add UpdateFilterExt 2022-01-23 20:38:12 +06:00
Hirrolot
01c43dd360 Refactor MessageFilterExt 2022-01-23 20:15:27 +06:00
Maybe Waffle
a7182962f7 Fix polling's StopToken not being Send 2022-01-18 21:01:47 +03:00