
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
node-red-contrib-line-messaging-api
Advanced tools
Node-RED nodes for LINE Messaging API integration. Build LINE Bots easily with visual programming.
Node-RED nodes for LINE Messaging API integration.
Build LINE Bots easily with Node-RED's visual programming interface.
This package provides Node-RED nodes for integrating with LINE Messaging API, allowing you to create LINE Bots using Node-RED's visual flow editor. Create webhooks, send messages, and handle LINE Bot events with simple drag-and-drop nodes.
Run the following command in the root directory of your Node-RED install:
npm install node-red-contrib-line-messaging-api
Or using Node-RED's Palette Manager:
The configuration node stores your LINE Bot credentials (Channel Secret and Channel Access Token). This background node isn't displayed in the editor but is accessible through the settings UI of Reply and Push nodes.
Created LINE Bot configurations can be shared across multiple Reply and Push nodes.
/path
and register the Webhook URL (your hostname + path) in the LINE Developers console for your Messaging API.msg.payload
between the Webhook and ReplyMessage nodes to send various message types. Use plain text strings for text messages, or LINE-defined message objects for rich messages.Send push messages by setting text in msg.payload
to send text messages.
Send push messages with user mentions using Text Message v2 by setting msg.payload
with {placeholder}
text and configuring msg.substitution
.
Welcome, {user1}! {laugh}\n{everyone} There is a newcomer!
{"user1": {"type": "mention", "mentionee": {"type": "user", "userId": "Uxxxxxxxxxxxx"}},"laugh": {"type": "emoji","productId": "670e0cce840a8236ddd4ee4c","emojiId": "002"},"everyone": {"type": "mention","mentionee": {"type": "all"}}}
Send custom messages by setting arrays or message objects in msg.payload
.
msg.payload = [
{
type: "text",
text: "hogehoge",
},
{
type: "image",
originalContentUrl: 'https://i.gyazo.com/e772c3b48a07716226f7184d7f417cda.png',
previewImageUrl: 'https://i.gyazo.com/e772c3b48a07716226f7184d7f417cda.png'
}
]
return msg;
Send messages to all bot friends.
Display loading indicators to users.
https://developers.line.biz/en/reference/messaging-api/#display-a-loading-indicator
Retrieve user profile information. https://developers.line.biz/en/reference/messaging-api/#get-profile
Retrieve bot information. https://developers.line.biz/en/reference/messaging-api/#get-bot-info
Node Type | Description |
---|---|
Webhook | Receives webhooks from LINE platform |
Reply Message | Sends reply messages using reply tokens |
Push Message | Sends push messages to specific users |
Broadcast Message | Sends messages to all bot friends |
Loading | Displays loading indicators |
Get Profile | Retrieves user profile information |
Get Bot Info | Retrieves bot information |
Limit | Checks message quota limits |
LINE Bot Config | Stores bot credentials (background node) |
Pull requests and bug reports are welcome.
This project is licensed under the Apache 2.0 license.
Created and maintained by n0bisuke.
FAQs
Node-RED nodes for LINE Messaging API integration. Build LINE Bots easily with visual programming.
The npm package node-red-contrib-line-messaging-api receives a total of 34 weekly downloads. As such, node-red-contrib-line-messaging-api popularity was classified as not popular.
We found that node-red-contrib-line-messaging-api demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.