first
This commit is contained in:
14
ai_bot/keyboards/CreateImageKeyboard.py
Normal file
14
ai_bot/keyboards/CreateImageKeyboard.py
Normal file
@ -0,0 +1,14 @@
|
||||
from bot.Keyboard import Keyboard
|
||||
from telegram import InlineKeyboardButton, InlineKeyboardMarkup
|
||||
|
||||
|
||||
class CreateImageKeyboard(Keyboard):
|
||||
|
||||
def get_keyboard(self):
|
||||
keyboard = []
|
||||
models = self.get_option("models_arr")
|
||||
|
||||
for model in models:
|
||||
keyboard.append([InlineKeyboardButton(model, callback_data='start_model_scenario?model={model}'.format(model=model))])
|
||||
|
||||
return keyboard
|
Reference in New Issue
Block a user