dcdunkan/telegraph

Created Aug 5, 2022 · View the dcdunkan/telegraph repository page

Telegra.ph API wrapper for JavaScript

Want this for your repo?

Render a free sample of any GitHub repo in seconds.

Visualize your own →

Contributors

2

Lines of Code

22

From

Jan 11, 2022

To

Jul 21, 2022

About dcdunkan/telegraph

Telegraph is a TypeScript wrapper for the Telegraph API, a minimalist publishing platform by Telegram that lets users create richly formatted articles and share them on the web. The library provides a convenient interface for interacting with Telegraph's core features, making it easier to build applications that programmatically create and manage Telegraph articles.

Beyond basic API access, the library includes several developer-friendly enhancements. It supports parsing HTML and Markdown content directly into Telegraph's native Node format, with Markdown converted through HTML as an intermediate step. The library also wraps an undocumented Telegraph endpoint for uploading media files, allowing images and videos to be uploaded alongside articles. Additionally, it provides helper functions and built-in documentation accessible through editor tooltips.

This package is designed for Deno and JavaScript environments, with the source written in TypeScript. It uses the marked library for Markdown parsing and deno-dom for HTML processing. The project is published on JSR and distributed under the MIT license.

Share this video