summaryrefslogtreecommitdiff
path: root/src/sensors_bot.py
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2022-11-07 00:56:24 +0300
committerEvgeny Zinoviev <me@ch1p.io>2022-11-07 00:56:24 +0300
commit91aff8bc85df529206124452d8bca93b2a23478d (patch)
treeeed7aa069bbfdf2255efe8995e9fc958200d9378 /src/sensors_bot.py
parent5f4a14dac4a34c02ce180bec5b4a2e37bd4d1817 (diff)
sound_bot: fixes
Diffstat (limited to 'src/sensors_bot.py')
-rwxr-xr-xsrc/sensors_bot.py4
1 files changed, 2 insertions, 2 deletions
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))