telegram_bot_api_file (telegram_bot_api v2.9.0)

View Source

Summary

Types

deep_list/0

-type deep_list() :: [char() | atom() | deep_list()].

name_all/0

-type name_all() :: string() | atom() | deep_list() | (RawFilename :: binary()).

Functions

download(Pool, FilePath, StreamTo)

-spec download(Pool :: telegram_bot_api:pool_name(), FilePath :: binary(), StreamTo :: name_all()) ->
                  Result :: saved_to_file | telegram_bot_api:ret().

download(Pool, FilePath, StreamTo, Async)

-spec download(Pool :: telegram_bot_api:pool_name(),
               FilePath :: binary(),
               StreamTo :: name_all(),
               Async :: boolean()) ->
                  Result :: saved_to_file | telegram_bot_api:ret().