Configuration#
Setting up a slidge component#
Refer to the slidge admin docs for generic instructions on how to set up a slidge component, and for slidge core configuration options.
slidgram-specific config#
API_HASH | Telegram app api_hash, obtained at https://my.telegram.org/apps If you dont set it, users will have to enter their own on registration. |
API_ID | Telegram app api_id, obtained at https://my.telegram.org/apps If you dont set it, users will have to enter their own on registration. |
ATTACHMENT_MAX_SIZE | Maximum file size (in bytes) to download from telegram automatically/ |
BIG_AVATARS | Fetch contact avatars in high-resolution (640x640) instead of the default 160x160. NB: slidge core main config AVATAR_SIZE still applies. |
CONVERT_STICKERS | 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. |
CONVERT_STICKERS_EXECUTABLE | Path to the TGS/webm converter executable. |
CONVERT_STICKERS_FPS | Framerate of the video stickers |
CONVERT_STICKERS_SIZE | Width and height video stickers. |
GROUP_HISTORY_MAXIMUM_MESSAGES | The number of messages to fetch from a group history. These messages and their attachments will be fetched on slidge startup. |
REGISTRATION_AUTH_CODE_TIMEOUT | On registration, users will be prompted for a 2FA code they receive on other telegram clients. |