Repository navigation
feat: telegram instant view for instagram and facebook share links - #13
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…&iv= Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
musingfox
force-pushed
the
feat/telegram-instant-view
branch
from
October 19, 2026 10:20
c1d244d to
a7aaee6
Compare
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
<article>body (full caption, every image as a carousel, videos). The<head>is unchanged.GET /?url=<url>&iv=<rhash>wraps Instagram and Facebook share links inhttps://t.me/iv?url=...&rhash=..., which opens with the user's own Instant View template without Telegram's approval. Other links come back as the plain share link, since their previews come from fix services the template cannot cover.ivis ignored withraw=1; a non-hexivis a 400.tg_rhash, which Telegram appends when its Instant View bot fetches the share link, is now cleaned like a tracking parameter (spec updated).docs/telegram-instant-view.ivholds the template; both READMEs describe the setup.No bindings, variables or config changes: the rhash is supplied by the caller.
Test plan
bun run check(unit tests for the article body,&iv=, andtg_rhash)TelegramBot (like TwitterBot)(matched byisCrawler), and 302'd/media/images and videos render in Instant Viewt.me/ivlinks for an Instagram carousel, reel and single image, and a Facebook post and reel, all show text, slideshow and playable video🤖 Generated with Claude Code