C# Class TeleBotDotNet.Extensions.TeleBotExtensions

Show file Open project: LouisMT/TeleBotDotNet

Public Methods

Method Description
DownloadFile ( this bot, TeleBotDotNet.Responses.Methods.GetFileResponse getFileResponse ) : byte[]

Download a file as a byte array using a GetFileResponse.

DownloadFileAsync ( this bot, TeleBotDotNet.Responses.Methods.GetFileResponse getFileResponse ) : Task

Download a file as a byte array async using a GetFileResponse.

Method Details

DownloadFile() public static method

Download a file as a byte array using a GetFileResponse.
public static DownloadFile ( this bot, TeleBotDotNet.Responses.Methods.GetFileResponse getFileResponse ) : byte[]
bot this
getFileResponse TeleBotDotNet.Responses.Methods.GetFileResponse
return byte[]

DownloadFileAsync() public static method

Download a file as a byte array async using a GetFileResponse.
public static DownloadFileAsync ( this bot, TeleBotDotNet.Responses.Methods.GetFileResponse getFileResponse ) : Task
bot this
getFileResponse TeleBotDotNet.Responses.Methods.GetFileResponse
return Task