Skip to content

Commit 33eae66

Browse files
committed
refine
1 parent 8c11680 commit 33eae66

1 file changed

Lines changed: 5 additions & 13 deletions

File tree

β€ŽREADME.mdβ€Ž

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -111,19 +111,11 @@ const BotApiLive = Layer.provide(
111111

112112
Failed `BotApi` method calls result in `BotApiError`, which is a union of tagged errors with additional information:
113113

114-
- `TransportError` β€” HTTP or network failure.
115-
- `cause` β€” original error from `HttpClient`.
116-
117-
- `RateLimited` β€” bot has exceeded the flood limit.
118-
- `retryAfter` β€” duration to wait before the next attempt.
119-
120-
- `GroupUpgraded` β€” group has been migrated to a supergroup.
121-
- `supergroup` β€” object containing the ID of the new supergroup.
122-
123-
- `MethodFailed` β€” response was unsuccessful, but the exact reason could not be determined.
124-
- `possibleReason` β€” string literal representing one of the common failure reasons. It is determined by the error code and description of the Bot API response, which are subject to change.
125-
126-
- `InternalServerError` β€” Bot API server failed with a 5xx error code.
114+
- **`TransportError`** β€” HTTP or network failure. The `cause` property contains the original error from `HttpClient`.
115+
- **`RateLimited`** β€” bot has exceeded the flood limit. The `retryAfter` property contains the duration to wait before the next attempt.
116+
- **`GroupUpgraded`** β€” group has been migrated to a supergroup. The `supergroup` property contains an object with the ID of the new supergroup.
117+
- **`MethodFailed`** β€” response was unsuccessful, but the exact reason could not be determined. The `possibleReason` property contains a string literal representing one of the common failure reasons. It is determined by the error code and description of the Bot API response, which are subject to change.
118+
- **`InternalServerError`** β€” Bot API server failed with a 5xx error code.
127119

128120
All errors except `TransportError` also have `response` property that contains the original response from Bot API.
129121

0 commit comments

Comments
Β (0)