miniproto.tl.codec.decode_bool
miniproto.tl.codec.decode_bool
Section titled “miniproto.tl.codec.decode_bool”decode_bool(data: bytes | memoryview, offset: int = 0) -> tuple[bool, int]Decode a TL Bool constructor.
Parameters:
- data (
bytes | memoryview) – TL wire bytes. - offset (
int) – Starting byte offset, defaulting to0.
Returns:
Raises:
TLCodecError– If the constructor is not a TL boolean.