Commit graph

1079 commits

Author SHA1 Message Date
Temirkhan Myrzamadi
214969685a
Merge pull request #136 from teloxide/passport-errors
Add passport_element_error.rs
2020-01-12 23:01:21 +06:00
Temirkhan Myrzamadi
60d84b817c Add passport_element_error.rs 2020-01-12 21:44:54 +06:00
Temirkhan Myrzamadi
7e02337ebe
Merge pull request #135 from teloxide/checked_types
Checked types
2020-01-12 02:35:03 +06:00
p0lunin
629fcaf564 fmt 2020-01-11 21:47:59 +02:00
p0lunin
1d6803a65f fix 2020-01-11 21:46:30 +02:00
p0lunin
d1eedece40 mime 2020-01-11 21:46:13 +02:00
Temirkhan Myrzamadi
fbc6b57e2b Replace ” with ` 2020-01-12 01:17:49 +06:00
p0lunin
d312a24f12 use serde::{Serialize, Deserialize} 2020-01-11 21:00:52 +02:00
p0lunin
7c82f7e423 update test 2020-01-11 20:58:43 +02:00
p0lunin
d50e47ecd2 languageCode 2020-01-11 20:56:49 +02:00
p0lunin
3e0b647658 CountryCode 2020-01-11 20:48:28 +02:00
Temirkhan Myrzamadi
5fd6ae3630 Fix the docs 2020-01-11 21:04:57 +06:00
Sergey Levitin
1ac66eed9e Merge branch 'dev' of github.com:teloxide/teloxide into session-dispatcher 2020-01-11 16:06:57 +03:00
Temirkhan Myrzamadi
d247320a76 Update the docs 2020-01-10 20:49:17 +06:00
p0lunin
21ea73eafd SuccessfulPayment::currency type switch to Currency 2020-01-10 12:27:30 +02:00
p0lunin
80a9ebebd2 fmt 2020-01-10 12:26:48 +02:00
p0lunin
1a8f012de4 derive_more 2020-01-10 12:24:31 +02:00
p0lunin
cadd781abf add enum Currency 2020-01-09 21:17:47 +02:00
p0lunin
c7fb8da774 fix wrong name 2020-01-09 21:04:05 +02:00
p0lunin
afa877ff56 add implementation From for ReplyMarkup 2020-01-09 21:00:25 +02:00
p0lunin
c2fb937763 rename variants ReplyMarkup 2020-01-09 20:59:59 +02:00
p0lunin
1743c24026 fix double serialization 2020-01-09 20:35:10 +02:00
Temirkhan Myrzamadi
3351838a36 Write the docs 2020-01-08 17:59:30 +06:00
Temirkhan Myrzamadi
1547034741 Rename the generics 2020-01-08 16:51:10 +06:00
Temirkhan Myrzamadi
95a540aa19 Fix the CI 2020-01-08 16:38:48 +06:00
Temirkhan Myrzamadi
e431689ee9 Merge branch 'dev' of https://github.com/teloxide/teloxide into dev 2020-01-08 16:30:04 +06:00
Temirkhan Myrzamadi
9189eb1aaa
Merge pull request #129 from teloxide/error-kind
Error kind
2020-01-08 16:29:29 +06:00
Temirkhan Myrzamadi
cf727033d7 Quick fixes 2020-01-08 16:24:52 +06:00
Temirkhan Myrzamadi
54571dc720 Fix the docs 2020-01-08 16:15:29 +06:00
Temirkhan Myrzamadi
66177e9de3 Rename OtherKind -> Other 2020-01-08 16:00:18 +06:00
Temirkhan Myrzamadi
c8a1bdce25 Create dispatching::private 2020-01-08 04:33:22 +06:00
p0lunin
823a92a303 add deserialize ApiErrorKind 2020-01-08 00:19:32 +02:00
Temirkhan Myrzamadi
7eac9961be Remove Storage::save() 2020-01-08 04:13:12 +06:00
Temirkhan Myrzamadi
c69e685e00 Add Dispatcher::save_storage() 2020-01-08 03:39:32 +06:00
Temirkhan Myrzamadi
707e69fb27 Add the first version 2020-01-08 03:32:47 +06:00
Temirkhan Myrzamadi
7fd4f3b4a5 Bullsiht 2020-01-06 23:51:31 +06:00
Temirkhan Myrzamadi
05bc12df85 Polish the docs of FilterDispatcher 2020-01-06 05:55:01 +06:00
Temirkhan Myrzamadi
0668987b2d Fix derives 2020-01-05 09:14:04 +06:00
Temirkhan Myrzamadi
5da3e1610e Fix rustfmt 2020-01-05 02:41:11 +06:00
Temirkhan Myrzamadi
6830013922
Merge pull request #123 from teloxide/update-deps
Update the dependencies
2020-01-05 02:36:56 +06:00
Temirkhan Myrzamadi
24d76b59b3 Update the dependencies 2020-01-05 02:35:25 +06:00
Temirkhan Myrzamadi
6c69635f0d
Merge pull request #122 from selevit/markup_utils
Fix linter errors, enable ci for pull requests
2020-01-04 15:08:13 +06:00
Sergey Levitin
78f0bd4c0f Fix linter errors, enable ci for pull requests 2020-01-04 11:56:34 +03:00
Temirkhan Myrzamadi
f7d5f466da
Merge pull request #118 from selevit/markup_utils
Add HTML and Markdown formatting utils
2020-01-04 13:40:22 +06:00
Sergey Levitin
5f680cae50 Cargo fmt 2020-01-04 07:55:09 +03:00
Temirkhan Myrzamadi
e9c356c4df
Merge pull request #116 from teloxide/redesign_requests
Redesign requests
2020-01-04 02:29:44 +06:00
Sergey Levitin
d36b24c899 Gardening 2020-01-03 19:52:56 +03:00
Sergey Levitin
5bf49f4580 Cover all utils::html code 2020-01-03 19:46:37 +03:00
Sergey Levitin
f76f80c825 Gardening 2020-01-03 18:39:35 +03:00
Sergey Levitin
2e0e604658 Gardening 2020-01-03 18:21:29 +03:00
Sergey Levitin
a2879b8ea3 Implement HTML utils, refactor markdown utils with macroses 2020-01-03 18:01:34 +03:00
Sergey Levitin
2a66a84454 Add doc comments for the markdown utils module 2020-01-03 17:11:40 +03:00
Sergey Levitin
066271b397 Write markdown text formatting utils 2020-01-03 16:43:29 +03:00
Temirkhan Myrzamadi
2dcfc824f6 Create Request::Output 2020-01-03 17:41:42 +06:00
Temirkhan Myrzamadi
69e70b1d0e Fix Clippy 2020-01-03 15:54:26 +06:00
Temirkhan Myrzamadi
08d11a85d4 Use ChatOrInlineMessage 2020-01-03 15:40:43 +06:00
Sergey Levitin
eb44cd8b44 Improve namespacing 2020-01-03 04:04:50 +03:00
Sergey Levitin
fe2e1ecaf5 Add markdown escaping utils, simplify escape_html 2020-01-03 03:31:34 +03:00
Temirkhan Myrzamadi
4f9820ecd9 Add SendChatActionKind 2020-01-03 03:06:55 +06:00
Temirkhan Myrzamadi
1e5c8b0204 Fix InputFile::file 2020-01-03 02:28:27 +06:00
Temirkhan Myrzamadi
04de91253c Fix the docs 2020-01-03 02:23:28 +06:00
Temirkhan Myrzamadi
0b101a2523 Use InputFile instead of Into<InputFile> 2020-01-03 02:20:59 +06:00
Sergey Levitin
3cc5543cbc A little optimization for utils::escape::escape_html 2020-01-02 22:37:39 +03:00
Sergey Levitin
f42442f3b5 Add utils::escale::escape_html function 2020-01-02 22:26:25 +03:00
Temirkhan Myrzamadi
ce7f77e475 Fix the compilation error 2020-01-03 00:46:13 +06:00
Temirkhan Myrzamadi
d4a96e4a63 Return Bot's methods back 2020-01-03 00:38:40 +06:00
p0lunin
555df10880 make enum ApiErrorKind public 2020-01-02 16:19:26 +02:00
p0lunin
87dfd539c9 documentation 2020-01-02 16:19:03 +02:00
p0lunin
94c1fc1f75 rustfmt 2020-01-02 15:35:21 +02:00
p0lunin
c5b37adf5d add InvalidStickersSet 2020-01-02 15:05:51 +02:00
p0lunin
333ff8aa6b delete unknown errors 2020-01-02 15:05:26 +02:00
Temirkhan Myrzamadi
f2c09599e2 Fix Clippy 2020-01-02 18:43:09 +06:00
Temirkhan Myrzamadi
8d28debd31 Refactor 2020-01-02 18:29:43 +06:00
p0lunin
eada8c3184 added new errors 2020-01-02 13:12:06 +02:00
Temirkhan Myrzamadi
26fa7ffd06
Merge pull request #110 from teloxide/conversion_traits_for_parse_mode
Impl conversion traits for ParseMode
2020-01-02 16:29:17 +06:00
p0lunin
4d3d96be7c remove #[allow(depredecated)] in match 2020-01-02 12:17:56 +02:00
p0lunin
2a4b462996 rustfmt 2020-01-02 12:04:47 +02:00
Temirkhan Myrzamadi
cf3ac08d92 Push the wrong code 2020-01-02 14:50:04 +06:00
Temirkhan Myrzamadi
53f675c58a Move AllowedUpdate into teloxide::types 2020-01-02 03:31:35 +06:00
p0lunin
31326b2067 refactoring 2020-01-01 20:08:10 +02:00
p0lunin
9b2694657e updated to bot api v4.5 2020-01-01 20:01:40 +02:00
p0lunin
60532be947 refactoring 2020-01-01 20:01:26 +02:00
Waffle Lapkin
585c161511
Merge branch 'dev' into conversion_traits_for_parse_mode 2020-01-01 03:28:08 +03:00
Temirkhan Myrzamadi
e4e46d8df1 Fix teloxide::dispatching layout 2020-01-01 03:26:30 +06:00
Temirkhan Myrzamadi
2d5079ae37 Fix the links 2020-01-01 03:20:57 +06:00
Temirkhan Myrzamadi
1b89289de6 Fix Clippy 2020-01-01 01:16:47 +06:00
Temirkhan Myrzamadi
e4b0944160 Fix rustfmt again! 2020-01-01 00:35:44 +06:00
Temirkhan Myrzamadi
663e33d56b Fix rustfmt 2020-01-01 00:15:48 +06:00
p0lunin
9b21b6089b 5 2019-12-31 19:59:37 +02:00
Waffle
49a2195df9 Bot API 4.5 (December 31, 2019) updates 2019-12-31 20:58:48 +03:00
p0lunin
7cf9b4ab1f 5 2019-12-31 19:43:06 +02:00
Temirkhan Myrzamadi
fc1184087c Fix Clippy 2019-12-31 18:56:28 +06:00
Temirkhan Myrzamadi
5628f7111b Fix the conflicts 2019-12-31 18:45:19 +06:00
Temirkhan Myrzamadi
b0f85dea5b Fix grammatical mistakes in the docs 2019-12-31 17:16:01 +06:00
Temirkhan Myrzamadi
b97dbe0cb5 Add a flowchart to FilterDispatcher 2019-12-31 15:36:45 +06:00
Temirkhan Myrzamadi
6d624c59a9 Fix conflicts 2019-12-31 14:25:51 +06:00
Temirkhan Myrzamadi
52f1b6d8a9 Use Either instead of ErrorKind 2019-12-31 14:22:15 +06:00
Temirkhan Myrzamadi
43b417b9f3 Delete dispatching::dispatchers 2019-12-31 14:12:18 +06:00
Waffle
9ee9c24024 fmt 🤦 2019-12-30 23:41:10 +03:00
Waffle
be43bd6cdc fix doc 2019-12-30 23:35:58 +03:00
Waffle
49771e2d89 Fix doc test that uses polling 2019-12-30 23:26:07 +03:00
Waffle
b8579c52d1 Clean polling for a bit 2019-12-30 23:15:52 +03:00
Temirkhan Myrzamadi
05f8ff13da Fix error_handlers.rs 2019-12-31 01:42:31 +06:00
Temirkhan Myrzamadi
d73eecca36 Rename error_handler.rs -> error_handlers.rs 2019-12-31 01:21:50 +06:00
Temirkhan Myrzamadi
17f29ccb2e Fix cargo fmt 2019-12-31 01:21:21 +06:00
Temirkhan Myrzamadi
0c5189a39b Add #[must_use] to Handler 2019-12-31 01:15:58 +06:00
Temirkhan Myrzamadi
3b4a8d1bb5 Remove the unnecessary docs 2019-12-31 01:12:38 +06:00
Temirkhan Myrzamadi
fd941beec0 Fix Clippy 2019-12-31 00:55:12 +06:00
Temirkhan Myrzamadi
243b4c9173 Add error_handler::Print 2019-12-31 00:38:02 +06:00
Temirkhan Myrzamadi
3c2c1636a4 Fix the docs 2019-12-31 00:07:54 +06:00
Temirkhan Myrzamadi
8345936a95 Improve docs 2019-12-30 22:44:27 +06:00
Temirkhan Myrzamadi
d750e1c3dc Fix all the errors 2019-12-30 22:35:22 +06:00
Temirkhan Myrzamadi
e815c0945d Use StreamExt::for_each_concurrent 2019-12-30 22:02:17 +06:00
Temirkhan Myrzamadi
10a7bd6b55 Fix the compilation error 2019-12-30 21:58:10 +06:00
Temirkhan Myrzamadi
51b52b8317 Fix one error 2019-12-30 18:51:49 +06:00
Waffle Lapkin
8e01849fce
Merge pull request #106 from teloxide/skip_nones
Skip serializing nones with `#[skip_serializing_none]`
2019-12-30 15:12:45 +03:00
Temirkhan Myrzamadi
117094e9d0 Improve docs of FilterDispatcher 2019-12-30 17:27:30 +06:00
Waffle
7377467592 Skip serializing nones with #[serde_with_macros::skip_serializing_none] instead of many #[serde(skip_serializing_if = "Option::is_none")] 2019-12-30 13:44:22 +03:00
Temirkhan Myrzamadi
c51d9a0761
Merge pull request #103 from teloxide/vectorize_logo
Make logo svg
2019-12-30 16:42:39 +06:00
Temirkhan Myrzamadi
683d38e09a
Merge pull request #105 from teloxide/remove_macro_use
Remove `#[macro_use]` and use `use` instead
2019-12-30 16:41:44 +06:00
Temirkhan Myrzamadi
faf1bb5f89
Merge pull request #104 from teloxide/small_clippy_fixes
Small clippy fixes
2019-12-30 16:40:55 +06:00
Waffle Lapkin
2953310f13
Merge branch 'dev' into remove_macro_use 2019-12-30 13:17:30 +03:00
Waffle
550b28ae20 🤦 2019-12-30 13:16:23 +03:00
Waffle
51703b16b1 Remove #[macro_use] and use use instead 2019-12-30 13:14:19 +03:00
Waffle
661da5bbf4 Small clippy fixes 2019-12-30 12:29:11 +03:00
Waffle
374eb208c0 Make logo svg 2019-12-30 12:14:05 +03:00
Temirkhan Myrzamadi
410c1cc8d8 Refactor teloxide::dispatching 2019-12-30 04:46:04 +06:00
p0lunin
f89ad5c1df 4 2019-12-28 13:10:30 +02:00
p0lunin
d855d14b3c 3 2019-12-28 13:08:26 +02:00
p0lunin
d2aab9906c 2 2019-12-27 22:37:52 +02:00
p0lunin
7544bb30d9 1 2019-12-27 21:55:43 +02:00
Waffle
42b11f572e Add \n to the end og the keyboard_button.rs file 2019-12-27 17:48:00 +03:00
Waffle Lapkin
0b475c2ad0
Merge branch 'dev' into keyboard_button_enum 2019-12-27 17:44:45 +03:00
Waffle
436f99e6b8 Replace KeyboardButton's optional mutually exclusive fields by an enum 2019-12-27 17:36:03 +03:00
Temirkhan Myrzamadi
d7e128c493 Merge branch 'dev' into doc_icon 2019-12-27 02:21:29 +06:00
Temirkhan Myrzamadi
00dc72e412
Merge pull request #100 from teloxide/new_fmt
Fixes of build on CI (fmt, never-ty)
2019-12-27 02:05:32 +06:00
Waffle
08375a3eff I previous commit I accidentally run cargo +stable fmt (instead of +nightly) and forgot std:: in one of imports. This commit fixes both problems. 2019-12-26 22:52:14 +03:00
Waffle
03967493f6 run rustfmt only on nightly 2019-12-26 22:45:34 +03:00
Waffle
0d1656752f fmt 2019-12-26 22:42:58 +03:00
Waffle
6eb91f04a8 Remove uses of ! to be compatible with rust <1.41 (in rust >=1.41 core::convert::Infallible = ! so with latest versions we will work just fine) 2019-12-26 21:50:39 +03:00
Temirkhan Myrzamadi
e2a4112bd6
Update lib.rs 2019-12-26 23:43:02 +06:00
Waffle
3cf3fe2acf fmt 2019-12-16 12:40:23 +03:00
Temirkhan Myrzamadi
807e3dc851 Insert the icon into docs 2019-12-13 10:20:49 +06:00
Temirkhan Myrzamadi
2e7d1e8285 Fix weird formatting 2019-12-12 01:03:06 +06:00
Temirkhan Myrzamadi
d20bab850d Merge branch 'doc_types' of https://github.com/teloxide/teloxide into doc_types 2019-12-12 00:40:46 +06:00
Temirkhan Myrzamadi
3d4626d2aa Fix the docs of input_file.rs 2019-12-12 00:40:28 +06:00
Temirkhan Myrzamadi
6766ae3137
Update src/types/message.rs
Co-Authored-By: Waffle Lapkin <waffle.lapkin@gmail.com>
2019-12-12 00:36:36 +06:00
Temirkhan Myrzamadi
999928787d Merge branch 'doc_types' of https://github.com/teloxide/teloxide into doc_types 2019-12-12 00:31:03 +06:00
Temirkhan Myrzamadi
a4610ce8ff Use the docs of ParseMode 2019-12-12 00:30:13 +06:00
Temirkhan Myrzamadi
9e4f9e8392
Update src/types/message.rs
Co-Authored-By: Waffle Lapkin <waffle.lapkin@gmail.com>
2019-12-12 00:22:33 +06:00
Temirkhan Myrzamadi
082a916e40 Remove unnecessary 'Optional' in docs 2019-12-12 00:18:05 +06:00
Temirkhan Myrzamadi
32e970148e Use the nice crate:🅰️🅱️:c syntax in docs 2019-12-12 00:07:50 +06:00
Temirkhan Myrzamadi
fc4a1dff9e Fix the Clippy's warning 2019-12-11 22:27:42 +06:00
Temirkhan Myrzamadi
80fb280f2a Fix the docs of the API types 2019-12-11 22:19:48 +06:00
Waffle
7b3c51ff1b Rename the lib to "teloxide" 2019-12-07 22:30:15 +03:00
Waffle
a4309ef4d8 clippy 2019-12-07 19:42:36 +03:00
Waffle
852df2e90e remove feature(never_type) since it's stable since 1.41.0 (latest nightly) 2019-12-07 19:17:32 +03:00
Waffle Lapkin
81f8ef2575
Merge branch 'dev' into requests_rewrite 2019-12-07 18:53:34 +03:00
Waffle
bcb11ea9a9 fmt 2019-12-07 18:51:23 +03:00
Waffle
0a1bc8d538 Implement all (I Hope) telegram methods 2019-12-07 18:50:35 +03:00
Waffle
d91430e180 Add come derives to some types 2019-12-07 15:27:29 +03:00
Waffle
fa099b4ca8 Suppress clippy 2019-12-07 15:26:03 +03:00
Waffle
648ce5c00e clippy 2019-11-27 18:47:06 +03:00
Waffle
4ae4539631 fmt 2019-11-27 18:13:20 +03:00
Waffle
7fea75f2d7 fix build on the latest nightly 2019-11-27 18:12:32 +03:00
Waffle
a9c97c5074 remove old Request trait 2019-11-27 17:19:57 +03:00
Waffle
9b8d9eba9b fmt + doc fixes 2019-11-27 17:07:13 +03:00
Waffle
ef15a4167f Fix warnings: unused imports + forgotten pub on GetMe::new 2019-11-27 16:16:44 +03:00
Waffle
e673335e1f Fix todo: use get_updates in polling 2019-11-27 16:14:37 +03:00
Waffle
4f77f8f371 Reimplement GetFile request 2019-11-27 16:12:27 +03:00
Waffle
2009e78b5f Fix typo (seriosly? why haven't I built it before? no one knows) 2019-11-08 11:13:36 +03:00
Waffle
8056872c02 Remove "simple" request-related things 2019-11-08 01:52:04 +03:00
Waffle
a20b3f132a Derive default for GetMe 2019-11-07 19:04:57 +03:00
Waffle
49cc1451d4 Add Bot::execute_{dyn,json,multipart,simple} methods 2019-11-07 01:25:07 +03:00
Waffle
4177d20e54 Derive From for ChatId again 2019-11-07 01:24:13 +03:00
Waffle
08bf30296c Add InputFile::{file,url,file_id} constructors 2019-11-07 01:13:38 +03:00
Waffle
5f86362f17 Rename Method::METHOD => NAME, DynMethod::method => name 2019-11-06 23:49:56 +03:00
Waffle
c0953893b5 Add Bot::{get_updates, get_me, send_message, send_animation} 2019-11-05 19:45:56 +03:00
Waffle
fa220a6883 Add reference implementation of payloads 2019-11-05 19:32:22 +03:00
Waffle
7e821f2401 Small fixes in derived traits and docs of ChatId, ReplyMarkup and ReplyMarkup-related structs 2019-11-05 19:27:03 +03:00
Waffle
56a33df68c Serialize into FormValue by ref 2019-11-05 19:25:57 +03:00
Waffle
f3d554c9a5 Remove derive Serialize for InputFile 2019-11-05 19:01:03 +03:00
Waffle
93344c5d06 Derive Deserialize and Serialize on InputFile 2019-11-05 18:57:30 +03:00
Waffle
b13472cbcd Remove some commented things 2019-11-05 18:56:52 +03:00
Waffle
80ad646869 Move Output type and method fn from dynamic::Payload to new DynMethod trait 2019-11-05 18:55:13 +03:00
Waffle
521eef7550 Remove old requests 2019-11-05 17:10:41 +03:00
Waffle
be11633d6e Make dynamic::Request _really_ dynamic (ooops) 2019-11-05 00:51:15 +03:00
Waffle
e2922199d4 Add some docs 2019-11-05 00:47:31 +03:00
Waffle
86f9e9911c Add #[must_use] on requests 2019-11-05 00:34:48 +03:00
Waffle
0b750f2ac1 Add dynamic::{Kind, Payload, Request} (they are needed for storing _some_ request with concrete output) 2019-11-05 00:28:47 +03:00
Waffle
b788da0608 Move modules to files 2019-11-05 00:06:52 +03:00
Waffle
7868d9c832 Add simple::{Payload, Request} 2019-11-05 00:00:26 +03:00
Waffle
b02f10e73c Move Output type and METHOD const from Payloads to Method trait 2019-11-04 23:56:54 +03:00
Waffle
4c2e8029a9 Add multipart::{Payload, Request} 2019-11-04 23:54:19 +03:00
Waffle
602d07623b Add json::{Payload, Request} 2019-11-04 23:48:38 +03:00
Waffle
0a36537aa5 Comment all the deprecated stuff 2019-11-04 22:45:14 +03:00
Temirkhan Myrzamadi
478cde4c3f Oops 2019-11-04 01:03:56 +06:00
Temirkhan Myrzamadi
f8851eabff Rework HandlerAndFilter::new 2019-11-04 01:03:04 +06:00
Temirkhan Myrzamadi
60391de28a Add FilterAndHandler::new 2019-11-03 19:33:24 +06:00
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
Waffle
5c73af4a6f Add Ignore and IgnoreSafe error policies. 2019-11-02 17:15:13 +03:00
Waffle
4423a992c0 Fix indent for where 2019-11-02 16:50:32 +03: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
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
P0lunin
4e2dfd6b06 Merge branch 'dev' of https://github.com/telebofr/telebofr into dev
# Conflicts:
#	src/bot/api.rs
#	src/requests/set_chat_title.rs
2019-10-19 18:50:10 +03:00
P0lunin
363259e416 added method setChatPermissions 2019-10-19 18:44:16 +03:00
P0lunin
6467f03978 added skip_serializing_if to Option<> fields 2019-10-19 18:43:52 +03:00
P0lunin
2cb5adeebe added method exportChatInviteLink 2019-10-19 18:17:07 +03:00
P0lunin
e760c281b8 added method setChatPhoto 2019-10-19 17:19:06 +03:00
P0lunin
85a81dbe52 fix wrong method_name 2019-10-19 17:00:45 +03:00
P0lunin
2a3d7cfbfb added method deleteChatPhoto 2019-10-19 17:00:14 +03:00
Temirkhan Myrzamadi
6f4bd19382 Import bot::Bot into lib.rs 2019-10-18 03:36:13 +06:00
Temirkhan Myrzamadi
715298c713 Merge branch 'dev' of https://github.com/telebofr/telebofr into dev 2019-10-18 03:20:38 +06:00
Temirkhan Myrzamadi
495e62e9aa Improve bot/mod.rs 2019-10-18 03:20:28 +06:00
P0lunin
351229a6c0 added method setChatTitle 2019-10-17 19:48:48 +03:00
Temirkhan Myrzamadi
ceaf36b101 Merge imports by default (rustfmt.toml) 2019-10-17 22:16:55 +06:00
Temirkhan Myrzamadi
852b89be88 Add the missing methods to Bot (bot/api.h) 2019-10-17 22:16:00 +06:00
Temirkhan Myrzamadi
8b4fbe4bb5
Merge pull request #67 from telebofr/issue_input_file
changed where necessary String to InputFile
2019-10-17 16:03:42 +00:00
P0lunin
f2cd6278fb changed where necessary String to InputFile 2019-10-17 18:44:34 +03:00
Temirkhan Myrzamadi
e8b402ea21
Merge branch 'dev' into requests_gymmasssorla 2019-10-17 15:41:34 +00:00
P0lunin
36976e098d changed where necessary String to InputFile 2019-10-17 18:36:03 +03:00
Temirkhan Myrzamadi
12d944aeb7 Add GetChatMembersCount 2019-10-17 21:13:50 +06:00
Temirkhan Myrzamadi
b3572072ad Add GetChatMember 2019-10-17 21:09:46 +06:00
P0lunin
21952b149a add method setChatDescription 2019-10-17 18:01:39 +03:00
Temirkhan Myrzamadi
82db9b18b2 Add SetChatStickerSet 2019-10-17 20:56:58 +06:00
Temirkhan Myrzamadi
6f28f28a4e Add DeleteChatStickerSet 2019-10-17 20:51:09 +06:00
Temirkhan Myrzamadi
0ac725ac18 Add AnswerCallbackQuery 2019-10-17 20:34:13 +06:00
Temirkhan Myrzamadi
2b679fed43 Fix a typo 2019-10-17 14:05:02 +06:00
Temirkhan Myrzamadi
07ad965562 Prettify src/requests.rs and src/types.rs 2019-10-17 14:02:36 +06:00
Temirkhan Myrzamadi
a3825d612d Provide &self instead of &&self (bot/api.h) 2019-10-17 13:33:26 +06:00
Temirkhan Myrzamadi
d0f8852533 Fix a typo 2019-10-17 13:25:53 +06:00
Temirkhan Myrzamadi
2fe88cbfe3 Fix some Clippy's lints 2019-10-17 10:46:42 +06:00
Temirkhan Myrzamadi
eee360792a Fix the errors 2019-10-17 10:41:18 +06:00
Temirkhan Myrzamadi
9b8f180a8a Format the sources 2019-10-17 10:37:37 +06:00
Temirkhan Myrzamadi
4ce7ceb831 Replace 'RequestContext' with 'Bot' 2019-10-17 10:36:30 +06:00
Temirkhan Myrzamadi
456c3226d7
Merge pull request #62 from telebofr/dispatcher_trait
Add dispatcher trait
2019-10-16 12:00:30 +00:00
Waffle
175e7572b2 Add dispatcher trait 2019-10-16 14:47:09 +03:00
Temirkhan Myrzamadi
87e04b491f Fix the errors 2019-10-15 23:21:02 +06:00
Temirkhan Myrzamadi
7d2d8f706d Add some documentation 2019-10-15 13:50:28 +06:00
Temirkhan Myrzamadi
76a10abc47 Rename Request::ReturnValue to Request::Output 2019-10-15 13:27:41 +06:00
Temirkhan Myrzamadi
4f17f23b69
Merge pull request #20 from WaffleLapkin/dispatcher
[WIP] Dispatcher impl
2019-10-15 05:38:26 +00:00
Waffle Lapkin
f8f133edea
Merge branch 'dev' into dispatcher 2019-10-15 00:24:22 +03:00
Waffle
0b7512e42c Remove main (ooops) 2019-10-15 00:22:39 +03:00
Waffle Lapkin
045dedf164
Merge branch 'dev' into remove_apply 2019-10-15 00:20:29 +03:00
Waffle
ec0c717593 Change visibility modifier of FormBuilder, FormValue, IntoFormValue from pub to pub(crate) 2019-10-15 00:12:33 +03:00
Waffle
04281bd80a A bunch of changes to multipart requests
- remove `FormBuilder::add_if_some`
- `FormBuilder::add` now work properly with `Option` and `InputFile`
- `FormBuilder::add_file` now accept `PathBuf` instead of `&PathBuf` and is used only in `SendMediaGroup::send`
- `ToFormValue` renamed to `IntoFromValue`
- `IntoFormValue::into_form_value` now accepts self by value and return `Option<FormValue>` instead of `String` (that gives `FormBuilder::add` abilities to work properly with `Option` and `InputFile`)
- `requests::utils::file_to_part` now accepts `PathBuf` instead of `&PathBuf`
- add `impl From<InputFile> for Option<PathBuf>`
- add `impl From<InputMedia> for InputFile`
- clean `{SendAudio,SendMediaGroup,SendPhoto}::send` code
2019-10-15 00:10:12 +03:00
Temirkhan Myrzamadi
186a3f0f8d
Merge branch 'dev' into generics 2019-10-14 16:00:52 +00:00
Temirkhan Myrzamadi
a526a55c7b
Merge pull request #53 from async-telegram-bot/message_getters
Add getters for all `Message` fields
2019-10-14 15:59:02 +00:00
Temirkhan Myrzamadi
32b854279d Use the 'value' name instead of 'chat_id'/etc 2019-10-14 21:46:08 +06:00
Waffle
b75a25cbd8 Add getters for all Message fields 2019-10-14 00:19:18 +03:00
Waffle
c466402594 Allow matching on bool for in src/types/unit_true.rs 2019-10-13 14:59:54 +03:00
Waffle
101630a3a1 Fix clippy "warning: you should consider deriving a Default implementation for types::inline_keyboard_markup::InlineKeyboardMarkup" 2019-10-13 14:44:21 +03:00
Waffle
77b24eaa3f Remove fn main from doctest (and also remove edition2018 cause I think it isn't useful)
Fix clippy "warning: needless `fn main` in doctest"
2019-10-13 14:39:53 +03:00
Waffle
d68ec00deb Elide lifetimes where possible.
Fix clippy "warning: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration)"
2019-10-13 14:17:23 +03:00
Waffle
cbd98f6e03 Fix clippy warning: methods called from_* usually take no self; consider choosing a less ambiguous name
(actually just allow that on the `from_chat_id` method cause it is setter for co-named field)
2019-10-13 14:03:56 +03:00
Waffle
53b9ab31c4 Fix clippy's warning: returning the result of a let binding from a block 2019-10-13 13:59:31 +03:00
Waffle
3999e6dbc8 Split request_multipart into self (that always accept Form) and request_simple, simplify SendMediaGroup::send 2019-10-13 13:32:59 +03:00
Waffle
815c8cdb7d Add InputFile::as{file,file_id,url} methods 2019-10-13 13:13:24 +03:00
Temirkhan Myrzamadi
16eb18809b Normalise src/requests 2019-10-13 14:17:55 +06:00
Temirkhan Myrzamadi
9b0a059c8b Replace impl Error + derive Display with thiserror 2019-10-13 13:05:22 +06:00
Nextel
e436490fdd add send video action 2019-10-12 23:57:09 +03:00
Nextel
7a4442a059 cargo fmt to sent animation action 2019-10-12 22:31:27 +03:00
Nextel
7fc3fd29a8 add sendAnimation Action 2019-10-12 22:10:25 +03:00
Temirkhan Myrzamadi
e874f849a7 Prettify requests/mod.rs 2019-10-11 19:29:48 +06:00
Temirkhan Myrzamadi
7ddd8fce06 Format the code 2019-10-11 19:13:43 +06:00
Temirkhan Myrzamadi
e3873ca3b4
Merge pull request #44 from async-telegram-bot/feature_gate_unstable_stream
Add "unstable-stream" feature
2019-10-11 19:06:41 +06:00
Temirkhan Myrzamadi
b7020142fd
Merge pull request #45 from async-telegram-bot/remove_send_boxed_in_docs
Remove call to `.send_boxed()` in docs
2019-10-11 19:06:01 +06:00
Temirkhan Myrzamadi
7ec0a69fb8
Merge pull request #46 from async-telegram-bot/remove_reqwest_rasync_imports
Remove uses of deprecated `reqwest::r#async`
2019-10-11 19:05:23 +06:00
Temirkhan Myrzamadi
aebe764e44
Merge pull request #47 from async-telegram-bot/move_types_to_types
Move `ChatId` and `ChatAction` to `types::`
2019-10-11 19:03:55 +06:00
Waffle
c821832cf8 Remove 'not implemented types' 2019-10-11 15:58:38 +03:00
Waffle
2bd5919a53 Move ChatId and ChatAction to types:: 2019-10-11 15:51:10 +03:00
Waffle
52a54e91c8 Remove uses of deprecated reqwest::r#async 2019-10-11 15:32:31 +03:00
Waffle
be3ed1d4d0 Replace call to .send_boxed() with .send() in Bot::download_file docs 2019-10-11 15:06:52 +03:00
Waffle
9dc9dffddb Add "unstable-stream" feature that unlocks public API that uses futures::stream::Stream 2019-10-11 15:01:58 +03:00
Temirkhan Myrzamadi
ca6b4a4628
Merge pull request #43 from async-telegram-bot/update_libs
Update libs
2019-10-10 17:31:32 +06:00
Waffle
3cf4dfeeb9 Update libs 2019-10-09 22:31:50 +03:00
Waffle
5e66c8fa22 Remove impl std::process::Termination for True 2019-10-09 21:25:54 +03:00
Waffle
b5f98dd462 Add doc comment for updater trait 2019-10-09 21:17:45 +03:00
nextel
e3d31ccf97 cargo fmt to add document action 2019-10-08 18:37:12 +03:00
nextel
34ba709b39 add todo to add Document action 2019-10-08 18:36:27 +03:00
nextel
f27a7cb12c add addDocument action 2019-10-08 18:19:58 +03:00
Temirkhan Myrzamadi
cccbfa34e5
Merge pull request #39 from async-telegram-bot/some_doc_comments_fixes
Some fixes in doc comments
2019-10-07 15:49:11 +06:00
Waffle
7fb3ceefbe Add methods AnswerPreCheckoutQuery, AnswerShippingQuery, KickChatMember, PinChatMessage, PromoteChatMember, RestrictChatMember, SendChatAction, SendContact, SendPoll, SendVenue, SendVideoNote, SendVoice, UnbanChatMember, UnpinChatMessage to bot. 2019-10-06 13:29:29 +03:00
Waffle
c272817b9b Some fixes in doc comments
- Replace 'Html' with 'HTML' in many places
- Add missing links (`[name]: crate::path::to::name`)
- Fix docs for `ParseMode` (use `<pre></pre>`, `&#96;`, `&lt;` and `&gt;` instead of `````, ```, `<` and `>`)
2019-10-06 11:52:57 +03:00
Waffle Lapkin
edeff3305a
Merge branch 'dev' into dispatcher 2019-10-06 11:23:52 +03:00
Waffle
ebbdfde26e Merge branch 'dispatcher' of github.com:WaffleLapkin/async-telegram-bot into dispatcher 2019-10-06 11:23:01 +03:00
Waffle
553b1666a6 Fyx typo 2019-10-06 11:21:18 +03:00
Waffle
4c478b1f77 Rewrite simple dispatcher's test for a bit 2019-10-06 11:19:48 +03:00
Waffle
4c00f48339 Add doc comment for dispatcher::simple::Dispatcher, fix doc comment for dispatcher module 2019-10-06 11:19:02 +03:00
nextel
5ad46718d3 add sendVoice action 2019-10-05 15:12:29 +03:00
nextel
bc6664ef30 add serde tags for sendVideoNote action 2019-10-05 14:44:02 +03:00
nextel
31ab32bdd7 add SendVideoNote Action 2019-10-05 13:39:41 +03:00
Waffle
6bda45e2aa Use 'error policy' to handle errors in dispatcher 2019-10-05 01:19:32 +03:00
Waffle
64111f4ae9 Actual error handling (meh, we can do it better probably) 2019-10-05 00:54:53 +03:00
Waffle
c51aa9728a Errors in handlers 2019-10-05 00:28:40 +03:00
nextel
589bea7280 add PromoteChatMemberAction 2019-10-03 20:07:52 +03:00
P0lunin
e75d40425b add method 2019-10-01 17:42:10 +03:00
Temirkhan Myrzamadi
142d65186f Fix the compilation errors 2019-10-01 16:16:02 +06:00
Temirkhan Myrzamadi
816d2bad2f
Merge branch 'dev' into unbox_send_future 2019-10-01 13:31:19 +06:00
Temirkhan Myrzamadi
26551b7380 Format the code and refactor network/ 2019-10-01 13:15:03 +06:00
Mishko torop'izhko
580af29321
Merge pull request #37 from async-telegram-bot/feature/unbanChatMember
add unban chat member implementation
2019-09-30 18:17:36 +03:00
nextel
9d62eb9a11 add action templates to mod.rs 2019-09-30 17:48:15 +03:00
nextel
b4e79bd95a add unban chat member implementation 2019-09-30 17:11:43 +03:00
Waffle
cc14e23202 Fix build after merging dev
(oops I used old dev to create that branch :|)
2019-09-28 15:59:13 +03:00
Waffle Lapkin
8b1a032b55
Merge branch 'dev' into unbox_send_future 2019-09-28 15:45:54 +03:00
Waffle
2d1e9cd334 Make send functions public
oops
2019-09-28 15:42:34 +03:00
Waffle
5f9f148bb6 Simplify lifetimes in requests
(`impl<'a> ...<'a>` -> `impl ...<'_>`)
2019-09-28 15:36:03 +03:00
Waffle
37b84fd14c Run cargo fmt 2019-09-28 15:30:40 +03:00
Waffle
4db1ed86dc Add unboxed version of Request::send to all telegram requests 2019-09-28 15:28:39 +03:00
Waffle
30e6d19e17 Remove RequestFuture alias 2019-09-28 14:48:16 +03:00
Waffle
9ec1d10dd0 Rename Request::send -> Request::send_boxed and use async_trait instead of explicit pin-boxing 2019-09-28 14:39:04 +03:00
Waffle Lapkin
e05a008053
Merge branch 'dev' into dispatcher 2019-09-27 15:53:55 +03:00
Waffle
f4a3c4f6bd Implement polling... 2019-09-27 15:51:22 +03:00
Waffle
eb090ab2af Fix Update deserialization + add test 2019-09-27 15:41:47 +03:00
Waffle
1ca7e7e226 Add Bot::get_updates method 2019-09-27 15:26:52 +03:00
Mr-Andersen
dc0c7bbb77 type ReturnType = bool; -> ... = True 2019-09-25 20:38:14 +03:00
Mr-Andersen
7493a448a6 _ -> false 2019-09-25 20:14:52 +03:00
Mr-Andersen
fc4dc06360 impl {Termination,Default,Hash,{Partial,}Ord} for True 2019-09-25 20:14:08 +03:00
Mr-Andersen
dbc07a1a0c "other" -> "false" 2019-09-25 19:49:37 +03:00
Mr-Andersen
ce8420354e Fixed test name 2019-09-25 17:56:52 +03:00
Mr-Andersen
fea357e6f0 Merge branch 'dev' of github.com:async-telegram-bot/async-telegram-bot into dev 2019-09-25 17:51:51 +03:00
Mr-Andersen
20925e82fb Added True unit type 2019-09-25 17:51:32 +03:00
Andrew Andersen
bc5b43d68b
Merge pull request #31 from Mr-Andersen/dev
+request/PinChatMessage, +type/EncryptedPassportElement
2019-09-24 20:05:01 +03:00
Mr-Andersen
e813953b00 Deleted test 2019-09-24 19:56:57 +03:00
Mr-Andersen
695ea93e06 bool -> Option<bool> 2019-09-24 19:32:57 +03:00
Mishko torop'izhko
0f6873c0c6
Merge pull request #33 from async-telegram-bot/feature/kickChatMemder
add kickChatMember action
2019-09-22 18:36:09 +03:00
Mishko torop'izhko
f8754cfc9d
Merge pull request #34 from async-telegram-bot/feature/RestrictChatMember
add action  RestrictChatMember
2019-09-22 18:35:59 +03:00
nextel
a63fe51171 add skip serialization for opt value 2019-09-22 17:05:30 +03:00
nextel
7736ba3ca8 add serde derive for optional field 2019-09-22 17:03:12 +03:00
nextel
774c481faf fix build error 2019-09-21 20:41:31 +03:00
nextel
a777b3a805 add action template 2019-09-21 20:39:58 +03:00
nextel
62b26fe14f add kickChatMember action 2019-09-21 20:20:14 +03:00
nextel
57e3b21778 add pub modifcators for filds 2019-09-21 20:10:25 +03:00
nextel
3443942cf9 fix optional value 2019-09-21 20:09:35 +03:00
nextel
23f2b9494d add action template 2019-09-21 20:08:06 +03:00
nextel
c3f543786d add get user profile photos action 2019-09-21 20:03:57 +03:00
Mr-Andersen
b500296ed6 pub used requests/PinChatMessage in requests/mod 2019-09-21 12:18:42 +03:00
Mr-Andersen
b0aff65f71 request/PinChatMessage added TODO 2019-09-21 12:08:19 +03:00
Mr-Andersen
02d9796667 request/PinChatMessage pub fixes 2019-09-21 12:05:13 +03:00
Mr-Andersen
b7e0a1c7d1 In EncryptedMessageElementKind::translation: Vec<_> -> Option<Vec<_>> 2019-09-21 11:52:59 +03:00
Mr-Andersen
fc68705d71 +EncryptedPassportElement 2019-09-21 11:38:58 +03:00
Mr-Andersen
4d13609d33 Merge branch 'dev' of github.com:async-telegram-bot/async-telegram-bot into dev 2019-09-21 10:53:50 +03:00
Mr-Andersen
8211838fe9 +PinChatMessage 2019-09-21 10:48:34 +03:00
Temirkhan Myrzamadi
a447c26837
'mod errors' + 'pub use errors' (src/lib.rs) 2019-09-21 05:39:27 +06:00
Temirkhan Myrzamadi
e39ba98368
Merge pull request #30 from async-telegram-bot/fix_request_imports
Fix `request::` imports
2019-09-21 05:38:06 +06:00
Temirkhan Myrzamadi
74f816c616 Fix the tests 2019-09-21 05:34:26 +06:00
Temirkhan Myrzamadi
c3448de7dd Merge branch 'dev' of https://github.com/async-telegram-bot/async-telegram-bot into dev 2019-09-21 05:25:27 +06:00
Temirkhan Myrzamadi
ed1d3cd56e Fix a few tests 2019-09-21 05:25:15 +06:00
Waffle
e1908b7b84 Merge branch 'dev' into dispatcher 2019-09-21 02:10:01 +03:00
Waffle
5ea1673903 Fix request:: imports (&cargo fmt) 2019-09-21 02:07:05 +03:00
Temirkhan Myrzamadi
6b0e05cdf7 Format the code 2019-09-21 05:05:48 +06:00
Temirkhan Myrzamadi
788006f427 Fix the errors 2019-09-21 05:05:39 +06:00
Temirkhan Myrzamadi
7ba2737a13 Add the Telegram Passport API Types 2019-09-21 05:03:37 +06:00
Waffle
d383c12019 Add GetUpdates method 2019-09-21 01:56:16 +03:00
Waffle
36f146580e Fix build after resolving conflicts 2019-09-21 01:22:31 +03:00
Waffle Lapkin
78988205e9
Merge branch 'dev' into dispatcher 2019-09-21 01:17:25 +03:00
Waffle
ec4d23626a Fixes 2019-09-21 01:05:48 +03:00
Waffle
f95ea5ee31 cargo fmt 2019-09-21 00:57:17 +03:00
Waffle
f37552536e Split network into different files 2019-09-21 00:56:25 +03:00
Waffle
5284d5e884 Reformat imports 2019-09-21 00:44:29 +03:00
Waffle
cf3e0182c9 Fix name of the StickerSet 2019-09-21 00:40:25 +03:00
Waffle
1b52a8cdd3 Split bot into different files 2019-09-21 00:20:15 +03:00
Waffle
fb0daffbd5 Move RequestError to errors.rs 2019-09-21 00:06:35 +03:00
Waffle
af9cf93c76 Remove core module 2019-09-21 00:02:37 +03:00
Waffle Lapkin
d5adf4701b
Merge branch 'dev' into file_download 2019-09-20 23:36:49 +03:00
Waffle
f543cc371f Implement file downloading (and also add Bot::get_file) 2019-09-20 23:28:58 +03:00
Temirkhan Myrzamadi
2b23136e2f CommonMessage -> Common, PinnedMessage -> Pinned 2019-09-21 02:05:56 +06:00
Temirkhan Myrzamadi
84548b0727
Merge pull request #26 from Mr-Andersen/dev
+Message::text(&self); message_kind->kind; IncomingMessage->CommonMes…
2019-09-21 02:02:49 +06:00
nextel
f4b9e93447 cargo fmt for requests/* 2019-09-20 17:42:24 +03:00
Temirkhan Myrzamadi
cb5ea4a5b7 Simplify src/core/network/mod.rs 2019-09-20 06:24:08 +06:00
P0lunin
cc9d59cf49 Merge branch 'dev' of https://github.com/async-telegram-bot/async-telegram-bot into dev 2019-09-19 19:38:34 +03:00
P0lunin
7b638eb2c0 add tests 2019-09-19 19:38:07 +03:00
P0lunin
c395e24792 add enum ChatMemberStatus 2019-09-19 19:37:48 +03:00
Mr-Andersen
ccbfee24b8 +Message::text(&self); message_kind->kind; IncomingMessage->CommonMessage 2019-09-19 19:18:09 +03:00
nextel
ced6bd8e69 add get user profile photos template struct 2019-09-19 17:57:50 +03:00
Waffle
9f157057ec Remove done TODO 2019-09-19 16:31:11 +03:00
Waffle
fe75e0ff07 Add MigrateToChatId and RetryAfter to RequestError 2019-09-19 01:59:16 +03:00
Waffle
9cc5806f07 Fix some visibility issues that were causing warnings 2019-09-19 01:45:40 +03:00
Waffle
553ffd928b Fix some "unused imports" warnings 2019-09-19 01:37:45 +03:00
Waffle
d9a974472a Derive From for InlineQueryResult 2019-09-19 01:34:35 +03:00
Waffle
fda1d37e77 Run cargo fmt 2019-09-19 01:30:30 +03:00
Waffle
2b1ce74d94 Add 2 serialization tests to InlineQueryResult 2019-09-19 00:59:13 +03:00
Waffle
3c65d34955 Add #[serde(skip_serializing_if = "Option::is_none")] to InlineQueryResult* optional fields 2019-09-19 00:58:30 +03:00
Waffle
1bee0a9c26 Fix test src/core/types/inline_keyboard_markup.rs - core::types::inline_keyboard_markup::InlineKeyboardMarkup (line 18) 2019-09-19 00:57:23 +03:00
Waffle
feee762d78 Fix test core::types::input_message_content::tests::venue_serialize 2019-09-19 00:55:46 +03:00
Waffle
f96f9a3a2b Fix InlineQueryResultLocation (Add Option<> to optional fields) 2019-09-19 00:44:23 +03:00
Waffle
685d19dc34 Fix type of parse_mode (String -> ParseMode) 2019-09-19 00:27:05 +03:00
Waffle
0896c59c84 Add derive(Hash) to ParseMode 2019-09-19 00:17:13 +03:00
Waffle
59f419f947 Clean InlineQueryResult* structs 2019-09-19 00:16:44 +03:00
Waffle
04d31cd785 Add InlineQueryResult* imports 2019-09-18 23:52:24 +03:00
Waffle
35b7a2c6cf Add missing InlineQueryResult* structs 2019-09-18 23:51:54 +03:00
RustemB
3b6b147b69 getChat 2019-09-19 00:22:58 +05:00
Temirkhan Myrzamadi
4cf17a4b68 Add InlineQueryResultVideo 2019-09-19 00:16:44 +06:00
Temirkhan Myrzamadi
1762ebe2c0 Add InlineQueryResultMpeg4Gif 2019-09-19 00:11:47 +06:00
Temirkhan Myrzamadi
2ef4c6a0e6 Add InlineQueryResultGif 2019-09-19 00:10:13 +06:00
Temirkhan Myrzamadi
da2ebc07c3 Fix src/core/types/inline_query_result_photo.rs 2019-09-19 00:08:14 +06:00
Temirkhan Myrzamadi
387e3ae8e9 Add InlineQueryResultPhoto 2019-09-19 00:07:47 +06:00
Temirkhan Myrzamadi
cc534cb95b Fix the warnings 2019-09-19 00:04:58 +06:00
Temirkhan Myrzamadi
4e19627f38 Fix the errors 2019-09-19 00:03:44 +06:00
Temirkhan Myrzamadi
16b5473dae Add InlineQueryResult 2019-09-19 00:03:14 +06:00
Temirkhan Myrzamadi
0426a15017 Add InlineQueryResultCachedAudio 2019-09-18 23:55:57 +06:00
Temirkhan Myrzamadi
9a22f025dd Add InlineQueryResultCachedVoice 2019-09-18 23:54:26 +06:00
Temirkhan Myrzamadi
ed09426c15 Add InlineQueryResultCachedVideo 2019-09-18 23:52:54 +06:00
Temirkhan Myrzamadi
45ac70ecd9 Add InlineQueryResultCachedDocument 2019-09-18 23:51:10 +06:00
Temirkhan Myrzamadi
7c9eb4e803 Add InlineQueryResultCachedSticker 2019-09-18 23:49:00 +06:00
Temirkhan Myrzamadi
449780c606 Add InlineQueryResultCachedMpeg4Gif 2019-09-18 23:46:31 +06:00
Temirkhan Myrzamadi
a7fa66754a Fix src/core/types/inline_query_result_article.rs 2019-09-18 23:41:48 +06:00
nextel
23c63a612b add getFile implementation 2019-09-17 20:59:07 +03:00
Waffle
8b60c02673 Import File 2019-09-17 20:50:01 +03:00
Waffle
5124750be9 Replace i64 with i32 2019-09-17 20:46:46 +03:00