Modules@robinpath/teams
@robinpath/teams
0.1.0PublicTeams module for RobinPath.
@robinpath/teams
Teams module for RobinPath.
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
| Function | Description |
|---|---|
teams.setToken | Set the Microsoft Graph API access token. |
teams.sendChannel | Send a message to a Teams channel. |
teams.sendChat | Send a message in a 1:1 or group chat. |
teams.replyToMessage | Reply to a message in a channel. |
teams.listTeams | List all teams the user has joined. |
teams.listChannels | List channels in a team. |
teams.getMessages | Get messages from a channel. |
teams.createChannel | Create a new channel in a team. |
teams.listChats | List all chats for the current user. |
teams.sendWebhook | Send 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
@robinpath/slack— Slack module for complementary functionality@robinpath/discord— Discord module for complementary functionality@robinpath/telegram— Telegram module for complementary functionality@robinpath/whatsapp— WhatsApp module for complementary functionality@robinpath/json— JSON module for complementary functionality
License
MIT
Versions (1)
| Version | Tag | Published |
|---|---|---|
| 0.1.0 | latest | yesterday |
Related Modules
communication
0
@robinpath/discord
v0.1.0robinpath
Discord module for RobinPath.
0 downloads
...
communication
0
@robinpath/notification
v0.1.1robinpath
Unified notifications: Slack, Discord, Telegram, and MS Teams via webhooks
0 downloads
...
communication
0
@robinpath/notify
v0.1.1robinpath
Notify module for RobinPath.
0 downloads
...
communication
0
@robinpath/slack
v0.1.0robinpath
Slack Web API and Incoming Webhooks client for messaging, channels, reactions, file uploads, and user management
0 downloads
...
Install
$ robinpath install @robinpath/teams Version0.1.0
LicenseMIT
Unpacked Size5.0 KB
Versions1
Weekly Downloads0
Total Downloads0
Stars0
Last Publishyesterday
Createdyesterday

