Commit graph

1580 commits

Author SHA1 Message Date
Maybe Waffle
430df0cefb Mark Polling and PollingBuilder as must_use 2022-07-05 00:05:29 +04:00
Maybe Waffle
08da55f54f When creating Polling assert that it's an UpdateListener 2022-07-05 00:05:29 +04:00
Maybe Waffle
ee52bb28b4 Fix docs 2022-07-05 00:05:29 +04:00
Maybe Waffle
79f6cf4ee9 Move polling_builder => Polling::builder 2022-07-05 00:05:27 +04:00
Maybe Waffle
195d34ba0c Correct deprecated since version 2022-07-05 00:04:47 +04:00
Maybe Waffle
b29d60657f Panic for limit=0 2022-07-05 00:04:26 +04:00
Maybe Waffle
612f47d242 Add option to drop pending updates w/ polling 2022-07-05 00:04:26 +04:00
Maybe Waffle
58bbf8e737 Remove useless use 2022-07-05 00:04:26 +04:00
Maybe Waffle
e0e5da30ba Deprecate polling(), expose Polling{,Builder} and fix docs 2022-07-05 00:04:26 +04:00
Maybe Waffle
db417caa52 Return named Polling<_> type from polling* functions
This replaces the `impl UpdateListener<R::Err>` and makes using polling
nicer.
2022-07-05 00:04:26 +04:00
Maybe Waffle
82fc756aab Implement polling stream by hand
IMO it's actually clearer & nicer than the old impl. +The types are now
nameable.
2022-07-05 00:04:26 +04:00
Maybe Waffle
6729c965fa Add polling builder 2022-07-05 00:04:26 +04:00
Waffle Maybe
c4c3acf742
Merge pull request #671 from teloxide/webhooks_secret_token
Add support for `secret_token` for built-in webhooks
2022-07-05 00:03:13 +04:00
Maybe Waffle
b849067378 Remove useless comments 2022-07-04 23:58:46 +04:00
Maybe Waffle
db59b47674 Mark webhooks::Options as #[must_use] 2022-07-04 23:52:59 +04:00
Hirrolot
14e9fd2197 Use #[default] for State::Start in dialogues 2022-07-04 21:47:57 +06:00
Maybe Waffle
e8ce86df8b Clippy :| 2022-07-03 22:49:15 +04:00
Maybe Waffle
1458e40b45 Document webhook* features 2022-07-03 22:49:15 +04:00
Maybe Waffle
dc9dc8cd13 Reorder features in features.md 2022-07-03 22:49:15 +04:00
Maybe Waffle
4edd41fd58 Reformat features file 2022-07-03 22:49:15 +04:00
Maybe Waffle
8806cb9d78 Add support for secret_token in built-in webhooks 2022-07-03 22:49:15 +04:00
Maybe Waffle
c129b6a53d Update teloxide-core to master 2022-07-03 22:49:15 +04:00
Maybe Waffle
cabc045c06 fix doctest 2022-07-03 15:21:17 +04:00
Maybe Waffle
a4ad44fae9 Change recommended way to build docs 2022-07-03 15:12:18 +04:00
Hirrolot
69b5d8b3d5 Make a TODO in place of the dispatching doc example 2022-06-29 21:36:36 +06:00
Hugo Cornago
22b554650e fix typo 2022-06-27 10:31:09 +02:00
Maybe Waffle
8489464bd3 Apply suggestions from the review 2022-06-27 00:01:31 +04:00
Maybe Waffle
a820dedd50 Auto-magically detect how much workers need to be kept alive 2022-06-26 22:53:41 +04:00
Maybe Waffle
9cb7ca9bd3 Add "GC" for dispatcher workers 2022-06-17 23:01:26 +04:00
Serge Barinov
09e7597fa7 fix: escape user full name for mention 2022-06-05 09:42:39 +03:00
Hirrolot
5b2b7c23f7 Update other doc places 2022-05-26 23:26:53 +06:00
Hirrolot
ee819548c0 Update the documentation of BotCommands 2022-05-26 23:20:32 +06:00
Maybe Waffle
f02eb2b679 Switch to a new module naming system 2022-05-06 23:37:58 +04:00
Hirrolot
50d3a6a2b0
Merge pull request #625 from teloxide/remove_frunk_mentions
Remove mentions of the removed "frunk" feature
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
0d36a1e2b7
Merge pull request #613 from teloxide/dptree-case
Deprecate `teloxide::handler!` in favour of `dpree::case!`
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
402764e363 Revert "Replace examples/dispatching_features.rs with examples/purchase.rs"
This reverts commit 43a9bac87d.
2022-04-27 08:02:18 +06:00
Hirrolot
43a9bac87d Replace examples/dispatching_features.rs with examples/purchase.rs 2022-04-27 01:01:15 +06:00
Hirrolot
b8c3f48c7f Harmonise example bot initial logs 2022-04-27 01:00:08 +06:00
Hirrolot
2537f06464 examples/dices.rs => examples/throw_dice.rs 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