How to use the puregram.Markdown.parseMode function in puregram

To help you get started, we’ve selected a few puregram examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github nitreojs / puregram / docs / examples / markdown.js View on Github external
oneLine`
      Some ${Markdown.bold('epic')} ${Markdown.italic('markdown')}
      ${Markdown.code('right')} ${Markdown.url('there', 'example.com')}!
    `,
    {
      /**
       * There are 3 ways to pass Markdown or HTML as a parameter.
       * 
       * First is to pass class into parse_mode.
       */
      parse_mode: Markdown,

      /**
       * Second is to pass .parseMode to get class parse mode
       */
      parse_mode: Markdown.parseMode,

      /**
       * Third is to pass a string
       */
      parse_mode: 'Markdown',
    },
  );
});