quackamollie.core.bot.menu.settings_menu module¶
- class quackamollie.core.bot.menu.settings_menu.SettingsCallbackData(*, name: str)[source]¶
Bases:
CallbackData- _abc_impl = <_abc._abc_data object>¶
- model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}¶
A dictionary of computed field names and their corresponding ComputedFieldInfo objects.
- model_config: ClassVar[ConfigDict] = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_fields: ClassVar[dict[str, FieldInfo]] = {'name': FieldInfo(annotation=str, required=True)}¶
Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].
This replaces Model.__fields__ from Pydantic V1.
- name: str¶
- quackamollie.core.bot.menu.settings_menu.get_settings_menu_root(chat_type: ChatType, app_role_type: AppRoleType) → InlineKeyboardBuilder[source]¶
Build the root of the settings menu depending on given parameters
- Parameters:
chat_type (ChatType) – The current chat type
app_role_type (AppRoleType) – The current user’s application role
- Returns:
The constructed root settings menu
- Return type:
InlineKeyboardBuilder