instant-view

Telegram's instant view API: Element <img> is not supported in <p>

℡╲_俬逩灬. 提交于 2020-05-29 10:14:05
问题 I have problem when trying to create my Telegram's Instant View template, with this error: Element <img> is not supported in <p>: <img src="mysrc" /> So, I decided to replace tag <p> if has <img> tag with <figure> tag @replace_tag(<figure>): $body//p//img But the result is not showing the image. FYI, the <img> doesn't have attributes except src . Sample code: <p><img src="mysrc"/></p> I have no idea, please help me 回答1: The problem with your code is it replaces the <img> . Like what you've

Extract, create and append using xpath and telegram instant view

瘦欲@ 提交于 2020-03-23 12:02:21
问题 <iframe src="https://expmle.com/subdirectory/sample_title" /> How can I create and append below <a> tag from above code using XPath and Telegram Instant view functions? <a href="https://expmle.com/subdirectory/sample_title">sample_title</a> I want to extract whole src and last part of that and use of them to create <a> tag. Any suggestions would be very appreciated :) 回答1: This should work correctly. <a>: //iframe # Find iframe and convert it to <a> @set_attr(href, ./@src) # Set href

Is there any way to stop Telegram from showing pages from my site as Instant View version?

不羁岁月 提交于 2019-12-11 09:08:23
问题 I run a blog and distribute my posts in a Telegram channel. One day, I got surprised that links started showing as "Instant View" versions, since I never managed to support this technology (and, tbh, I don't like it either). Later, I discovered that readers that I don't know submitted IV templates to Telegram, and eventually one of them was approved. I searched for any way to stop Telegram converting my posts into IV version, without success. Is there any (a meta tag, a form, whatever) to ask