Commit graph

459 commits

Author SHA1 Message Date
Temirkhan Myrzamadi
0316ec9a8b
Update README.md 2019-10-15 11:54:28 +06:00
Temirkhan Myrzamadi
66719aa2e6
Update README.md
Related to  https://github.com/async-telegram-bot/async-telegram-bot/issues/57.
2019-10-15 11:53:51 +06:00
Temirkhan Myrzamadi
23ad531c1e
Remove unnecessary hyperlinks (README.md)
Related to https://github.com/async-telegram-bot/async-telegram-bot/issues/57.
2019-10-15 11:51:07 +06:00
Temirkhan Myrzamadi
c1f2590e3c Merge branch 'dev' of https://github.com/async-telegram-bot/async-telegram-bot into dev 2019-10-15 11:49:38 +06:00
Temirkhan Myrzamadi
8cb61724ae Improve the ICON.jpg quality
Related to https://github.com/async-telegram-bot/async-telegram-bot/issues/57
2019-10-15 11:49:22 +06:00
Temirkhan Myrzamadi
4f17f23b69
Merge pull request #20 from WaffleLapkin/dispatcher
[WIP] Dispatcher impl
2019-10-15 05:38:26 +00:00
Temirkhan Myrzamadi
2276352782
Merge pull request #51 from async-telegram-bot/remove_apply
Remove apply (and accidentally rework `FormBuilder`)
2019-10-15 01:11:10 +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
7b4a45f501
Update README.md 2019-10-14 23:32:06 +06:00
Temirkhan Myrzamadi
47b5f4d035
Update README.md 2019-10-14 23:18:11 +06:00
Temirkhan Myrzamadi
0310846495
Update README.md 2019-10-14 23:17:13 +06:00
Temirkhan Myrzamadi
ea81f9f8e6 Round the corners of ICON.jpg 2019-10-14 23:14:40 +06:00
Temirkhan Myrzamadi
8895ed9e18
Update README.md 2019-10-14 23:12:53 +06:00
Temirkhan Myrzamadi
1d1632246c
Update README.md 2019-10-14 23:11:38 +06:00
Temirkhan Myrzamadi
e4a1eb3214
Update README.md 2019-10-14 23:10:41 +06:00
Temirkhan Myrzamadi
fab440a06b
Update README.md 2019-10-14 23:07:58 +06:00
Temirkhan Myrzamadi
6174f1ba9a
Add some badges (README.md) 2019-10-14 23:04:55 +06:00
Temirkhan Myrzamadi
5eca305342
Fix README.md 2019-10-14 23:01:38 +06:00
Temirkhan Myrzamadi
c0a295a543
Fix README.md 2019-10-14 23:00:34 +06:00
Temirkhan Myrzamadi
627760c72e Add ICON.png 2019-10-14 23:00:04 +06:00
Temirkhan Myrzamadi
cf8211e1c6
Merge pull request #50 from Gymmasssorla/generics
Normalise src/requests
2019-10-14 16:03:22 +00: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
Temirkhan Myrzamadi
e450d42c27
Merge pull request #52 from async-telegram-bot/fix_clippy_warns
Fix some clippy warns
2019-10-13 17:14:00 +00: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
2b8ba6986c remove apply dep 2019-10-13 13:36:19 +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
e087391534
Merge pull request #49 from Gymmasssorla/thiserror
Replace impl Error + derive Display with thiserror
2019-10-13 07:20:41 +00: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