telegram_bot_crashlytics 1.3.4 telegram_bot_crashlytics: ^1.3.4 copied to clipboard
A Flutter package that automatically sends bad HTTP responses from API requests directly to your Telegram group for easier monitoring and debugging.
Changelog #
[1.3.4] - 2024-12-25 #
Added #
- Added Slack integration to send error messages to Slack via a Webhook URL.
- Introduced detailed tooltips across the package to explain each parameter and feature for easier understanding.
- Included enhanced response handling for non-success status codes in the
onResponse
method, improving error logging and debugging experience.
Improved #
- Improved
escapeMarkdown()
method to handle special characters and ensure better compatibility with Telegram's MarkdownV2 syntax. - Optimized error and response message formatting to ensure clarity in Telegram and Slack messages.
- Added device-specific details and emoji stickers for better identification during debugging.
[1.2.4] - 2024-12-19 #
Fixed #
- Resolved Telegram APIException errors related to "Bad Request: can't parse entities: Character '#' is reserved and must be escaped with the preceding ''" by improving MarkdownV2 escaping in
escapeMarkdown()
method. - Enhanced error message formatting to ensure compatibility with Telegram's message parsing rules.
[1.2.3] - 2024-12-15 #
Updated #
- All package dependencies have been updated to their latest versions for improved stability and compatibility.
[1.2.0] - 2024-12-15 #
Added #
- Introduced
includeHeaders
parameter toTelegramErrorInterceptor
to include request headers in error messages. - Enhanced error messages with HTTP method and status code as hashtags for better filtering in Telegram.
Changed #
- Improved error message formatting by adding hashtags based on method types and status codes for better categorization.
[1.1.1] - 2024-11-25 #
Added #
- Introduced
ignoreStatusCodes
parameter toTelegramErrorInterceptor
to allow selective ignoring of specific HTTP status codes. - Added device information retrieval functionality using the
device_info_plus
package for Android, iOS, Linux, macOS, and Windows:getDevice()
method to fetch detailed device information (e.g., Android model, iOS version).getDeviceSticker()
method to provide device-specific emoji stickers for enriched error logs.
- Enhanced error messages sent to Telegram with device details and corresponding stickers for better debugging experience.
Changed #
- Updated
sendErrorToTelegram
to include device details in error messages for better issue tracking. - Improved error message formatting using MarkdownV2 for consistency and better readability in Telegram.
- Differentiated error handling with custom messages for
sendTimeout
,receiveTimeout
,connectionTimeout
, and other error types.
Fixed #
- Resolved Markdown escaping issues with a new
escapeMarkdown()
method to handle special characters correctly.
[1.0.1] - 2024-11-22 #
[1.0.0] - 2024-11-14 #
Added #
- Telegram Bot Crashlytics package initialized with error logging functionality.
- Added
sendErrorToTelegram
method to log errors directly to a specified Telegram chat. - Added
sendInfoToTelegram
method to send informational messages to Telegram. TelegramErrorInterceptor
integrated withDio
to handle automatic error interception and logging.- Markdown formatted messages for enhanced readability in Telegram.