• Plugin that sends Telegram messages when Eleventy starts/finishes building your site.

    Parameters

    • eleventyConfig: EleventyConfig
    • Optional options: {
          chatId?: string | number;
          textAfterBuild?: string;
          textBeforeBuild?: string;
          token?: string;
      }

      Plugin options.

      • Optional chatId?: string | number

        Telegram chat ID.

        Remarks

        The Telegram chat ID is negative for a group chat, positive for a username chat.

      • Optional textAfterBuild?: string

        Text message to send when Eleventy finishes building your site.

      • Optional textBeforeBuild?: string

        Text message to send when Eleventy starts building your site.

      • Optional token?: string

        Telegram bot token.

        Remarks

        If you forgot the API token of a Telegram bot you created, you can retrieve it at any time using BotFather. Just go to:

        BotFather > bot list > API token
        

    Returns void

    Remarks

    The Telegram sendMessage API allows text messages of 1-4096 characters (after entities parsing).