Skip to content

Commit

Permalink
Merge pull request #1046 from mhkafadar/fix/typo-in-errors
Browse files Browse the repository at this point in the history
fix: typo in errors.rs ToMuchMessages
  • Loading branch information
WaffleLapkin committed Apr 12, 2024
2 parents f811061 + f24d091 commit 384811a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions crates/teloxide-core/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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),
(
Expand Down

0 comments on commit 384811a

Please sign in to comment.