Commit graph

224 commits

Author SHA1 Message Date
p0lunin
4ceb1253dd Merge branch 'master' of https://github.com/teloxide/teloxide into commands
 Conflicts:
	examples/admin_bot/src/main.rs
	examples/simple_commands_bot/src/main.rs
	src/dispatching/dispatcher_handler_rx_ext.rs
2020-07-03 20:11:25 +03:00
Temirkhan Myrzamadi
0ac679c443 Remove the frunk dependency 2020-07-01 18:52:53 +06:00
Temirkhan Myrzamadi
9cab81b8bf Fix the docs 2020-06-26 18:33:40 +06:00
Temirkhan Myrzamadi
eabc77caab Remove wrap_dialogue! 2020-06-26 18:18:31 +06:00
p0lunin
b3123258aa added tests + renamed fields 2020-06-01 22:36:31 +03:00
p0lunin
2455caa1cf added tests for typed enums 2020-05-30 21:23:49 +03:00
Temirkhan Myrzamadi
d2f4194d80 Add <E> type parameter to TransitionIn 2020-05-26 17:20:57 +06:00
Temirkhan Myrzamadi
92248aaeb3 Fix the docs 2020-05-26 17:18:22 +06:00
Temirkhan Myrzamadi
a6144d7a26 Add UpdateWithCx::answer_str 2020-05-26 16:08:54 +06:00
Temirkhan Myrzamadi
7fc58421b0 Add dialogue::{TransitionIn, TransitionOut} 2020-05-26 15:35:28 +06:00
Temirkhan Myrzamadi
f95826e9f8 Add DialogueWithCx::unpack 2020-05-26 15:05:22 +06:00
Temirkhan Myrzamadi
f3fb72d527 DispatcherHandlerCx -> UpdateWithCx, DialogueDispatcherHandler -> DialogueWithCx 2020-05-26 15:01:57 +06:00
Temirkhan Myrzamadi
18f323b82e Fix the docs 2020-05-24 22:37:22 +06:00
Temirkhan Myrzamadi
3ffb2c70fb Document the newest macros 2020-05-24 22:28:08 +06:00
Temirkhan Myrzamadi
a33bd7205c Separate modules of examples/dialogue_bot 2020-05-24 18:55:13 +06:00
Temirkhan Myrzamadi
572d41fbf8 Extract FavouriteMusic into favourite_music.rs (examples/dialogue_bot) 2020-05-24 18:39:41 +06:00
Temirkhan Myrzamadi
01dc7a0d42 Improve wrap_dialogue! 2020-05-24 17:15:46 +06:00
Temirkhan Myrzamadi
6ff1800f12 Add auxiliary dialogues macros 2020-05-24 17:08:40 +06:00
Temirkhan Myrzamadi
963218bba0 Use a coproduct as a dialogue FSM 2020-05-24 14:19:46 +06:00
Temirkhan Myrzamadi
b0940df9bd Avoid repetition in DialogueDispatcherHandlerCx 2020-05-24 01:02:17 +06:00
p0lunin
d5f3864921 wip 2020-04-25 20:16:27 +03:00
Temirkhan Myrzamadi
46338c464f Refactor error logging if Update is failed to parse 2020-03-31 21:41:00 +06:00
Temirkhan Myrzamadi
e226689bf5 Refer to the README webhooks FAQ in the docs 2020-03-31 01:18:17 +06:00
Temirkhan Myrzamadi
51129f5d0f Provide a webhook example instead of a library function 2020-03-31 00:57:19 +06:00
Temirkhan Myrzamadi
8ea460e04f Fix Clippy 2020-03-30 20:27:01 +06:00
Temirkhan Myrzamadi
548ea06ad0 Create the 'webhooks' feature 2020-03-30 20:19:20 +06:00
Temirkhan Myrzamadi
2152e11422 Refine update_listeners::webhook 2020-03-30 20:10:39 +06:00
Temirkhan Myrzamadi
f6647d5196 Add TLS 2020-03-30 18:58:57 +06:00
Temirkhan Myrzamadi
6e486f0d78 Implement webhooks 2020-03-30 18:41:20 +06:00
Temirkhan Myrzamadi
a4d6673a91 Remove a useless generic in answer_sticker
Fixed https://github.com/teloxide/teloxide/issues/196.
2020-03-27 18:52:05 +06:00
Temirkhan Myrzamadi
1d601a99c2 Remove unnecessary async/.await (src/dispatching/dispatcher.rs) 2020-03-16 20:20:04 +06:00
Maximilian Siling
f9b3a4836e Various style fixes
* Removed type bounds from struct declaration
* Simplified <S as Storage<D>>::Error to S::Error
* Simplified complex type to BoxFuture
2020-03-10 23:28:38 +03:00
Maximilian Siling
b97cc367fe fixup! Refactor Storage so operations can fail 2020-03-09 20:27:31 +03:00
Maximilian Siling
ecb09659b3 Refactor Storage so operations can fail 2020-03-09 20:19:27 +03:00
Temirkhan Myrzamadi
c489e2b6da Fix Duration::from_secs(1) 2020-02-25 04:24:25 +06:00
Temirkhan Myrzamadi
4db46093cd Fix polling_default 2020-02-25 04:18:27 +06:00
p0lunin
b5221d68a7 Merge branch 'dev' of https://github.com/teloxide/teloxide into fix_parse_command 2020-02-23 14:13:28 +02:00
Temirkhan Myrzamadi
9e8f79a0b5 Trying to make bot_name: N, where N: Into<String> 2020-02-23 17:15:19 +06:00
p0lunin
c02af81dd1 attempt to remove 'static lifetime in DispatcherHandlerRxExt::commands 2020-02-23 11:22:14 +02:00
Temirkhan Myrzamadi
43a8c21b68 Fix some compilation errors 2020-02-23 02:08:45 +06:00
p0lunin
a3e5331312 changed signature to Command::parse(text, bot_name) but it failed 2020-02-22 18:58:29 +02:00
Temirkhan Myrzamadi
b68db75619 Remove the unnecessary Mutex from Dispatcher 2020-02-20 02:09:18 +06:00
Temirkhan Myrzamadi
3308014694 Quick fixes 2020-02-19 21:32:42 +06:00
Temirkhan Myrzamadi
332da2c3dd Simplify .commands() 2020-02-19 16:05:01 +06:00
Temirkhan Myrzamadi
46b20f676e Add DispatcherHandlerRxExt 2020-02-19 15:53:54 +06:00
Temirkhan Myrzamadi
9d78b7e0a6 Fix Clippy 2020-02-19 08:27:47 +06:00
Temirkhan Myrzamadi
143294fa5b Fix src/dispatching/mod.rs 2020-02-19 08:16:23 +06:00
Temirkhan Myrzamadi
a02e7f37d4 Fix a compilation error 2020-02-19 05:32:48 +06:00
Temirkhan Myrzamadi
9bd826ce3f Fix Clippy and update lib.rs 2020-02-19 05:21:25 +06:00
Temirkhan Myrzamadi
fa554a8252 Fixes 2020-02-19 04:54:41 +06:00