From 91aff8bc85df529206124452d8bca93b2a23478d Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Mon, 7 Nov 2022 00:56:24 +0300 Subject: sound_bot: fixes --- src/sensors_bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sensors_bot.py') diff --git a/src/sensors_bot.py b/src/sensors_bot.py index 9cf9c5d..dc33a57 100755 --- a/src/sensors_bot.py +++ b/src/sensors_bot.py @@ -90,7 +90,7 @@ def read_sensor(sensor: str, ctx: bot.Context) -> None: ctx.reply(text, markup=InlineKeyboardMarkup(chunks(buttons, 2))) -@bot.callbackhandler +@bot.callbackhandler(callback='*') def callback_handler(ctx: bot.Context) -> None: query = ctx.callback_query @@ -166,7 +166,7 @@ def draw_plot(data, @bot.defaultreplymarkup -def markup(self, ctx: Optional[bot.Context]) -> Optional[ReplyKeyboardMarkup]: +def markup(ctx: Optional[bot.Context]) -> Optional[ReplyKeyboardMarkup]: buttons = [] for k in config['sensors'].keys(): buttons.append(ctx.lang(k)) -- cgit v1.2.3