Commit graph

648 commits

Author SHA1 Message Date
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
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