original_docstring: 
          Fetch users.
  
          Fetches user list who has conversation with the agent before specified month
  
          :param collection: collection to connect to
          :param timestamp_req: the timestamp based on month before which users present
          :return: list of user id
          
docstring: Fetch users.
  Fetches user list who has conversation with the agent before specified month
docstring_tokens: Fetch users . Fetches user list who has conversation with the agent before specified month
code: def fetch_chat_users_for_delete(collection: Text, timestamp_req: float):
  
          """
          Fetch users.
  
          Fetches user list who has conversation with the agent before specified month
  
          :param collection: collection to connect to
          :param timestamp_req: the timestamp based on month before which users present
          :return: list of user id
          """
          client, _ = HistoryProcessor.get_mongo_connection()
  
          with client as client:
              db = client.get_database()
              conversations = db.get_collection(collection)
              try:
                  values = conversations.find({"events.timestamp": {"$lt": timestamp_req}},
                                              {"_id": 0, "sender_id": 1})
                  users = [
                      sender["sender_id"]
                      for sender in values
                  ]
                  return users
              except Exception as e:
                  logger.error(e)
                  raise AppException(e)
code_tokens: def fetch_chat_users_for_delete ( collection : Text , timestamp_req : float ) : client , _ = HistoryProcessor . get_mongo_connection ( ) with client as client : db = client . get_database ( ) conversations = db . get_collection ( collection ) try : values = conversations . find ( { "events.timestamp" : { "$lt" : timestamp_req } } , { "_id" : 0 , "sender_id" : 1 } ) users = [ sender [ "sender_id" ] for sender in values ] return users except Exception as e : logger . error ( e ) raise AppException ( e )
short_docstring: Fetch users.
short_docstring_tokens: Fetch users .
comment: """
          Fetch users.
  
          Fetches user list who has conversation with the agent before specified month
  
          :param collection: collection to connect to
          :param timestamp_req: the timestamp based on month before which users present
          :return: list of user id
          """