MadelineProtoDocs/docs/TD_docs/methods/getFileMimeType.md

826 B

title description image
getFileMimeType Returns file's mime type guessing only by its extension. Returns empty string on failure. Offline method. Can be called before authorization. Can be called synchronously https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Method: getFileMimeType

Back to methods index

YOU CANNOT USE THIS METHOD IN MADELINEPROTO

Returns file's mime type guessing only by its extension. Returns empty string on failure. Offline method. Can be called before authorization. Can be called synchronously

Parameters:

Name Type Description Required
file_name string Name of the file or path to the file Yes

Return type: Text