Testing text2img command (will be replaced, only for tests); added exception handling, queue and database table with generated images
This commit is contained in:
0
bot/keyboards/__init__.py
Normal file
0
bot/keyboards/__init__.py
Normal file
9
bot/keyboards/exception.py
Normal file
9
bot/keyboards/exception.py
Normal 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
|
||||
Reference in New Issue
Block a user