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

directus-extension-telegram-message-operation

v1.0.2

Published

Custom operation for sending Telegram Messages

Readme

📩 Directus Telegram Message Sender (Flow Operation)

Send messages to any Telegram user or group using this custom operation inside your Directus Flows.

Developed by UNCW3B Software — your partner in custom dApps, AI SaaS, and web automation solutions.


🚀 Features

  • 📡 Send messages to Telegram users or groups
  • 🔧 Flow-friendly configuration (Bot Token, Chat ID, Message)
  • 🧩 Fully compatible with Directus Flows
  • 👨‍💻 No coding knowledge required

🧠 How It Works

  1. This extension adds a new Flow Operation inside Directus called Send Telegram Message.
  2. In your flow, you configure:
    • Your Telegram Bot Token
    • Target Chat ID or Group ID
    • The Message Content
  3. When the flow is triggered, your message will be sent via Telegram Bot API.

🛠️ Installation

npm install directus-extension-telegram-message-operation

or

npx create-directus-extension
# Or clone this repo into /extensions/directus-extension-telegram-message-operation

Make sure your .env includes:

EXTENSIONS_PATH=./extensions

Then restart Directus:

npx directus start

🔐 Create Your Telegram Bot

  1. Open Telegram and search for @BotFather
  2. Type /newbot and follow the instructions
  3. After naming your bot, you'll receive a Bot Token like:
123456789:ABC-DEF1234ghIkl-zyx57W2v1u123ew11

👥 How to Find Chat ID or Group ID

🔸 Get Personal Chat ID

  1. Start a conversation with your bot
  2. Open this URL in browser:
https://api.telegram.org/bot<YOUR_TOKEN>/getUpdates
  1. Look for "chat":{"id":12345678...}

🔸 Get Group Chat ID

  1. Add your bot to a group
  2. Send a message in the group
  3. Then again visit:
https://api.telegram.org/bot<YOUR_TOKEN>/getUpdates

Group IDs look like: -100xxxxxxxxxx


⚙️ Using the Operation in Directus

  1. Go to Flows > Create Flow
  2. Select a trigger (e.g. item created)
  3. Add operation: Send Telegram Message
  4. Fill in:
    • 🔐 Bot Token
    • 🆔 Chat ID
    • 💬 Message

📤 Output

Success:

{
  "status": "success",
  "sent_to": "123456789",
  "message": "Hello from Directus!"
}

Error:

{
  "status": "error",
  "error": "Unauthorized"
}

🧩 Extension Details

  • ID: send-telegram-message
  • Type: operation
  • Host: api
  • Dependencies: axios

📁 File structure:

extensions/
    └── directus-extension-telegram-message-operation/
        ├── api.js
        ├── app.js
        └── package.json

🤝 Need Help?

Contact @cryptoraichu on:


Built with ❤️ by UNCW3B Software