Skip to main content
Glama

mcp-google-sheets

index.ts1.09 kB
import { HttpMethod, HttpRequest, httpClient, } from '@activepieces/pieces-common'; export type SetWebhookRequest = { ip_address: string; max_connections: number; allowed_updates: string[]; drop_pending_updates: boolean; secret_token: string; }; export const telegramCommons = { getApiUrl: (botToken: string, methodName: string) => { return `https://api.telegram.org/bot${botToken}/${methodName}`; }, subscribeWebhook: async ( botToken: string, webhookUrl: string, overrides?: Partial<SetWebhookRequest> ) => { const request: HttpRequest = { method: HttpMethod.POST, url: `https://api.telegram.org/bot${botToken}/setWebhook`, body: { allowed_updates: [], url: webhookUrl, ...overrides, }, }; await httpClient.sendRequest(request); }, unsubscribeWebhook: async (botToken: string) => { const request: HttpRequest = { method: HttpMethod.GET, url: `https://api.telegram.org/bot${botToken}/deleteWebhook`, }; return await httpClient.sendRequest(request); }, };

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