#NEWLINE# @ qqbot . qqMessageHandler ( ) #NEWLINE# def pass2TG( message ) : #NEWLINE# #INDENT# logging . warning ( ( ( ( ( message . sourceType + ' ' ) + str ( message . fromGroupID ) ) + ' ' ) + message . content ) ) #NEWLINE# if ( ( message . sourceType == 'group' ) and ( message . fromGroupID == botconfig . qqGroupID ) ) : #NEWLINE# #INDENT# msg = message . content #NEWLINE# sender = sender . fromID #NEWLINE# tgbot . send_message ( chat_id = botconfig . telegramGroupID , text = ( '[%s] %s' % ( sender , msg ) ) )