Commit graph

2851 commits

Author SHA1 Message Date
Hirrolot
f555d1d2d3 Prettify examples/purchase.rs by a separate command handler 2022-04-25 01:30:01 +06:00
Hirrolot
c3d5ed9fb7 Use teloxide::handler! for command handling too 2022-04-25 01:23:05 +06:00
Hirrolot
fd31cba6d7 Restrict all purchase bot's commands by State::Start 2022-04-24 23:30:22 +06:00
Hirrolot
aaee7451f5
Merge pull request #601 from teloxide/use-dialogue-chat-id-purchase
Use `dialogue.chat_id()` in `examples/purchase.rs`
2022-04-24 23:21:43 +06:00
Hirrolot
ae48a11b3f Use dialogue.chat_id() in examples/purchase.rs 2022-04-24 23:11:47 +06:00
Hirrolot
f8b2f010c9
Merge pull request #600 from teloxide/dev
Merge v0.8.1
2022-04-24 02:05:17 +06:00
Hirrolot
1b559802cb
Merge pull request #599 from teloxide/v0.8.1
Release v0.8.1
2022-04-24 01:44:50 +06:00
Hirrolot
5c280036f9 Release v0.8.1 2022-04-24 01:34:53 +06:00
Hirrolot
0dd7aa3dab
Merge pull request #598 from teloxide/purchase-bot
Add `examples/purchase.rs`
2022-04-24 00:08:04 +06:00
Hirrolot
d7b6229516 Call dialogue.exit() after a successful purchase 2022-04-23 23:52:43 +06:00
Hirrolot
a514c845cb Simplify examples/purchase.rs by sharing filters 2022-04-23 22:56:45 +06:00
Hirrolot
bc0e9b19a4 ProductChosen => ReceiveProductChoice 2022-04-23 22:45:43 +06:00
Hirrolot
a60e19a8c2 Implement dialogue::enter 2022-04-23 00:11:27 +06:00
Hirrolot
4a4990e207 Update the FAQ 2022-04-22 23:50:19 +06:00
Hirrolot
96b8df4bdd Add examples/purchase.rs 2022-04-22 23:42:50 +06:00
Hirrolot
66b9a718d1 Implement GetChatId for Update 2022-04-22 23:42:39 +06:00
Waffle Maybe
a0d5f50d89
Merge pull request #597 from teloxide/msrv
Document and check the MSRV in CI
2022-04-21 13:01:06 +04:00
Maybe Waffle
7f40886046 fix CI 2022-04-21 12:52:01 +04:00
Maybe Waffle
cfaa71632c Document and check the MSRV in CI 2022-04-20 23:33:44 +04:00
Hirrolot
1e969d2680
Merge pull request #596 from teloxide/fix-handler-doc
Fix the `teloxide::handler!` docs
2022-04-18 22:58:21 +06:00
Hirrolot
3df389fcaa Fix the teloxide::handler! docs 2022-04-18 22:47:00 +06:00
Hirrolot
86657f55ff
Merge pull request #594 from teloxide/dev
Merge v0.8.0
2022-04-18 17:00:58 +06:00
Hirrolot
4ee174126d Merge conflicts 2022-04-18 16:50:02 +06:00
Waffle Maybe
6a4a35bb2d
Merge pull request #593 from teloxide/v0.8.0
Release v0.8.0
2022-04-18 14:42:34 +04:00
Hirrolot
e12f7a44d0
Set teloxide-core to v0.5.1
Co-authored-by: Waffle Maybe <waffle.lapkin@gmail.com>
2022-04-18 16:35:10 +06:00
Hirrolot
52ba62d3fc Release v0.8.0 2022-04-18 16:32:46 +06:00
Hirrolot
7186eddb75
Merge pull request #587 from teloxide/allowed_updates_dp2
implement allowed updates in dispatcher
2022-04-18 16:23:44 +06:00
Maybe Waffle
63b3be8db7 Update dptree, now to a crates.io version! 2022-04-18 14:13:39 +04:00
Waffle Maybe
5ec223f43a
Merge pull request #591 from teloxide/doc_changes
Doc changes
2022-04-17 19:52:24 +04:00
Hirrolot
6646fe5758 Add a note about deprecated DialogueState 2022-04-17 21:36:28 +06: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
Waffle Maybe
03521bfd3d
Merge pull request #589 from teloxide/dp_impr
improve Dispatcher
2022-04-14 19:42:22 +04:00
Maybe Waffle
5e122ab919 Add 0.7 -> 0.8 migration guide 2022-04-14 14:55:06 +04:00
Maybe Waffle
a76eb6aa0e Add 0.6->0.7 to migration guide 2022-04-14 14:40:28 +04:00
Maybe Waffle
fc509912ff Remove dev-branch docs 2022-04-14 14:35:24 +04:00
Waffle Maybe
e7b86d038b
Merge pull request #590 from mattrighetti/patch-2
Add Libgen bot to examples in README
2022-04-14 04:17:48 +04:00
Mattia Righetti
2bcc229e8f
Add Libegen bot to examples in README 2022-04-13 14:46:48 +02: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
Waffle Maybe
050ede23fa
Merge pull request #586 from teloxide/update_core_050
Update `teloxide-core` `0.4.5` -> `0.5.0`
2022-04-13 16:06:42 +04:00
Maybe Waffle
2aa59d760a Update teloxide-core 0.4.5 -> 0.5.0 2022-04-13 15:58:29 +04:00
Hirrolot
ba5dc486ce
Merge pull request #585 from teloxide/concurrent-dispatching
Implement concurrent update dispatching
2022-04-13 17:38:50 +06: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