Skip to main content
Glama

mcp-google-sheets

get-chat-message.ts1.04 kB
import { microsoftTeamsAuth } from '../../'; import { createAction, Property } from '@activepieces/pieces-framework'; import { Client } from '@microsoft/microsoft-graph-client'; import { microsoftTeamsCommon } from '../common'; import { createGraphClient, withGraphRetry } from '../common/graph'; export const getChatMessageAction = createAction({ auth: microsoftTeamsAuth, name: 'microsoft_teams_get_chat_message', displayName: 'Get Chat Message', description: 'Fetch a specific chat message by chat and message ID.', props: { chatId: microsoftTeamsCommon.chatId, messageId: Property.ShortText({ displayName: 'Message ID', required: true, description: 'The ID of the message to retrieve.', }), }, async run(context) { const { chatId, messageId } = context.propsValue; const client = createGraphClient(context.auth.access_token); // https://learn.microsoft.com/graph/api/chatmessage-get?view=graph-rest-1.0 return await withGraphRetry(() => client.api(`/chats/${chatId}/messages/${messageId}`).get()); }, });

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/activepieces/activepieces'

If you have feedback or need assistance with the MCP directory API, please join our Discord server