Modules@robinpath/teams

@robinpath/teams

0.1.0Public

Teams module for RobinPath.

@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.

Related Modules

License

MIT

Versions (1)

VersionTagPublished
0.1.0latestyesterday
Install
$ robinpath install @robinpath/teams
Version0.1.0
LicenseMIT
Unpacked Size5.0 KB
Versions1
Weekly Downloads0
Total Downloads0
Stars0
Last Publishyesterday
Createdyesterday