Commit graph

563 commits

Author SHA1 Message Date
Temirkhan Myrzamadi
89db95ef3f Simplify 'type Handlers = ...' (dispatchers/filter/mod.rs) 2019-11-03 19:16:38 +06:00
Temirkhan Myrzamadi
ce2e949cb1
Merge pull request #78 from telebofr/error_policy
Error policy
2019-11-02 14:33:07 +00:00
Temirkhan Myrzamadi
66cbedae01
Merge pull request #77 from telebofr/add_ignore_error_policies
Add `Ignore` and `IgnoreSafe` error policies.
2019-11-02 14:32:47 +00:00
Waffle
ab9f2b99f1 Add newline at the end of the Cargo.toml 2019-11-02 17:16:54 +03:00
Waffle
5c73af4a6f Add Ignore and IgnoreSafe error policies. 2019-11-02 17:15:13 +03:00
Temirkhan Myrzamadi
49f1cfd4f3
Merge pull request #76 from telebofr/fix_error_policy_by_hand_implementing
Fix `ErrorPolicy` by implementing trait on all `Fn() -> Fut` by-hands…
2019-11-02 14:12:03 +00:00
Waffle
4423a992c0 Fix indent for where 2019-11-02 16:50:32 +03:00
Temirkhan Myrzamadi
80d1935e0e
Merge pull request #73 from telebofr/cows_for_form_builder
little simplification/optimization (use Cow in `FormBuilder`)
2019-11-02 13:32:58 +00:00
Waffle
3f2d049c22 Fix ErrorPolicy by implementing trait on all Fn() -> Fut by-hands (and some related small fixes) 2019-11-02 15:55:54 +03:00
Waffle Lapkin
31c9a44276
Merge branch 'dev' into cows_for_form_builder 2019-11-02 02:12:34 +03:00
Waffle
5b0f8e8c0e little simplification/optimization (use Cow in FormBuilder
)
2019-11-02 02:10:39 +03:00
Temirkhan Myrzamadi
a537830472 An another try to implement ErrorPolicy for FnMut 2019-11-01 22:09:27 +06:00
Temirkhan Myrzamadi
1d9c42c309 Fix 2019-11-01 21:51:09 +06:00
Temirkhan Myrzamadi
65e003120d Add comments (error_policy.rs) 2019-10-31 15:50:36 +06:00
Temirkhan Myrzamadi
a2eda602c0 A erroneous implementation of trait ErrorPolicy 2019-10-31 15:42:18 +06:00
Temirkhan Myrzamadi
04dd861f51 Fmt 2019-10-29 01:28:38 +06:00
P0lunin
262031cd81 moved filters from ..\dispatching\dispatchers\filter\ to ..\dispatching\ 2019-10-25 18:16:10 +03:00
P0lunin
0add325e31 optimized tests 2019-10-25 18:09:56 +03:00
P0lunin
9feaf63362 added MessageTextCaptionFilter 2019-10-23 19:28:01 +03:00
P0lunin
053a946a34 added docs 2019-10-23 19:21:48 +03:00
P0lunin
e2cd5a8440 added generics into functions 2019-10-23 18:46:04 +03:00
P0lunin
f67011eb42 added CommandFilter 2019-10-23 18:36:53 +03:00
P0lunin
720a34932f divided TextFilter into MessageTextFilter and MessageCaptionFilter 2019-10-23 18:36:37 +03:00
P0lunin
03b0e41fa0 added test caption 2019-10-23 12:59:58 +03:00
P0lunin
ec11b9ed3a add MessageTextFilter 2019-10-23 12:56:44 +03:00
Temirkhan Myrzamadi
37ab5e049a Fmt 2019-10-22 17:02:43 +06:00
P0lunin
65320feaf0 Merge remote-tracking branch 'origin/dev' into dev
# Conflicts:
#	src/dispatching/dispatchers/filter/mod.rs
2019-10-21 13:32:38 +03:00
P0lunin
b2a88e51eb replaced macro call! to function handle() 2019-10-21 13:30:17 +03:00
Temirkhan Myrzamadi
5e40bbf173
Merge pull request #71 from telebofr/rename_dispatching
Refactor crate::dispatching
2019-10-20 17:24:48 +00:00
Temirkhan Myrzamadi
c611fce15b Fix 2019-10-20 23:21:47 +06:00
Temirkhan Myrzamadi
ecf2aec396 Fix all the errors 2019-10-20 23:06:12 +06:00
Temirkhan Myrzamadi
7268c39c88 Create dispatching.dispatchers 2019-10-20 22:53:33 +06:00
Temirkhan Myrzamadi
2bd8734482 Rename 'dispatcher' to 'dispatching' 2019-10-20 22:52:48 +06:00
Temirkhan Myrzamadi
e9f68c67e9 Rename dispatcher.simple to dispatcher.filter 2019-10-20 22:50:59 +06:00
Temirkhan Myrzamadi
089ff82b2d Rename Dispatcher to FilterDispatcher
Related to https://github.com/telebofr/telebofr/issues/59.
2019-10-20 22:48:05 +06:00
Temirkhan Myrzamadi
e1b3ba2227 Remove PartialOrd, Ord for True, False 2019-10-20 22:45:22 +06:00
Temirkhan Myrzamadi
480d1a6f57
Merge pull request #70 from telebofr/simple_dispatcher
attempt to replace macro to function
2019-10-20 16:40:39 +00:00
Temirkhan Myrzamadi
8bf578cf63
Merge pull request #69 from telebofr/false_type
false_type
2019-10-20 16:40:17 +00:00
Temirkhan Myrzamadi
1a87e72677 Fmt 2019-10-20 17:14:12 +06:00
RustemB
e80d4d5a62 some cahnges 2019-10-20 16:05:20 +05:00
RustemB
0a1d032e14 api.rs changed 2019-10-20 16:01:32 +05:00
RustemB
5916460ca1 +getChatAdministrators 2019-10-20 15:40:28 +05:00
RustemB
66147232e6 levaeChat 2019-10-20 12:30:07 +05:00
Temirkhan Myrzamadi
e0a278701d
Remove the unnecessary comment (bot/api.rs) 2019-10-20 01:33:45 +06:00
P0lunin
c85dc0fb68 added handle_message function 2019-10-19 21:11:36 +03:00
P0lunin
69096dc01d Revert "added handle_message function"
This reverts commit e7ef38c1
2019-10-19 21:06:36 +03:00
P0lunin
e7ef38c1b2 added handle_message function 2019-10-19 20:48:02 +03:00
P0lunin
281d01d1a2 tests were renamed 2019-10-19 20:08:09 +03:00
P0lunin
1e0f60bdef added True and False types 2019-10-19 20:02:27 +03:00
P0lunin
4a0e601063 added type False 2019-10-19 20:01:22 +03:00