Class TdApi.GetFileMimeType
java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.Function<TdApi.Text>
dev.voroby.springframework.telegram.client.TdApi.GetFileMimeType
- Enclosing class:
- TdApi
Returns the MIME type of a file, guessed by its extension. Returns an empty string on failure. Can be called synchronously.
Returns Text
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.The name of the file or path to the file. -
Constructor Summary
ConstructorDescriptionDefault constructor for a function, which returns the MIME type of a file, guessed by its extension.GetFileMimeType
(String fileName) Creates a function, which returns the MIME type of a file, guessed by its extension. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class dev.voroby.springframework.telegram.client.TdApi.Function
toString
-
Field Details
-
fileName
The name of the file or path to the file. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
GetFileMimeType
public GetFileMimeType()Default constructor for a function, which returns the MIME type of a file, guessed by its extension. Returns an empty string on failure. Can be called synchronously.Returns
Text
-
GetFileMimeType
Creates a function, which returns the MIME type of a file, guessed by its extension. Returns an empty string on failure. Can be called synchronously.Returns
Text
- Parameters:
fileName
- The name of the file or path to the file.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-