If MMM-SelfieShot is giving you trouble, you might want to look at MMM-TelegramBot or MMM-OpenCV. Most of the older camera modules struggle with the newer Pi camera drivers (libcamera), but OpenCV is much more flexible. For a university project, using the OpenCV module might even give you some extra ‘tech’ points since it can handle face detection too!