Commit graph

449 commits

Author SHA1 Message Date
Waffle Maybe
407fbe0214
Merge pull request #133 from teloxide/api-5.4
TBA 5.4 and schema updates
2021-11-15 01:51:06 +03:00
Maybe Waffle
706bd08c6b Fix docs 2021-11-15 01:47:54 +03:00
Maybe Waffle
45183d4dcd fix test 2021-11-15 01:47:54 +03:00
Maybe Waffle
ca69b6385c Update changelog 2021-11-15 01:47:53 +03:00
Maybe Waffle
8002f98ef7 Add TBA 5.4 types 2021-11-15 01:46:53 +03:00
Maybe Waffle
094211e6a1 Add TBA v5.4 methods and params
(schema update)
2021-11-15 01:46:53 +03:00
Maybe Waffle
9fb6c20f23 Make SendPoll::type_ optional
(fix from schema)
2021-11-15 01:46:53 +03:00
Maybe Waffle
9bcdd37be0 Remove PartialEq, Eq, Hash derives from InputFile
...and tg-method-structs holding it
2021-11-15 01:46:53 +03:00
Hirrolot
6aed69e276
Merge pull request #136 from teloxide/fix_pr_conflict
Fix conflict between PRs
2021-11-14 00:11:32 +06:00
Maybe Waffle
af54d6db7a Fix conflict between PRs 134 and 135 2021-11-13 20:16:13 +03:00
Hirrolot
461d882bc1
Merge pull request #134 from teloxide/errfactor
Refactor errors
2021-11-13 19:09:22 +06:00
Hirrolot
6e920e1d88
Merge pull request #135 from teloxide/too_much_results
Add `ApiError::TooMuchInlineQueryResults`
2021-11-13 19:07:46 +06:00
Maybe Waffle
8d1dd8d444 Add ApiError::TooMuchInlineQueryResults 2021-11-09 21:16:56 +03:00
Maybe Waffle
27e1b90c6e Refactor errors 2021-11-08 00:02:17 +03:00
Waffle Maybe
00abf2fd80
Merge pull request #131 from berkus/fix/add-derive-debug
fix: Add missing derive(Debug) on adapters
2021-11-07 13:27:13 +03:00
Berkus Decker
f868152e2f fix: Add missing derive(Debug) on adapters 2021-11-07 12:22:05 +02:00
Waffle Maybe
839181bffd
Merge pull request #127 from teloxide/must_use_requests
Add `#[must_use]` attrs to payload setters, request wrappers and send* methods
2021-10-24 23:10:25 +03:00
Hirrolot
3a91ae3c3a
Merge pull request #129 from msrd0/chrono-no-default-features
Disable default features of chrono
2021-10-24 23:48:52 +06:00
Dominic
1d9811918b
disable default features of chrono 2021-10-23 17:36:42 +02:00
Hirrolot
8ee25a616c
Merge pull request #128 from teloxide/inline_methods_fix
Fix `*_inline` methods (release v0.3.4)
2021-10-18 18:04:13 +06:00
Maybe Waffle
bd8bafd03b Fix *_inline methods (release v0.3.4) 2021-10-18 13:47:02 +03:00
Maybe Waffle
73235682a3 Add #[must_use] attrs to payload setters, request wrappers and send* methods 2021-10-15 19:07:41 +03:00
Waffle Maybe
6e6cabb5b7
Merge pull request #126 from teloxide/imply_doc_cfg
Remove explicit `doc(cfg)` as it's now implied
2021-10-11 17:26:29 +03:00
Waffle Maybe
2ceb2c5782
Merge pull request #125 from teloxide/api_error_non_exhaustive
Mark `ApiError` as `non_exhaustive`
2021-10-11 17:26:04 +03:00
Maybe Waffle
62d21d1c58 Remove explicit doc(cfg) as it's now implied 2021-10-11 16:58:15 +03:00
Maybe Waffle
0999efa96b Update to changelog 2021-10-11 10:44:06 +03:00
Hirrolot
43b0c4a6ec
Merge pull request #124 from teloxide/sticker_errors
Add some sticker errors
2021-10-10 20:11:01 +06:00
Maybe Waffle
25db4901e2 Mark ApiError as non_exhaustive 2021-10-10 16:40:31 +03:00
Maybe Waffle
037e0eaf41 Add some sticker errors 2021-10-10 16:33:40 +03:00
Waffle Maybe
22cfedf708
Merge pull request #123 from teloxide/needs_administrator_rights_error
Add `NotEnoughRightsToPostMessages` error
2021-10-10 15:02:25 +03:00
Maybe Waffle
d3be288eba Add NotEnoughRightsToPostMessages error 2021-10-10 14:59:06 +03:00
Hirrolot
156cff7ce5
Merge pull request #121 from teloxide/throttle_fix
Fix `Throttle` adaptor
2021-09-30 04:59:06 +06:00
Waffle
b18a06403b Update changelog 2021-09-16 02:57:30 +03:00
Waffle
00b83770a7 Throttle: correct limits for channels
This commits adds `Limits::messages_per_min_channel` field
2021-09-16 02:51:28 +03:00
Waffle
86a478dd1d Throttle: fix limit check
Previously both `messages_per_sec_chat` and `messages_per_min_chat` were
checked against last second message count.
2021-09-16 00:04:01 +03:00
Waffle Lapkin
2774c0cd4c
Merge pull request #119 from luminosoda/patch-1
Fix type of `Poll::{correct_option_id,open_period}` fields: `i32` => `u8` and `u16`
2021-09-07 17:57:11 +03:00
Waffle Lapkin
9261d8cfd2
changelog: link pr119 2021-09-07 17:47:10 +03:00
Andrew
c461eac259
Update changelog 2021-09-07 19:24:13 +05:00
Andrew
602c573b92
Fix type of Poll::open_period field: i32 => u16 2021-09-07 15:35:07 +05:00
Andrew
6d4ad2932c
Fix type of Poll::correct_option_id field: i32 => u8 2021-09-07 15:32:00 +05:00
Hirrolot
d2b08afc8e
Merge pull request #116 from teloxide/fix-033-date
Fix date of the 0.3.3 release in changelog
2021-09-03 21:07:28 -07:00
Hirrolot
d8d45bd7cc
Merge branch 'master' into fix-033-date 2021-09-03 20:52:13 -07:00
Hirrolot
4986f72ef4
Merge pull request #117 from teloxide/until_date_fixes
`until_date` fixes
2021-09-03 20:49:29 -07:00
Waffle
842315150b Add UntilDate enum and use it for {Restricted, Banned}::until_date 2021-09-02 18:14:54 +03:00
Waffle
0e55b41961 Patch BanChatMember::until_date: u64 -> DateTime<Utc> 2021-09-02 17:18:27 +03:00
Waffle Lapkin
f7faf737da
Remove square brackets from changelog (2) 2021-08-31 18:39:02 +03:00
Waffle Lapkin
17fa764f11
Remove square brackets from changelog 2021-08-31 18:36:20 +03:00
Waffle Lapkin
35bfdd2c72
Fix date of the 0.3.3 release in changelog 2021-08-31 17:59:49 +03:00
Hirrolot
3d7ca29681
Merge pull request #115 from teloxide/make_urls_urlier
Use `url::Url` for urls, use `chrono::DateTime<Utc>` for dates in types
2021-08-31 07:50:38 -07:00
Hirrolot
16a3ba3349
Merge pull request #113 from teloxide/dont_reparse_url_on_every_request
Do not re-parse default tba url on every request
2021-08-31 07:50:21 -07:00