#NEWLINE# @ gen . coroutine #NEWLINE# def notify( self , level , * args , **kwargs ) : #NEWLINE# #INDENT# LOGGER . debug ( 'Handler (%s) %s' , self . name , self ) #NEWLINE# message = self . get_message ( level , * args , ** kwargs ) #NEWLINE# for chat in self . _chats : #NEWLINE# #INDENT# ( yield self . client . fetch ( ( self . url + 'sendMessage' ) , body = json . dumps ( { #NEWLINE# #INDENT# 'chat_id' : chat , #NEWLINE# 'text' : message , #NEWLINE# #UNINDENT# } ) , method = 'POST' , headers = { #NEWLINE# #INDENT# 'Content-Type' : 'application/json' , #NEWLINE# #UNINDENT# } ) )