Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use static Web Apps to implement custom UI elements #92

Open
nmlorg opened this issue Jun 10, 2022 · 1 comment
Open

Use static Web Apps to implement custom UI elements #92

nmlorg opened this issue Jun 10, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@nmlorg
Copy link
Owner

nmlorg commented Jun 10, 2022

For things like time zone selection and editing free-form text (like new-user greetings), it might make sense to use a one-off Web App to render the UI instead of trying to do everything as a Message.

I'm thinking the UI would include a web_app keyboard button that loads static HTML off nmlorg.github.io, somehow encoding the field's current data in initData; uses JS to get the user's time zone (or offers a richer UI for selection than can be implemented in Telegram), puts the current text in an editable control (versus requiring the user to manually copy, paste, and then edit), etc.; then sends the new value to the bot using sendData.

@nmlorg nmlorg added the enhancement New feature or request label Jun 10, 2022
@nmlorg nmlorg self-assigned this Jun 10, 2022
@nmlorg
Copy link
Owner Author

nmlorg commented Apr 24, 2024

I've been holding off because, creeping up on 2 years now, Telegram X still does not support Web Apps (now called Mini Apps). However, I really need to move on with this to get started on a lot of other stuff — most notably #32.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant