Waffle
a213459cc3
fmt
2020-11-05 03:22:23 +03:00
Waffle
9d887e51bb
Rename StickerType
...
- Rename `StickerType` => `InputSticker`
- Rename `{CreateNewStickerSet,AddStickerToSet}::sticker_type}` => `sticker`
This just makes more sense.
2020-11-04 16:00:40 +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
e54f45ceab
Make the trait bounds in Request{,er} stricter
2020-10-20 12:17:07 +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
8271150218
add SendMessage request
2020-10-02 20:50:30 +03:00
Waffle
0ec81cf753
Implement auto sending requests
2020-09-23 16:53:26 +03:00
Waffle
83cc634f79
add :std::error::Error bound on Request::Err
2020-09-22 22:56:02 +03:00
Waffle
954c410c1b
implement get_me
caching
2020-09-22 22:55:19 +03:00
Waffle
2cabc5fb4e
add Requester trait and GetMe payload
2020-09-22 22:52:23 +03:00
Waffle
f3e0005335
remove AsMut/AsRef bounds because of a compiler bug
2020-09-22 22:48:42 +03:00
Waffle
07a403c279
implement default Bot's {Json,Multipart}Request
2020-09-19 20:30:36 +03:00
Waffle Lapkin
f272326c69
Merge pull request #5 from teloxide/requests_redisign_p0
...
Requests redisign part 0
2020-08-25 17:30:04 +03:00
Waffle
88004607d3
fmt
2020-08-24 17:08:55 +03:00
Waffle
c773ce7aff
implement HasPayload
in terms of As{Ref,Mut}
2020-08-24 15:50:15 +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
45a55c66de
rename Request
=> RequestOld
2020-08-22 20:59:04 +03:00
Waffle
d4c0bc2fe1
make all methods fields public
2020-08-16 21:10:42 +03:00
Waffle
d186a73eda
add GetUpdatesNonStrict
'telegram' method - fail proof version of GetUpdates
2020-08-16 20:02:12 +03:00
Waffle
5afe72b368
rewrite requests to use serde-multipart
...
Rewrite multipart requests to use serde_multipart instead of FromBuilder
2020-08-16 00:21:55 +03:00
Waffle
a70cb4e008
Move core code from teloxide
2020-08-12 19:39:40 +03:00