C# Class Telegram.Bot.Types.FileToSend

Represents information for a file to be sent
Mostra file Open project: MrRoundRobin/telegram.bot Class Usage Examples

Public Methods

Method Description
FileToSend ( Uri url ) : System

Send a File from Url

FileToSend ( string fileId ) : System

Send a File by Id

FileToSend ( string filename, Stream content ) : System

Send a FileStream.

Method Details

FileToSend() public method

Send a File from Url
public FileToSend ( Uri url ) : System
url Uri The File to send
return System

FileToSend() public method

Send a File by Id
public FileToSend ( string fileId ) : System
fileId string The File to send
return System

FileToSend() public method

Send a FileStream.
public FileToSend ( string filename, Stream content ) : System
filename string The .
content Stream The .
return System