Auto Start printing the latest uploaded file

is there a way to tell Octoprint to start printing the last uploaded file?
I'm trying to send gcode files with Telegram plugin and then automatically start printing that file.
Is it possible?

Doesn't the Telegram plugin have /print as one of the commands?

Yes but it is not automatic because telegram asks me the file i want to print.
I want to print the selected file on octoprint

Hm... I suppose you could install the Autoselect plugin and edit it so that this line reads True instead of False.



Ok, tomorrow i will try this. Thanks for your answers!

Yup this should do it


How to modify a plugin code?

I searched on internet but i didn't find anything relevant

Ok i find out. It works perfectly, thank you all!!!