TG-InstantView

説明

Plugin to trigger Telegram Instant View for all Blog posts.

Principal: it detects Telegram bot and returns special template for posts, to trigger Instant View.

  • No template submitting required.
  • No special links required.
  • Compatable with any cross-posting systems.

Original Telegram InstantView templates registry appears to be dead, my template was not reviewed and submitted in over 1 year. This plugin solves this issue server-side.

My telegram channel with plugin active.

Project sources on Github (please submit issues there).

スクリーンショット

  • InstantView in Telegram mobile channel
  • InstantView opened
  • InstantView opened (gallery)

FAQ

Why not to use original Telegram Instant View templates registry?

Telegram’s InstantView looks abadoned, they do not accept new templates for years.

Why not to use way to build URL via Telegram InstantView Bot?

This works, but it will create ugly long URL. This plugin makes everything clear, like you have template in registry, you may post clear links to posts directly, your frends may do so and so on.

I installed plgun, but i still dont see InstantView on my posts

If you still dont see InstantView on URL’s, check the following:

  • Telegram bot caches parsing result, and Instant View will be triggered for new URL’s for bot. You may prune cache by adding some random parameters like test=123 and change it every time, Telegram bot will request again.
  • Instant View works only on mobile cliens! Do not try to test it desktop clients.

I want to test, how Telegram sees my post via InstantView

To test, how your posts appears for Telegram bot, just add tg-instantview=1 parameter to post URL, Post example.

評価

2026年5月22日
Thanks to author of this plugin, petro64, cause it’s really working solution for Telegram Instant View. If you are (as myself before) using popular caching plugin WP Super Cache, you possibly could have some problems… Finally I switched to W3 Total Cache – everything works fine! And there is some minor problem with small preview snippet (one of the reviewers here mentioned it earlier), but it’s present only on iPhone. Checked Android and Desktop – OK. Solution – manually edit publication, and choose BIG picture format.
2024年11月25日 1 reply
Great plugin! One question: when displaying a post, I have the smallest thumbnail of the post shown. In your example, I see a large full image. What can affect the size of the output image?
4件のレビューをすべて表示

貢献者と開発者

TG-InstantView はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。

貢献者

“TG-InstantView” をあなたの言語に翻訳しましょう。

開発に興味がありますか ?

コードを閲覧するか、SVN リポジトリをチェックするか、開発ログRSS で購読してみてください。

変更履歴

1.6

  • Fixes warning in log, if request does not contain User-Agent header

1.5

  • Fixes issues related with images Lazy-load, that may break IV layout
  • Fixes issues with various plugins (like EWWW Image Optimizer) with SEO and CDN features
  • Add shortcut links to plugins list page
  • Add plugin credits to IV preview

1.4

  • Plugin now provides full set of OpenGraph meta information for post and does not require SEO plugins anymore
  • Add option to show/hide post published date
  • Add option to show/hide post author

1.3

  • Fixes from WordPress review: template html, prefixes, license

1.2

  • Fixes from WordPress review: escaping, prefixes and etc

1.1

  • Fixes for standart templates redirection

1.0

  • Initital version