Queer European MD passionate about IT
Browse Source

@bot.command and @bot.button parameter names changed

Davte 5 years ago
parent
commit
b19e7734e0
1 changed files with 4 additions and 3 deletions
  1. 4 3
      davtelepot/admin_tools.py

+ 4 - 3
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