Module constants

Source
Expand description

Β§Constants.

EnumsΒ§

Blocked
Chattype
Chat type.
MediaQuality
ShowEmails
VideochatType
Video chat URL type.

ConstantsΒ§

ASM_BODY πŸ”’
ASM_SUBJECT πŸ”’
BALANCED_AVATAR_BYTES πŸ”’
BALANCED_AVATAR_SIZE πŸ”’
BALANCED_IMAGE_BYTES
BALANCED_IMAGE_SIZE
DC_BACKGROUND_FETCH_QUOTA_CHECK_RATELIMIT πŸ”’
How far the last quota check needs to be in the past to be checked by the background function (in seconds).
DC_CHAT_ID_ALLDONE_HINT
only an indicator in a chatlist
DC_CHAT_ID_ARCHIVED_LINK
only an indicator in a chatlist
DC_CHAT_ID_LAST_SPECIAL
larger chat IDs are β€œreal” chats, their messages are β€œreal” messages.
DC_CHAT_ID_TRASH
messages that should be deleted get this chat_id; the messages are deleted from the working thread later then. This is also needed as rfc724_mid should be preset as long as the message is not deleted on the server (otherwise it is downloaded again)
DC_DESIRED_TEXT_LEN
Message length limit.
DC_DESIRED_TEXT_LINES
DC_DESIRED_TEXT_LINE_LEN
DC_ELLIPSIS πŸ”’
String that indicates that something is left out or truncated.
DC_FOLDERS_CONFIGURED_KEY πŸ”’
DC_FOLDERS_CONFIGURED_VERSION πŸ”’
DC_FROM_HANDSHAKE πŸ”’
DC_GCL_ADD_ALLDONE_HINT
DC_GCL_ADD_SELF
DC_GCL_ARCHIVED_ONLY
DC_GCL_FOR_FORWARDING
DC_GCL_NO_SPECIALS
DC_GCL_VERIFIED_ONLY
DC_HANDSHAKE_ADD_DELETE_JOB
DC_HANDSHAKE_CONTINUE_NORMAL_PROCESSING
DC_HANDSHAKE_STOP_NORMAL_PROCESSING
DC_LP_AUTH_FLAGS
if none of these flags are set, the default is chosen
DC_LP_AUTH_NORMAL
Force NORMAL authorization, this is the default. If this flag is set, automatic configuration is skipped.
DC_LP_AUTH_OAUTH2
Force OAuth2 authorization.
DC_MSG_ID_DAYMARKER
DC_MSG_ID_LAST_SPECIAL
DC_OUTDATED_WARNING_DAYS πŸ”’
DC_RESEND_USER_AVATAR_DAYS πŸ”’
DEFAULT_MAX_SMTP_RCPT_TO πŸ”’
EDITED_PREFIX πŸ”’
NON_ALPHANUMERIC_WITHOUT_DOT πŸ”’
Set of characters to percent-encode in email addresses and names.
SECUREJOIN_WAIT_TIMEOUT πŸ”’
How long a 1:1 chat can’t be used for sending while the SecureJoin is in progress. This should be 10-20 seconds so that we are reasonably sure that the app remains active and receiving also on mobile devices. See also crate::chat::CantSendReason::SecurejoinWait.
TIMESTAMP_SENT_TOLERANCE πŸ”’
How far in the future the sender timestamp of a message is allowed to be, in seconds. Also used in the group membership consistency algo to reject outdated membership changes.
WORSE_AVATAR_BYTES πŸ”’
WORSE_AVATAR_SIZE πŸ”’
WORSE_IMAGE_BYTES
WORSE_IMAGE_SIZE

StaticsΒ§

DC_VERSION_STR