помощь в тг боте python + pywebio
Не могу понять как вывести 'todo' приложение в тг, сделал код все работает и открыватся в replit в веб версии сверху консоле, но в тг боте открывается пустое окно, как исправить?
from aiogram import Bot, Dispatcher, executor, types
from aiogram.types import InlineKeyboardMarkup, InlineKeyboardButton
from aiogram.types.web_app_info import WebAppInfo
from functools import partial
from pywebio.input import TEXT, input
from pywebio.output import clear, put_buttons, put_html, put_table, put_text, use_scope
from pywebio.platform.utils import *
import tornado.ioloop
import tornado.web
from pywebio.platform.tornado import webio_handler
from tornado.options import define, options
from src.todolist import todolist
TOKEN = 'тут токен'
bot = Bot(token=TOKEN)
dp = Dispatcher(bot)
define('port', default=8080, help='Run on the given port', type=int)
define('debug', default=False, help='Run on the debug mode', type=bool)
@dp.message_handler(commands="start")
async def cmd_start(message: types.Message):
await message.answer("Let's begin ",
reply_markup=InlineKeyboardMarkup().add(InlineKeyboardButton(text="go",
web_app=WebAppInfo(url="https://bot-test2.alieksandrgiett.repl.co"))))
if __name__ == '__main__':
executor.start_polling(dp, skip_updates=True)
tornado.options.parse_command_line()
tornado_settings = {'debug': options.debug}
application = tornado.web.Application([
(r'/', webio_handler(todolist)),], **tornado_settings)
application.listen(port=options.port)
tornado.ioloop.IOLoop.current().start()
Вылезает такая ошибка от репл: We ran into an internal error.