Share a Mini App from inside Telegram and create a direct short link that opens it without an extra bot-start step.
Software notes and practical experiments
This is the English entry point to Nanfeng's development blog. The archive currently contains Chinese-language technical notes; English translations will be published progressively.
Uploading and Cropping Local Images in a Cocos Creator Web Build
Select a local image, center-crop it to a square, resize and compress it, then display it in Cocos Creator.
Building a Six-Digit Verification Code Dialog in Cocos Creator
Implement a six-digit code input that supports continuous typing, pasting, and deletion.
Detecting the First Game Login of the Day in Cocos Creator
Compare a locally stored date with today to trigger first-login rewards once per device per day.
Detecting Mobile or Desktop in a Telegram Mini App
Use the browser user agent to distinguish mobile and desktop clients in a Telegram Mini App.
Expanding a Telegram Web App When It Opens
Call the Telegram Web App API so a Mini App expands when opened.
Finding Images Larger Than 500 KB with Python
Recursively find oversized images and write their absolute paths to a text file.
Inserting Content into HTML with Beautiful Soup
Automate inserting scripts, styles, and loading markup into an exported HTML file.
Fixing Stale Cache in a Telegram Web App Built with Cocos Creator
Enable Cocos Creator MD5 Cache so updated Web App assets receive new filenames and bypass stale client caches.
Forwarding Telegram Bot Messages to a Server
Receive text sent to a Telegram bot and forward it to an application server as JSON.