Commit graph

206 commits

Author SHA1 Message Date
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
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
Temirkhan Myrzamadi
f20932a730 Fix error handlers 2020-02-18 06:19:50 +06:00
Temirkhan Myrzamadi
d23b226e86 Shutting up rustc 2020-02-18 05:55:43 +06:00
Temirkhan Myrzamadi
9eda683fc5 Make handlers accept streams 2020-02-18 04:19:16 +06:00
Temirkhan Myrzamadi
eebcda4dd8 Fix links 2020-02-14 18:28:52 +06:00
p0lunin
ff1a7c05d1 fixed documentation 2020-02-14 11:44:50 +02:00
Temirkhan Myrzamadi
315e9ab80c Fix the examples in docs 2020-02-13 18:39:05 +06:00
Temirkhan Myrzamadi
7cf6aaff90 Add multiple_handlers_bot 2020-02-13 14:55:46 +06:00
p0lunin
56ae0e1e6c Merge remote-tracking branch 'origin/rework-dispatching' into rework-dispatching 2020-02-12 20:55:06 +02:00
p0lunin
a8ced80f78 changed type of field Message::from to Option<User> because message from channel no have sender + fmt 2020-02-12 20:54:54 +02:00
Temirkhan Myrzamadi
e9a62be453 Rename simple_dialogue -> dialogue_bot 2020-02-12 20:44:40 +06:00
Temirkhan Myrzamadi
9cab5e45f3 Implement a type-safe finite automaton (examples/simple_dialogue) 2020-02-12 15:55:36 +06:00
Temirkhan Myrzamadi
dce662064f Fix update_listeners 2020-02-12 04:50:10 +06:00
Temirkhan Myrzamadi
7433a2b072 Don't fail other updates if one is not parsed 2020-02-12 01:45:38 +06:00
Temirkhan Myrzamadi
ca9af25f92 Use log::error in LoggingErrorHandler 2020-02-11 22:56:48 +06:00
Temirkhan Myrzamadi
868f39c2e8 Add log::trace to Dispatcher 2020-02-11 20:30:41 +06:00
Temirkhan Myrzamadi
01645a2c5a Eventually fix the docs 2020-02-11 20:19:11 +06:00
Temirkhan Myrzamadi
47a70b8587 Fix the documentation 2020-02-11 19:55:24 +06:00
Temirkhan Myrzamadi
4b0dea21f1 Hot fixes 2020-02-11 19:12:14 +06:00