mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 14:35:36 +01:00
Merge pull request #1046 from mhkafadar/fix/typo-in-errors
fix: typo in errors.rs ToMuchMessages
This commit is contained in:
commit
384811ab4b
2 changed files with 3 additions and 2 deletions
|
@ -55,6 +55,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
- Use `Seconds` instead of `String` in `InlineQueryResultAudio` for `audio_duration` ([PR 994](https://github.com/teloxide/teloxide/pull/994))
|
||||
- High CPU usage on network errors ([PR 1002](https://github.com/teloxide/teloxide/pull/1002), [Issue 780](https://github.com/teloxide/teloxide/issues/780))
|
||||
- Fix app build errors when using items gated behind sqlite-storage with the feature sqlite-storage-rustls ([PR 1018](https://github.com/teloxide/teloxide/pull/1018))
|
||||
- Fix typo in `ApiError::ToMuchMessages` variant (rename it to `TooMuchMessages`) ([PR 1046](https://github.com/teloxide/teloxide/pull/1046))
|
||||
|
||||
### Changed
|
||||
|
||||
|
|
|
@ -289,7 +289,7 @@ impl_api_error! {
|
|||
/// 1. [`SendMediaGroup`]
|
||||
///
|
||||
/// [`SendMediaGroup`]: crate::payloads::SendMediaGroup
|
||||
ToMuchMessages = "Bad Request: Too much messages to send as an album",
|
||||
TooMuchMessages = "Bad Request: Too much messages to send as an album",
|
||||
|
||||
/// Occurs when bot tries to answer an inline query with more than 50
|
||||
/// results.
|
||||
|
@ -861,7 +861,7 @@ mod tests {
|
|||
("{\"data\": \"Bad Request: MESSAGE_TOO_LONG\"}", ApiError::EditedMessageIsTooLong),
|
||||
(
|
||||
"{\"data\": \"Bad Request: Too much messages to send as an album\"}",
|
||||
ApiError::ToMuchMessages,
|
||||
ApiError::TooMuchMessages,
|
||||
),
|
||||
("{\"data\": \"Bad Request: RESULTS_TOO_MUCH\"}", ApiError::TooMuchInlineQueryResults),
|
||||
(
|
||||
|
|
Loading…
Reference in a new issue