Commit graph

1549 commits

Author SHA1 Message Date
Hirrolot
f2bf104bce Update the documentation of BotCommands
Former-commit-id: ee819548c0
2022-05-26 23:20:32 +06:00
Maybe Waffle
93c78ce0be Switch to a new module naming system
Former-commit-id: f02eb2b679
2022-05-06 23:37:58 +04:00
Hirrolot
bf693bf263 Merge pull request #625 from teloxide/remove_frunk_mentions
Remove mentions of the removed "frunk" feature

Former-commit-id: 50d3a6a2b0
2022-05-06 02:53:44 +06:00
Maybe Waffle
dd2feb179f Remove mentions of the removed "frunk" feature 2022-05-05 16:30:07 +04:00
Hirrolot
1d1ff7db5a Merge pull request #613 from teloxide/dptree-case
Deprecate `teloxide::handler!` in favour of `dpree::case!`

Former-commit-id: 0d36a1e2b7
2022-04-27 16:05:15 +06:00
Hirrolot
5a680b6001 Re-export dptree::case! instead of deprecation 2022-04-27 15:31:17 +06:00
Hirrolot
deb992c787 Deprecate teloxide::handler! in favour of dptree::case! 2022-04-27 15:16:34 +06: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
Hirrolot
34ebbe6bef examples/dices.rs => examples/throw_dice.rs
Former-commit-id: 2537f06464
2022-04-27 00:56:51 +06:00
Hirrolot
df0d13c42b Add teloxide::filter_command 2022-04-25 19:16:05 +06:00
Hirrolot
4ad7dfac49 Update the docs of teloxide::handler! 2022-04-25 01:46:03 +06:00
Hirrolot
a60e19a8c2 Implement dialogue::enter 2022-04-23 00:11:27 +06:00
Hirrolot
66b9a718d1 Implement GetChatId for Update 2022-04-22 23:42:39 +06:00
Hirrolot
3df389fcaa Fix the teloxide::handler! docs 2022-04-18 22:47:00 +06:00
Maybe Waffle
63b3be8db7 Update dptree, now to a crates.io version! 2022-04-18 14:13:39 +04:00
Maybe Waffle
63a7b02c68 Update dptree (again) 2022-04-15 14:19:46 +04:00
Maybe Waffle
c93022028f Log allowed updates
This will be useful for debugging
2022-04-15 13:04:17 +04:00
Maybe Waffle
dbe45fb49f Update dptree
Use the new naming of things for handler descriptions :)
2022-04-15 13:04:14 +04:00
Maybe Waffle
4db52436f3 [WIP] implement allowed updates in dispatcher 2022-04-15 12:58:52 +04:00
Maybe Waffle
f48c4f7886 Allow changing update distribution function 2022-04-13 16:42:47 +04:00
Maybe Waffle
adccdbae1c move some clones() around 2022-04-13 16:18:04 +04:00
Maybe Waffle
c9a6b77434 Make worker queue size in dp configurable 2022-04-13 16:17:06 +04:00
Maybe Waffle
2aa59d760a Update teloxide-core 0.4.5 -> 0.5.0 2022-04-13 15:58:29 +04:00
Hirrolot
71c647b2c9 Fix .for_each on self.workers 2022-04-13 16:18:02 +06:00
Hirrolot
b2ad297029 Fix formatting 2022-04-13 16:11:47 +06:00
Hirrolot
2e8ed1fa3c
Remove redundant Arc::clone
Co-authored-by: Waffle Maybe <waffle.lapkin@gmail.com>
2022-04-13 16:10:41 +06:00
Hirrolot
556068fdb1
Wait for workers concurrently
Co-authored-by: Waffle Maybe <waffle.lapkin@gmail.com>
2022-04-13 16:09:00 +06:00
Hirrolot
579d5a7b7c Wait for workers by .awaiting join handles 2022-04-13 14:05:46 +06:00
Hirrolot
6a83fa5604 Remove redundant async move blocks 2022-04-13 13:40:27 +06:00
Hirrolot
e4459c408d Remove the redundant Box in DefaultHandler 2022-04-13 13:38:05 +06:00
Hirrolot
c2bc945d27 Add some helpful comments 2022-04-13 12:11:02 +06:00
Hirrolot
d6521662b4 Switch worker and default worker impls 2022-04-13 12:07:32 +06:00
Hirrolot
7e34d7ea47 Implement concurrent update handling 2022-04-13 02:45:02 +06:00
Hirrolot
5e21c4d881
Merge pull request #582 from teloxide/deprecate-dispatch-by
Deprecate `HandlerFactory` and `HandlerExt::dispatch_by`
2022-04-10 22:53:37 +06:00
Hirrolot
50c7cfe9d2 Fix dispatcher's graceful shutdown 2022-04-09 02:33:52 +06:00
Hirrolot
ffcdba0e1d Deprecate HandlerFactory and HandlerExt::dispatch_by 2022-04-08 00:18:13 +06:00
Hirrolot
f3b4769bc5 Mark Dialogue::{new, chat_id} as #[must_use] 2022-04-08 00:03:27 +06:00
Hirrolot
c52325b788 Implement Dialogue::chat_id 2022-04-07 18:35:52 +06:00
Waffle Maybe
7abbd2dc09
Merge pull request #554 from teloxide/webhooks
Built-in webhook support
2022-04-07 16:31:26 +04:00
Maybe Waffle
bb7a4729c0 Remove the need for CacheMe in dispatcher 2022-04-05 17:19:10 +04:00
Maybe Waffle
f83ff59709 Fix issues caused by the rebase 2022-04-05 16:42:52 +04:00
Maybe Waffle
0bddb1d927 Update changelog 2022-04-05 16:37:22 +04:00
Maybe Waffle
62052a822a Remove unnecessary bounds
`UpdateListener::StopToken` is required to be `Send` anyway
2022-04-05 16:36:31 +04:00
Maybe Waffle
cf5cbe5a82 Add a workaround to stop webhook listener even when server is still run 2022-04-05 16:36:31 +04:00
Maybe Waffle
cca08ae43c Remove Option<> from webhooks::Options::drop_pending_updates 2022-04-05 16:36:31 +04:00
Maybe Waffle
7e44ab8c11 Add max_connections to the webhooks::Options 2022-04-05 16:36:31 +04:00
Maybe Waffle
4abafbcacc Write documentation for webhooks 2022-04-05 16:36:31 +04:00
Maybe Waffle
2bdfcc9ca6 Move axum webhook impl into a sub-mod 2022-04-05 16:36:31 +04:00