Skip to content

Available Decorators

Decorators are a very helpful tool in Python. They make functions easily reusable anywhere. PyStark has some decorators to do the same.


These are the decorators of class Stark to handle messages, queries, etc.:


  • Stark.command - Handle a certain type of messages like command messages. Read More Here



  • Stark.callback - Handle callback queries (button clicks). Read More Here


  • Stark.admins - Python decorator of class Stark to allow only admins to you some commands. Read More Here
Back to top