Better Payment 0.11.1 API
    Preparing search index...

    Type Alias NotificationChannel

    NotificationChannel: ChannelBase & (
        | { type: "slack"; webhookUrl: string }
        | { type: "discord"; webhookUrl: string }
        | { botToken: string; chatId: string | number; type: "telegram" }
        | {
            name?: string;
            send: (message: string, event: NotificationEvent) => Promise<void> | void;
            type: "custom";
        }
    )

    Type Declaration

    • { type: "slack"; webhookUrl: string }
    • { type: "discord"; webhookUrl: string }
    • { botToken: string; chatId: string | number; type: "telegram" }
      • botToken: string

        The token BotFather gave you

      • chatId: string | number

        The chat, group or channel id (-100...) or @channelname

      • type: "telegram"
    • {
          name?: string;
          send: (message: string, event: NotificationEvent) => Promise<void> | void;
          type: "custom";
      }
      • Optionalname?: string

        A name for logs and onError. Default: 'custom'

      • send: (message: string, event: NotificationEvent) => Promise<void> | void

        Sends the message anywhere: email, SMS, a queue...

      • type: "custom"