Text Sticker bot v3

Text Sticker bot v3

Text Sticker v3 is a rewritten version of the Telegram Text Sticker bot.

Different from the previous two versions where the user can only provide a text input, Text Sticker v3 utilizes the Telegram Web App platform, which allows the bot to have more freedom to interact with the user while keeping the convenience of inline bots.

Since the bot now have access to a full-fledged browser, aside of the providing more design options (color, font, weight, etc.), v3 also managed to shift most of the graphical and computation work to the client thanks to Canvas API (for drawing sticker) and WebAssembly (for WebP encoding) available in all modern browsers. With this, Text Sticker v3 is able to largely trim down dependencies on the server side, and I have managed to migrate it to run on a SaaS platform for a better availability.

Now with a web interface, the bot has the potential to generate all kinds of imagery apart from simple plain text. This would be an area of exploration for further iteration of the bot.