🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@robinpath/teams

Package Overview
Dependencies
Maintainers
4
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@robinpath/teams

Teams module for RobinPath.

npmnpm
Version
0.1.1
Version published
Weekly downloads
8
-27.27%
Maintainers
4
Weekly downloads
 
Created
Source

@robinpath/teams

Teams module for RobinPath.

Category Functions Auth License

Why use this module?

The teams module lets you:

  • Send a message to a Teams channel.
  • Send a message in a 1:1 or group chat.
  • Reply to a message in a channel.
  • List all teams the user has joined.
  • List channels in a team.

All functions are callable directly from RobinPath scripts with a simple, consistent API.

Installation

npm install @robinpath/teams

Quick Start

1. Set up credentials

teams.setToken "eyJ0xxx"

2. Send a message to a Teams channel.

teams.sendChannel "team-id" "channel-id" "Hello team!"

Available Functions

FunctionDescription
teams.setTokenSet the Microsoft Graph API access token.
teams.sendChannelSend a message to a Teams channel.
teams.sendChatSend a message in a 1:1 or group chat.
teams.replyToMessageReply to a message in a channel.
teams.listTeamsList all teams the user has joined.
teams.listChannelsList channels in a team.
teams.getMessagesGet messages from a channel.
teams.createChannelCreate a new channel in a team.
teams.listChatsList all chats for the current user.
teams.sendWebhookSend a message via an incoming webhook URL.

Examples

Send a message to a Teams channel.

teams.sendChannel "team-id" "channel-id" "Hello team!"

Send a message in a 1:1 or group chat.

teams.sendChat "chat-id" "Hey there!"

Reply to a message in a channel.

teams.replyToMessage "team-id" "channel-id" "msg-id" "Thanks!"

Integration with RobinPath

import { RobinPath } from "@wiredwp/robinpath";
import Module from "@robinpath/teams";

const rp = new RobinPath();
rp.registerModule(Module.name, Module.functions);
rp.registerModuleMeta(Module.name, Module.functionMetadata);

const result = await rp.executeScript(`
  teams.setToken "eyJ0xxx"
  teams.sendChannel "team-id" "channel-id" "Hello team!"
`);

Full API Reference

See MODULE.md for complete documentation including all parameters, return types, error handling, and advanced examples.

License

MIT

Keywords

teams

FAQs

Package last updated on 16 Mar 2026

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