tl v23.0.0-beta TL.Serializer

Module for detecting packet type and automatically decoding it

Summary

Functions

Detects and decodes packet, returns struct with decoded data

Detects packet type, accepts binary and returns atom :mtproto or :tl

Functions

decode(packet)
decode(binary) :: struct

Detects and decodes packet, returns struct with decoded data

detect(arg)
detect(binary) :: :mtproto | :tl

Detects packet type, accepts binary and returns atom :mtproto or :tl