soumyadeepdas/TbhRichBotPublic · Community Store Listing
Rich Message Demo [TBH]
17 commands0 envUpdated 5d agoCreated Jul 16, 2026
commands/_richBigDocs.js
javascript · 295 lines · click line # to share
1/**#command2name: /richBigDocs3answer: 4keyboard: 5parse_mode: 6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12const html =13 "<h1>🎬 Blade Runner</h1>" +14 "<p>" +15 "<b>Screenplay by Hampton Fancher & David Peoples</b><br/>" +16 "<i>February 23, 1981</i>" +17 "</p>" +18 "<blockquote>" +19 "All those moments will be lost in time — like tears in rain." +20 "<cite>Roy Batty</cite>" +21 "</blockquote>" +22 "<p>" +23 "This page demonstrates Telegram's long-form Rich Message rendering. " +24 "Large documents automatically reveal a <b>Show More</b> button when the content exceeds the visible limit — " +25 "no extra code required from the developer." +26 "</p>" +27 "<hr/>" +28 "<h3>📑 Navigation</h3>" +29 "<ul>" +30 "<li><a href='#overview'>Story Overview</a></li>" +31 "<li><a href='#characters'>Character Profiles</a></li>" +32 "<li><a href='#act1'>Act I — The Test</a></li>" +33 "<li><a href='#act2'>Act II — The Hunt</a></li>" +34 "<li><a href='#act3'>Act III — The Rooftop</a></li>" +35 "<li><a href='#monologue'>Tears in Rain</a></li>" +36 "<li><a href='#production'>Production Notes</a></li>" +37 "<li><a href='#analysis'>Extended Analysis</a></li>" +38 "<li><a href='#references'>References</a></li>" +39 "</ul>" +40 "<hr/>" +41 "<a name='overview'></a>" +42 "<h2>🌆 Story Overview</h2>" +43 "<p>" +44 "Los Angeles, 2019. The Tyrell Corporation has engineered genetically perfect artificial humans — " +45 "called <b>replicants</b> — for dangerous off-world labor. " +46 "Six Nexus-6 replicants escape the colonies, slaughter twenty-three people, and return to Earth." +47 "</p>" +48 "<p>" +49 "The city is vast, decaying, and perpetually dark. Giant corporate blimps drift between skyscrapers, " +50 "broadcasting emigration propaganda. Rain never seems to stop." +51 "</p>" +52 "<p>" +53 "Former Blade Runner <b>Rick Deckard</b> is pulled out of retirement and assigned to find them. " +54 "What follows is not a simple chase. It becomes something far more uncomfortable — " +55 "a confrontation with what it means to be alive." +56 "</p>" +57 "<hr/>" +58 "<a name='characters'></a>" +59 "<h2>👥 Character Profiles</h2>" +60 "<table bordered>" +61 "<tr>" +62 "<th>Character</th>" +63 "<th>Type</th>" +64 "<th>Role</th>" +65 "</tr>" +66 "<tr>" +67 "<td><b>Rick Deckard</b></td>" +68 "<td>Human <i>(possibly)</i></td>" +69 "<td>Retired Blade Runner reactivated to hunt the escaped replicants.</td>" +70 "</tr>" +71 "<tr>" +72 "<td><b>Roy Batty</b></td>" +73 "<td>Nexus-6 Replicant</td>" +74 "<td>Combat model. Leader of the escaped group. Brilliantly dangerous.</td>" +75 "</tr>" +76 "<tr>" +77 "<td><b>Rachael</b></td>" +78 "<td>Experimental Replicant</td>" +79 "<td>Tyrell's prototype. Implanted with memories. Believes she is human.</td>" +80 "</tr>" +81 "<tr>" +82 "<td><b>Leon</b></td>" +83 "<td>Nexus-6 Replicant</td>" +84 "<td>Physically powerful. Emotionally volatile. Fails the Voight-Kampff test.</td>" +85 "</tr>" +86 "<tr>" +87 "<td><b>Gaff</b></td>" +88 "<td>Human</td>" +89 "<td>Enigmatic police officer. Leaves origami figures. Knows more than he says.</td>" +90 "</tr>" +91 "<tr>" +92 "<td><b>Holden</b></td>" +93 "<td>Human</td>" +94 "<td>Blade Runner shot by Leon during a routine Voight-Kampff test.</td>" +95 "</tr>" +96 "</table>" +97 "<details>" +98 "<summary>Expand Character Notes</summary>" +99 "<p>" +100 "<b>Deckard</b> is worn down, reluctant, and ultimately transformed. " +101 "He begins the story as someone who follows orders without question " +102 "and ends it running from the system he served." +103 "</p>" +104 "<p>" +105 "<b>Roy Batty</b> is the story's most complex figure. " +106 "Designed as a killing machine, he becomes its philosopher. " +107 "He has seen wonders no human has witnessed and knows they will die with him." +108 "</p>" +109 "<p>" +110 "<b>Rachael</b> represents the cruelest expression of the Tyrell Corporation's power — " +111 "a being given false memories of a childhood she never had, " +112 "robbed of even the knowledge of what she is." +113 "</p>" +114 "<p>" +115 "<b>Gaff</b> is perhaps the most deliberately mysterious character. " +116 "His origami figures — a chicken, a man, a unicorn — " +117 "suggest he knows things about Deckard that Deckard does not know about himself." +118 "</p>" +119 "</details>" +120 "<hr/>" +121 "<a name='act1'></a>" +122 "<h2>🎭 Act I — The Test</h2>" +123 "<p>" +124 "The film opens inside the Tyrell Corporation. Blade Runner Holden is administering a " +125 "<b>Voight-Kampff</b> test <a href='#ref1'>[1]</a> to a new employee named Leon. " +126 "The test measures involuntary physiological responses to emotionally loaded questions, " +127 "designed to expose the absence of genuine empathy." +128 "</p>" +129 "<blockquote>" +130 "You're in a desert, walking along in the sand, when all of a sudden you look down and see a tortoise crawling toward you. You reach down and flip the tortoise over on its back. The tortoise lays on its back, its belly baking in the hot sun, beating its legs trying to turn itself over. But it can't. Not without your help. But you're not helping. Why is that, Leon?" +131 "<cite>Holden</cite>" +132 "</blockquote>" +133 "<p>" +134 "Leon does not answer. He shoots Holden instead." +135 "</p>" +136 "<p>" +137 "The scene is deceptively simple but philosophically loaded. " +138 "The tortoise question is designed not to test knowledge of tortoises " +139 "but to provoke an emotional response — compassion, guilt, discomfort. " +140 "Leon fails not because he lacks the answer, but because he is enraged by the implication." +141 "</p>" +142 "<hr/>" +143 "<a name='act2'></a>" +144 "<h2>🔍 Act II — The Hunt</h2>" +145 "<p>" +146 "Deckard visits the Tyrell Corporation to test the Voight-Kampff machine against a known replicant. " +147 "He is given Rachael as the subject. The test takes over a hundred questions — " +148 "far more than normal. Deckard eventually tells Tyrell privately that Rachael is a replicant." +149 "</p>" +150 "<p>" +151 "Tyrell reveals something extraordinary. Rachael has been given <i>implanted memories</i> — " +152 "constructed recollections of a childhood she never lived. " +153 "She does not know what she is. These memories make her more stable, more human, " +154 "more difficult to detect — and ultimately more tragic." +155 "</p>" +156 "<blockquote>" +157 "Commerce is our goal here at Tyrell. More human than human is our motto." +158 "<cite>Dr. Eldon Tyrell</cite>" +159 "</blockquote>" +160 "<p>" +161 "Deckard tracks and retires the replicants one by one. " +162 "Each encounter is brutal and intimate. " +163 "The replicants are not mindless machines — they are desperate, frightened beings " +164 "fighting for time they were never given." +165 "</p>" +166 "<hr/>" +167 "<a name='act3'></a>" +168 "<h2>🔍 Act III — The Rooftop</h2>" +169 "<p>" +170 "The final confrontation between Deckard and Roy Batty takes place across the rooftops of a decaying building in the rain. " +171 "Batty is dying — his four-year lifespan expiring — but he pursues Deckard with terrifying strength." +172 "</p>" +173 "<p>" +174 "Then, at the moment Deckard is about to fall, Batty catches him. " +175 "Saves him. And sits down quietly to die." +176 "</p>" +177 "<p>" +178 "A white dove flies from Batty's hands into the sky as his eyes go still." +179 "</p>" +180 "<hr/>" +181 "<a name='monologue'></a>" +182 "<h2>🕊 Tears in Rain — The Final Monologue</h2>" +183 "<blockquote>" +184 "I've seen things you people wouldn't believe. " +185 "Attack ships on fire off the shoulder of Orion. " +186 "I watched C-beams glitter in the dark near the Tannhäuser Gate. " +187 "All those moments will be lost in time — like tears in rain. " +188 "Time to die." +189 "<cite>Roy Batty</cite>" +190 "</blockquote>" +191 "<p>" +192 "These lines were largely improvised by Rutger Hauer on the night of filming. " +193 "The original screenplay had a longer speech. Hauer stripped it down to its essence. " +194 "He later said he wanted Batty to die <i>like a poet.</i>" +195 "</p>" +196 "<p>" +197 "The monologue works because Batty is not lamenting his own death. " +198 "He is lamenting the loss of his experiences — memories that exist nowhere else in the universe " +199 "and will simply cease when he does. " +200 "It is perhaps the most human thing any character in the film says." +201 "</p>" +202 "<hr/>" +203 "<a name='production'></a>" +204 "<h2>🏗 Production Notes</h2>" +205 "<ol>" +206 "<li>Based on Philip K. Dick's 1968 novel <i>Do Androids Dream of Electric Sheep?</i></li>" +207 "<li>Directed by Ridley Scott. Released June 25, 1982.</li>" +208 "<li>Initial box office reception was mixed. Critics were divided.</li>" +209 "<li>The 1992 Director's Cut removed the voice-over and the happy ending — changing the film entirely.</li>" +210 "<li>The 2007 Final Cut is Ridley Scott's definitive version.</li>" +211 "<li>The film's visual language defined the cyberpunk aesthetic for decades.</li>" +212 "<li>Cinematography by Jordan Cronenweth. Production design by Lawrence G. Paull.</li>" +213 "<li>Score by Vangelis — synthesizer-driven, atmospheric, melancholic.</li>" +214 "</ol>" +215 "<hr/>" +216 "<a name='analysis'></a>" +217 "<h2>📖 Extended Analysis</h2>" +218 "<p>" +219 "Blade Runner refuses easy answers. It does not present technology as good or evil. " +220 "It asks what technology reveals about human nature — " +221 "and what happens when the things we build begin to exceed us." +222 "</p>" +223 "<p>" +224 "The Voight-Kampff test assumes empathy is the boundary between human and machine. " +225 "But the film systematically dismantles this assumption. " +226 "Deckard shows little empathy for much of the story. " +227 "Roy Batty, in his final moments, shows profound empathy — for Deckard, for life itself." +228 "</p>" +229 "<p>" +230 "Memory is the film's other obsession. " +231 "If memories can be fabricated, what makes an identity real? " +232 "Rachael's memories are not hers — and yet they shape everything she feels, fears, and desires. " +233 "The film asks whether the origin of a memory changes its validity." +234 "</p>" +235 "<p>" +236 "The unicorn sequence — Deckard's daydream and Gaff's origami unicorn — " +237 "suggests that even Deckard's inner life may be manufactured. " +238 "If Gaff knows what Deckard dreams, perhaps Deckard's dreams were given to him. " +239 "The film never confirms this. It simply leaves the question on the floor." +240 "</p>" +241 "<p>" +242 "The replicants sought their maker not out of rage but out of need. " +243 "They wanted more life. Tyrell could not give it. " +244 "Roy Batty killed him not in triumph but in grief — the grief of a child who discovers " +245 "the parent has no answers." +246 "</p>" +247 "<p>" +248 "These themes — artificial intelligence, manufactured identity, corporate power over life and death — " +249 "have become more relevant with every passing year. " +250 "Blade Runner did not predict the future. It described a feeling — " +251 "the feeling of living in a world built for profit that forgot to ask what it was for." +252 "</p>" +253 "<p>" +254 "This section also demonstrates how Telegram Rich Messages handle long-form content. " +255 "Once the visible limit is reached, Telegram automatically renders a " +256 "<b>Show More</b> expansion button — allowing developers to deliver full articles, " +257 "screenplays, documentation, guides, reports, and analyses " +258 "directly inside chat without any additional implementation." +259 "</p>" +260 "<hr/>" +261 "<a name='references'></a>" +262 "<h2>🔖 References</h2>" +263 "<p>" +264 "Source material <a href='#ref1'>[1]</a> and Nexus-6 specifications <a href='#ref2'>[2]</a>." +265 "</p>" +266 "<tg-reference name='ref1'>" +267 "The Voight-Kampff machine — a fictional empathy-measuring instrument used by Blade Runners " +268 "to distinguish replicants from humans through involuntary physiological response to emotionally provocative questions." +269 "</tg-reference>" +270 "<tg-reference name='ref2'>" +271 "Nexus-6 — the most advanced replicant model engineered by the Tyrell Corporation. " +272 "Physically superior to humans and possessing intelligence at least equal to their creators. " +273 "Built-in lifespan: four years." +274 "</tg-reference>" +275 "<hr/>" +276 "<footer>" +277 "Rich Message Demo · Large Document · Blade Runner Screenplay Analysis · " +278 "Demonstrates: Show More expansion · Navigation anchors · Tables · " +279 "Details blocks · Blockquotes · References · Long-form content rendering" +280 "</footer>";281 282Api.call("editMessageText", {283 chat_id: chat.chatid,284 message_id: update.callback_query.message.message_id,285 rich_message: { html: html },286 reply_markup: {287 inline_keyboard: [288 [289 { text: "« Code", callback_data: "/richCode" },290 { text: "Home", callback_data: "/start" },291 { text: "Ai Streaming »", callback_data: "/richStreaming" }292 ]293 ]294 }295});