This commit is contained in:
bakatrouble 2020-12-11 13:41:12 +03:00
parent 9fa029d896
commit a4d69a4723

View File

@ -19,7 +19,7 @@ class SpoilerBotModuleConfig(TelegramBotModuleConfig):
id=str(sm.pk), id=str(sm.pk),
title='Send spoiler', title='Send spoiler',
input_message_content=InputTextMessageContent('This is a spoiler'), input_message_content=InputTextMessageContent('This is a spoiler'),
reply_markup=InlineKeyboardMarkup([InlineKeyboardButton('Read content', callback_data='read {}'.format(sm.pk))]) reply_markup=InlineKeyboardMarkup([[InlineKeyboardButton('Read content', callback_data='read {}'.format(sm.pk))]])
)]) )])
def read_handler(self, update: Update, ctx: CallbackContext): def read_handler(self, update: Update, ctx: CallbackContext):