PHPackages                             klytron/laravel-schedule-telegram-output - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. klytron/laravel-schedule-telegram-output

ActiveLibrary[CLI &amp; Console](/categories/cli)

klytron/laravel-schedule-telegram-output
========================================

Laravel package to send scheduled command outputs through Telegram bots (supports Laravel 10-13)

v1.2.1(1mo ago)070MITPHPPHP ^8.2

Since Jul 19Pushed 1mo agoCompare

[ Source](https://github.com/klytron/laravel-schedule-telegram-output)[ Packagist](https://packagist.org/packages/klytron/laravel-schedule-telegram-output)[ Docs](https://github.com/klytron/laravel-schedule-telegram-output)[ Fund](https://www.klytron.com/buy-me-a-coffee)[ RSS](/packages/klytron-laravel-schedule-telegram-output/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (8)Versions (14)Used By (0)

Laravel Schedule Telegram Output
================================

[](#laravel-schedule-telegram-output)

[![Latest Version on Packagist](https://camo.githubusercontent.com/705b202c987dd1a3434c6bbac0852320e5df30d84d1542dc82057db19500839f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b6c7974726f6e2f6c61726176656c2d7363686564756c652d74656c656772616d2d6f75747075742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/klytron/laravel-schedule-telegram-output)[![Total Downloads](https://camo.githubusercontent.com/07588b40628629900916243b50cebd9e6ed490d12fa2f8401654e6b30f688145/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b6c7974726f6e2f6c61726176656c2d7363686564756c652d74656c656772616d2d6f75747075742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/klytron/laravel-schedule-telegram-output)[![License](https://camo.githubusercontent.com/e7ac81e70d3c8de36d6cc7c1d55d4c1700fd221c482a0673a96cc886be9f9e16/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6b6c7974726f6e2f6c61726176656c2d7363686564756c652d74656c656772616d2d6f75747075742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/klytron/laravel-schedule-telegram-output)[![GitHub Stars](https://camo.githubusercontent.com/dd0d2ad51b30c733ad80c34198362c5175bf09be850d705ca73162c22d43aa3f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6b6c7974726f6e2f6c61726176656c2d7363686564756c652d74656c656772616d2d6f75747075743f7374796c653d666c61742d737175617265)](https://github.com/klytron/laravel-schedule-telegram-output/stargazers)

A Laravel package to send scheduled job outputs to Telegram with robust formatting and flexible configuration.

---

🚀 Quick Start
-------------

[](#-quick-start)

1. **Install:**

    ```
    composer require klytron/laravel-schedule-telegram-output
    ```
2. **Publish config (optional):**

    ```
    php artisan vendor:publish --provider="Klytron\LaravelScheduleTelegramOutput\ScheduleTelegramOutputServiceProvider" --tag=schedule-telegram-output-config
    ```
3. **Configure your `.env`:**

    ```
    TELEGRAM_BOT_TOKEN=your-telegram-bot-token
    TELEGRAM_DEFAULT_CHAT_ID=your-chat-id
    SCHEDULE_TELEGRAM_OUTPUT_DEBUG=true # or false
    SCHEDULE_TELEGRAM_OUTPUT_PARSE_MODE=MarkdownV2 # or HTML

    # Retry configuration (optional)
    SCHEDULE_TELEGRAM_OUTPUT_RETRY_ATTEMPTS=3
    SCHEDULE_TELEGRAM_OUTPUT_RETRY_DELAY=1000
    SCHEDULE_TELEGRAM_OUTPUT_TIMEOUT=30
    ```

    See [Telegram Setup Guide](docs/TELEGRAM_SETUP.md) for details.

    Notes:

    - `SCHEDULE_TELEGRAM_OUTPUT_PARSE_MODE` is read by `config/schedule-telegram-output.php`.
    - By default only a snippet of output is sent (first 10 lines, up to 500 chars). Configure via `message_format.snippet_max_length`.
4. **Basic usage (macro-first):**

    ```
    $schedule->command('your:command')->sendOutputToTelegram();
    ```

    Or specify a chat ID:

    ```
    $schedule->command('your:command')->sendOutputToTelegram('123456789');
    ```

---

⚙️ Configuration
----------------

[](#️-configuration)

- All options are in `config/schedule-telegram-output.php`.
- By default, only a snippet of the output (first 10 lines or up to 500 characters) is sent to Telegram.
- You can override the snippet length and other options in your config.
- See the [Configuration Reference](docs/CONFIGURATION.md) for all options and details.

### Advanced (optional)

[](#advanced-optional)

- The package includes advanced classes (`TelegramEvent`, `TelegramSchedule`, `TelegramScheduleTrait`) for special cases.
- The recommended approach is using the macro on `Illuminate\Console\Scheduling\Event` as shown above.

---

📖 Documentation &amp; Guides
----------------------------

[](#-documentation--guides)

- [Getting Started Guide](docs/GETTING_STARTED.md)
- [Telegram Setup Guide](docs/TELEGRAM_SETUP.md)
- [Configuration Reference](docs/CONFIGURATION.md)
- [Advanced Usage](docs/ADVANCED_USAGE.md)
- [Examples](docs/EXAMPLES.md)
- [Troubleshooting &amp; FAQ](docs/TROUBLESHOOTING.md)

---

🧑‍💻 Advanced &amp; Examples
---------------------------

[](#‍-advanced--examples)

- See [Examples](docs/EXAMPLES.md) and [Advanced Usage](docs/ADVANCED_USAGE.md) for trait-based, multi-bot, and conditional scenarios.

---

❓ Having issues?
----------------

[](#-having-issues)

- See [Troubleshooting &amp; FAQ](docs/TROUBLESHOOTING.md)
- Or open an issue on [GitHub](https://github.com/klytron/laravel-schedule-telegram-output/issues)

---

License
-------

[](#license)

MIT

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance92

Actively maintained with recent releases

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~21 days

Recently: every ~63 days

Total

13

Last Release

40d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4c696458a29585d45beb5ed8f0cb22e23a2698dad1f9f0515d66de5934d2ae79?d=identicon)[klytron](/maintainers/klytron)

---

Top Contributors

[![klytron](https://avatars.githubusercontent.com/u/11487236?v=4)](https://github.com/klytron "klytron (2 commits)")

---

Tags

schedulerconsolelaravelnotificationscronschedulecommandtelegramoutputsendOutputTo

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/klytron-laravel-schedule-telegram-output/health.svg)

```
[![Health](https://phpackages.com/badges/klytron-laravel-schedule-telegram-output/health.svg)](https://phpackages.com/packages/klytron-laravel-schedule-telegram-output)
```

###  Alternatives

[nunomaduro/laravel-console-menu

Laravel Console Menu is an output method for your Laravel/Laravel Zero commands.

815412.0k48](/packages/nunomaduro-laravel-console-menu)[illuminated/console-mutex

Mutex for Laravel Console Commands.

146938.2k1](/packages/illuminated-console-mutex)[illuminated/console-logger

Logging and Notifications for Laravel Console Commands.

8674.9k](/packages/illuminated-console-logger)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
