Hi, I need to send a file via POST to Telegram via telegram bot API sendDocument method with the multipart/form-data way.
Does anyone know a way to do it in PHP?
I want to allow users to send the theme to the telegram channel, so it's easier for them to install it ant we can have a list of the created themes.
A reddit user make me notice that there is a security problem with user input, that could possibly access anny file directory. I'm now looking on how to correct this.
Does anyone know any easy to implement solution?