bokkichat.settings.impl package

Submodules

bokkichat.settings.impl.CliSettings module

class bokkichat.settings.impl.CliSettings.CliSettings

Bases: bokkichat.settings.Settings.Settings

Class that defines a Settings object for a CLI connection

classmethod deserialize(_: str)bokkichat.settings.impl.CliSettings.CliSettings

Deserializes a string and generates a Settings object from it :param _: The serialized string :return: The deserialized Settings object

classmethod prompt()bokkichat.settings.Settings.Settings

Prompts the user for input to generate a Settings object :return: The generated settings object

serialize()str

Serializes the settings to a string :return: The serialized Settings object

bokkichat.settings.impl.TelegramBotSettings module

class bokkichat.settings.impl.TelegramBotSettings.TelegramBotSettings(api_key: str)

Bases: bokkichat.settings.Settings.Settings

Class that defines a Settings object for a Telegram bot connection

__init__(api_key: str)

Initializes the Telegram Connection. :param api_key: The API key used for authentication

classmethod deserialize(serialized: str)bokkichat.settings.impl.TelegramBotSettings.TelegramBotSettings

Deserializes a string and generates a Settings object from it :param serialized: The serialized string :return: The deserialized Settings object

classmethod prompt()bokkichat.settings.Settings.Settings

Prompts the user for input to generate a Settings object :return: The generated settings object

serialize()str

Serializes the settings to a string :return: The serialized Settings object

Module contents