Commit graph

4803 commits

Author SHA1 Message Date
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
Temirkhan Myrzamadi
c515ae0fb2
Merge pull request #42 from async-telegram-bot/remove_termination
Remove impl std::process::Termination for True
2019-10-10 01:34:55 +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
Temirkhan Myrzamadi
035d33561b
Update README.md 2019-10-08 22:22:23 +06:00
Temirkhan Myrzamadi
4da7c71752
Delete graph.png 2019-10-08 22:22:13 +06: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
Temirkhan Myrzamadi
1812ab10bf
Merge pull request #40 from async-telegram-bot/add_methods_to_bot
Add some methods to `Bot`
2019-10-07 15:48:27 +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
9a2c571b57
Merge pull request #36 from async-telegram-bot/unbox_send_future
Unbox send future
2019-10-01 13:31:29 +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
Mishko torop'izhko
c1abd14bf5
Merge pull request #38 from async-telegram-bot/addActionTemplates
add action templates to mod.rs
2019-09-30 18:17:19 +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
Waffle Lapkin
2b83d869fb
Merge pull request #35 from Mr-Andersen/dev
Added `True` unit type in crate::types
2019-09-25 20:48:35 +03:00
Mr-Andersen
dc0c7bbb77 type ReturnType = bool; -> ... = True 2019-09-25 20:38:14 +03:00