Method | Description | |
---|---|---|
FileToSend ( Stream fileContent, string fileName ) : System |
Post the file using multipart/form-data in the usual way that files are uploaded via the browser. 10 MB max size for photos, 50 MB for other files.
|
|
FileToSend ( string existingFileId ) : System |
If the file is already stored somewhere on the Telegram servers, you don't need to reupload it: each file object has a file_id field, simply pass this file_id as a parameter instead of uploading. There are no limits for files sent this way. Since October 2016, provide Telegram with an HTTP URL for the file to be sent. Telegram will download and send the file. 5 MB max size for photos and 20 MB max for other types of content. |
public FileToSend ( Stream fileContent, string fileName ) : System | ||
fileContent | Stream | |
fileName | string | |
return | System |
public FileToSend ( string existingFileId ) : System | ||
existingFileId | string | |
return | System |