@classmethod<EOL><INDENT>async def self_check(cls):<DEDENT>
<EOL>async for check in super(Telegram, cls).self_check():<EOL><INDENT>yield check<EOL><DEDENT>s = cls.settings()<EOL>try:<EOL><INDENT>assert isinstance(s['<STR_LIT>'], str)<EOL><DEDENT>except (KeyError, TypeError, AssertionError):<EOL><INDENT>yield HealthCheckFail(<EOL>'<STR_LIT>',<EOL>'<STR_LIT>'<EOL>'<STR_LIT>',<EOL>)<EOL><DEDENT>if not hasattr(settings, '<STR_LIT>'):<EOL><INDENT>yield HealthCheckFail(<EOL>'<STR_LIT>',<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'<EOL>)<EOL><DEDENT>if not hasattr(settings, '<STR_LIT>'):<EOL><INDENT>yield HealthCheckFail(<EOL>'<STR_LIT>',<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'<EOL>)<EOL><DEDENT>
Check that the configuration is correct

- Presence of "token" in the settings
- Presence of "BERNARD_BASE_URL" in the global configuration