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

@rzkytmgr/tele-notifier

v1.0.0

Published

mini telegram notifier extract sendMessage, sendPhoto, sendAudio, sendDocument API from telegram main API documentation

Downloads

2

Readme

Tele Notifier

Tele notifier is mini Telegram API made with Javascript and aims to make it easier to provide information when monitoring automation software using Telegram.

Installation

First, you must install it before you import it to your project. Run this command in your terminal

$ npm install --save @rzkytmgr/tele-notifier

Usage

Getting started with example code below

const TeleNotifier = require('@rzkytmgr/tele-notifier');

(async function() {
    
    // extract TELEGRAM_BOT_TOKEN adn CLIENT_ID from the .env file
    const { TELEGRAM_BOT_TOKEN, CLIENT_ID } = process.env;
    
    const Notifier = new TeleNotifier(TELEGRAM_BOT_TOKEN, CLIENT_ID);
    
    await Notifier.sendMessage('Hello, World!');
    
})();

Note : Make your own .env file in your project directory, you can see .env.example for reference.

API

sendMessage

TeleNotifier.sendMessage(textMessage, client = null)

  • textMessage <string> (required) fill it with a message what you want to send to your client.
  • client <string> (optional) fill it with new client id if you want to change the recipient.

e.g :

const Notifier = new TelegramNotifier(TELEGRAM_BOT_TOKEN, CLIENT_ID);

Notifier.sendMessage("Hello, World!")
	.then(res => console.log(res));

sendPhoto

TeleNotifier.sendPhoto(photoUrl, caption = null, client = null)

  • photoUrl <string> (required) fill it with valid url with valid image extension.
  • caption <string> (optional) fill it with text about image you sent.
  • client <string> <optional> fill it with new client id if you want to change the recipient.

e.g :

const Notifier = new TelegramNotifier(TELEGRAM_BOT_TOKEN, CLIENT_ID);

const PHOTO_URL = 'https://i.pinimg.com/236x/75/89/b6/7589b6ac4507747d19a84e96593e6d2e.jpg'

Notifier.sendPhoto(PHOTO_URL, 'what?')
	.then(res => console.log(res));

sendAudio

TeleNotifier.sendAudio(audioUrl, caption = null, client = null)

  • audioUrl <string> (required) fill it with valid url with valid audio extension.
  • caption <string> (optional) fill it with text about audio you sent.
  • client <string> <optional> fill it with new client id if you want to change the recipient.

e.g :

const Notifier = new TelegramNotifier(TELEGRAM_BOT_TOKEN, CLIENT_ID);

const AUDIO_URL = 'https://example.com/Titanic-2-Theme-Song.mp3'

Notifier.sendAudio(AUDIO_URL, 'You should listen to this music, i love this')
	.then(res => console.log(res));

sendDocument

TeleNotifier.sendDocument(documentUrl, caption = null, thumbnail = null, client = null)

  • documentUrl <string> (required) fill it with valid url with valid document extension (also can send image or music through this method).
  • caption <string> (optional) fill it with text about document you sent.
  • thumbnail <string> (optional) fill it with valid image url as a thumbnail
  • client <string> <optional> fill it with new client id if you want to change the recipient.

e.g :

const Notifier = new TelegramNotifier(TELEGRAM_BOT_TOKEN, CLIENT_ID);

const DOCUMENT_URL = 'https://example.com/how-to-be-handsome.pdf'
const THUMBNAIL_URL = 'https://example.com/handsome-woman.jpeg'

Notifier.sendAudio(DOCUMENT_URL, 'You should listen to this music, i love this', THUMBNAIL_URL)
	.then(res => console.log(res));

Troubleshooting

Feel free to create an Issue , let people solve the same problem.

Regards,

@rzkytmgr