Seems really similar to what Telegram has been trying to do for a while now. First with basic bots, then bots using custom keyboards and stickers, then with inline bots, and now with the game API (which basically allows you to package arbitrary HTML/JS/CSS into a bot message).