Skip to main content

Module envelope

Module envelope 

Source

Enums§

EnvelopeResult

Functions§

chat_to_peer
Convert a Chat enum variant to its corresponding Peer.
decode_bind_response
Decode the server response to auth.bindTempAuthKey.
decode_bind_single
Check a decrypted PFS bind response body for boolTrue. Telegram always wraps the Bool in an rpc_result container: rpc_result#f35c6d01 req_msg_id:long result:Bool (16 bytes total) But may also return a bare boolTrue in some implementations. Decode one bare MTProto message body for the auth.bindTempAuthKey response.
unwrap_envelope
updates_entities
Extract (users, chats) slices from any Updates variant.