npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

nexrender-action-telegram-message

v1.0.0

Published

Telegram notifier for Nexrender prerender/postrender/error

Readme

Nexrender Telegram Notification Action

A Nexrender action that sends Telegram notifications on prerender, postrender, and error events.

Features

  • ✅ Sends notifications for render start, completion, and errors
  • ✅ Configurable via job actions or environment variables
  • ✅ Markdown formatting support
  • ✅ Custom message text support
  • ✅ Node.js 18+ with native fetch support
  • ✅ Zero dependencies

Requirements

  • Node.js ≥ 18 (uses native fetch)
  • Nexrender server/client
  • Telegram bot token and chat ID

Installation

Option 1: Local Installation

# Clone or download this repository
git clone https://github.com/itsnahmias/nexrender-action-telegram-message.git
cd nexrender-action-telegram-message

Option 2: Global Installation

npm install -g nexrender-action-telegram-message

Option 3: Direct GitHub Installation

npm i -g https://github.com/itsnahmias/nexrender-action-telegram-message

Telegram Setup

  1. Create a Telegram Bot:

    • Message @BotFather on Telegram
    • Send /newbot and follow the instructions
    • Save the bot token (format: 123456789:ABCdefGHIjklMNOpqrsTUVwxyz)
  2. Get Chat ID:

    • Add your bot to the target chat/group
    • Send any message in the chat
    • Visit: https://api.telegram.org/bot<YOUR_BOT_TOKEN>/getUpdates
    • Find the chat.id in the response (for groups, it starts with -100)
  3. Set Environment Variables:

    export TG_TOKEN=123456789:ABCdefGHIjklMNOpqrsTUVwxyz
    export TG_CHAT_ID=-1001234567890

Usage

Configuration

Add the action to your Nexrender job. You can use environment variables (recommended) or specify parameters directly:

Using environment variables (recommended):

{
  "template": {
    "src": "file:///path/project.aep",
    "composition": "main"
  },
  "actions": {
    "prerender": [
      {
        "module": "./nexrender-action-telegram-message",
        "text": "Spinning up render..."
      }
    ],
    "postrender": [
      {
        "module": "./nexrender-action-telegram-message",
        "text": "Render completed successfully!"
      }
    ],
    "error": [
      {
        "module": "./nexrender-action-telegram-message"
      }
    ]
  }
}

Or specify parameters directly:

{
  "actions": {
    "prerender": [
      {
        "module": "./nexrender-action-telegram-message",
        "botToken": "${env.TG_TOKEN}",
        "chatId": "${env.TG_CHAT_ID}",
        "text": "Spinning up render..."
      }
    ]
  }
}

Module Path Options

The module field can be:

  • Local path: "./nexrender-action-telegram-message"
  • Global package: "nexrender-action-telegram-message"
  • Absolute path: "/path/to/nexrender-action-telegram-message"

Message Format

The action sends beautifully formatted messages with job details:

  • Prerender: 🚀 Render Started
  • Postrender: ✅ Render Finished
  • Error: ❌ Render Failed

Each message includes:

  • Event type with emoji and bold header
  • Job ID and composition name
  • Project filename (clean display)
  • Output filename (for postrender)
  • Error details (for error events)
  • Custom text (if provided)

Example Messages

Prerender:

🚀 *Render Started*

*Job Details:*
• *Job ID:* `job-12345`
• *Composition:* `main`
• *Project:* `project.aep`

🚀 Starting render job...

Postrender:

✅ *Render Finished*

*Job Details:*
• *Job ID:* `job-12345`
• *Composition:* `main`
• *Project:* `project.aep`
• *Output:* `video.mp4`

✅ Render completed successfully!

Error:

❌ *Render Failed*

*Job Details:*
• *Job ID:* `job-12345`
• *Composition:* `main`
• *Project:* `project.aep`
• *Error:* `After Effects crashed unexpectedly`

🚨 Render failed - check logs immediately

Configuration Options

| Field | Type | Required | Description | | ---------- | ------ | -------- | ---------------------- | | botToken | string | Yes* | Telegram bot token | | chatId | string | Yes* | Telegram chat/group ID | | text | string | No | Custom message text |

*Required if not set via environment variables

Error Handling

  • Missing botToken or chatId throws a clear error
  • Telegram API errors are logged but don't fail the render job
  • Network errors are handled gracefully

Troubleshooting

Common Issues

  1. "Telegram botToken or chatId missing"

    • Check environment variables are set correctly
    • Verify bot token format: 123456789:ABCdefGHIjklMNOpqrsTUVwxyz
    • Ensure chat ID is correct (groups start with -100)
  2. "Telegram API 403: Forbidden"

    • Bot not added to the chat/group
    • Bot doesn't have permission to send messages
  3. "Telegram API 400: Bad Request"

    • Invalid chat ID format
    • Bot token is incorrect

License

MIT License - see LICENSE file for details.

Enjoy