Future<bool> isInternetConnected() async { try { Response response = await get(Uri.parse('https://telegram.org/')); return response.statusCode == 200; } catch (e) { return false; } }