code: def tgread_bool(self):
          
          value = self.read_int(signed=False)
          if value == 0x997275b5:  # boolTrue
              return True
          elif value == 0xbc799737:  # boolFalse
              return False
          else:
              raise RuntimeError('Invalid boolean code {}'.format(hex(value)))
docs: Reads a Telegram boolean value.