Commit graph

936 commits

Author SHA1 Message Date
Temirkhan Myrzamadi
5f9e0b46b2 Fix impl Error for ParseError 2020-07-04 00:33:35 +06:00
p0lunin
82439c2a4c added impl Display, Error for ParseError 2020-07-03 21:20:33 +03:00
p0lunin
5216347ece fixed wrong documentation 2020-07-03 20:31:39 +03:00
p0lunin
93ebcc083d fmt 2020-07-03 20:17:20 +03:00
p0lunin
0345d85cb8 remove unnecessary attributes 2020-07-03 20:15:55 +03:00
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
b9cb494797 drowned out clippy 2020-06-24 20:54:41 +03:00
p0lunin
9944524e34 added Box<dyn Error> in IncorrectFormat error 2020-06-24 19:18:12 +03:00
Temirkhan Myrzamadi
e47a73088d
Add a comment about tests (src/utils/command.rs) 2020-06-07 15:39:12 +06:00
p0lunin
1e71268748 fmt 2020-06-06 21:32:51 +03:00
p0lunin
5e276d65f4 refactoring 2020-06-06 20:50:59 +03:00
p0lunin
5f27eaf6d1 fixes in tests 2020-06-06 20:45:20 +03:00
p0lunin
50b2b73f26 small fixes 2020-06-06 20:30:41 +03:00
p0lunin
7d3a0ca7eb Merge remote-tracking branch 'origin/commands' into commands
# Conflicts:
#	src/utils/command.rs
2020-06-06 20:17:07 +03:00
p0lunin
1475b62e57 moved teloxide::utils::command::tests to tests/command.rs 2020-06-06 20:14:42 +03:00
Temirkhan Myrzamadi
594d3e7d19 #[command] only after #[derive] 2020-06-05 13:12:46 +06:00
Temirkhan Myrzamadi
ae43f1f7ee Improve the docs of utils::command 2020-06-05 13:10:29 +06:00
p0lunin
54276aa8ba added documentation, fixed doc-tests 2020-06-02 23:26:57 +03: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
c9393aa5d6 Prettify examples/dialogues_bot a little bit 2020-05-24 17:36:20 +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
Temirkhan Myrzamadi
565a98919d Replace all 'mime_type: String' with MimeWrapper 2020-05-23 12:06:12 +06:00
Temirkhan Myrzamadi
cc37f9ff3c NonPrivate* -> Public*
ChatKind::NonPrivate -> ChatKind::Public
ChatNonPrivate -> ChatPublic
NonPrivateChatKind -> PublicChatKind
NonPrivateChatChannel -> PublicChatChannel
NonPrivateChatGroup -> PublicChatGroup
NonPrivateChatSupergroup -> PublicChatSupergroup
2020-05-08 21:12:11 +06:00
Temirkhan Myrzamadi
181f9a6d8e Fix Clippy 2020-05-08 13:08:04 +06:00
Temirkhan Myrzamadi
65e210fff1 Split big enumerations' variants into new types 2020-05-08 12:57:50 +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
b18cb84df0 Remove pub(crate) from SetWebhook 2020-03-31 02:33:25 +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