telegram_bot_crashlytics 1.2.3 copy "telegram_bot_crashlytics: ^1.2.3" to clipboard
telegram_bot_crashlytics: ^1.2.3 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.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 to TelegramErrorInterceptor 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 to TelegramErrorInterceptor 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 #

Added #

  • Added an example in the example/ directory to demonstrate basic usage of the package.

Changed #

  • Replaced deprecated DioError with DioException for error handling.
  • Updated to use DioExceptionType instead of DioErrorType for compatibility with the latest Dio version.

[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 with Dio to handle automatic error interception and logging.
  • Markdown formatted messages for enhanced readability in Telegram.
12
likes
0
points
392
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package that automatically sends bad HTTP responses from API requests directly to your Telegram group for easier monitoring and debugging.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

device_info_plus, dio, flutter, http, logging

More

Packages that depend on telegram_bot_crashlytics