Repository navigation
Send to Telegraph
English | 中文
The Telegraph button on the details page sends the gallery's link to an eh2telegraph service you host, which turns it into a Telegraph page and tells you the result on Telegram.
The button is on the details pages of E-Hentai, ExHentai, nhentai, wnacg and JM. wnacg sends the photos-index-aid link on the current domain and JM the chapter link; these two need eh2telegraph's archive mode.
The app talks to the service over HTTP. Upstream eh2telegraph is a Telegram bot only and has no such interface, so it has to be added or taken from a version that has it:
-
GET /health: HTTP 200 while the service is up; no token needed. -
POST /sync: headerAuthorization: Bearer <token>, body{"url": "<gallery link>"}; when accepted, HTTP 202 with{"accepted": true, "url": "<normalized link>"}; otherwise an error status, optionally with{"error": "<reason>"}.
Setting → Advanced → Telegraph bot (eh2telegraph):
| Setting | What goes there |
|---|---|
| Server address | e.g. https://eh2telegraph.example.com. Without a scheme, http:// is added; a trailing / is removed. |
| Access token | The token the service expects; hidden while typing. |
With both filled in, Test connection requests /health and shows "Server reachable" or "Server unreachable". /health does not check the token, so a wrong token only shows when sending.
The address and token are cloud-synced (sync type "Telegraph bot").
- The button is grey until the service is set up; long-pressing it opens the settings above.
- On success: "Sent to the Telegraph bot; the result will arrive on Telegram", followed by the link the service accepted.
- On failure: "Failed to send to the Telegraph bot", followed by the service's reason, the HTTP status or the network error.