📲 Template for display steemit in telegram messenger. "Instantview" mode

in #steemit7 years ago

"Mobile" telegram users have certainly appreciated the convenience of instant view pages in the mobile application Telegram.


Such pages are instantly opened in telegram chat and have already been adapted for easy viewing on the phone. In combination with bots through which you can publish and comment posts - this is almost a ready mobile application at a price of several lines of code! :)

I cite the template below, however, in order for it to work for all globally - the Steemit team (owners of the steemit.com domain) should check my code for security reasons and must publish it according to the instructions: https://instantview.telegram.org/#publishing-templates

Telegram instant view Template Code


Https://github.com/vikxx/golos-steemit-instant-telegram/blob/master/iv


?exists: /html/head/meta[@property="article:published_time"]
body:     //article
title:    $body//h1[1]
subtitle: $title/next-sibling::h2
image_url: $cover/self::img/@src
image_url: $cover/self::figure//img/@src
image_url://head/meta[@property="og:image"]/@content
<span>:  //blockquote[has-class("graf--pullquote")]//strong
<aside>: //blockquote[has-class("graf--pullquote")]
@inline: $body//iframe[starts-with(@src, "/media/")]
@combine(<br>,<br>): $body//pre/next-sibling::pre
@combine(<br>,<br>): $body//blockquote/next-sibling::blockquote
@remove: $body//ul[has-class("shareItems")]
$embed:           $body//div[has-class("graf--mixtapeEmbed")]
$embed_link:      $embed/a
@detach:          $embed_link/strong
@before_el(./..): $embed_link/*
@wrap(<cite>):    $embed_link
<blockquote>:     $embed
@remove: //article/header
@remove: //article/footer
@remove: $body//a[contains(@href,"/adServer.bs")]
@remove: $body//p//*[has-class("graf-dropCap")]//img[has-class("graf-dropCapImage")]
@remove: $body//section[1]//hr
@remove: $body//table
@remove: $body//section[has-class("section--first")]//hr
@remove: $body//section[has-class("section--cover")]/following-sibling::*[1]/self::section//hr
@remove: $body//section[has-class("is-backgrounded")]/following-sibling::*[1]/self::section//hr
@before(<hr>): $body//figure[.//img[number(@data-height) < 30][(number(@data-width) > number(@data-height) * 30)]]
@remove
Sort:  

some english translations to your previous projects from github? I love bots and want to learn how to make them from talented russian guys like you! By the way what is golos.io? looks like a steemit copycat

I almost finished translating my bots into English (about 80% is already done), I have been doing this for a long time, since I try to make the bot menu very understandable for ordinary steemit users. Chatbots are a lot of dialogues, and my poor knowledge of English slows me down)

The second problem is the adaptation of them for the steem standarts, the fact is that there is no service like steem auth on the GOLOSio and I use my own solution. I'm not sure if it's suitable for the Steemit for security reason. On the golos my application is trusted with posting keys, but on steem I'm just a newcomer.

can I help you somehow? can we get in touch in private chat? btw how old are you?

Upvoted & Resteemed for Peer Review.
Thank you for your work :)

Thank you! If there is an instant view, I will have more options for developing

Btw this work is very small, I suggested it on the Golos a month ago. But they do not always hear me)

... sorry to 's-talk' YOU this way friend - ))

i just wanted to say THANK YOU !! - ))
.. you don't say too much when YO come around - ))
BuT .. i hear YOU ... and, i will continue to listen !! - ))

LOVELOVELOVE )))
greb'Z )

Great article buddy! Upvoted

Nice ... visite my post there is an amazing Header Cheat sheep check it out ... !! follow to keep in touch
https://steemit.com/steemit/@royhamada/cheat-sheet-header-gif-welcome-hand-writing-effect-make-you-steems-more-beautiful

Great articel, thanks for sharing gaes

Waiting for Android version.

Do you know if there will be a Steemit app for android anytime soon? That would be fantastic!

Now I'm working on a "telegram" ChatBot. It is now very popular and convenient. More convenient applications!

After all, you do not need to install any apps on the devices - the messenger is already installed by the majority. At the same time, it can be installed on iOS, android, pc, mac or simply in a browser :)

Possibility to read, publish, vote. Do it all manually or automatically. On golosio, many people use my applications, but there the audience is less sophisticated :)

you are legend. ever post are lit , good job keeped going

Congratulations @vikx! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

Award for the number of upvotes

Click on any badge to view your own Board of Honor on SteemitBoard.
For more information about SteemitBoard, click here

If you no longer want to receive notifications, reply to this comment with the word STOP

By upvoting this notification, you can help all Steemit users. Learn how here!