Info

Voting

Comments

https://t.me/DrawGuessrBot
(source: https://github.com/khoben/drawguessr/commit/0f6cececd509f8769a906eca5a0a0d464bc4d57c)

a Mini App that mimics to Draw&Guess game. After adding the bot to the group, you can start the game (using the /game command), where the host, through the Telegram Web App, begins to draw the hidden word. Group users see the updated image and write words in the group chat. As soon as the correct word is written, the game ends.

If you get tired of playing, the host or group administrator can cancel the game using the /cancel command.
For myself, I decided to delegate some bot functionality to the Telegram web app, which wouldn't be very convenient inside a chatbot (since I don't have enough strong frontend skills to build a full-fledged web app 🤓).

I would also like to mention the issue of scrolling on mobile devices while expanded, the slide-down gesture tries to minimize and close the app, which is not good for drawing apps. A stable expanded state can be achieved by trying to slide up from the bottom several times (it should work on Android, and maybe on iOS as well).
I suppose it's worth adding a flag to disallow the sliding down collapse gesture: Telegram.WebApp.expand(ignore_collapsing=true);

https://github.com/TelegramMessenger/Telegram-iOS/issues/1070

https://stackoverflow.com/questions/76842573/a-bug-with-collapsing-when-scrolling-in-web-app-for-telegram-bot
1
You have not added any comments yet...
by rating

Issues

Nobody added any issues yet...