Commit graph

1542 commits

Author SHA1 Message Date
Temirkhan Myrzamadi
a505cd72c1 Fix src/types/passport_element_error.rs 2020-07-28 15:46:13 +06:00
Temirkhan Myrzamadi
824ad20ee9 Add setters to PassportElementErrorUnspecified 2020-07-28 15:43:49 +06:00
Temirkhan Myrzamadi
e5c7980659 Add setters to PassportElementErrorTranslationFiles 2020-07-28 15:42:58 +06:00
Temirkhan Myrzamadi
9e0e338b5a Add setters to PassportElementErrorTranslationFile 2020-07-28 15:42:32 +06:00
Temirkhan Myrzamadi
b53a3aed73 Fix PassportElementErrorFiles 2020-07-28 15:41:45 +06:00
Temirkhan Myrzamadi
670109fdca Add setters to PassportElementErrorFiles 2020-07-28 15:41:05 +06:00
Temirkhan Myrzamadi
e6beb7d16b Add setters to PassportElementErrorFile 2020-07-28 15:40:41 +06:00
Temirkhan Myrzamadi
c60e6fa1eb Add setters to PassportElementErrorSelfie 2020-07-28 15:40:21 +06:00
Temirkhan Myrzamadi
9d0badedce Add setters to PassportElementErrorReverseSide 2020-07-28 15:39:50 +06:00
Temirkhan Myrzamadi
44ec6450cf Add setters to PassportElementErrorFrontSide 2020-07-28 15:31:28 +06:00
Temirkhan Myrzamadi
08d6666698 Add setters to PassportElementError 2020-07-28 15:17:13 +06:00
Temirkhan Myrzamadi
d23c22b064 Add setters to PassportData 2020-07-28 15:11:23 +06:00
Temirkhan Myrzamadi
b2755b96b4 Add setters to OrderInfo 2020-07-28 15:06:10 +06:00
Temirkhan Myrzamadi
fd08796861 Add setters to MediaEntity 2020-07-28 15:01:25 +06:00
Temirkhan Myrzamadi
e1e0bd2d89 Add setters to MediaVenue 2020-07-28 14:58:34 +06:00
Temirkhan Myrzamadi
f7769d0d97 Add setters to MediaVoice 2020-07-28 14:57:06 +06:00
Temirkhan Myrzamadi
e672463135 Add setters to MediaVideoNote 2020-07-28 14:54:14 +06:00
Temirkhan Myrzamadi
207527086e Add setters to MediaVideo 2020-07-28 14:49:38 +06:00
Temirkhan Myrzamadi
248c7396f5 Add setters to MediaText 2020-07-28 14:42:32 +06:00
Temirkhan Myrzamadi
d552a221ad Add setters to MediaSticker 2020-07-28 14:38:53 +06:00
Temirkhan Myrzamadi
3fc46b48df Add setters to MediaPhoto 2020-07-28 14:36:05 +06:00
Temirkhan Myrzamadi
8e9f12ecf8 Add setters to MediaLocation 2020-07-28 14:29:56 +06:00
Temirkhan Myrzamadi
6f18b881e8 Add setters to MediaGame 2020-07-28 14:28:43 +06:00
Temirkhan Myrzamadi
84ee6ccf81 Add setters to MediaDocument 2020-07-28 14:27:01 +06:00
Temirkhan Myrzamadi
0bc105352c Add setters to MediaContact 2020-07-28 02:51:21 +06:00
Temirkhan Myrzamadi
7aaa7eaf64 Add setters to MediaAudio 2020-07-28 02:49:44 +06:00
Temirkhan Myrzamadi
56f02a32c8 Add setters to MediaAnimation 2020-07-28 02:25:15 +06:00
Temirkhan Myrzamadi
baf46bbc8a Add setters to ForwardOrigin 2020-07-28 02:19:38 +06:00
Temirkhan Myrzamadi
3c3a0aa474 Add setters to ForwardNonChannel 2020-07-28 02:17:19 +06:00
Temirkhan Myrzamadi
3e0f8ab686 Add setters to ForwardChannel 2020-07-28 02:14:58 +06:00
Temirkhan Myrzamadi
e72f622ae5 Add setters to MessagePassportData 2020-07-28 02:09:55 +06:00
Temirkhan Myrzamadi
23aa4842cf Add setters to MessageConnectedWebsite 2020-07-28 02:07:26 +06:00
Temirkhan Myrzamadi
2502a795a4 Add setters to MessageSuccessfulPayment 2020-07-28 02:04:40 +06:00
Temirkhan Myrzamadi
19eeec124b Add setters to MessageInvoice 2020-07-28 01:45:16 +06:00
Temirkhan Myrzamadi
5d6604bd52 Add setters to MessagePinned 2020-07-28 01:43:34 +06:00
Temirkhan Myrzamadi
f5b81e87b4 Add setters to MessageMigrate 2020-07-28 01:41:25 +06:00
Temirkhan Myrzamadi
9ec475a69c Add setters to MessageChannelChatCreated 2020-07-28 01:39:03 +06:00
Temirkhan Myrzamadi
ee63fc5f17 Add setters to MessageSupergroupChatCreated 2020-07-28 01:38:12 +06:00
Temirkhan Myrzamadi
203f2992d8 Add setters to MessageGroupChatCreated 2020-07-28 01:37:22 +06:00
Temirkhan Myrzamadi
8804b7df74 Add setters to MessageDeleteChatPhoto 2020-07-28 01:36:25 +06:00
Temirkhan Myrzamadi
2b0a05ef08 Add setters to MessageNewChatPhoto 2020-07-28 01:34:59 +06:00
Temirkhan Myrzamadi
5e4deb1eeb Add setters to MessageNewChatTitle 2020-07-28 01:33:45 +06:00
Temirkhan Myrzamadi
f0d398b300 Add setters to MessageLeftChatMember 2020-07-28 01:32:28 +06:00
Temirkhan Myrzamadi
e530cabccc Add setters to MessageNewChatMembers 2020-07-28 01:29:16 +06:00
Temirkhan Myrzamadi
d65cf4d93a Add setters to MessageCommon 2020-07-28 01:26:35 +06:00
Temirkhan Myrzamadi
6d2476187f Add ChosenInlineResult::from 2020-07-28 01:20:27 +06:00
Temirkhan Myrzamadi
fee9cb680d Add setters to Message 2020-07-28 01:17:38 +06:00
Temirkhan Myrzamadi
7f92bd999a Add setters to MaskPosition 2020-07-28 01:13:45 +06:00
Temirkhan Myrzamadi
be02c16936 Add setters to LoginUrl 2020-07-28 01:10:45 +06:00
Temirkhan Myrzamadi
1ce57eedbc Add setters to Location 2020-07-28 01:07:18 +06:00
Temirkhan Myrzamadi
c43c5bab49 Add setters to LabeledPrice 2020-07-28 01:06:40 +06:00
Temirkhan Myrzamadi
f436cc07f5 Add setters to KeyboardButtonPollType 2020-07-28 01:01:43 +06:00
Temirkhan Myrzamadi
892dcd1fb4 Add setters to Invoice 2020-07-28 01:00:30 +06:00
Temirkhan Myrzamadi
472c35aa3b Add setters to Invoice 2020-07-28 00:59:39 +06:00
Temirkhan Myrzamadi
1c33d80e39 Add setters to InputMessageContentContact 2020-07-28 00:55:33 +06:00
Temirkhan Myrzamadi
b3cf5be0e5 Add setters to InputMessageContentVenue 2020-07-28 00:53:01 +06:00
Temirkhan Myrzamadi
01f929dd4a Add setters to InputMessageContentLocation 2020-07-28 00:49:30 +06:00
Temirkhan Myrzamadi
546c90346c Add setters to InputMessageContentText 2020-07-28 00:47:07 +06:00
Temirkhan Myrzamadi
1fb3b95dca Add setters to InputMediaDocument 2020-07-27 22:36:31 +06:00
Temirkhan Myrzamadi
9d3cf70677 String -> ParseMode in InputMediaAudio 2020-07-27 22:25:31 +06:00
Temirkhan Myrzamadi
29cb7c4fdb Add setters to InputMediaAudio 2020-07-27 22:24:29 +06:00
Temirkhan Myrzamadi
c775c3c2b7 Add setters to InputMediaVideo 2020-07-27 22:12:56 +06:00
Temirkhan Myrzamadi
f4d1c03c17 Mark InputMediaDocument as #[non_exhaustive] 2020-07-27 22:03:42 +06:00
Temirkhan Myrzamadi
5d11f8da27 Mark InputMediaAudio as #[non_exhaustive] 2020-07-27 22:03:30 +06:00
Temirkhan Myrzamadi
0b895a19ee Mark InputMediaAnimation as #[non_exhaustive] 2020-07-27 22:02:42 +06:00
Temirkhan Myrzamadi
683d2d69eb Mark InputMediaVideo #[non_exhaustive] 2020-07-27 22:02:21 +06:00
Temirkhan Myrzamadi
dbfd51c0fc Mark InputMediaPhoto ads #[non_exhaustive] 2020-07-27 22:01:21 +06:00
Temirkhan Myrzamadi
9e547766ad Add setters to InputMediaPhoto 2020-07-27 22:00:43 +06:00
Temirkhan Myrzamadi
5044cf542b Add setters to InlineQueryResultVoice 2020-07-27 21:57:38 +06:00
Temirkhan Myrzamadi
bc4ca24a80 Add setters to InlineQueryResultVideo 2020-07-27 21:53:03 +06:00
Temirkhan Myrzamadi
f19c59f22d Add setters to InlineQueryResultVenue 2020-07-27 21:42:21 +06:00
Temirkhan Myrzamadi
eb75565885 Add setters to InlineQueryResultPhoto 2020-07-27 21:35:20 +06:00
Temirkhan Myrzamadi
043b174628 Add setters to InlineQueryResultMpeg4Gif 2020-07-27 21:24:24 +06:00
Temirkhan Myrzamadi
9b1aa83753 Add setters to InlineQueryResultLocation 2020-07-27 20:28:16 +06:00
Temirkhan Myrzamadi
79f02ded97 Add setters to InlineQueryResultGif 2020-07-27 20:21:32 +06:00
Temirkhan Myrzamadi
22a370e4c8 Add setters to InlineQueryResultGame 2020-07-27 20:10:14 +06:00
Temirkhan Myrzamadi
d7336fe2cb Add setters to InlineQueryResultDocument 2020-07-27 20:08:28 +06:00
Temirkhan Myrzamadi
0c47f2b0f5 Add setters to InlineQueryResultContact 2020-07-27 20:04:38 +06:00
Temirkhan Myrzamadi
f067023b0b Add setters to InlineQueryResultCachedVoice 2020-07-27 19:59:43 +06:00
Temirkhan Myrzamadi
1db375aca7 Add setters to InlineQueryResultCachedVideo 2020-07-27 19:57:52 +06:00
Temirkhan Myrzamadi
fa0a673919 Add setters to InlineQueryResultCachedSticker 2020-07-27 19:54:47 +06:00
Temirkhan Myrzamadi
3fcc7aefd7 Add setters to InlineQueryResultCachedPhoto 2020-07-27 19:52:03 +06:00
Temirkhan Myrzamadi
99050fb422 Add setters to InlineQueryResultCachedMpreg4Gif 2020-07-27 19:43:50 +06:00
Temirkhan Myrzamadi
49b622dc6c Add setters to InlineQueryResultCachedGif 2020-07-27 19:39:26 +06:00
Temirkhan Myrzamadi
2ebed2cef1 Add InlineQueryResultCachedDocument::new 2020-07-27 19:35:41 +06:00
Temirkhan Myrzamadi
45922dc354 Add setters to InlineQueryResultCachedDocument 2020-07-27 19:32:49 +06:00
Temirkhan Myrzamadi
1c2df6bced Add setters to InlineQueryResultCachedAudio 2020-07-27 19:26:56 +06:00
Temirkhan Myrzamadi
1b762c88cd Add setters to InlineQueryResultAudio 2020-07-27 18:40:13 +06:00
Temirkhan Myrzamadi
456ebc3bfe Add setters to InlineQueryResultArticle 2020-07-27 18:30:42 +06:00
Temirkhan Myrzamadi
b450bc09f5 Fmt 2020-07-27 18:14:20 +06:00
Temirkhan Myrzamadi
ed3e418426 Add setters to InlineQuery 2020-07-27 18:13:25 +06:00
Temirkhan Myrzamadi
9554efe23d Add setters to InlineKeyboardMarkup 2020-07-27 17:49:14 +06:00
Temirkhan Myrzamadi
bb89c30edb Add setters to InlineKeyboardButton 2020-07-27 17:35:05 +06:00
Temirkhan Myrzamadi
b0c78e8125 Add setters to GameHighScore 2020-07-27 17:31:23 +06:00
Temirkhan Myrzamadi
83631cc351 Add setters to Game 2020-07-27 17:29:28 +06:00
Temirkhan Myrzamadi
82df94b80d Add setters to ForceReply 2020-07-27 17:20:11 +06:00
Temirkhan Myrzamadi
60bc928fad Add setters to File 2020-07-27 17:18:24 +06:00
Temirkhan Myrzamadi
33e572ae56 Add setters to EncryptedPassportElementEmail 2020-07-27 17:07:01 +06:00
Temirkhan Myrzamadi
e415393d14 Add setters to EncryptedPassportElementPhoneNumber 2020-07-27 17:05:44 +06:00
Temirkhan Myrzamadi
f8a51182de Add setters to EncryptedPassportElementTemporaryRegistration 2020-07-27 17:02:32 +06:00
Temirkhan Myrzamadi
826a1149c1 Add setters to EncryptedPassportElementPassportRegistration 2020-07-27 17:01:40 +06:00
Temirkhan Myrzamadi
55a66bd58f Add setters to EncryptedPassportElementRentalAgreement 2020-07-27 17:01:05 +06:00
Temirkhan Myrzamadi
72dd3c1ce0 Add setters to EncryptedPassportElementBankStatement 2020-07-27 17:00:25 +06:00
Temirkhan Myrzamadi
b3c89af68c Add setters to EncryptedPassportElementUtilityBill 2020-07-27 16:59:32 +06:00
Temirkhan Myrzamadi
ffedac94fc Add setters to EncryptedPassportElementAddress 2020-07-27 16:56:40 +06:00
Temirkhan Myrzamadi
81ab473793 Add setters to EncryptedPassportElementInternalPassport 2020-07-27 16:54:34 +06:00
Temirkhan Myrzamadi
ba1147c794 Add setters to EncryptedPassportElementIdentityCard 2020-07-27 16:52:51 +06:00
Temirkhan Myrzamadi
e723bc4069 Add setters to EncryptedPassportElementDriverLicense 2020-07-27 16:51:29 +06:00
Temirkhan Myrzamadi
a50ba935a8 Add setters to EncryptedPassportElementPassport 2020-07-27 16:40:29 +06:00
Temirkhan Myrzamadi
baf8cf0c19 Add setters to EncryptedPassportElementPersonalDetails 2020-07-27 16:34:03 +06:00
Temirkhan Myrzamadi
5353cff3ed Add setters to EncryptedPassportElement 2020-07-27 16:33:52 +06:00
Temirkhan Myrzamadi
f5144ec5cd Add setters to EncryptedCredentials 2020-07-27 15:50:49 +06:00
Temirkhan Myrzamadi
3de14e7d71 Add setters to Document 2020-07-27 15:47:21 +06:00
Temirkhan Myrzamadi
2733cb561a Add setters to Contact 2020-07-27 15:42:12 +06:00
Temirkhan Myrzamadi
bf8617da31 Add setters to ChosenInlineResult 2020-07-27 15:38:31 +06:00
Temirkhan Myrzamadi
c34cd27903 Add setters to ChatPhoto 2020-07-27 15:31:10 +06:00
Temirkhan Myrzamadi
789194bdcd Add setters to ChatPermissions 2020-07-27 15:26:42 +06:00
Temirkhan Myrzamadi
50db42ffb6 Add setters to ChatMember 2020-07-27 15:25:21 +06:00
Temirkhan Myrzamadi
30696d3e29 Add setters to PublicChatSupergroup 2020-07-27 15:12:54 +06:00
Temirkhan Myrzamadi
4175d2aee2 Add setters to PublicChatGroup 2020-07-27 15:12:05 +06:00
Temirkhan Myrzamadi
b51c63db48 Add setters to PublicChatChannel 2020-07-27 15:11:27 +06:00
Temirkhan Myrzamadi
291ec7373b Add setters to ChatPrivate 2020-07-27 14:58:44 +06:00
Temirkhan Myrzamadi
6c920ed00b Add setters to ChatPublic 2020-07-27 14:40:10 +06:00
Temirkhan Myrzamadi
ad6e19201a Add setters to Chat 2020-07-27 14:32:17 +06:00
Temirkhan Myrzamadi
8f1cb11b4d Add setters to CallbackQuery 2020-07-27 14:23:19 +06:00
Temirkhan Myrzamadi
c5b0bb93ca Add setters to Audio 2020-07-27 14:10:56 +06:00
Temirkhan Myrzamadi
ecae850fda Add setters to Animation 2020-07-27 13:47:03 +06:00
Temirkhan Myrzamadi
d85b7fdab0 Add #[non_exhaustive] to all the API types 2020-07-27 13:20:33 +06:00
Temirkhan Myrzamadi
af2aa218e7 #[teloxide(transition)] -> #[teloxide(subtransition)] 2020-07-27 00:52:03 +06:00
Temirkhan Myrzamadi
d43d74d80c SubTransition -> Subtransition, SubTransitionOutputType -> SubtransitionOutputType 2020-07-27 00:48:19 +06:00
Temirkhan Myrzamadi
54135aae3c Fix broken links in the docs 2020-07-27 00:32:44 +06:00
Temirkhan Myrzamadi
8d9efbe67c Type Aux; -> Transition 2020-07-27 00:19:46 +06:00
Temirkhan Myrzamadi
38a1f470ad Use the default characters per line limit 2020-07-26 23:47:02 +06:00
Temirkhan Myrzamadi
f9c192aad0 Fix the docs 2020-07-26 23:37:56 +06:00
Temirkhan Myrzamadi
54a6bf440b Add an auxiliary parameter to (sub)transitions 2020-07-26 23:16:49 +06:00
Temirkhan Myrzamadi
796f446a46 Add cfg to the whole up_state.rs 2020-07-26 14:58:55 +06:00
Temirkhan Myrzamadi
477d8a67d3 Remove DialogueWithCx::unpack 2020-07-26 13:46:43 +06:00
Temirkhan Myrzamadi
a6a0d09729 Update the docs of dispatching::dialogue 2020-07-26 13:23:32 +06:00
Temirkhan Myrzamadi
71f38bcb92 Small refinements 2020-07-26 13:18:29 +06:00
Temirkhan Myrzamadi
b255dfaf61 Document UpState 2020-07-26 04:43:08 +06:00
Temirkhan Myrzamadi
c7d97be8a8 Remove up! 2020-07-26 04:34:21 +06:00
Temirkhan Myrzamadi
0c688b2bd2 append_field<_, T2, _, _> -> T2::up 2020-07-26 04:09:57 +06:00
Temirkhan Myrzamadi
094a95e8d8 Add append_field 2020-07-26 03:10:48 +06:00
Temirkhan Myrzamadi
d901529ce3 Fix the doc test 2020-07-25 22:56:07 +06:00
Temirkhan Myrzamadi
bf114de249 A nicer approach to manage dialogues via #[derive(Transition)] + #[teloxide(transition)] 2020-07-25 22:37:58 +06:00
Temirkhan Myrzamadi
840fe93b61 Upload media/PING_PONG_BOT.gif 2020-07-25 19:57:20 +06:00
Temirkhan Myrzamadi
56be9a2c59 Use three dots instead of the exclamation in the examples 2020-07-25 19:46:05 +06:00
Temirkhan Myrzamadi
1006a7d187 Avoid code duplication in src/bot/mod.rs 2020-07-25 04:11:58 +06:00
Temirkhan Myrzamadi
4c78414771 Fix the docs of client_from_env 2020-07-25 04:08:04 +06:00
Temirkhan Myrzamadi
55ab94b1c4 Use sound_bot in src/bot/mod.rs 2020-07-25 04:07:36 +06:00
Temirkhan Myrzamadi
0fae235597 Use sound_bot in client_from_env 2020-07-25 03:57:38 +06:00
Temirkhan Myrzamadi
2a5d88df0e Fix dispatching::dialogue 2020-07-25 01:40:12 +06:00
Temirkhan Myrzamadi
8a961e8fdf Fix the code example in dispatching::dialogue 2020-07-25 01:16:29 +06:00
Temirkhan Myrzamadi
5f67d633bc Refer to the latest version of reqwest 2020-07-25 01:04:42 +06:00
Temirkhan Myrzamadi
2a684f9906 Document client_from_env 2020-07-25 01:02:46 +06:00
Temirkhan Myrzamadi
3b26f747b7 Export client_from_env into utils 2020-07-25 00:55:36 +06:00
Temirkhan Myrzamadi
51a98d5d86 Fix the docs of dispatching::dialogue::next 2020-07-25 00:53:49 +06:00
Temirkhan Myrzamadi
bdab7afe64 Fix the docs of dispatching::dialogue 2020-07-25 00:42:53 +06:00
Temirkhan Myrzamadi
a79bb7ba4f Fixing the docs... 2020-07-24 23:30:54 +06:00
Temirkhan Myrzamadi
74c546ec6a Make KnownApiErrorKind public 2020-07-24 22:58:34 +06:00
Temirkhan Myrzamadi
712d76032e Fix the docs of BotBuilder 2020-07-24 22:50:13 +06:00
Temirkhan Myrzamadi
18b813c159 Unify TransitionIn with TransitionOut 2020-07-24 19:26:49 +06:00
Temirkhan Myrzamadi
602519cdab
Merge branch 'master' into rework-dialogue-bot 2020-07-24 18:26:25 +06:00
Temirkhan Myrzamadi
008e8505c5 Add BotDialogue 2020-07-24 18:05:05 +06:00
Temirkhan Myrzamadi
e14b2b9fd0 Fix compilation 2020-07-24 16:54:56 +06:00
Temirkhan Myrzamadi
5db72a26a2
Import Arc into update_listeners.rs 2020-07-24 16:38:12 +06:00
Temirkhan Myrzamadi
4a314c894d Fix rustfmt check 2020-07-24 16:31:43 +06:00
Temirkhan Myrzamadi
859f782d8b
Merge branch 'master' into fix-bot-silence 2020-07-24 16:28:29 +06:00
Temirkhan Myrzamadi
23aa260d68 Extract Bot from Arc 2020-07-17 16:04:25 +06:00
Dmytro Polunin
7ed92228a7
Merge branch 'master' into bot-builder 2020-07-16 21:57:40 +03:00
Temirkhan Myrzamadi
e996ffffb4 Forbid unsafe code 2020-07-16 21:41:14 +06:00
Temirkhan Myrzamadi
9dbff2b522 Move more settings into Bot 2020-07-16 21:04:11 +06:00
Temirkhan Myrzamadi
9eeb23ce4b Merge branch 'master' into fix-bot-silence 2020-07-16 20:16:10 +06:00
Temirkhan Myrzamadi
ca8ffba11f Fix Clippy 2020-07-16 20:02:39 +06:00
Temirkhan Myrzamadi
8990b4a785 Implement a default ParseMode 2020-07-16 19:52:40 +06:00
Temirkhan Myrzamadi
772088abd3 Document BotBuilder 2020-07-16 19:14:32 +06:00
Temirkhan Myrzamadi
5a73654e13 Deprecate Bot::{from_env_with_client, new, with_client} 2020-07-16 19:01:52 +06:00
Temirkhan Myrzamadi
f2bc67617d Add BotBuilder 2020-07-16 18:52:39 +06:00
Temirkhan Myrzamadi
a13482fc49 Fmt 2020-07-10 23:36:37 +06:00
Dmytro Polunin
2e6ca03d5c
Added Sync, Send, 'static bounds on Box<dyn Error> 2020-07-08 13:16:25 +03:00
Temirkhan Myrzamadi
981e79e1c7 Add 'Connection: keep-alive' to net::download 2020-07-08 06:21:40 +06:00
Temirkhan Myrzamadi
f5941973db Wait 10 seconds if a server error occurs 2020-07-08 06:19:47 +06:00
Temirkhan Myrzamadi
3866fd0d7e Fix bot's inability to respond in long time periods
Closes https://github.com/teloxide/teloxide/issues/223.
2020-07-08 05:52:42 +06:00
p0lunin
3fa827ab0a fixed typos 2020-07-06 16:41:02 +03:00
Dmytro Polunin
66569cafa2
Merge branch 'master' into add_string_to_api_error_kind_other 2020-07-06 16:03:25 +03:00
p0lunin
4eae781c25 fmt 2020-07-06 16:01:07 +03:00
p0lunin
2c1ba3cf91 removed ApiErrorKindKnown::Other 2020-07-06 15:59:56 +03:00
p0lunin
0393a8b53c splited ApiErrorKind at known and unknown 2020-07-06 15:54:05 +03:00
p0lunin
fe8146767e removed editor-folds 2020-07-06 15:42:07 +03:00
Temirkhan Myrzamadi
9442ee5a7f
Merge pull request #225 from teloxide/error_instead_of_unwrap
Return Result instead of unwrap() in file_to_part method
2020-07-04 23:08:43 +06:00
p0lunin
5ceeae7f07 update documentation 2020-07-04 20:02:45 +03:00
p0lunin
44584938f5 renamed RequestFile to RequestWithFile 2020-07-04 20:00:48 +03:00
Temirkhan Myrzamadi
56dadfbb34 Return Arc<RedisServer> 2020-07-04 21:02:07 +06:00
Temirkhan Myrzamadi
33910864c7
Merge branch 'master' into redis 2020-07-04 20:34:07 +06:00
p0lunin
de6280150c fmt 2020-07-04 17:29:05 +03:00
p0lunin
e1932bc68b removed unwrap() by propagate error to user code 2020-07-04 17:28:46 +03:00
p0lunin
c04032cdf0 remove add method from FormBuilder 2020-07-04 16:46:00 +03:00
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
177656c00c Document RedisStorage 2020-07-01 20:58:06 +06:00
Temirkhan Myrzamadi
fb6156a3b9
Merge branch 'master' into redis 2020-07-01 18:53:39 +06:00
Temirkhan Myrzamadi
0ac679c443 Remove the frunk dependency 2020-07-01 18:52:53 +06:00
Temirkhan Myrzamadi
ee9166999a Remove a redundant import 2020-06-26 18:47:42 +06:00
Temirkhan Myrzamadi
37a0ac8ef8
Merge branch 'master' into redis 2020-06-26 18:42:17 +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
7a232a4c51
Merge branch 'master' into redis 2020-06-19 08:55:19 +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
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
jairinhohw
9bfec9546f Add InputFile::Memory 2020-03-24 17:30:01 -03:00
Temirkhan Myrzamadi
c5ef0a6c54 Fix enable_logging_with_filter 2020-03-17 00:18:45 +06:00
Temirkhan Myrzamadi
1d601a99c2 Remove unnecessary async/.await (src/dispatching/dispatcher.rs) 2020-03-16 20:20:04 +06:00
Temirkhan Myrzamadi
3c55a6b0d3
Merge pull request #192 from rsmidt/respect-hyphens-in-module-names
feat(logging): respect package names with hyphens
2020-03-16 17:38:51 +06:00
Ruben Smidt
ad46146a2d
fix: apply proper formatting 2020-03-15 19:58:22 +01:00
Ruben Smidt
43df97b3a2
feat(logging): respect module names with hyphens 2020-03-15 19:30:14 +01: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
566137f001
Merge pull request #189 from teloxide/fix-todo-in-inline-keyboard-button
Add InlineKeyboardButtonKind::{LoginUrl, CallbackGame, Pay}
2020-03-09 16:15:48 +06:00
Temirkhan Myrzamadi
f1353b00ae Add InlineKeyboardButtonKind::{LoginUrl, CallbackGame, Pay} 2020-03-09 14:15:50 +06:00
Temirkhan Myrzamadi
fcf582eb83
Merge branch 'dev' into from-env-proxy 2020-03-09 13:19:16 +06:00
Mr-Andersen
2f4dfd8f0c Merge branch 'dev' of github.com:teloxide/teloxide into from-env-proxy
Потому что сразу надо было пр мерджить
2020-03-06 12:16:36 +03:00
Temirkhan Myrzamadi
234a0e4607 Remove the high-level overview from lib.rs 2020-03-06 15:05:44 +06:00
Ruben Smidt
f3d0570ef4 fix(markdown): add missing char to escape 2020-02-27 21:25:18 +01:00
Temirkhan Myrzamadi
1676434d1a Prepare to v0.2.0 2020-02-25 15:19:44 +06: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
Temirkhan Myrzamadi
468b4ec821 Improve the 'Getting started' section 2020-02-25 03:35:15 +06:00
Mr-Andersen
7aea85a187 created client_from_env() in utils 2020-02-24 20:49:41 +03:00
Mr-Andersen
a326860d4b var_os() -> var() (back) 2020-02-24 20:43:45 +03:00
Mr-Andersen
ddefd9e8a6 Cow::to_string() -> &*Cow 2020-02-24 20:36:12 +03:00
Mr-Andersen
bdbc226777 Added $TELOXIDE_PROXY to Bot::from_env 2020-02-24 20:20:15 +03:00
Temirkhan Myrzamadi
a801953516 Fix the tests 2020-02-24 21:29:09 +06:00
Temirkhan Myrzamadi
d165de64d7 Remove LanguageCode
Because the official Telegram documentation doesn't specify a concrete version of IETF language tag.
2020-02-24 21:21:53 +06:00
p0lunin
7ffb067434 prettified json 2020-02-24 17:02:28 +02:00
p0lunin
83332c7421 added serde rename and test 2020-02-24 16:48:56 +02:00
p0lunin
3557cf9a40 fmt 2020-02-24 16:39:57 +02:00
Temirkhan Myrzamadi
54cd855900
Fix grammatical mistakes in command.rs 2020-02-24 20:32:41 +06:00
p0lunin
8cbe9d8aff fixed parse_command: now call parse_command_with_prefix("/", ...) 2020-02-24 16:16:07 +02:00
Temirkhan Myrzamadi
28f4dd7c16 Add LanguageCode::Other 2020-02-23 20:42:10 +06:00
Temirkhan Myrzamadi
696efb1c5b Fix the docs of command.rs 2020-02-23 20:41:26 +06:00
Temirkhan Myrzamadi
ce169cffc6 Replace Into<String> with AsRef<str> 2020-02-23 20:29:02 +06:00
Temirkhan Myrzamadi
fb6e295447 Fix the examples 2020-02-23 19:36:31 +06:00
p0lunin
1f1234c9bf fixed examples 2020-02-23 14:18:21 +02: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
p0lunin
32c2c041c9 fixed parse_command() and parse_command_with_prefix() in utils 2020-02-23 11:13:14 +02:00
p0lunin
673269602d fmt 2020-02-22 23:02:31 +02:00
p0lunin
61f06a5e7a fixed documentation 2020-02-22 22:53:11 +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
1bb5c0ef0e Remove russian text from telegram_response.rs 2020-02-21 23:55:04 +06:00
Temirkhan Myrzamadi
29ed9a1ffe Fix parsing pinned_message
Related to https://github.com/teloxide/teloxide/issues/167.
2020-02-20 21:22:46 +06:00
p0lunin
15d5a02154 added split by '@' 2020-02-20 00:10:00 +02:00
Temirkhan Myrzamadi
93afb0b611 Fix a typo (TELOXITE_TOKEN -> TELOXIDE_TOKEN) 2020-02-20 03:22:32 +06: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
e0d0e22ea6 Fix a typo 2020-02-19 21:19:22 +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
45496a0a36 Fix lib.rs 2020-02-19 07:55:48 +06:00
Temirkhan Myrzamadi
019d9a09de Replace MyAwesomeTOken with <Your token here> 2020-02-19 05:50:02 +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
ad4d1378fd Fix links 2020-02-14 18:54:52 +06:00
Temirkhan Myrzamadi
eebcda4dd8 Fix links 2020-02-14 18:28:52 +06:00
Temirkhan Myrzamadi
4210fc68d2 Fix lib.rs 2020-02-14 16:37:57 +06:00
p0lunin
996af02fde fixed documentation and examples 2020-02-14 11:56:43 +02:00
p0lunin
ff1a7c05d1 fixed documentation 2020-02-14 11:44:50 +02:00
Temirkhan Myrzamadi
7d142f1f06 Fix the tests 2020-02-14 14:41:03 +06:00
Temirkhan Myrzamadi
0b05558aa8 Add the main page into the documentation 2020-02-14 13:56:41 +06:00
Temirkhan Myrzamadi
08ce1b4eed Fix the CI 2020-02-14 04:14:14 +06:00
Temirkhan Myrzamadi
5f12170e5c Add a link to examples/admin_bot to teloxide::utils::command 2020-02-14 00:32:21 +06:00
Temirkhan Myrzamadi
653c2e3f66 Fix the docs 2020-02-13 23:45:16 +06:00
Temirkhan Myrzamadi
42e2f3fb42 Refactor 2020-02-13 23:23:22 +06:00
Temirkhan Myrzamadi
7a7254b8a1 Add BotBuilder 2020-02-13 20:12:24 +06:00
Temirkhan Myrzamadi
315e9ab80c Fix the examples in docs 2020-02-13 18:39:05 +06:00
Temirkhan Myrzamadi
690fdd06b4 Add Bot::{from_env, from_env_with_client} 2020-02-13 18:36:12 +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
p0lunin
6de0c24ed2 Merge remote-tracking branch 'origin/rework-dispatching' into rework-dispatching 2020-02-12 16:08:39 +02: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
p0lunin
ce48e211a2 Merge remote-tracking branch 'origin/rework-dispatching' into rework-dispatching 2020-02-11 21:46:56 +02:00
Temirkhan Myrzamadi
7433a2b072 Don't fail other updates if one is not parsed 2020-02-12 01:45:38 +06:00
p0lunin
47aab58230 remove flatten in Message.from 2020-02-11 21:37:55 +02:00
p0lunin
98345b4d45 added Default to ChatPermissions 2020-02-11 21:35:06 +02:00
p0lunin
2242a8bad8 replace type Message.from from Sender to User 2020-02-11 21:34:32 +02:00
Temirkhan Myrzamadi
44471d3090 Merge branch 'rework-dispatching' of https://github.com/teloxide/teloxide into rework-dispatching 2020-02-11 22:56:59 +06:00
Temirkhan Myrzamadi
ca9af25f92 Use log::error in LoggingErrorHandler 2020-02-11 22:56:48 +06:00
Maximilian Siling
423495d1c7 Fix parsing for posts in private channels 2020-02-11 19:37:56 +03: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
Temirkhan Myrzamadi
0ae2d975df Add the state! macro 2020-02-11 04:04:57 +06:00
Temirkhan Myrzamadi
4a7c31fec7 Use Arc<Bot> instead of BotWrapper 2020-02-11 03:46:33 +06:00
Temirkhan Myrzamadi
9525414f8d Simplify examples/simple_dialogue 2020-02-11 03:13:09 +06:00
Temirkhan Myrzamadi
bde4d09e5d Add dialogue::{next, exit} 2020-02-11 02:54:08 +06:00
Temirkhan Myrzamadi
809aaef9b1 Winning the compiler... 2020-02-10 00:29:30 +06:00
Temirkhan Myrzamadi
fbd02c5a14 Trying to win the compiler 2020-02-08 22:59:57 +06:00
Temirkhan Myrzamadi
e6bf25b3bf Rework handlers (failing now) 2020-02-08 00:06:41 +06:00
Temirkhan Myrzamadi
ab8dae9213 Fix Clippy 2020-02-07 20:45:00 +06:00
Temirkhan Myrzamadi
99c7bf5955
Merge branch 'dev' into rework-dispatching 2020-02-07 20:31:52 +06:00
Temirkhan Myrzamadi
2785c892c0 Extend the middlewares API 2020-02-07 06:20:14 +06:00
Temirkhan Myrzamadi
d4170725aa Fix the docs 2020-02-07 06:03:33 +06:00
p0lunin
375f09df18 added fields to Poll 2020-02-05 17:02:10 +02:00
p0lunin
4d8b2d0473 added field language for MessageEntity 2020-02-04 23:19:06 +02:00
p0lunin
a95bb5b2d9 added struct Me 2020-02-04 23:13:31 +02:00
p0lunin
95b190e573 added new type poll_answer 2020-02-04 23:06:36 +02:00
p0lunin
357e2640f4 added new type keyboard_button_poll_type.rs 2020-02-04 22:59:44 +02:00
p0lunin
fb3f0558c2 added new fields to sendPoll 2020-02-04 22:44:41 +02:00
p0lunin
b064b85d37 fixed test (but it still failed, help please) 2020-02-04 20:47:29 +02:00
p0lunin
6bb8241f27 fix merged 2020-02-04 20:21:41 +02:00
p0lunin
21328c152c Merge remote-tracking branch 'origin/rework-dispatching' into rework-dispatching
# Conflicts:
#	src/dispatching/dispatcher_handler_ctx.rs
2020-02-04 20:19:10 +02:00
p0lunin
327be5811c added functions into DispatcherHandlerCtx<Message> 2020-02-04 20:17:07 +02:00
Temirkhan Myrzamadi
32f44f83ab A quick fix 2020-02-04 21:39:42 +06:00
Temirkhan Myrzamadi
17de4840d7 Refactor 2020-02-04 21:38:25 +06:00
p0lunin
5e8a698d22 Merge branch 'dev' of https://github.com/teloxide/teloxide into rework-dispatching
 Conflicts:
	src/utils/mod.rs
2020-02-04 14:22:30 +02:00
p0lunin
ca360aa1f4 added functions to DispatcherHandlerCtx 2020-02-03 15:26:09 +02:00
Temirkhan Myrzamadi
0077b99ef6
Merge branch 'dev' into useful_functions 2020-02-03 17:14:59 +06:00
Temirkhan Myrzamadi
cea09a030a Fix the docs 2020-02-03 17:13:26 +06:00
Temirkhan Myrzamadi
7e34007a4d Divide AsyncHandler into different traits 2020-02-03 16:25:05 +06:00
Temirkhan Myrzamadi
ee3a95b31e Yet another fix 2020-02-03 03:15:55 +06:00
Temirkhan Myrzamadi
16aca0f0f8 Quick fix of the docs 2020-02-03 03:06:31 +06:00
Temirkhan Myrzamadi
a7dee4cab5 Improve the docs of teloxide::dispatching 2020-02-03 03:03:28 +06:00
Temirkhan Myrzamadi
32cab96af5 Fix the docs 2020-02-03 01:42:32 +06:00
Temirkhan Myrzamadi
b7b6cd988c Reduce the Dispatcher::dispatch_with_listener complexity 2020-02-03 01:32:01 +06:00
p0lunin
5dafe892ac added function handle<T> in dispatcher 2020-02-02 21:22:58 +02:00
Temirkhan Myrzamadi
32d607daa9 Fix ping-pong-bot 2020-02-03 01:12:36 +06:00
Temirkhan Myrzamadi
2c4102e2b3 Simplify building ReplyKeyboardMarkup 2020-02-03 00:54:11 +06:00
Temirkhan Myrzamadi
61d002b8d4 Refactor 2020-02-02 22:32:27 +06:00
Temirkhan Myrzamadi
d7d97ef136 Fix the docs 2020-02-02 22:03:18 +06:00
Temirkhan Myrzamadi
43a0a81d78 Rename handler.rs -> async_handler.rs 2020-02-02 21:16:23 +06:00
p0lunin
b0b9ad6204 deleted IDE files 2020-02-01 21:42:25 +02:00
p0lunin
8b90581927 added documentation 2020-02-01 21:40:17 +02:00
p0lunin
0308f8950a add #[command(description = "")] for enums 2020-02-01 21:36:56 +02:00
p0lunin
4d4970f450 fix compilation error 2020-02-01 21:07:13 +02:00
Temirkhan Myrzamadi
1a6297747c Add examples/simple_fsm 2020-01-30 04:54:40 +06:00
Temirkhan Myrzamadi
c98b53b9a8 Impl AsyncHandler for SessionDispatcher 2020-01-30 01:10:02 +06:00
Temirkhan Myrzamadi
1d6a21acb0 Add teloxide::prelude 2020-01-30 00:11:52 +06:00
Temirkhan Myrzamadi
6f2abd10ef Finally fix the error 2020-01-29 23:43:47 +06:00
p0lunin
92ccb49216 Merge remote-tracking branch 'origin/useful_functions' into useful_functions 2020-01-29 19:26:13 +02:00
p0lunin
1cec80bf9d add Update::user(), Update::chat() functions 2020-01-29 19:25:56 +02:00
Temirkhan Myrzamadi
27ae3e13cf Trying to fix ping_pong_bot.rs 2020-01-29 21:08:18 +06:00
Temirkhan Myrzamadi
3bad400c03 Fix the error 2020-01-29 20:48:57 +06:00
Temirkhan Myrzamadi
84d4e6fb2c Rework teloxide::dispatching (fails now) 2020-01-29 10:47:17 +06:00
Temirkhan Myrzamadi
017a0d3169 Remove parse_command_into_enum and fix the docs 2020-01-28 08:34:10 +06:00
Temirkhan Myrzamadi
9971659e03 Merge branch 'useful_functions' of https://github.com/teloxide/teloxide into useful_functions 2020-01-28 08:26:00 +06:00
p0lunin
2028ce70c7 add BotCommand::parse(s: &str) 2020-01-26 23:13:29 +02:00
Temirkhan Myrzamadi
b71088746c Bullshit 2020-01-26 04:18:13 +06:00
Temirkhan Myrzamadi
004d5bdaf5 Fix the docs (utils/parsers.rs) 2020-01-26 04:14:47 +06:00
p0lunin
77487c07dd fix clippy errors 2020-01-25 23:34:17 +02:00
p0lunin
0654bbc82d now rename in variant overlap rename in enum 2020-01-25 22:47:31 +02:00
Temirkhan Myrzamadi
9ae647f6f9 Merge branch 'improve-requests' of https://github.com/teloxide/teloxide into improve-requests 2020-01-25 01:00:17 +06:00
Temirkhan Myrzamadi
47bbd9675e Compare tokens in BotWrapper::eq 2020-01-25 00:59:49 +06:00
Temirkhan Myrzamadi
e17a4cedd0 Move BotWrapper into bot_wrapper.rs 2020-01-25 00:58:36 +06:00
p0lunin
d490ed9bc0 replace return type in url() function to Url from String 2020-01-24 20:12:23 +02:00
p0lunin
9cefbca3f0 rename TelegramBotCommand to BotCommand 2020-01-24 19:47:10 +02:00
p0lunin
04852ddd22 add attributes for enums 2020-01-24 19:44:20 +02:00
p0lunin
73be83a5b1 add support for many arguments in one attribute like #[command(attr1 = "value1", attr2 = "value2")] 2020-01-24 11:55:20 +02:00
Temirkhan Myrzamadi
f9d83832f3
Merge branch 'dev' into improve-requests 2020-01-24 07:16:21 +06:00
Temirkhan Myrzamadi
a8e1dac7bb Add docs to Bot 2020-01-24 07:12:01 +06:00
p0lunin
34e1e69e77 refactor teloxide-macros, and added attributes prefix and description 2020-01-23 23:20:59 +02:00
p0lunin
8c2b0b6c70 fmt another 2020-01-23 23:19:54 +02:00
Temirkhan Myrzamadi
0232108822 Don't clone a bot while cloning a request 2020-01-24 01:24:09 +06:00
Temirkhan Myrzamadi
b27138163c Rename 'network' to 'net'
Like std::net
2020-01-22 07:04:17 +06:00
Temirkhan Myrzamadi
05c27aa9d0 Fix rustfmt 2020-01-22 01:56:00 +06:00
Temirkhan Myrzamadi
6c1a39570c Fix Clippy 2020-01-22 01:54:05 +06:00
Temirkhan Myrzamadi
6a1d715a69 Small fixes 2020-01-22 01:51:24 +06:00
Temirkhan Myrzamadi
9cd11d02d7 Fix the docs of the rest of requests 2020-01-22 01:41:32 +06:00
p0lunin
841f80ea78 merge from dev 2020-01-21 10:44:41 +02:00
p0lunin
f6777f80a9 Merge branch 'dev' of https://github.com/teloxide/teloxide into filters
 Conflicts:
	src/dispatching/mod.rs
2020-01-21 10:43:10 +02:00
p0lunin
9c020a23cb remove feature regex-filter 2020-01-21 10:42:43 +02:00
p0lunin
4db07fc189 delete filters 2020-01-21 10:41:10 +02:00
Temirkhan Myrzamadi
81167ff44d Fix the docs of several requests 2020-01-21 01:03:03 +06:00
p0lunin
1aae70048e added is_{private, group, supergroup, channel, chat} for type Chat 2020-01-19 16:05:45 +02:00
p0lunin
50c29227ce Merge branch 'dev' of https://github.com/teloxide/teloxide into useful_functions 2020-01-19 15:50:25 +02:00
p0lunin
5f34d7ffc6 changed name of trait from TelegramCommandEnum to TelegramBotCommand and divided parse_command into parse_command and parse_command_with_prefix 2020-01-19 15:48:02 +02:00
p0lunin
4af7b9f1f0 Fix bug with last_name, now between first_name and last_name is space 2020-01-19 15:46:11 +02:00
p0lunin
db5145911b added parse_command, TelegramCommandEnum trait, parse_command_into_enum 2020-01-18 15:14:31 +02:00
Temirkhan Myrzamadi
e3235adf2f Fix UpdateKind 2020-01-18 05:40:01 +06:00
Temirkhan Myrzamadi
9712366d4a Merge branch 'dev' of https://github.com/teloxide/teloxide into dev 2020-01-17 20:57:53 +06:00
Temirkhan Myrzamadi
3b6dbecd11 Fix conflicts 2020-01-17 20:57:26 +06:00
Temirkhan Myrzamadi
c0f83a4999 Fmt 2020-01-17 20:19:13 +06:00
p0lunin
583d021be7 update docs for CommandFilter 2020-01-17 15:36:22 +02:00
p0lunin
eb430b0487 docs for CommandFilter 2020-01-17 15:35:30 +02:00