Property MaxDownloadBytes

Assembly: redb.Route.Telegram.dll

Ceiling on a download, in bytes. Default 20 MiB — the Bot API's own limit for
what a bot may download, so the default refuses exactly what Telegram would refuse.

Enforced BEFORE the transfer, against the size getFile reports, and again while
reading: a downloaded file becomes a byte array in memory, and "how big can that get"
must not be answerable only by the sender. Set 0 to lift the ceiling.

public long MaxDownloadBytes { get; set; }