code: def from_array(array):
          
          if array is None or not array:
              return None
          # end if
          assert_type_or_raise(array, dict, parameter_name="array")
  
          data = {}
          data['action'] = u(array.get('action'))
          if array.get('chat_id') is None:
              data['receiver'] = None
          elif isinstance(array.get('chat_id'), None):
              data['receiver'] = None(array.get('chat_id'))
          elif isinstance(array.get('chat_id'), str):
              data['receiver'] = u(array.get('chat_id'))
          elif isinstance(array.get('chat_id'), int):
              data['receiver'] = int(array.get('chat_id'))
          else:
              raise TypeError('Unknown type, must be one of None, str, int or None.')
          # end if
          return ChatActionMessage(**data)
docs: Deserialize a new ChatActionMessage from a given dictionary.
  
          :return: new ChatActionMessage instance.
          :rtype: ChatActionMessage