I have telegram bot receiving a photo in webhook. I can download photo but not get file extension. How to get image extension and optionally mime-type from variable containing photo?
I have telegram bot receiving a photo in webhook. I can download photo but not get file extension. How to get image extension and optionally mime-type from variable containing photo?