code: def get_messages(chat_id):
      
  
      mark_seen = request.args.get('mark_seen', True)
  
      chat = g.driver.get_chat_from_id(chat_id)
      msgs = list(g.driver.get_all_messages_in_chat(chat))
  
      for msg in msgs:
          print(msg.id)
  
      if mark_seen:
          for msg in msgs:
              try:
                  msg.chat.send_seen()
              except:
                  pass
      
      return jsonify(msgs)
docs: Return all of the chat messages