quackamollie.core.bot.decorator.user_chat_registered module¶
- quackamollie.core.bot.decorator.user_chat_registered.ensure_user_chat_registered(func: Callable) Callable[source]¶
Decorator to encapsulate aiogram message or query handlers in order to ensure that the user already registered using the /start command before calling the encapsulated handler. If not, it asks the user to register using the /start command.
- Parameters:
func (Callable) – The function to encapsulate
- Returns:
The encapsulated function
- Return type:
Callable