Commit graph

225 commits

Author SHA1 Message Date
nextel
278f9690b7 add sendVenue 2019-09-12 20:33:28 +03:00
nextel
6dda560cc3 cargo fmt of ../requests 2019-09-12 20:05:59 +03:00
Waffle Lapkin
a8f04a8d4c
Merge pull request #17 from async-telegram-bot/bug/fmt
cargo fmt for all project files
2019-09-12 19:47:41 +03:00
nextel
0bbfca7b4b add live time parameter to action templates 2019-09-12 19:30:35 +03:00
nextel
3cb15025d7 add temlates for actions, for exclude merge conflicts 2019-09-12 19:28:44 +03:00
nextel
cbb6076308 cargo fmt for all project files 2019-09-12 18:57:14 +03:00
Andrew Andersen
df4259bf60
Merge pull request #13 from Mr-Andersen/dev
Much
2019-09-12 18:50:23 +03:00
Andrew Andersen
5d06f4a0f8
Update src/core/types/poll.rs
Co-Authored-By: Waffle Lapkin <waffle.lapkin@gmail.com>
2019-09-12 18:50:01 +03:00
Andrew Andersen
6d3aeb45c4
Update src/core/types/animation.rs
Co-Authored-By: Waffle Lapkin <waffle.lapkin@gmail.com>
2019-09-12 18:49:54 +03:00
Waffle Lapkin
80f588ce1b
Merge pull request #15 from async-telegram-bot/feature/stopMessageliveLocation
add stop message live location handler
2019-09-12 18:40:25 +03:00
nextel
40321467dd fix review mistakes 2019-09-12 18:33:35 +03:00
Mishko torop'izhko
5b8166a9d8
Update src/core/requests/stop_message_live_location.rs
Co-Authored-By: Waffle Lapkin <waffle.lapkin@gmail.com>
2019-09-12 18:31:53 +03:00
Mishko torop'izhko
3df77cc356
Update src/core/requests/stop_message_live_location.rs
Co-Authored-By: Waffle Lapkin <waffle.lapkin@gmail.com>
2019-09-12 18:31:35 +03:00
Mishko torop'izhko
8bc6d7b13f
Update src/core/requests/stop_message_live_location.rs
Co-Authored-By: Waffle Lapkin <waffle.lapkin@gmail.com>
2019-09-12 18:31:11 +03:00
Mishko torop'izhko
33dd80d49d
Update src/core/requests/stop_message_live_location.rs
Co-Authored-By: Waffle Lapkin <waffle.lapkin@gmail.com>
2019-09-12 18:30:59 +03:00
Mishko torop'izhko
f37e41361f
Update src/core/requests/stop_message_live_location.rs
Co-Authored-By: Waffle Lapkin <waffle.lapkin@gmail.com>
2019-09-12 18:29:37 +03:00
Mishko torop'izhko
b831cd3f1c
Update src/core/requests/mod.rs
Co-Authored-By: Waffle Lapkin <waffle.lapkin@gmail.com>
2019-09-12 18:29:15 +03:00
ferristhecrab
e78f889778 change reply_markup to its actual type 2019-09-12 20:20:40 +05:00
nextel
1c40479f87 add serde tags to optional fields 2019-09-12 18:11:50 +03:00
Mr-Andersen
a5f1b7fb70 Added Animation, File, UserProfilePhotos 2019-09-12 16:51:59 +03:00
Mr-Andersen
7de6f9f252 pub fixes 2019-09-12 16:51:24 +03:00
Mr-Andersen
cc19034bca Dropped implemented types from not_implemented_types 2019-09-12 16:04:13 +03:00
Mr-Andersen
7482534335 Little bit of refactoring 2019-09-12 16:03:04 +03:00
Mr-Andersen
383d17ef47 Added Poll, PollOption 2019-09-12 16:02:36 +03:00
nextel
eada897471 add stop message live location handler 2019-09-12 16:00:58 +03:00
Mr-Andersen
0a87a8ecd2 Message test: english -> francais 2019-09-12 15:22:56 +03:00
P0lunin
a6c8942063 add enum ReplyMarkup 2019-09-11 19:53:35 +03:00
P0lunin
8f18b5ba02 refactored, fixed compiling errors and added docs 2019-09-11 19:52:53 +03:00
P0lunin
5099403fa6 add method editMessageLiveLocation 2019-09-11 18:07:31 +03:00
P0lunin
eeddf3d54f refactoring 2019-09-11 10:16:48 +03:00
P0lunin
70e29b4edf add method SendLocation 2019-09-09 19:23:01 +03:00
P0lunin
7809356546 add docs 2019-09-09 18:43:20 +03:00
P0lunin
826f52ff90 add method sendAudio 2019-09-08 23:11:43 +03:00
Mr-Andersen
b42c8b65f7 Added tests for media (video) and media as part of media group 2019-09-08 19:24:03 +03:00
Mr-Andersen
1fa64afad2 Fixed bug. More tests are still needed 2019-09-08 14:14:51 +03:00
Waffle
dc755b6ec0 Properly parse telegram answer 2019-09-08 02:43:58 +03:00
Waffle
c3052ed036 Reorder uses in requests 2019-09-08 02:01:00 +03:00
Waffle
94c5320ca8 Remove async move { /* only one future*/.await } 2019-09-08 01:54:59 +03:00
Waffle
b0d88d69ea Move to reqwest from git (alpha.0) and tokio 0.2.0.alpha.4! 2019-09-08 01:44:55 +03:00
Waffle
1f50a87daf Merge branch 'dev' of github.com:async-telegram-bot/async-telegram-bot into dev 2019-09-07 22:17:28 +03:00
Waffle
26ba1919be Add docs for core::types{Venue, Video} 2019-09-07 22:17:14 +03:00
Waffle
7a2e8fd33b Implement SendMediaGroup request 2019-09-07 22:15:57 +03:00
Waffle
27debb0c77 Add option to send requests with json instead of multipart/form-data 2019-09-07 22:15:26 +03:00
Waffle
19f7ce1435 Remove test-replacement-to-main in SendPhoto 2019-09-07 22:10:19 +03:00
Waffle
e1a4036d82 Implement Clone on ForwardKind, ForwardedFrom, MediaKind and ChatKind 2019-09-07 21:30:56 +03:00
Waffle Lapkin
015b7ee5d4
Merge branch 'dev' into dev 2019-09-07 21:16:49 +03:00
Mr-Andersen
0d6bb9840b 1. Box<Chat> -> Chat; 2. assert_eq!( //much code//, //same// ) -> expected & actual; 3. User { user: User } -> User(User) 2019-09-07 21:05:18 +03:00
P0lunin
fa8cefe504 refactored and added docs 2019-09-07 20:07:01 +03:00
Mr-Andersen
620ffe5580 Fixes 2019-09-07 19:08:32 +03:00
Andrew Andersen
a74715f888
Update src/core/types/message.rs
Co-Authored-By: Waffle Lapkin <waffle.lapkin@gmail.com>
2019-09-07 18:30:48 +03:00
Andrew Andersen
bca625a9b3
Update src/core/types/chat.rs
Co-Authored-By: Waffle Lapkin <waffle.lapkin@gmail.com>
2019-09-07 18:28:06 +03:00
Andrew Andersen
cc86b2a73d
Update src/core/types/chat.rs
Co-Authored-By: Waffle Lapkin <waffle.lapkin@gmail.com>
2019-09-07 18:27:25 +03:00
P0lunin
58ae51f318 changed field type String to InputFile 2019-09-07 18:18:09 +03:00
P0lunin
1ffd2697f1 add method 2019-09-07 17:54:08 +03:00
P0lunin
2cb6ba9e33 added .add_file() 2019-09-07 17:45:24 +03:00
Mr-Andersen
5bfe47927d Added Message 2019-09-07 14:58:47 +03:00
Waffle
88ec897751 Merge branch 'dev' of github.com:async-telegram-bot/async-telegram-bot into dev 2019-09-06 02:26:56 +03:00
Waffle
b05cb12f98 Fix serialization for requests 2019-09-06 01:24:46 +03:00
Waffle
d08b418d59 Add ParseMode serialization tests 2019-09-06 01:23:14 +03:00
P0lunin
ba2aee880f fix doc 2019-09-05 19:35:01 +03:00
P0lunin
1ea9d9d198 fix 2019-09-05 19:25:56 +03:00
Waffle
4d241131fc Make ResponseParameters more rust-friendly 2019-09-05 19:12:03 +03:00
Waffle
7e14e8f9e7 Fix redundant "" when sending messages (Note: string types should use FormBuilder::add_raw instead of FormBuiolder::add) 2019-09-05 19:11:16 +03:00
Waffle
4094c1ceb8 Add serialization tests for ChatId 2019-09-05 19:00:26 +03:00
Waffle
e58d40a765 Add #[serde(untagged)] to ChatId 2019-09-05 18:44:08 +03:00
P0lunin
17a26aec7b fixed compilation errors 2019-09-05 18:03:21 +03:00
P0lunin
dda98e7db8 changed field type String to ParseMode (completed TODO) 2019-09-05 17:59:11 +03:00
P0lunin
82f0156ef8 add method 2019-09-05 17:55:42 +03:00
Waffle
9b98895a60 Derive Clone on plenty of types 2019-09-04 21:58:01 +03:00
Temirkhan Myrzamadi
8ec055b0f9
Merge pull request #10 from Mr-Andersen/dev
Dev
2019-09-04 23:27:06 +06:00
Temirkhan Myrzamadi
2c1ae116e1 Rename RequestInfo to RequestContext (requests/mod.rs) 2019-09-04 23:24:16 +06:00
Andrew Andersen
8be6c49b7e
Merge branch 'dev' into dev 2019-09-04 19:00:11 +03:00
Mr-Andersen
05899b53d2 Added Serialization for Chat 2019-09-04 18:58:35 +03:00
Mr-Andersen
b254de2564 Fixed bug with Chat 2019-09-04 18:33:34 +03:00
Temirkhan Myrzamadi
1ab1ae0224 Set the line width to 80 (rustfmt.toml) 2019-09-04 20:07:56 +06:00
Mr-Andersen
386c73b47a Renamed file 2019-09-04 16:35:59 +03:00
Waffle
8fe2db0259 Merge branch 'dev' of github.com:async-telegram-bot/async-telegram-bot into dev 2019-09-04 11:08:17 +03:00
Waffle
8030fe4418 Prototype hing-level api. 2019-09-04 11:07:49 +03:00
Temirkhan Myrzamadi
5b8f8f587d Fix the PhotoSize type 2019-09-04 14:04:30 +06:00
Temirkhan Myrzamadi
c47e4c03ac Make all the fields of all the types public 2019-09-04 14:00:26 +06:00
Waffle
42c961b595 Implement request builders by hand instead of TypedBuilder 2019-09-04 11:00:15 +03:00
Waffle
fe48ed2730 Borrow client and token in RequestInfo instead of moving. (this also adds lifetimes to Request, RequestInfo, RequestFuture) 2019-09-04 10:34:52 +03:00
Waffle
4fc11dc3dc Remove strange function 2019-09-04 09:43:43 +03:00
Waffle
8b878c3827 Remove Integer and UnsignedInteger aliases 2019-09-04 09:41:44 +03:00
P0lunin
d18f7f9666 Merge remote-tracking branch 'origin/dev' into dev 2019-09-04 09:08:19 +03:00
P0lunin
17f80589e9 add docs 2019-09-04 09:07:47 +03:00
Temirkhan Myrzamadi
e640065552
Merge pull request #9 from Mr-Andersen/dev
Much
2019-09-04 10:45:27 +06:00
Mr-Andersen
59360cbc7d Re-factored Chat in "enum style" 2019-09-03 22:29:37 +03:00
Mr-Andersen
52e8507be4 Added Venue; #[skip_serizlizing_if = "Option::is_none"] where it is missed 2019-09-03 21:44:38 +03:00
Mr-Andersen
3a80ecacc0 Added Video 2019-09-03 21:22:52 +03:00
P0lunin
a17f3129a3 add struct 2019-09-03 21:14:19 +03:00
Mr-Andersen
2d074e73e2 Added PhotoSize, removed use serde::... in **/types/* 2019-09-03 21:11:39 +03:00
P0lunin
ff2285890f add struct 2019-09-03 21:09:34 +03:00
P0lunin
b4cfb893e9 add struct 2019-09-03 21:05:09 +03:00
P0lunin
7262d54fa0 add struct 2019-09-03 21:02:18 +03:00
P0lunin
dcdc776c50 add struct and set fields type to 'pub' 2019-09-03 20:56:43 +03:00
P0lunin
1852b8f5a1 add struct 2019-09-03 20:47:21 +03:00
P0lunin
28b1ef45b2 add struct 2019-09-03 20:41:49 +03:00
RustemB
afe840cab6 WebhookInfo 2019-09-03 22:37:29 +05:00
RustemB
8b39c5fb68 WebhookInfo 2019-09-03 22:37:18 +05:00