Commit graph

35 commits

Author SHA1 Message Date
Waffle
5349c85404 Fix compilation with nigthly feature
The `min_type_alias_impl_trait` feature was removed in faviour of `type_alias_impl_trait`.
2021-08-03 02:29:26 +03:00
Waffle
1fe4518ee9 Add tools for Bot/Request type erasure 2021-07-12 16:58:51 +03:00
Waffle
33236f79e6 Document trace_adaptor feature 2021-07-11 15:58:09 +03:00
Waffle
e7b44e6bbe Use cfg(dep_docsrs) to allow building docs properly as a dependency 2021-07-07 20:14:25 +03:00
Waffle
df69d07f2b Bump version (0.2.2 => 0.3.0) 2021-07-04 17:36:07 +03:00
Waffle
e6b66a7383 TBA 5.3: update changelog and supported version 2021-07-04 16:06:06 +03:00
Waffle
fa980453f3 Ignore buggy nonstandard_macro_braces clippy lint 2021-07-04 00:11:27 +03:00
Waffle
a95089bc6f Fix docs
`doc_spotlight` nightly feature was renamed to `doc_notable_trait`
2021-04-27 12:25:15 +03:00
Waffle
670979e5ca Release 0.2.1 2021-03-19 12:28:05 +03:00
Waffle
2cdadf774f fix nightly-feature name 2021-03-18 14:32:03 +03:00
Waffle
3489890230 fix CI 2021-03-16 14:06:22 +03:00
Waffle
c8939dff09 Turn on nightly clippy again
The fix of the bug finally got released
2021-03-15 23:50:09 +03:00
Waffle
aef88f97c3 Update to tba API version 5.1 2021-03-15 23:50:02 +03:00
Waffle
467477d38e Update changelog & readme 2021-03-14 22:59:49 +03:00
Temirkhan Myrzamadi
3485acb2b4
Merge pull request #47 from teloxide/update_changelog
update changelog
2021-02-15 11:43:57 +03:00
Waffle
8807cd7228 fix examples (because get_me now returns Me) 2021-01-26 14:10:37 +03:00
Waffle
b16006ec9c document tls features 2021-01-26 11:56:42 +03:00
Waffle
3aec4e5070 fix test 2021-01-21 10:15:02 +03:00
Waffle
84df33dbef improve docs 2021-01-15 22:06:23 +03:00
Waffle
2ee7bb22a1 Move client_from_env from root into net 2021-01-13 16:14:02 +03:00
Waffle
d3ecca662b Normalize docs 2021-01-07 18:00:57 +03:00
Waffle
9052d4dfbb Remove already fixed FIXMEs 2020-12-28 18:02:04 +03:00
Waffle
445c42b585 Refactor file downloading
- Make `net` module public
- Move `Bot::download_file{,_stream}` methods to a new `Download` trait
  - Add `download_forward` macro to forward `Download` impls (priv)
  - Impl `Download` for all bot adaptors & the `Bot` itself
- Change return type of `download_file_stream` — return `Stream<Result<Bytes>>``,
  instead of `Future<Result<Stream<Result<Bytes>>>>``
- Add `api_url` param to standalone versions of `download_file{,_stream}`
- Make `net::{TELEGRAM_API_URL, download_file{,_stream}}` pub
- Small documentation changes
2020-12-12 15:52:47 +03:00
Waffle
45cf62ce8e Refactor Bot for a bit
- Move default parse mode to an adaptor
- Remove bot builder (it's not usefull anymore, since parse_mode is moved away)
    - Undeprecate bot constructors
2020-11-27 01:21:50 +03:00
Waffle
9bf8c02c9d doc & feature fixes
- Remove `unstable-stream` feature
- Doc fixes
2020-10-21 05:17:35 +03:00
Waffle
e79f83d4a1 Move bot adaptors to own module and place then under features
This commit moves `bot::{auto_send,cache_me,limits}` modules to
`adaptors::{auto_send,cache_me,throttle}.

ALso it adds 4 crate features:
- `throttle`
- `cache_me`
- `auto_send`
- `full` (enables all features, except `nightly`)
2020-10-21 05:14:48 +03:00
Waffle
193dd69265 Cleanup errors 2020-10-20 15:07:10 +03:00
Waffle
b38e35b630 [throttle] format, docs, modfix and small additions 2020-10-02 20:52:56 +03:00
Waffle Lapkin
429ab0b74a
Apply suggestions from code review
Co-authored-by: Temirkhan Myrzamadi <hirrolot@gmail.com>
2020-10-01 21:00:02 +03:00
Waffle
0ec81cf753 Implement auto sending requests 2020-09-23 16:53:26 +03:00
Waffle
2cabc5fb4e add Requester trait and GetMe payload 2020-09-22 22:52:23 +03:00
Waffle
76d47276f6 requests redesign part 0
This commit introduces 3 traits mentioned in requests redesign proposal:
- `Payload`
- `HasPayload`
- `Request`

Also it adds `Output<T>` alias to `<<T as HasPayload>::Payload as Payload>::Output`
2020-08-22 22:03:59 +03:00
Waffle
b303958afd implement serde multipart serializer
Serde multipart serializer can be used to serialize requests
into multipart/form-data without need for copy-paste and boilerplate
2020-08-16 00:21:01 +03:00
Waffle
a70cb4e008 Move core code from teloxide 2020-08-12 19:39:40 +03:00
Waffle
7891fa02bf Initial commit 2020-08-12 18:04:50 +03:00