MadelineProto/docs/TD_docs/methods/getFileMimeType.md
Daniil Gentili 43adf77378 docufix
2017-12-21 20:08:25 +00:00

747 B

title description
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

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

Params:

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

Return type: Text