Testing text2img command (will be replaced, only for tests); added exception handling, queue and database table with generated images

This commit is contained in:
BarsTiger
2023-02-20 16:41:55 +02:00
parent 3bd34009ae
commit d56f1d386f
21 changed files with 219 additions and 34 deletions

View File

View File

@@ -0,0 +1,9 @@
from aiogram import types
from bot.callbacks.factories.exception import exception_callback
def get_exception_keyboard(e_id: str) -> types.InlineKeyboardMarkup:
buttons = [types.InlineKeyboardButton(text="Show full stack", callback_data=exception_callback.new(e_id=e_id))]
keyboard = types.InlineKeyboardMarkup()
keyboard.add(*buttons)
return keyboard