public class InputFile extends Object
| Constructor and Description |
|---|
InputFile(File file)
Create an InputFile object based on a File object to be sent within a SendableMessage
|
InputFile(InputStream inputStream,
String fileName)
Creates an InputFile object based on an InputStream object to be sent within a SendableMessage
|
InputFile(String fileID)
Creates an InputFile object based on a File ID for a file that is stored on the telegram servers, which can
then be sent within a SendableMessage
|
InputFile(URL url)
Create an InputFile object based on an external URL to be sent within a SendableMessage
|
public InputFile(URL url)
url - The URL of the file you want this InputFile to point topublic InputFile(File file)
file - A File object relating to the file you want this InputFile to point topublic InputFile(String fileID)
fileID - The ID of the file stored on the telegram serverspublic InputFile(InputStream inputStream, String fileName)
inputStream - The input streamfileName - The file nameCopyright © 2017. All rights reserved.