package
2.0.0-rc.2
Repository: https://github.com/xelaj/mtproto.git
Documentation: pkg.go.dev

# README

Notes about implementation

Technical problems you might get stuck

  • -404 error on invalid padding size

    [!TIP]

    For some reason, instead of making additional error (to explain developers what's wrong and force them to use 12-1024 random padding). Instead, Telegram server (canonical implementation of mtproto) returns -404 to EVERY error that it might get while parsing message.

    How to handle that: write few tests and include additional check that padding size is strictly between 12 and 1024 bytes, including for decrytion functions.