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 - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

2

package.json
{
"name": "remotepn",
"version": "1.0.5",
"version": "1.0.6",
"description": "",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",

# 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.
Looking for a way to prompt users for a string or OTP while running a server bash script or scheduled server code? Look no further than Remote Prompt Notification! This npm package sends a Telegram notification where users can respond, and the answer will be received by your script. Plus, it supports thumbs-up 👍 and thumbs-down 👎 emojis to output a "Y" or "N" string for easy interaction.
- Lightweight (less than 10kb)
- No depedency
- Use Telegram API with native node fetch
- Zero external depedencies
- Uses Telegram APIs with native node fetch
# How to use it
1. Create a BOT with bothfather and take note of the TOKEN
1. Create a BOT on Telegram with Bothfather and take note of the bot TOKEN
2. Start a chat with your bot on Telegram (Important in order to allow the BOT to send messages to you)
3. Retrieve your Telegram User ID in telegram by starting a chat with `@userinfobot` you will receive your user id number (eg. 101111333)
2. Get your user ID in telegram by adding the bot @userinfobot you will receive your user id number (eg. 101111333)
## Bash / Shell
Command:
```bash

@@ -23,2 +23,4 @@ npx remotepn --telegramToken=6953209111:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA --telegramUser=101111333 --message="How are you?"

Output: Message answer string or "Y"/"N" in case of thumbs-up or thumbs-down reaction.
## Javascript / Typescript

@@ -33,2 +35,3 @@

const answer = await client.prompt("Hello World");
console.log(answer); // Message answer string or "Y"/"N" in case of thumbs-up or thumbs-down reaction.
```

@@ -38,2 +41,2 @@

You can either answer the message by long pressing the message and "Answer" or use a reaction
You have to specifically answer the message, not just sending a message to the bot as an answer. Or you can use thumbs-up or thumbs-down reaction.
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