After scrolling through r/AmITheAsshole on Reddit, then repost accounts on Instagram, I realised that endless scroll on social media led me to exceed my daily limit of tea. I then decided to only read the most scalding cup of tea for my daily entertainment, instead lukewarm tea by the gallons.
I determined that how over-the-top the drama is could be represented by its number of upvotes, and scraped the top 3 post contestants, as well as the top 3 spiciest takes with Reddit’s API. To avoid the endless scroll on social media platforms, the posts were sent to me via a Telegram bot.
To keep things SFW on this blog, I will be demo-ing with r/aww instead.
Each post is sent as one message, as combining all three posts and their comments in one message would exceed Telegram’s message length limit of 4096 latin characters. Even if the message length limit did not exist, compiling all the content in one message would make it too wordy and difficult to digest.
Media, such as images and video, are sent as via separate message.
Reddit’s interactive features, such as polls, are not accessible through Telegram. However, the comments, which are hidden on Reddit before participating in the poll, are visible to lurkers on Telegram.
I initially attempted to use Markdown notation to process the Telegram message contents, but encountered inconsistencies between Markdown notation and Telegram’s flavour of Markdown. To mitigate this, I attempted both parse_mode='Markdown'
and parse_mode='MarkdownV2'
, both of which did not address the syntax inconsistencies.
This error was also encountered by other users, and I avoided the error by using HTML parsing instead. This was to avoid syntax confusion when writing future posts.