Expand description
Inner TL layer of Telegram secret chats.
These types live inside the encrypted data field of messages.sendEncrypted.
They are not part of the outer MTProto TL schema, so they are serialized and
parsed by hand here rather than by ferogram-tl-types.
Structs§
- Decrypted
Message Layer - The outer wrapper of every secret chat message (layer 17 and above).
Enums§
- Decrypted
Action - A service action carried inside a
decryptedMessageService. - Decrypted
Media - Media payload of a decrypted message.
- Decrypted
Message - A decrypted message as carried inside
DecryptedMessageLayer. - Document
Attribute - Document attributes carried inside
DecryptedMedia::Document.
Constants§
- ID_
ACTION_ ABORT_ KEY - Constructor ID of
decryptedMessageActionAbortKey. - ID_
ACTION_ ACCEPT_ KEY - Constructor ID of
decryptedMessageActionAcceptKey. - ID_
ACTION_ COMMIT_ KEY - Constructor ID of
decryptedMessageActionCommitKey. - ID_
ACTION_ DELETE_ MESSAGES - Constructor ID of
decryptedMessageActionDeleteMessages(parsed only). - ID_
ACTION_ FLUSH_ HISTORY - Constructor ID of
decryptedMessageActionFlushHistory(parsed only). - ID_
ACTION_ NOOP - Constructor ID of
decryptedMessageActionNoop. - ID_
ACTION_ NOTIFY_ LAYER - Constructor ID of
decryptedMessageActionNotifyLayer. - ID_
ACTION_ READ_ MESSAGES - Constructor ID of
decryptedMessageActionReadMessages(parsed only). - ID_
ACTION_ REQUEST_ KEY - Constructor ID of
decryptedMessageActionRequestKey. - ID_
ACTION_ RESEND - Constructor ID of
decryptedMessageActionResend. - ID_
ACTION_ SCREENSHOT_ MESSAGES - Constructor ID of
decryptedMessageActionScreenshotMessages(parsed only). - ID_
ACTION_ SET_ TTL - Constructor ID of
decryptedMessageActionSetMessageTTL. - ID_
ACTION_ TYPING - Constructor ID of
decryptedMessageActionTyping(parsed only). - ID_
ATTR_ ANIMATED - Constructor ID of
documentAttributeAnimated. - ID_
ATTR_ AUDIO - Constructor ID of
documentAttributeAudio. - ID_
ATTR_ FILENAME - Constructor ID of
documentAttributeFilename. - ID_
ATTR_ IMAGE_ SIZE - Constructor ID of
documentAttributeImageSize. - ID_
ATTR_ STICKER - Constructor ID of
documentAttributeStickeras used in secret chats (layer 17 and above). - ID_
ATTR_ VIDEO - Constructor ID of
documentAttributeVideo. - ID_
DECRYPTED_ MESSAGE - Constructor ID of
decryptedMessage(layer 73 and above). - ID_
DECRYPTED_ MESSAGE_ LAYER - Constructor ID of
decryptedMessageLayer, the wrapper around every message from layer 17 on. - ID_
DECRYPTED_ MESSAGE_ OLD - Constructor ID of
decryptedMessagebefore layer 73. - ID_
DECRYPTED_ MESSAGE_ SERVICE - Constructor ID of
decryptedMessageService(layer 17 and above). - ID_
DECRYPTED_ MESSAGE_ SERVIC E8 - Constructor ID of
decryptedMessageService(layer 8). - ID_
MEDIA_ AUDIO_ L8 - Constructor ID of
decryptedMessageMediaAudio(layer 8). - ID_
MEDIA_ AUDIO_ L17 - Constructor ID of
decryptedMessageMediaAudio(layer 17). - ID_
MEDIA_ CONTACT - Constructor ID of
decryptedMessageMediaContact. - ID_
MEDIA_ DOCUMENT - Constructor ID of
decryptedMessageMediaDocument(layer 143 and above). - ID_
MEDIA_ DOCUMENT_ OLD - Constructor ID of
decryptedMessageMediaDocument(layer 8). - ID_
MEDIA_ EMPTY - Constructor ID of
decryptedMessageMediaEmpty. - ID_
MEDIA_ GEO - Constructor ID of
decryptedMessageMediaGeoPoint. - ID_
MEDIA_ PHOTO - Constructor ID of
decryptedMessageMediaPhoto(layer 45 and above). - ID_
MEDIA_ PHOTO_ OLD - Constructor ID of
decryptedMessageMediaPhoto(layer 8). - ID_
MEDIA_ VENUE - Constructor ID of
decryptedMessageMediaVenue(layer 45). - ID_
MEDIA_ VIDEO_ L8 - Constructor ID of
decryptedMessageMediaVideo(layer 8). - ID_
MEDIA_ VIDEO_ L17 - Constructor ID of
decryptedMessageMediaVideo(layer 17). - ID_
MEDIA_ VIDEO_ L45 - Constructor ID of
decryptedMessageMediaVideo(layer 45).
Functions§
- deserialize_
media - Parse a media object from
datastarting at*offset, advancing the offset. - deserialize_
message_ layer - Parse a
DecryptedMessageLayerfrom decrypted bytes. - make_
random_ bytes - Build the
random_bytesfield of aDecryptedMessageLayer. - serialize_
layer8_ service - Serialize a layer-8 service message (no
DecryptedMessageLayerwrapper). - serialize_
media - Serialize
mediaintobuf(constructor ID followed by its fields). - serialize_
message_ layer - Serialize a
DecryptedMessageLayerto bytes, ready forcrypto::encrypt_message.