Function teloxide_core::net::download_file_stream

source ·
pub fn download_file_stream(
    client: &Client,
    api_url: Url,
    token: &str,
    path: &str,
) -> impl Stream<Item = Result<Bytes>> + 'static
Expand description

Download a file from Telegram as Stream.

Note: if you don’t need to use a different (from you’re bot) client and don’t need to get all performance (and you don’t, c’mon it’s very io-bound job), then it’s recommended to use Download::download_file_stream.