Thermocapillary bubble migration in confined medium