slidgram.config#

Module Contents#

slidgram.config._api_txt = Multiline-String[source]#
Show Value
"""
If you dont set it, users will have to enter their own on registration."""
slidgram.config.TDLIB_PATH: pathlib.Path[source]#
slidgram.config.TDLIB_PATH__DOC = 'Defaults to ${SLIDGE_HOME_DIR}/tdlib'[source]#
slidgram.config.TDLIB_PATH__DYNAMIC_DEFAULT = True[source]#
slidgram.config.TDLIB_KEY: str = 'NOT_SECURE'[source]#
slidgram.config.TDLIB_KEY__DOC = 'Key used to encrypt tdlib persistent DB'[source]#
slidgram.config.API_ID: int | None[source]#
slidgram.config.API_ID__DOC[source]#
slidgram.config.API_HASH: str | None[source]#
slidgram.config.API_HASH__DOC[source]#
slidgram.config.REGISTRATION_AUTH_CODE_TIMEOUT: int = 60[source]#
slidgram.config.REGISTRATION_AUTH_CODE_TIMEOUT__DOC = 'On registration, users will be prompted for a 2FA code they receive on other telegram clients.'[source]#
slidgram.config.GROUP_HISTORY_MAXIMUM_MESSAGES = 50[source]#
slidgram.config.GROUP_HISTORY_MAXIMUM_MESSAGES__DOC = 'The number of messages to fetch from a group history. These messages and their attachments will...'[source]#
slidgram.config.OUTGOING_STICKERS_REGEXP: str | None[source]#
slidgram.config.OUTGOING_STICKERS_REGEXP__DOC = '(workaround until the proper XEP is implemented) Set this to a regexp to treat certain...'[source]#
slidgram.config.ATTACHMENT_MAX_SIZE: int[source]#
slidgram.config.ATTACHMENT_MAX_SIZE__DOC = 'Maximum file size (in bytes) to download from telegram automatically/'[source]#
slidgram.config.MAX_PARALLEL_DOWNLOADS: int = 3[source]#
slidgram.config.MAX_PARALLEL_DOWNLOADS__DOC = 'Maximum number of parallel telegram downloads across all sessions.'[source]#
slidgram.config.BIG_AVATARS = False[source]#
slidgram.config.BIG_AVATARS__DOC = 'Fetch contact avatars in high-resolution (640x640) instead of the default 160x160. NB: slidge...'[source]#
slidgram.config.TDLIB_TIMEOUT = 120[source]#
slidgram.config.TDLIB_TIMEOUT__DOC = 'Timeout for telegram requests. If you get crashed related to timeout errors, you might want to...'[source]#