23 lines
747 B
Markdown
23 lines
747 B
Markdown
|
---
|
||
|
title: getFileMimeType
|
||
|
description: 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](index.md)
|
||
|
|
||
|
|
||
|
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](../types/string.md) | Yes|Name of the file or path to the file|
|
||
|
|
||
|
|
||
|
### Return type: [Text](../types/Text.md)
|
||
|
|