Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Telegram Log Channel Laravel Package

arhx/telegram-log-channel

Laravel log channel that sends Monolog messages to a Telegram chat via bot token and chat ID. Configure via .env or logging.php, add to your logging stack, and it safely falls back to a NullHandler when unset. Includes optional queued job failure alerts.

View on GitHub
Deep Wiki
Context7
1.4.0

Added

  • Guzzle 8 support: the guzzlehttp/guzzle constraint is now ^7.0|^8.0. No code changes were required — the client options (verify, timeout, connect_timeout) and the post() JSON send path behave identically on both majors.

Notes

  • laravel/framework still pins guzzlehttp/guzzle ^7.8.2 (as of v13.20.0), so a standard Laravel app will keep resolving Guzzle 7 until the framework widens its own constraint. This release simply stops the package from being the blocker.
1.3.0

Added

  • Spam throttling: identical messages (same level, text, and source file:line) are now suppressed for a configurable window via the Cache facade. Controlled by TELEGRAM_LOG_THROTTLE (defaults to 600 seconds = 10 minutes; 0 disables it).

Fixed

  • Added Guzzle timeout (5s) and connect_timeout (3s) so an unreachable Telegram API no longer blocks the request/queue worker indefinitely.
1.1.1

Fixed

  • Queue failures setting now reads from a dedicated config file via config() instead of env() directly, ensuring compatibility with php artisan config:cache.
  • Added mergeConfigFrom in register() so default values work without publishing.
  • Added publishes() so users can publish config/telegram-log-channel.php for production use with config cache.
1.1.0

Added

  • Automatic Telegram notification when a queued job fails (Queue::failing listener).
  • Notifications include job name, exception message, connection name, and queue name.
  • Controlled via TELEGRAM_LOG_QUEUE_FAILURES env variable (defaults to true).
  • Compatible with Laravel 10, 11, and 12.
1.0.5

Added

  • Added unit tests for TelegramHandler to verify recursion protection and error handling.
  • Added autoload-dev to composer.json for test support.

Fixed

  • Added protection against recursive logging in TelegramHandler.
  • Added try-catch block in TelegramHandler::write to handle exceptions during log sending.
  • Implemented logSelfError to log internal errors to the single channel or system log without recursion.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
nexmo/api-specification
axium/identity
cetria/laravel-dummy-models
cetria/reflection-helper
agropredict/sso-auth-bundle
evolvestudio/spam-protection
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php
splash/sonata-admin
splash/metadata
splash/openapi
splash/scopes