Commit graph

39 commits

Author SHA1 Message Date
Waffle
1fe4518ee9 Add tools for Bot/Request type erasure 2021-07-12 16:58:51 +03:00
Waffle
9e8819d726 Add Trace bot adaptor 2021-07-10 17:41:20 +03:00
Waffle
1eddea5c85 Remove accidentally added cargo feature 2021-07-08 13:50:17 +03:00
Waffle
5aa622b361 impl HasPayload, Request and Requester for either::Either
This allows to use different adaptors depending on runtime context.
2021-07-08 13:04:40 +03:00
Waffle
b2152db747 Prepare 0.3.1 release 2021-07-07 20:14:27 +03:00
Waffle
df69d07f2b Bump version (0.2.2 => 0.3.0) 2021-07-04 17:36:07 +03:00
Waffle
2c9a4208b7 Update deps 2021-07-04 17:36:07 +03:00
Waffle
421cf42835 Use url::Url for urls, use chrono::DateTime<Utc> for dates 2021-07-03 23:35:13 +03:00
Waffle
4de91811c4 Fix docs.rs metadata 2021-05-09 00:43:16 +03:00
Waffle
653c804037 Update types to TBA 5.2 2021-05-04 16:01:18 +03:00
Diego Roig
84a18d2b5d fix reqwest dependency features 2021-03-26 16:47:03 -05:00
Waffle
46b6c124eb Bump version (0.2.1 => 0.2.2) 2021-03-22 10:53:19 +03:00
Waffle
670979e5ca Release 0.2.1 2021-03-19 12:28:05 +03:00
Waffle
fd841ecd95 prepare for 0.2 release 2021-03-16 15:48:36 +03:00
Temirkhan Myrzamadi
61eed38c32 Fix SemiparsedVec 2021-03-13 17:46:16 +06:00
Temirkhan Myrzamadi
e519849c6a
Merge pull request #53 from teloxide/remove_dbg
Remove dbg! print
2021-02-17 15:17:23 +03:00
Waffle
7c18750a8f Remove dbg! print 2021-02-17 14:23:13 +03:00
Waffle
6b9e278578 fix crates.io categories 2021-02-17 00:17:14 +03:00
Waffle
2f78da091a fill fields in Cargo.toml before releasing the lib 2021-02-17 00:06:37 +03:00
Temirkhan Myrzamadi
592fadfa7d
Merge pull request #40 from teloxide/remove_git_dep
Remove git dependency
2021-01-22 09:17:25 +06:00
Waffle
3c70ae5de0 make native-tls default feature 2021-01-21 23:48:04 +03:00
Mikail Bagishov
56f0fc609d fixup 2021-01-21 23:48:04 +03:00
Mikail Bagishov
e289729055 Support rustls
This was teloxide-based applications can be easily compiled for musl
targets.
2021-01-21 23:47:46 +03:00
Waffle
6abf571c96 Remove git dependency 2021-01-21 22:25:20 +03:00
Waffle
580f50e736 Add very basic example 2021-01-13 16:12:04 +03:00
Waffle
d3ecca662b Normalize docs 2021-01-07 18:00:57 +03:00
Waffle
71d90002ce update dependencies 2021-01-07 15:58:51 +03:00
Waffle
d7d8bc6246 Add all tba methods to Requester trait 2020-11-24 19:32:29 +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
d43f2514d3 [throttle] use channel close to send unlock "messages"
Also use `with_capacity` for queue
2020-10-02 20:53:00 +03:00
Waffle
7fdf9cd9a6 [throttle] implement send_ref 2020-10-02 20:53:00 +03:00
Waffle
b38e35b630 [throttle] format, docs, modfix and small additions 2020-10-02 20:52:56 +03:00
Waffle
5f5e42054d [throttle] queue optimizations#1 2020-10-02 20:50:30 +03:00
Waffle
954c410c1b implement get_me caching 2020-09-22 22:55:19 +03:00
Waffle
07a403c279 implement default Bot's {Json,Multipart}Request 2020-09-19 20:30:36 +03:00
Waffle
72b776d859 some cleanup (serde_multipart) 2020-08-16 10:53:15 +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