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