How to use the puregram.HTML.italic 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
telegram.updates.hear(/^html$/i, (context) => {
  return context.send(
    oneLine`
      Same ${HTML.bold('epic')} ${HTML.italic('markdown')}
      ${HTML.code('but now')} ${HTML.url('using HTML', 'example.com')}!
    `,
    { parse_mode: HTML },
  );
})