Source code for slidgram.config
from typing import Optional
[docs]API_HASH__DOC = (
"Telegram app api_hash, obtained at https://my.telegram.org/apps" + _api_txt
)
[docs]REGISTRATION_AUTH_CODE_TIMEOUT__DOC = (
"On registration, users will be prompted for a 2FA code they receive "
"on other telegram clients."
)
[docs]GROUP_HISTORY_MAXIMUM_MESSAGES__DOC = (
"The number of messages to fetch from a group history. "
"These messages and their attachments will be fetched on slidge startup."
)
[docs]ATTACHMENT_MAX_SIZE__DOC = (
"Maximum file size (in bytes) to download from telegram automatically/"
)
[docs]BIG_AVATARS__DOC = (
"Fetch contact avatars in high-resolution (640x640) instead of the "
"default 160x160. NB: slidge core main config AVATAR_SIZE still applies."
)
[docs]CONVERT_STICKERS__DOC = (
"Convert incoming animated stickers to webm videos. "
"Requires lottie_to_webm.sh in $PATH, cf <https://github.com/ed-asriyan/lottie-converter>, "
"along with FFMPEG."
)