def _filter_message_by_chats(self, message, chats):
if chats is None:<EOL><INDENT>return True<EOL><DEDENT>chat_id = message['<STR_LIT:message>']['<STR_LIT>']['<STR_LIT:id>']<EOL>return chat_id in chats<EOL>
Check if a message can be filtered based in a list of chats.

        This method returns `True` when the message was sent to a chat
        of the given list. It also returns `True` when chats is `None`.

        :param message: Telegram message
        :param chats: list of chat, groups and channels identifiers

        :returns: `True` when the message can be filtered; otherwise,
            it returns `False`