This commit is contained in:
bakatrouble 2020-12-11 13:45:26 +03:00
parent a4d69a4723
commit 29306b42f5

View File

@ -28,7 +28,7 @@ class SpoilerBotModuleConfig(TelegramBotModuleConfig):
sm = SpoilerMessage.objects.get(pk=smid)
except SpoilerMessage.DoesNotExist:
return update.callback_query.answer('Message does not exist')
update.callback_query.answer(sm.text, alert=True)
update.callback_query.answer(sm.text, show_alert=True)
def build_dispatcher(self, dispatcher: Dispatcher):
dispatcher.add_handler(InlineQueryHandler(self.inline_handler))