This has been broken since bd11564579.
bd11564579
This was found while testing #1371.
Because an integer was being passed where a TLObject was expected, so the serialization with bytes() was actually requesting that many bytes as opposed to properly converting the expected object.