<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>telegram &amp;mdash; Hey, it&#39;s Bernie!</title>
    <link>https://berniepng.com/tag:telegram</link>
    <description>Building at the intersection of AI, data, and real-world impact. Singapore.</description>
    <pubDate>Mon, 01 Jun 2026 19:21:19 +0000</pubDate>
    <item>
      <title>Built a Telegram Bot to tell me when it rains</title>
      <link>https://berniepng.com/built-a-telegram-bot-to-tell-me-when-it-rains</link>
      <description>&lt;![CDATA[I put Claude Sonnet 4.6 to the test by asking it help me build a Telegram Bot. I&#39;ve always wanted to build a bot like that, and now it&#39;s possible. Yay. First I looked at all the possible real-time datasets on rainfall in Singapore, then zoomed in on the one from data.gov.sg by NEA. So here&#39;s my starting prompt:-&#xA;&#xA;Claude then proceeded to break down the steps I need to build it. Guided me through:&#xA;&#xA;libraries to install&#xA;how to call the NEA API&#xA;how to create a bot on Telegram using @botfather&#xA;how to host my files on AWS Lightsail&#xA;taught me how to secure my files&#xA;helped me tweak the code to incorporate my new requests, like wording changes, logic updates (I wanted the user to be able to ping the bot for on-demand rainchecks vs just being ping&#39;d are scheduled intervals)&#xA;&#xA;The whole experience just took one day and another half a day for tweaks.&#xA;&#xA;Want to check out my bot? The Rain Check Bot [by Bernie]&#xA;&#xA;I&#39;m going to build a transport bot next ...&#xA;&#xA;#telegram #built&#xA;&#xA;]]&gt;</description>
      <content:encoded><![CDATA[<p>I put Claude Sonnet 4.6 to the test by asking it help me build a Telegram Bot. I&#39;ve always wanted to build a bot like that, and now it&#39;s possible. Yay. First I looked at all the possible real-time datasets on rainfall in Singapore, then zoomed in on the one from data.gov.sg by NEA. So here&#39;s my starting prompt:-</p>

<p><code>Hi, I would like to create a telegram bot called theraincheck_bot, which will send a message when there&#39;s rain approaching 30 minutes from the time sent. It will check real-time data from the API from data.gov.sg, NEA&#39;s realtime rainfall data. The country is Singapore and users can specify which part of Singapore they want to check, for example, downtown, yishun, woodlands, etc. What programming language should I use and how should I start building this?</code></p>

<p>Claude then proceeded to break down the steps I need to build it. Guided me through:</p>
<ul><li>libraries to install</li>
<li>how to call the NEA API</li>
<li>how to create a bot on Telegram using @botfather</li>
<li>how to host my files on AWS Lightsail</li>
<li>taught me how to secure my files</li>
<li>helped me tweak the code to incorporate my new requests, like wording changes, logic updates (I wanted the user to be able to ping the bot for on-demand rainchecks vs just being ping&#39;d are scheduled intervals)</li></ul>

<p>The whole experience just took one day and another half a day for tweaks.</p>

<p>Want to check out my bot? <a href="http://t.me/theraincheck_bot">The Rain Check Bot [by Bernie]</a></p>

<p>I&#39;m going to build a transport bot next ...</p>

<p><a href="https://berniepng.com/tag:telegram" class="hashtag"><span>#</span><span class="p-category">telegram</span></a> <a href="https://berniepng.com/tag:built" class="hashtag"><span>#</span><span class="p-category">built</span></a></p>
]]></content:encoded>
      <guid>https://berniepng.com/built-a-telegram-bot-to-tell-me-when-it-rains</guid>
      <pubDate>Thu, 19 Feb 2026 13:36:03 +0000</pubDate>
    </item>
  </channel>
</rss>