<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Apps-Script on Asadbek Kurbonov</title><link>/tags/apps-script/</link><description>Recent content in Apps-Script on Asadbek Kurbonov</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Tue, 22 Jul 2025 23:24:14 +0500</lastBuildDate><atom:link href="/tags/apps-script/index.xml" rel="self" type="application/rss+xml"/><item><title>Setting Up a Telegram Bot on Google Apps Script</title><link>/posts/setting-up-telegram-bot-on-apps-script/</link><pubDate>Tue, 22 Jul 2025 23:24:14 +0500</pubDate><guid>/posts/setting-up-telegram-bot-on-apps-script/</guid><description>&lt;p>This is the technical companion to &lt;a href="../../posts/apps-script/">Automating Business Reports with Google Apps Script and Telegram&lt;/a>, which covers the project this code came from. Here I&amp;rsquo;ll walk through running a Telegram bot on Apps Script: handling updates, routing messages, and managing the webhook.&lt;/p>
&lt;h2 id="receiving-updates">Receiving updates&lt;/h2>
&lt;p>Telegram delivers updates to your webhook as HTTP &lt;code>POST&lt;/code> requests. In Apps Script, a &lt;code>POST&lt;/code> to a deployed web app invokes the &lt;code>doPost(e)&lt;/code> function, so that&amp;rsquo;s where the bot starts:&lt;/p></description></item><item><title>Automating Business Reports with Google Apps Script and Telegram</title><link>/posts/apps-script/</link><pubDate>Tue, 22 Jul 2025 22:39:19 +0500</pubDate><guid>/posts/apps-script/</guid><description>&lt;p>Google Apps Script is easy to dismiss as a toy. Over two freelance projects it turned out to be a genuinely capable serverless platform for automation work built around Google Sheets and Telegram. This post covers the second of those projects — a reporting system for a US-market logistics business — and how I got there.&lt;/p>
&lt;h2 id="first-encounter">First encounter&lt;/h2>
&lt;p>I came across Apps Script on an earlier freelance job. A consulting firm needed a Telegram bot that generated templated Word contracts. They had started the work themselves in Apps Script but hadn&amp;rsquo;t finished it, so I picked it up and rebuilt the bot in Python with &lt;a href="https://docs.aiogram.dev/">aiogram&lt;/a>, rendering &lt;code>.docx&lt;/code> files from templates using &lt;a href="https://docxtpl.readthedocs.io/">docxtpl&lt;/a> and passing files around as base64. Apps Script was only incidental to that project, but it was my first look at the platform.&lt;/p></description></item></channel></rss>