<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:webfeeds="http://webfeeds.org/rss/1.0"><channel><title>mobile on 林協霆醫師</title><link>/tags/mobile/</link><description>林協霆醫師 (mobile)</description><generator>Hugo -- gohugo.io</generator><language>zh-tw</language><image><url>https://htl.physician.tw/favicon-32x32.png</url><title>林協霆醫師</title><link>https://htl.physician.tw/</link><width>32</width><height>32</height></image><webfeeds:icon>https://htl.physician.tw/favicon-32x32.png</webfeeds:icon><webfeeds:logo>https://htl.physician.tw/android-chrome-512x512.png</webfeeds:logo><webfeeds:accentColor>5bbad5</webfeeds:accentColor><lastBuildDate>Tue, 03 Mar 2026 00:00:00 +0000</lastBuildDate><atom:link href="/tags/mobile/index.xml" rel="self" type="application/rss+xml"/><item><title>general-codex-tg-bot：包裝 Codex 為通用 Telegram Bot 的個人實驗</title><link>/blog/general-codex-tg-bot-2026-03-03/</link><pubDate>Tue, 03 Mar 2026 00:00:00 +0000</pubDate><guid>/blog/general-codex-tg-bot-2026-03-03/</guid><description>&lt;h2 id="introduction引言" >
&lt;div>
&lt;a href="#introduction%e5%bc%95%e8%a8%80">
#
&lt;/a>
Introduction（引言）
&lt;/div>
&lt;/h2>
&lt;p>桌面端 AI Coding 工具（Claude Code、Codex CLI、Cursor）已相當成熟，但行動端體驗仍不理想。對於工程師而言，許多想法是在通勤、走路或睡前突然浮現的，若能即時以行動裝置開始實驗，可顯著提升創意密度。本專案以 Codex 為後端、Telegram Bot 為前端，提供「以對話寫程式」的行動端入口。&lt;/p>
&lt;h2 id="methods方法" >
&lt;div>
&lt;a href="#methods%e6%96%b9%e6%b3%95">
#
&lt;/a>
Methods（方法）
&lt;/div>
&lt;/h2>
&lt;p>Bot 以 TypeScript 撰寫，後端透過 Codex API 呼叫模型；前端利用 Telegram 對話介面提供文字、語音輸入與檔案附件。對於程式碼回應，Bot 會將輸出格式化為 Telegram 程式碼區塊，並附帶複製友善的指令。長對話自動切分以符合 Telegram 訊息長度限制；多輪上下文以 Bot 端維護，確保使用者可在多訊息間自然延續討論。&lt;/p>
&lt;p>設計上強調「行動端友善」：避免要求過多前置設定、提供「複製即可貼到桌面」的格式、整合常用 prompt 模板（解釋程式、撰寫測試、debug）。整體授權限定於作者個人帳號，避免被當作公共服務濫用。&lt;/p>
&lt;h2 id="results結果" >
&lt;div>
&lt;a href="#results%e7%b5%90%e6%9e%9c">
#
&lt;/a>
Results（結果）
&lt;/div>
&lt;/h2>
&lt;p>Bot 已能在手機上提供基本 AI Coding 體驗：使用者可用語音口述需求、收到程式碼草稿、複製至桌面繼續開發。對於高頻有靈感但分散於非工作時段的使用者，這提供了「先記下並讓 AI 思考，回到桌面再驗收」的工作流。&lt;/p>
&lt;h2 id="discussion討論" >
&lt;div>
&lt;a href="#discussion%e8%a8%8e%e8%ab%96">
#
&lt;/a>
Discussion（討論）
&lt;/div>
&lt;/h2>
&lt;p>本專案展現了「將桌面工具搬上行動端」的設計挑戰：不只是技術橋接，更要重新思考介面邏輯以適應小螢幕與斷續注意力。限制方面，行動端輸入仍是瓶頸；長程式碼在 Telegram 中閱讀體驗有限。未來可加入語音回應、與 GitHub gist 的自動同步、以及與作者其他 LINE Bot 的統一通知中心。&lt;/p>
&lt;h2 id="連結" >
&lt;div>
&lt;a href="#%e9%80%a3%e7%b5%90">
#
&lt;/a>
連結
&lt;/div>
&lt;/h2>
&lt;ul>
&lt;li>GitHub：&lt;a href="https://github.com/htlin222/general-codex-tg-bot">htlin222/general-codex-tg-bot&lt;/a>&lt;/li>
&lt;li>主要語言：TypeScript&lt;/li>
&lt;li>最後更新：2026-03-03&lt;/li>
&lt;/ul></description></item></channel></rss>