<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def notify(self, level, *args, **kwargs):
 """Sends alerts to telegram chats. This method is called from top level module. Do not rename it. """


        LOGGER.debug('Handler (%s) %s', self.name, level)

        notify_text = self.get_message(level, *args, **kwargs)
        for chat in self.chats.copy():
            data = {"chat_id": chat, "text": notify_text}
            yield self.client.send_message(data)