Commit graph

220 commits

Author SHA1 Message Date
Temirkhan Myrzamadi
539d7758f5
Centralise README.md 2021-02-22 07:41:33 +06:00
Temirkhan Myrzamadi
885d0cee0b
Merge pull request #54 from teloxide/update_changelog1
Update changelog
2021-02-17 16:35:54 +03:00
Waffle
a61d81d829 Update changelog 2021-02-17 16:04:04 +03:00
Temirkhan Myrzamadi
e519849c6a
Merge pull request #53 from teloxide/remove_dbg
Remove dbg! print
2021-02-17 15:17:23 +03:00
Temirkhan Myrzamadi
c90e528113
Merge pull request #52 from teloxide/fix_slugs
fix slugs
2021-02-17 15:12:36 +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
Temirkhan Myrzamadi
fb6ae4a9df
Merge pull request #51 from teloxide/release
fill fields in Cargo.toml before releasing the lib
2021-02-17 00:12:56 +03:00
Waffle
2f78da091a fill fields in Cargo.toml before releasing the lib 2021-02-17 00:06:37 +03:00
Temirkhan Myrzamadi
1b51f2616c
Merge pull request #50 from teloxide/clean_throttle
Make some cleanup of throttle
2021-02-16 19:11:26 +03:00
Waffle
80329f8a1e Throttle: make comment up to date & add channel fn 2021-02-16 19:07:50 +03:00
Waffle
72306c39d9 Limit queue growth in throttle 2021-02-16 18:49:18 +03:00
Waffle
669d6c95be Make some cleanup of throttle 2021-02-16 18:34:19 +03:00
Temirkhan Myrzamadi
330a6f3400
Merge pull request #49 from teloxide/unbreaking_changes
Future proofing
2021-02-16 17:26:15 +03:00
Waffle
417b8eb1e1 Add #[non_exhaustive] on InputFile 2021-02-16 17:16:27 +03:00
Waffle
8abf3863e5 Future proof multipart requests 2021-02-16 17:16:20 +03:00
Temirkhan Myrzamadi
557002b43a
Merge pull request #46 from teloxide/refactor-throttle
Refactor requests throttling
2021-02-15 23:17:29 +03:00
Temirkhan Myrzamadi
0d25d357d9 Reformat throttle.rs 2021-02-16 02:09:06 +06:00
Temirkhan Myrzamadi
8deaac04fa Fix Clippy 2021-02-16 02:03:04 +06:00
Temirkhan Myrzamadi
65c98741db Apply suggestions from the review 2021-02-16 01:57:59 +06:00
Temirkhan Myrzamadi
916a774c88
Update src/adaptors/throttle.rs
Co-authored-by: Waffle Lapkin <waffle.lapkin@gmail.com>
2021-02-15 22:44:19 +03:00
Temirkhan Myrzamadi
d58b21c42f Refactoring 2021-02-16 00:50:46 +06:00
Waffle Lapkin
0054544558
Merge pull request #48 from teloxide/small-enhancements
Small enhancements
2021-02-15 19:04:40 +03:00
Temirkhan Myrzamadi
3129d709fe Small enhancements 2021-02-15 16:46:31 +06:00
Temirkhan Myrzamadi
3485acb2b4
Merge pull request #47 from teloxide/update_changelog
update changelog
2021-02-15 11:43:57 +03:00
Waffle
91220befb6 fix warning 2021-02-15 00:35:53 +03:00
Waffle
781371cb17 update changelog 2021-02-15 00:28:52 +03:00
Temirkhan Myrzamadi
d8c16d420d refactor(throttle): small renamings 2021-02-12 18:20:20 +06:00
Temirkhan Myrzamadi
70563ee4a9
Merge pull request #45 from teloxide/fix_send_media_group_rtty
Fix SendMediaGroup return type
2021-02-07 14:36:31 +06:00
Waffle
ab76ec07f2 fix docs 2021-02-07 02:41:29 +03:00
Waffle
21ecc39dc7 fix test 2021-02-07 01:50:53 +03:00
Waffle
fc88c72a26 Suppress clippy::upper_case_acronyms for Currency and CountryCode 2021-02-06 19:25:36 +03:00
Waffle
8befcffe26 Fix naming that triggers clippy::upper_case_acronyms lint
Rename
- ParseMode::{HTML => Html}
- ApiError::{
    InvalidQueryID => InvalidQueryId,
    ButtonURLInvalid => ButtonUrlInvalid,
    WrongFileID => WrongFileId,
    WebhookRequireHTTPS => WebhookRequireHttps,
    WrongHTTPurl => WrongHttpUrl,
  }
2021-02-06 19:23:16 +03:00
Waffle
ec58a59903 Fix SendMediaGroup return type
Message -> Vec<Message>
2021-02-05 21:32:21 +03:00
Temirkhan Myrzamadi
57cfba346c
Merge pull request #44 from teloxide/tys_cleanup
types::* cleanup
2021-01-28 00:20:39 +06:00
Waffle
311a5b18fe fix docs 2021-01-26 18:39:10 +03:00
Waffle
0e43c32b82 clippy 2021-01-26 18:31:15 +03:00
Temirkhan Myrzamadi
d50884d9f1
Merge pull request #43 from teloxide/cleanup
Cleanup
2021-01-26 20:08:02 +06:00
Waffle
eaf72bd97d remove unused function 2021-01-26 16:53:49 +03:00
Waffle
cf4330d892 fix 1584 line error 2021-01-26 16:52:33 +03:00
Waffle
a26935d51a remove SendInvoice from types
- It's a method not a telegram type
- We already have SendInvoice ~at home~ in payloads

Existence of the file was an accident
2021-01-26 16:46:34 +03:00
Waffle
0ef0526743 Replace Into<Vec<_>> by IntoIterator<Item = _> 2021-01-26 16:34:22 +03:00
Waffle
bd4dba3bf1 Remove MessageEntity::text_from because it's wrong
(the method assumes UTF-8 indices, but the indices are UTF-16)
(fuck you, telegram)
2021-01-26 16:21:47 +03:00
Waffle
09d0d886fa Refactor KeyboardButtonPollType
- Make it enum
- Rename `ButtonRequest::KeyboardButtonPollType` => `<_>::poll`
2021-01-26 16:02:05 +03:00
Waffle
393f6ee7a4 Cleanup setters in types::*
- Remove useless setters for types which are only returned from telegam
- Add `const` on setters (where possible)
- Make `Poll::{open_period,close_date}` public
2021-01-26 15:35:08 +03:00
Waffle
d663879423 fix example and add --features full to ci 2021-01-26 14:52:50 +03:00
Waffle
8807cd7228 fix examples (because get_me now returns Me) 2021-01-26 14:10:37 +03:00
Waffle
a80ff92aba make get_me return Me 2021-01-26 13:58:51 +03:00
Waffle
bfef7f3c5d fix self_info example 2021-01-26 13:43:34 +03:00
Waffle
5b328105fa Sticker related fixes
- Rename `sticker_type.rs` => `input_sticker.rs` (after the contained type)
- Make `create_new_sticker_set` multipart
- Replace CreateNewStickerSet::{png,tgs}_sticker with `<_>::sticker`
- Fix GetStickerSet return type
- Revert some previous InputSticker changes: make the variants tuple structsm
  remove constructors
2021-01-26 13:43:21 +03:00