

However, there is a lot of hype around Remix lately.

And for my pet projects, I have been using Create React App with Recoil state management and Evergreen Components for the frontend and Express/Koa for the backend. For my day-to-day work as a pure frontender, I have been using Web Components and Lion Web for almost five years. Strengths and weaknesses, opportunities and threats, intrigue and betrayal.įrom time to time, we all need to step out of our comfort zone and try something new. Telegram Web App with Remix on Vercel? Let’s go!Ī story about a project on an unfamiliar (but hyped) stack: Remix, Prisma, Base Web components, and Vercel. reply_html ( 58 text = f "You selected the color with the HEX value ) 28 29 30 32 34 35 36 37 Telegram.

DEFAULT_TYPE ) -> None : 53 """Print the received data and remove the button.""" 54 # Here we use `json.loads`, since the WebApp sends the data JSON serialized string 55 # (see webappbot.html) 56 data = json. from_button ( 43 KeyboardButton ( 44 text = "Open the color picker!", 45 web_app = WebAppInfo ( url = "" ), 46 ) 47 ), 48 ) 49 50 51 # Handle incoming WebAppData 52 async def web_app_data ( update : Update, context : ContextTypes. reply_text ( 41 "Please press the button below to choose a color via the WebApp.", 42 reply_markup = ReplyKeyboardMarkup. 10 """ 11 import json 12 import logging 13 14 from telegram import _version_ as TG_VER 15 16 try : 17 from telegram import _version_info_ 18 except ImportError : 19 _version_info_ = ( 0, 0, 0, 0, 0 ) # type: ignore 20 21 if _version_info_ None : 39 """Send a message with a button that opens a the web app.""" 40 await update. 8 Currently only showcases starting the WebApp via a KeyboardButton, as all other methods would 9 require a bot token. 7 The static website for this website is hosted by the PTB team for your convenience. 4 5 """ 6 Simple example of a Telegram WebApp which displays a color picker. 1 #!/usr/bin/env python 2 # pylint: disable=unused-argument,wrong-import-position 3 # This program is dedicated to the public domain under the CC0 license.
