Skip to content

⭐️⭐️⭐️ Open-source, self-hosted alternative to Linear and Plane. Project management and issue tracking where teams and AI agents work side by side to plan and ship products.

678 B
Raw Blame
import type { Integration } from '../../types';
import { telegramSend } from './send';

// Telegram: a bot connection. One credential is one bot; two bots are two
// credentials.
export const telegram: Integration = {
  key: 'telegram',
  label: 'Telegram',
  credentialSchema: [
    {
      key: 'botToken',
      label: 'Bot token',
      type: 'secret',
      required: true,
      placeholder: '123456:ABC-DEF...',
      help: 'The token from @BotFather.',
    },
    {
      key: 'defaultChatId',
      label: 'Default chat id',
      type: 'string',
      required: false,
      help: 'Used when the agent does not pass a chatId.',
    },
  ],
  tools: [telegramSend],
};