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
a138d6824b
add #[must_use] attr to payloads implemented by macro
2020-11-02 21:14:32 +03:00
Temirkhan Myrzamadi
6cd5e44f88
Merge pull request #21 from teloxide/into_iter_convert
...
Implement IntoIterator-based convert for impl_payload! macro
2020-11-02 10:56:34 +06:00
Waffle
106c49fa46
add #[serde_with_macros::skip_serializing_none] annotation to the impl_payload output
2020-11-02 02:21:02 +03:00
Waffle
5ddbd50b37
Implement IntoIterator-based convert for impl_payload! macro
2020-11-02 01:35:02 +03:00
Temirkhan Myrzamadi
59f01a72c0
Merge pull request #20 from teloxide/fix_message_dice
...
make MessageDice::dice public
2020-10-29 12:48:39 +06:00
Waffle
6ae9db4edd
make MessageDice::dice public
2020-10-28 19:05:28 +03:00
Temirkhan Myrzamadi
8a5081db61
Merge pull request #18 from teloxide/impl_payload_macro
...
Add internal impl_payload macro
2020-10-27 18:51:23 +06:00
Waffle
4b21e8ea68
fmt
2020-10-24 22:20:58 +03:00
Temirkhan Myrzamadi
2e88ba3002
Merge pull request #19 from teloxide/fix_telegram_response
...
Fix telegram response
2020-10-25 00:19:45 +06:00
Waffle Lapkin
a917363da0
Merge branch 'master' into impl_payload_macro
2020-10-24 21:16:05 +03:00
Waffle
fe9314f87c
serde-rename TelegramResponse::reponse
to result
2020-10-24 09:23:28 +03:00
Waffle
69d503e610
add internal impl_payload macro
2020-10-24 09:13:11 +03:00
Temirkhan Myrzamadi
f80d332a4a
Merge pull request #16 from teloxide/serde_field_identifier
...
Use `#[serde(field_identifier)]` instead of hand-made workarounds
2020-10-23 22:57:46 +06:00
Waffle
d2b97b2120
Use #[serde(field_identifier)]
instead of hand-made workarounds
...
This attribute doesn't seem to be documented btw...
2020-10-22 00:42:06 +03:00
Waffle Lapkin
2e1ed0024b
Merge pull request #15 from teloxide/upd_changelog
...
Update changelog
2020-10-22 00:23:11 +03:00
Waffle Lapkin
03d64dbc35
Merge pull request #14 from teloxide/adaptor_features
...
Adaptors features, module, docs
2020-10-21 21:48:30 +03:00
Waffle
2dfe8a15c5
fmt
2020-10-21 19:53:39 +03:00
Waffle
d47036012b
fix rebase mistakes
2020-10-21 19:51:00 +03:00
Waffle
1eeac6d2da
update changelog
2020-10-21 19:45:03 +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
Temirkhan Myrzamadi
2d948ef20b
Merge pull request #13 from teloxide/cleanup_errors
...
Cleanup errors
2020-10-21 04:34:14 +06:00
Temirkhan Myrzamadi
f578894b41
Merge pull request #12 from teloxide/stricter_bounds
...
Make the trait bounds in Request{,er} stricter
2020-10-21 03:57:07 +06:00
Waffle
41afdb554d
fmt
2020-10-20 17:02:31 +03:00
Waffle
193dd69265
Cleanup errors
2020-10-20 15:07:10 +03:00
Waffle
e54f45ceab
Make the trait bounds in Request{,er} stricter
2020-10-20 12:17:07 +03:00
Temirkhan Myrzamadi
a2d87fe1fa
Merge pull request #10 from teloxide/limits
...
Request throttling (limits)
2020-10-17 23:47:19 +06:00
Temirkhan Myrzamadi
41b257bbae
Merge pull request #9 from teloxide/chat_member_kind
...
Refactor ChatMember
2020-10-10 17:22:39 +06:00
Waffle
2f09e9930d
Decompose ChatMemberKind
as was requested per review
2020-10-10 14:17:52 +03:00
Waffle
8e44a0bcfc
fmt: i can't see the difference
2020-10-03 03:39:50 +03:00
Waffle
2d7e40a473
[throttle] fix doc test
2020-10-03 03:30:34 +03:00
Waffle
e757999135
[throttle] git rebase, fmt and clippy things
2020-10-02 21:22:19 +03:00
Waffle
0aecda6348
[throttle] stop worker when channel is closed
2020-10-02 20:53:00 +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
380e189ec7
[throttle] comment and doc improvements
2020-10-02 20:53:00 +03:00
Waffle
6f03ca0954
[throttle] hash ChatId::ChannelUsername
to prevent expensive string cloning & make send{,_ref} enums private
...
The future has come!
2020-10-02 20:53:00 +03:00
Waffle
7fdf9cd9a6
[throttle] implement send_ref
2020-10-02 20:53:00 +03:00
Waffle
247868a815
[throttle] explicit queue-closed error handling & comments
2020-10-02 20:53:00 +03:00
Waffle
23ef060d08
[throttle] temporary resolve spawn_blocking
fixme
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
6714a9c503
[throttle] clear hchats_s
instead of creating&dropping every iteration
2020-10-02 20:50:30 +03:00
Waffle
5f5e42054d
[throttle] queue optimizations#1
2020-10-02 20:50:30 +03:00
Waffle
3f9db1f31b
[throttle] queue optimizations#0
2020-10-02 20:50:30 +03:00
Waffle
f270613e7e
[throttle] refactor#0
...
- Move all data to the worker making it unshared.
- Use mpsc channel to update requests queue
- Yield if there are no requests in queue
- Remove `:0` entries from `hchats`
- Remove debug prints
- Remove use of `block_on`
2020-10-02 20:50:30 +03:00
Waffle
4e412b39e1
(very bad) initial implementation of throttling
2020-10-02 20:50:30 +03:00
Waffle
8271150218
add SendMessage request
2020-10-02 20:50:30 +03:00
Temirkhan Myrzamadi
745d4a1ffe
Merge pull request #8 from teloxide/requests_redisign_p3
...
Implement auto sending requests
2020-10-02 00:19:05 +06:00
Waffle Lapkin
269859eba9
Update src/bot/auto_send.rs
...
Co-authored-by: Temirkhan Myrzamadi <hirrolot@gmail.com>
2020-10-01 21:11:28 +03:00
Waffle Lapkin
a7066e5e11
Apply suggestions from code review
...
Co-authored-by: Temirkhan Myrzamadi <hirrolot@gmail.com>
2020-10-01 21:08:38 +03:00