#NEWLINE# def dispatch_message( self , channel_id , text ) : #NEWLINE# #INDENT# message = { #NEWLINE# #INDENT# 'id' : channel_id , #NEWLINE# 'text' : text , #NEWLINE# #UNINDENT# } #NEWLINE# timestamp ( message ) #NEWLINE# for session in self . sessions : #NEWLINE# #INDENT# if ( channel_id in session . channel_ids ) : #NEWLINE# #INDENT# session . append ( { #NEWLINE# #INDENT# 'channel' : message , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# #UNINDENT# add_db_list ( channel_key ( channel_id ) , { #NEWLINE# #INDENT# 'text' : text , #NEWLINE# 'timestamp' : message [ 'timestamp' ] , #NEWLINE# #UNINDENT# } )