From b19e7734e04a58b1691163a61d13ae57e4dcb837 Mon Sep 17 00:00:00 2001 From: Davte Date: Fri, 12 Jul 2019 14:39:17 +0200 Subject: [PATCH] @bot.command and @bot.button parameter names changed --- davtelepot/admin_tools.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/davtelepot/admin_tools.py b/davtelepot/admin_tools.py index 3bfa8aa..b4e40e6 100644 --- a/davtelepot/admin_tools.py +++ b/davtelepot/admin_tools.py @@ -532,12 +532,13 @@ def init(bot): ) @bot.command(command='/talk', aliases=[], show_in_keyboard=False, - descr="Choose a user and forward messages to each other.", - auth='admin') + description="Choose a user and forward messages to each " + "other.", + authorization_level='admin') async def talk_command(update): return await _talk_command(update, bot) - @bot.button(data='talk:///', auth='admin') + @bot.button(data='talk:///', authorization_level='admin') async def talk_button(update): return await _talk_button(update, bot) return