Commit graph

1584 commits

Author SHA1 Message Date
Maybe Waffle
cc74e7517d Update deps
Former-commit-id: ed88e43afa
2022-07-19 14:30:18 +04:00
Maybe Waffle
f6e7c01a45 Update dptree
Former-commit-id: eb8b384f46
2022-07-18 15:56:45 +04:00
Maybe Waffle
123c550c6c Add a test for discussion_648
Former-commit-id: 56f8ef90ec
2022-07-18 15:56:25 +04:00
Maybe Waffle
8cecf248b2 Make fields of PollingBuilder public
Former-commit-id: cd63dbf1e7
2022-07-05 00:07:15 +04:00
Maybe Waffle
1ff0440762 Mark Polling and PollingBuilder as must_use
Former-commit-id: 430df0cefb
2022-07-05 00:05:29 +04:00
Maybe Waffle
f0608da9c3 When creating Polling assert that it's an UpdateListener
Former-commit-id: 08da55f54f
2022-07-05 00:05:29 +04:00
Maybe Waffle
4e5e7a145d Fix docs
Former-commit-id: ee52bb28b4
2022-07-05 00:05:29 +04:00
Maybe Waffle
cce0710c8c Move polling_builder => Polling::builder
Former-commit-id: 79f6cf4ee9
2022-07-05 00:05:27 +04:00
Maybe Waffle
79e393c445 Correct deprecated since version
Former-commit-id: 195d34ba0c
2022-07-05 00:04:47 +04:00
Maybe Waffle
09d189f689 Panic for limit=0
Former-commit-id: b29d60657f
2022-07-05 00:04:26 +04:00
Maybe Waffle
f9da86f881 Add option to drop pending updates w/ polling
Former-commit-id: 612f47d242
2022-07-05 00:04:26 +04:00
Maybe Waffle
60fc833108 Remove useless use
Former-commit-id: 58bbf8e737
2022-07-05 00:04:26 +04:00
Maybe Waffle
060886737f Deprecate polling(), expose Polling{,Builder} and fix docs
Former-commit-id: e0e5da30ba
2022-07-05 00:04:26 +04:00
Maybe Waffle
e51c4c774c Return named Polling<_> type from polling* functions
This replaces the `impl UpdateListener<R::Err>` and makes using polling
nicer.


Former-commit-id: db417caa52
2022-07-05 00:04:26 +04:00
Maybe Waffle
2ceccdf442 Implement polling stream by hand
IMO it's actually clearer & nicer than the old impl. +The types are now
nameable.


Former-commit-id: 82fc756aab
2022-07-05 00:04:26 +04:00
Maybe Waffle
a839b47106 Add polling builder
Former-commit-id: 6729c965fa
2022-07-05 00:04:26 +04:00
Waffle Maybe
7046b0d8fb Merge pull request #671 from teloxide/webhooks_secret_token
Add support for `secret_token` for built-in webhooks

Former-commit-id: c4c3acf742
2022-07-05 00:03:13 +04:00
Maybe Waffle
9061d8e347 Remove useless comments
Former-commit-id: b849067378
2022-07-04 23:58:46 +04:00
Maybe Waffle
c87b6d4f41 Mark webhooks::Options as #[must_use]
Former-commit-id: db59b47674
2022-07-04 23:52:59 +04:00
Hirrolot
6331fe50cb Use #[default] for State::Start in dialogues
Former-commit-id: 14e9fd2197
2022-07-04 21:47:57 +06:00
Maybe Waffle
f46358878b Clippy :|
Former-commit-id: e8ce86df8b
2022-07-03 22:49:15 +04:00
Maybe Waffle
35b800073b Document webhook* features
Former-commit-id: 1458e40b45
2022-07-03 22:49:15 +04:00
Maybe Waffle
aa31cd4caf Reorder features in features.md
Former-commit-id: dc9dc8cd13
2022-07-03 22:49:15 +04:00
Maybe Waffle
653b2119aa Reformat features file
Former-commit-id: 4edd41fd58
2022-07-03 22:49:15 +04:00
Maybe Waffle
1360aa96c3 Add support for secret_token in built-in webhooks
Former-commit-id: 8806cb9d78
2022-07-03 22:49:15 +04:00
Maybe Waffle
7f6d2c2801 Update teloxide-core to master
Former-commit-id: c129b6a53d
2022-07-03 22:49:15 +04:00
Maybe Waffle
074b991189 fix doctest
Former-commit-id: cabc045c06
2022-07-03 15:21:17 +04:00
Maybe Waffle
41197bf515 Change recommended way to build docs
Former-commit-id: a4ad44fae9
2022-07-03 15:12:18 +04:00
Hirrolot
d813555459 Make a TODO in place of the dispatching doc example
Former-commit-id: 69b5d8b3d5
2022-06-29 21:36:36 +06:00
Hugo Cornago
6fa2818bcd fix typo
Former-commit-id: 22b554650e
2022-06-27 10:31:09 +02:00
Maybe Waffle
98a892e6bd Apply suggestions from the review
Former-commit-id: 8489464bd3
2022-06-27 00:01:31 +04:00
Maybe Waffle
0b307aa177 Auto-magically detect how much workers need to be kept alive
Former-commit-id: a820dedd50
2022-06-26 22:53:41 +04:00
Maybe Waffle
c18a9fe644 Add "GC" for dispatcher workers
Former-commit-id: 9cb7ca9bd3
2022-06-17 23:01:26 +04:00
Serge Barinov
70f831e4c0 fix: escape user full name for mention
Former-commit-id: 09e7597fa7
2022-06-05 09:42:39 +03:00
Hirrolot
b7cfd7f666 Update other doc places
Former-commit-id: 5b2b7c23f7
2022-05-26 23:26:53 +06:00
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