telegram-format

Format Telegram message texts with Markdown or HTML

MIT License

Downloads
3.1K
Stars
46

Bot releases are visible (Hide)

telegram-format - v3.1.0 Latest Release

Published by github-actions[bot] 10 months ago

  • feat: Bot API 7.0 e1e7971f4e27430e7c4d99852c63dfd59559ec0d
telegram-format - v3.0.1

Published by github-actions[bot] 11 months ago

  • build: add support for Node.js 12 486352b30cb03c04c091496ab10721f5fb6450c1
  • docs(readme): correct deno documentation link f3bbd1d4e0ae80d928dfe3eec2c222b8b06e8e6b
telegram-format - v3.0.0

Published by github-actions[bot] 11 months ago

This release mainly provides a native TypeScript module for Deno! Check out https://deno.land/x/telegram_format.

BREAKING CHANGE: This release requires ES modules (no more CommonJS) and Node.js 14 or higher.

telegram-format -

Published by EdJoPaTo almost 3 years ago

  • feat: add support for spoiler tag fd89b59
  • fix(markdownv2): escape ) in urls 7cea539
  • chore(npm): drop support for Node.js 10 cd9369c

https://github.com/EdJoPaTo/telegram-format/compare/v2.0.2...v2.1.0

telegram-format -

Published by EdJoPaTo over 3 years ago

  • fix: Markdownv2 character \ is not escaped (#10) de6218b
    thanks to @iamel89 for providing the fix!

https://github.com/EdJoPaTo/telegram-format/compare/v2.0.1...v2.0.2

telegram-format -

Published by EdJoPaTo over 4 years ago

  • fix(MarkdownV2): escape - in escape regex (#1) 7a39701

https://github.com/EdJoPaTo/telegram-format/compare/v2.0.0...v2.0.1

telegram-format -

Published by EdJoPaTo over 4 years ago

Add support for MarkdownV2 (8642303), strikethrough and underline (23cef46) and nested formatting (756ba07)

BREAKING CHANGE: html functions do not escape on their own anymore.
Use format.bold(format.escape(input) instead of format.bold(input) whenever you need.
This way you can nest functions like format.bold(format.italic(input)) without escaping the format of the inner one making it useless.

https://github.com/EdJoPaTo/telegram-format/compare/v1.2.1...v2.0.0

telegram-format -

Published by EdJoPaTo almost 5 years ago

  • fix: escape monospace bad letters 23e4d42
  • fix(markdown): replace not only first bad char fc02923

https://github.com/EdJoPaTo/telegram-format/compare/v1.2.0...v1.2.1

telegram-format -

Published by EdJoPaTo almost 5 years ago

  • feat: add monospace 465f08a
  • feat: add userMention 782c957

https://github.com/EdJoPaTo/telegram-format/compare/v1.1.0...v1.2.0

telegram-format -

Published by EdJoPaTo about 5 years ago

telegram-format -

Published by EdJoPaTo about 5 years ago

Initial release