Commit graph

1549 commits

Author SHA1 Message Date
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
RustemB
2bc2ce5663 i32 as dimensions 2019-09-17 22:33:50 +05:00
RustemB
aef4d51179 fixes 2019-09-17 22:31:41 +05:00
RustemB
cc542b6eae commentd 2019-09-17 22:15:19 +05:00
RustemB
af62a72afd inline_query + _result_article 2019-09-17 21:58:45 +05:00
Waffle Lapkin
43992ec378
Merge branch 'dev' into dispatcher 2019-09-17 18:51:14 +03:00
Temirkhan Myrzamadi
afbb004fe4
Merge pull request #24 from async-telegram-bot/feature/sendChatActionTry2
imlement sendChatAction
2019-09-17 17:15:50 +06:00
Waffle
e95ffe13b7 Fix docs for all! and any! macroses 2019-09-16 21:19:46 +03:00
Waffle
5d0bb05ee6 Implement extensions for filters 2019-09-16 21:07:33 +03:00
nextel
de3bf900d8 fix return type 2019-09-16 12:45:27 +03:00
P0lunin
5974402aea fix errors 2019-09-15 22:20:38 +03:00
P0lunin
2437ccad2e moved from core::types to core::requests 2019-09-15 22:18:58 +03:00
P0lunin
0913857787 added docs and tests 2019-09-15 22:18:24 +03:00
nextel
60f3c822cf add snake case rename for all fields of enum 2019-09-15 18:44:13 +03:00
nextel
2b8bbf98b3 add docs 2019-09-15 18:31:02 +03:00
nextel
823f0f4877 imlement sendChatAction 2019-09-15 18:27:28 +03:00
P0lunin
d380f2696f added docs and tests 2019-09-15 14:40:46 +03:00
P0lunin
de0b9f4ab8 moved answerPreCheckoutQuery from types to requests 2019-09-15 14:40:24 +03:00
P0lunin
8ffb4db4cc moved implementations to core::types 2019-09-15 13:45:21 +03:00
P0lunin
0ae31c6454 fix errors 2019-09-15 13:44:38 +03:00
Temirkhan Myrzamadi
a165157d4f
Merge pull request #23 from async-telegram-bot/feature/sendPoll
Feature/send poll
2019-09-13 19:39:39 +06:00
nextel
d8c51bdde8 fix option fields 2019-09-13 15:45:19 +03:00
nextel
b2fb7c2963 add SendPoll implementation 2019-09-13 15:42:45 +03:00
Temirkhan Myrzamadi
93f18a020c
Merge pull request #21 from async-telegram-bot/feature/sendVenue
Feature/send venue
2019-09-13 18:12:30 +06:00
Mishko torop'izhko
1f4ec47f39
Update src/core/requests/send_venue.rs
Co-Authored-By: Waffle Lapkin <waffle.lapkin@gmail.com>
2019-09-13 15:08:50 +03:00
Mishko torop'izhko
766be3381d
Update src/core/requests/send_venue.rs
Co-Authored-By: Waffle Lapkin <waffle.lapkin@gmail.com>
2019-09-13 15:08:40 +03:00
Mishko torop'izhko
45f7e49e3b
Update src/core/requests/send_venue.rs
Co-Authored-By: Waffle Lapkin <waffle.lapkin@gmail.com>
2019-09-13 15:08:29 +03:00
Mishko torop'izhko
1932741f1a
Update src/core/requests/send_contact.rs
Co-Authored-By: Waffle Lapkin <waffle.lapkin@gmail.com>
2019-09-13 15:07:54 +03:00
Waffle
4519109ac5 Implement wrapper for filters that adds |, & operators 2019-09-13 14:57:02 +03:00
nextel
b9364d737b fix docs 2019-09-13 14:07:05 +03:00
nextel
c1e78c19cf fix documentation 2019-09-13 14:05:32 +03:00
nextel
5450637649 fix documentation 2019-09-13 14:05:10 +03:00
nextel
334ee73a40 cargo fmt 2019-09-13 14:03:12 +03:00
nextel
466ec638a4 fix documentation 2019-09-13 14:02:29 +03:00
nextel
02f3d60a96 add struct comment 2019-09-13 14:00:57 +03:00
nextel
9ebe30cb91 add fields to struct 2019-09-13 13:59:15 +03:00
nextel
d81072bba8 add sendContact implementation 2019-09-13 13:30:59 +03:00
nextel
546f0d53d9 add base struct for sendContact action 2019-09-13 13:05:40 +03:00
nextel
d2612f21a0 apply cargo fmt 2019-09-13 12:38:01 +03:00
nextel
8a9b2e1009 add replay markup setter 2019-09-13 12:36:09 +03:00
Waffle
7cf5ad5272 Add Box::{edit_message_live_location, forward_message, send_audio, send_location, send_media_group, send_photo, stop_message_live_location} methods 2019-09-13 01:39:25 +03:00
Waffle
fedc346e23 Add Box::ctx shortcut 2019-09-13 01:05:22 +03:00
Waffle
300a3cb285 Make StopMessageLiveLocation public 2019-09-13 01:01:38 +03:00
Waffle
6e76d0441d Fix compilers warnings (unused imports, unused fields, etc) 2019-09-13 00:58:08 +03:00
Waffle
fdd79760e1 Dispatcher POC impl 2019-09-13 00:37:45 +03:00
Waffle
7e297bb25e Fix compile errors (many derives fixes and append_to_row (&mut mut)) 2019-09-12 22:24:38 +03:00
ferristhecrab
0d83c1b106 move back accidentally deleted module declarations and types export 2019-09-13 00:11:11 +05:00
ferristhecrab
3aac9a43c5 export implemented types 2019-09-12 23:52:19 +05:00
Waffle
cd7ecb2a66 Merge branch 'dev' of github.com:async-telegram-bot/async-telegram-bot into dev 2019-09-12 21:40:09 +03:00
P0lunin
73fd76997d add builders 2019-09-12 21:32:54 +03:00
nextel
c1568065e0 add methods to send venue action 2019-09-12 21:31:25 +03:00
Waffle
17d8ef43a0 Merge branch 'dev' of github.com:async-telegram-bot/async-telegram-bot into dev 2019-09-12 21:29:04 +03:00
Waffle
d591e499c8 Implement Update 2019-09-12 21:21:18 +03:00
nextel
a95829243a return TODO to get file action 2019-09-12 20:43:19 +03:00
nextel
9a5606f63f return TODO 2019-09-12 20:40:14 +03:00
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
Mr-Andersen
e41d62a27f Resolved conflict 2019-09-03 20:32:48 +03:00
Waffle
f100bdc7ed Pin RequestFuture 2019-09-03 20:23:52 +03:00
Waffle
9f8396f752 Merge branch 'dev' of github.com:async-telegram-bot/async-telegram-bot into dev 2019-09-03 19:32:14 +03:00
Waffle
38b5945ec8 Fix ParseMode, InputFile and InputMedia (add to module tree, add docs, etc) 2019-09-03 19:25:13 +03:00
Temirkhan Myrzamadi
d71c4d39a0 Fix the compilation errors 2019-09-03 20:39:49 +06:00
Temirkhan Myrzamadi
383ea99e81 Refine core/network/mod.rs 2019-09-03 20:34:29 +06:00
Temirkhan Myrzamadi
3d6479be62 Format the sources 2019-09-03 20:25:38 +06:00
Temirkhan Myrzamadi
e9ebd62993 Make the 'core.network' module private 2019-09-03 20:24:52 +06:00
Temirkhan Myrzamadi
0a6dc12f92 Make the 'core' module public 2019-09-03 20:17:19 +06:00
Mr-Andersen
b1a8e9ba9b Included chat_member.rs in mod.rs, fixed bug, added Audio 2019-09-03 14:40:23 +03:00
Mr-Andersen
8511aeb609 Fixed problems with borrow checker in core/requests 2019-09-03 14:15:54 +03:00
Mr-Andersen
5e57abf676 Added dummy types into core/types/not_implemented_types.rs; Added MessageEntity 2019-09-03 13:57:53 +03:00
Waffle
f304fd6a6b Merge branch 'dev' of github.com:async-telegram-bot/async-telegram-bot into dev 2019-09-03 12:04:24 +03:00
Waffle
6e2f5c2da6 Merge branch 'dev' of github.com:async-telegram-bot/async-telegram-bot into dev 2019-09-03 12:03:51 +03:00
Waffle
3f88c45d6b Rework Request trait 2019-09-03 12:03:38 +03:00
fedechkin_alexey
2a7f90e204 fix input_media.rs 2019-09-03 16:03:16 +07:00
fedechkin_alexey
40c362de05 add inputMedia 2019-09-03 15:57:28 +07:00
RustemB
a311458454 InputFile 2019-09-03 13:49:11 +05:00
fedechkin_alexey
57a4a60406 fix file name
add struct: login,response_parameter
2019-09-03 15:30:10 +07:00
Temirkhan Myrzamadi
6de592fa6b Merge branch 'dev' of https://github.com/async-telegram-bot/async-telegram-bot into dev 2019-09-03 14:05:06 +06:00
Temirkhan Myrzamadi
01cd8ddd5f Implement core/requests/form_builder.rs 2019-09-03 14:04:35 +06:00
P0lunin
4718572088 add enum 2019-09-03 10:55:44 +03:00
P0lunin
1891976650 add struct 2019-09-03 10:55:29 +03:00
Temirkhan Myrzamadi
23b94bab01 Fix a few things and format the code 2019-09-03 13:04:07 +06:00
Temirkhan Myrzamadi
47d56c7ddd Use serde::Serialize instead of Display (helpers.rs) 2019-09-03 13:01:36 +06:00
Temirkhan Myrzamadi
6531a72ebe Simplify the Form construction pattern 2019-09-03 12:35:20 +06:00
Temirkhan Myrzamadi
c6f818e8bb Fix network/mod.rs 2019-09-03 09:39:01 +06:00
Temirkhan Myrzamadi
7ec19d23c2 Simplify requests/send_message.rs a little bit 2019-09-03 09:36:34 +06:00
RustemB
47e97ec2be Merge branch 'dev' of github.com:async-telegram-bot/async-telegram-bot into dev 2019-09-03 01:23:10 +05:00
RustemB
1087b0aa2b New struct: StickerSet 2019-09-03 01:22:16 +05:00
Waffle
aa05069829 Fix Form creation for SendMessage 2019-09-02 23:16:24 +03:00
RustemB
1b97feebf5 Improve types 2019-09-03 01:06:54 +05:00
RustemB
27901b1614 Improve types 2019-09-03 01:04:06 +05:00
RustemB
3171db78e2 New struct: Sticker, MaskPosition; Sticker requires PhotoSize by @no111u3 2019-09-03 01:01:04 +05:00
fedechkin_alexey
ddfa5aaa70 Merge remote-tracking branch 'origin/dev' into dev 2019-09-02 20:51:50 +07:00
fedechkin_alexey
b41f3cbe27 add struct 2019-09-02 20:51:03 +07:00
Waffle
3e0e3ae4b4 Add docs for method_url and file_url 2019-09-02 16:35:52 +03:00
Waffle
d72dae122d Implement Display, PartialEq, Eq and Error for RequestError 2019-09-02 16:33:32 +03:00
Waffle
e1be16fba2 Derive PartialEq, Eq and Hash on telegram types 2019-09-02 14:24:34 +03:00
Temirkhan Myrzamadi
65f153734d Make all fields of all the types public 2019-09-02 17:10:55 +06:00
Temirkhan Myrzamadi
8ca3e95193 Merge branch 'dev' of https://github.com/async-telegram-bot/async-telegram-bot into dev 2019-09-02 17:04:23 +06:00
Temirkhan Myrzamadi
e19368482e Define the 'network' module as public 2019-09-02 17:04:06 +06:00
Waffle
1b86af3baa Move url creation to separate function 2019-09-02 13:59:02 +03:00
Temirkhan Myrzamadi
72be7ee750 Put all the existing types into core/types 2019-09-02 16:55:19 +06:00
Temirkhan Myrzamadi
c4fcc13dcd Use a type alias instead of a generic in Request 2019-09-02 16:29:29 +06:00
Temirkhan Myrzamadi
cad60fa2fb Refine network/mod.rs 2019-09-02 16:21:10 +06:00
Waffle
ce87928a90 Use an owned String instead of borrowed &str for token in GetMe request 2019-09-02 11:10:58 +03:00
Waffle
9b78fb5b9a Fix typo: use i64 instead of i32 in requests 2019-09-02 11:09:16 +03:00
Temirkhan Myrzamadi
b71d75ad94
Update mod.rs 2019-09-02 14:07:28 +06:00
Temirkhan Myrzamadi
194351a064
Delete inline_mode.rs 2019-09-02 14:03:52 +06:00
Temirkhan Myrzamadi
2c2a54e7e1
Delete games.rs 2019-09-02 14:03:40 +06:00
Temirkhan Myrzamadi
4ad1cf8c62
Delete updating_messages.rs 2019-09-02 14:03:30 +06:00
Temirkhan Myrzamadi
0781d3b3b0
Delete telegram_passport.rs 2019-09-02 14:02:51 +06:00
Temirkhan Myrzamadi
d1e2c95b17
Delete stickers.rs 2019-09-02 14:02:31 +06:00
Temirkhan Myrzamadi
16aca2c74a
Delete getting_updates.rs 2019-09-02 14:02:23 +06:00
Waffle
c84636ebab Implement Eq for requests, fix core::requests::send_message::test::default (add .build()) 2019-09-02 10:49:01 +03:00
Waffle
57ee4e9223 requests 2019-09-02 10:39:29 +03:00
Temirkhan Myrzamadi
bdaca41eda Fix recursive types 2019-09-02 12:58:42 +06:00
Temirkhan Myrzamadi
cd7982ec29 Create network/mod.rs 2019-09-02 12:29:04 +06:00
fedechkin_alexey
631159f92d add payment import to other.rs 2019-09-02 13:11:54 +07:00
fedechkin_alexey
3c97b34fef add payment struct 2019-09-02 13:02:19 +07:00
fedechkin_alexey
c6ad316d4d add SendInvoice struct 2019-09-02 12:50:51 +07:00
Temirkhan Myrzamadi
83287a7544 Define the 'core' layout 2019-09-02 11:17:20 +06:00
Temirkhan Myrzamadi
9ffb2d45ef Add Document (core/types.rs) 2019-09-02 10:38:09 +06:00
Temirkhan Myrzamadi
ab14d4b7e6 Fix the Message struct (core/types.rs) 2019-09-02 10:35:20 +06:00
fedechkin_alexey
71c6a23628 add Message struct 2019-09-02 11:25:05 +07:00
fedechkin_alexey
07af8204fc Merge remote-tracking branch 'origin/dev' into dev
# Conflicts:
#	src/core/types.rs
2019-09-02 11:23:53 +07:00
fedechkin_alexey
8ba3362eba add Message struct 2019-09-02 11:21:55 +07:00
Temirkhan Myrzamadi
a3188e34de Add ChatPermissions (core/types.rs) 2019-09-02 10:17:21 +06:00
Temirkhan Myrzamadi
de8dd3d84e Add ChatPhoto (core/types.rs) 2019-09-02 10:13:41 +06:00
fedechkin_alexey
2567ae1825 add Chat struct 2019-09-02 11:02:50 +07:00
Temirkhan Myrzamadi
5020cafcd2 Separate types and functions 2019-09-02 02:00:59 +06:00
Temirkhan Myrzamadi
db7755d398 Implement /getMe (core/mod.rs) 2019-09-02 01:53:18 +06:00
Temirkhan Myrzamadi
fd04a91532 Create lib.rs and core/mod.rs 2019-09-01 23:13:02 +06:00
Temirkhan Myrzamadi
122ed28f15 Initialise the project using Cargo 2019-09-01 22:51:07 +06:00