quackamollie.core.bot.handler.messages module

Module to define commands, handle additional configuration and start the bot

async quackamollie.core.bot.handler.messages.handle_message(quackamollie_settings: QuackamollieSettings, message: Message)[source]

React on message with emojis. Answer user’s message by using the model manager and model manager defined for the current chat of the defaults from settings. Handle only messages with text or captions and no finite state defined. Answer all messages in private chats (including chat types overridden from /settings). However, it only answers messages where the bot is explicitly mentioned at the beginning of the message in groups or supergroups.

Parameters:
  • quackamollie_settings (QuackamollieSettings) – The application settings initialized from click context

  • message (Message) – The message as given by aiogram router