Socket
Socket
Sign inDemoInstall

remotepn

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remotepn

Do you need some user prompt while executing a server bash script or scheduled server code? Remote Prompt Notification is here for you! It sends a Telegram notification, the answer will be received by your script. Also supporting 👍 and 👎 emoji to outp


Version published
Weekly downloads
1
decreased by-88.89%
Maintainers
1
Weekly downloads
 
Created
Source

Remote Prompt Notification

Do you need some user prompt while executing a server bash script or scheduled server code? Remote Prompt Notification is here for you! It sends a Telegram notification, the answer will be received by your script. Also supporting 👍 and 👎 emoji to output a Y or N string.

  • Lightweight (less than 10kb)
  • No depedency
  • Use Telegram API with native node fetch

How to use it

  1. Create a BOT with bothfather and take note of the TOKEN

  2. Get your user ID in telegram by adding the bot @userinfobot you will receive your user id number (eg. 101111333)

Bash / Shell

npx remotepn --telegramToken=6953209111:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA --telegramUser=101111333 --message="How are you?"

Javascript / Typescript

import RemotePN from "remotepn";
const client = new RemotePN({
  telegramToken: "6953209111:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
  telegramUser: 101111333,
});
const answer = await client.prompt("Hello World");

Answering

You can either answer the message by long pressing the message and "Answer" or use a reaction

FAQs

Package last updated on 09 Apr 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc