Queer European MD passionate about IT
Explorar o código

Button decorator signature changed

Davte %!s(int64=5) %!d(string=hai) anos
pai
achega
9f26352728
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      davtelepot/administration_tools.py

+ 1 - 1
davtelepot/administration_tools.py

@@ -538,7 +538,7 @@ def init(bot):
     async def talk_command(update):
         return await _talk_command(update, bot)
 
-    @bot.button(data='talk:///', authorization_level='admin')
+    @bot.button(prefix='talk:///', authorization_level='admin')
     async def talk_button(update):
         return await _talk_button(update, bot)
     return