Commit graph

1079 commits

Author SHA1 Message Date
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
Maximilian Siling
82d0958c91 Make Serializer a trait, so anyone can implement it 2020-04-19 20:09:00 +03:00
Temirkhan Myrzamadi
478e7038a6
Merge branch 'master' into redis 2020-04-19 19:27:03 +03:00
Maximilian Siling
a67d896d26 Don't reconnect to Redis every time 2020-04-19 19:24:24 +03:00
Maximilian Siling
798102a7d7 Add Redis storage & example bot using it 2020-04-19 18:31:23 +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
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
c90af42db6
Merge branch 'dev' into upload_from_memory 2020-03-26 13:23:21 +06:00
jairinhohw
e8def77a1a Fix clippy warning 2020-03-25 04:47:56 -03:00
jairinhohw
178b4ee70d Try to minimize cloning 2020-03-25 04:26:17 -03:00
jairinhohw
cb68f1f7aa Setting InputFile::Memory file name 2020-03-24 17:45:19 -03:00