telegram_bot_crashlytics 1.2.0
telegram_bot_crashlytics: ^1.2.0 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.2.0 - 2024-12-15 #
Added #
- Introduced
includeHeadersparameter toTelegramErrorInterceptorto 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 Updated #
Added #
- Introduced
ignoreStatusCodesparameter toTelegramErrorInterceptorto allow selective ignoring of specific HTTP status codes. - Added device information retrieval functionality using the
device_info_pluspackage 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
sendErrorToTelegramto 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 Updated #
1.0.0 Initial Release #
Added #
- Telegram Bot Crashlytics package initialized with error logging functionality.
- Added
sendErrorToTelegrammethod to log errors directly to a specified Telegram chat. - Added
sendInfoToTelegrammethod to send informational messages to Telegram. TelegramErrorInterceptorintegrated withDioto handle automatic error interception and logging.- Markdown formatted messages for enhanced readability in Telegram.