protocol AccountState
class AuthorizedAccountState: AccountState
class State
pts: Int32
qts: Int32
date: Int32
seq: Int32
enum UnauthorizedAccountStateContents
empty
phoneEntry(countryCode: Int32, number: String)
confirmationCodeEntry(number: String, type: SentAuthorizationCodeType, hash: String, timeout: Int32?, nextType: AuthorizationCodeNextType?, syncContacts: Bool)
passwordEntry(hint: String, number: String?, code: String?, suggestReset: Bool, syncContacts: Bool)
passwordRecovery(hint: String, number: String?, code: String?, emailPattern: String, syncContacts: Bool)
awaitingAccountReset(protectedUntil: Int32, number: String?, syncContacts: Bool)
signUp(number: String, codeHash: String, firstName: String, lastName: String, termsOfService: UnauthorizedAccountTermsOfService?, syncContacts: Bool)
class UnauthorizedAccountState: AccountState
isTestingEnvironment: Bool
masterDatacenterId: Int32
contents: UnauthorizedAccountStateContents
protocol PeerChatState
enum SecretChatRole
creator
participant
enum SecretChatHandshakeState
accepting
requested(g: Int32, p: MemoryBuffer, a: MemoryBuffer)
enum SecretChatSequenceBasedLayer
layer46
layer73
layer101
struct SecretChatLayerNegotiationState
activeLayer: SecretChatSequenceBasedLayer
locallyRequestedLayer: Int32?
remotelyRequestedLayer: Int32?
enum SecretChatRekeySessionData
requesting
requested(a: MemoryBuffer, config: SecretChatEncryptionConfig)
accepting
accepted(key: MemoryBuffer, keyFingerprint: Int64)
struct SecretChatRekeySessionState
id: Int64
data: SecretChatRekeySessionData
struct SecretChatSequenceBasedLayerState
layerNegotiationState: SecretChatLayerNegotiationState
rekeyState: SecretChatRekeySessionState?
baseIncomingOperationIndex: Int32
baseOutgoingOperationIndex: Int32
topProcessedCanonicalIncomingOperationIndex: Int32?
enum SecretChatEmbeddedState
terminated
handshake(SecretChatHandshakeState)
basicLayer
sequenceBasedLayer(SecretChatSequenceBasedLayerState)
struct SecretChatKeySha1Fingerprint
k0: Int64
k1: Int64
k2: Int32
struct SecretChatKeySha256Fingerprint
k0: Int64
k1: Int64
k2: Int64
k3: Int64
struct SecretChatKeyFingerprint
sha1: SecretChatKeySha1Fingerprint
sha256: SecretChatKeySha256Fingerprint
class SecretChatState: PeerChatState
role: SecretChatRole
embeddedState: SecretChatEmbeddedState
keychain: SecretChatKeychain
keyFingerprint: SecretChatKeyFingerprint?
messageAutoremoveTimeout: Int32?
class ChannelState: PeerChatState
pts: Int32
invalidatedPts: Int32?
class RegularChatState: PeerChatState
invalidatedPts: Int32?
struct PeerChatInfo
notificationSettings: PeerNotificationSettings
enum PeerReadState
idBased(maxIncomingReadId: MessageId.Id, maxOutgoingReadId: MessageId.Id, maxKnownId: MessageId.Id, count: Int32, markedUnread: Bool)
indexBased(maxIncomingReadIndex: MessageIndex, maxOutgoingReadIndex: MessageIndex, count: Int32, markedUnread: Bool)
class AccountInitialState
state: AuthorizedAccountState.State
peerIds: Set
chatStates: [PeerId: PeerChatState] peerChatInfos: [PeerId: PeerChatInfo]
peerIdsRequiringLocalChatState: Set
locallyGeneratedMessageTimestamps: [PeerId: [(MessageId.Namespace, Int32)]]
cloudReadStates: [PeerId: PeerReadState]
channelsToPollExplicitely: Set
struct AccountMutableState
initialState: AccountInitialState
branchOperationIndex: Int
operations: [AccountStateMutationOperation]
state: AuthorizedAccountState.State
peers: [PeerId: Peer]
chatStates: [PeerId: PeerChatState]
peerChatInfos: [PeerId: PeerChatInfo]
referencedMessageIds: Set
storedMessages: Set
readInboxMaxIds: [PeerId: MessageId] namespacesWithHolesFromPreviousState: [PeerId: Set
] storedMessagesByPeerIdAndTimestamp: [PeerId: Set
] displayAlerts: [(text: String, isDropAuth: Bool)]
insertedPeers: [PeerId: Peer]
preCachedResources: [(MediaResource, Data)]
updatedMaxMessageId: Int32?
updatedQts: Int32?
externallyUpdatedPeerId: Set
struct AccountFinalState
state: AccountMutableState
shouldPoll: Bool
incomplete: Bool
enum PeerInputActivity
typingText
uploadingFile(progress: Int32)
recordingVoice
uploadingPhoto(progress: Int32)
uploadingVideo(progress: Int32)
playingGame
recordingInstantVideo
uploadingInstantVideo(progress: Int32)
struct AccountReplayedFinalState
state: AccountFinalState
addedIncomingMessageIds: [MessageId]
wasScheduledMessageIds: [MessageId]
addedSecretMessageIds: [MessageId]
updatedTypingActivities: [PeerId: [PeerId: PeerInputActivity?]]
updatedWebpages: [MediaId: TelegramMediaWebpage]
updatedCalls: [Api.PhoneCall]
updatedPeersNearby: [PeerNearby]?
isContactUpdates: [(PeerId, Bool)]
delayNotificatonsUntil: Int32?
…