Socket
Socket
Sign inDemoInstall

remotepn

Package Overview
Dependencies
0
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

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
Maintainers
1
Created
Weekly downloads
 

Readme

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

Create a BOT with bothfather and take note of the TOKEN

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

Bash / Shell

npx remotepn prompt --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");

FAQs

Last updated on 09 Apr 2024

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc