Commit graph

27 commits

Author SHA1 Message Date
Maybe Waffle
923be2221d Add NotFound error 2022-03-21 19:10:12 +04:00
Maybe Waffle
d8e3c6ce42 Add WrongFileIdOrUrl and FailedToGetUrlContent errors 2022-03-18 14:21:55 +04:00
Maybe Waffle
f456ab110a Add ApiError::NotEnoughRightsToChangeChatPermissions 2021-12-28 17:04:19 +03:00
Maybe Waffle
1bcb062d88 Add RequestError::InvalidJson::raw field 2021-12-24 15:47:54 +03: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
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
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
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
Maybe Waffle
d3be288eba Add NotEnoughRightsToPostMessages error 2021-10-10 14:59:06 +03:00
Waffle
2417b636a6 Add EditedMessageIsTooLong error 2021-08-21 23:59:59 +03:00
handlerug
8a7909e7c7
Add BotKickedFromSupergroup error
Fixes teloxide/teloxide#372
2021-04-27 23:48:27 +07:00
handlerug
b3dec316e5
Add NotEnoughRightsToManagePins error
Fixes teloxide/teloxide#371
2021-04-27 23:41:14 +07: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
84df33dbef improve docs 2021-01-15 22:06:23 +03:00
Waffle
50d3d67f93 fmt 2020-12-28 19:06:46 +03:00
Temirkhan Myrzamadi
1188da84e3 Small typo fixes 2020-12-23 23:40:58 +06:00
Temirkhan Myrzamadi
f5d9cb1a73 Documentation gardening 2020-12-23 22:24:31 +06:00
Waffle
3491a668b2 Fix doc links... 2020-12-06 16:34:44 +03: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
41afdb554d fmt 2020-10-20 17:02:31 +03:00
Waffle
193dd69265 Cleanup errors 2020-10-20 15:07:10 +03:00
Waffle Lapkin
891106cabe
Update src/errors.rs
Co-authored-by: Temirkhan Myrzamadi <hirrolot@gmail.com>
2020-08-16 14:44:08 +03:00
Waffle
06f123710e add RequestError::Io to wrap I/O errors
Add `RequestError::Io(std::io::Error)` to wrap I/O errors those may happen
while reading files to upload them to telegram
2020-08-15 23:52:08 +03:00
Waffle
a70cb4e008 Move core code from teloxide 2020-08-12 19:39:40 +03:00