Have error: LIMIT_INVALID
Memory Exception? Anybody have worked examples?
TLMessageMediaDocument mediaFile = _msg.Media as TLMessageMediaDocument;
TLDocument doc = mediaFile.Document as TLDocument;
client.GetFile(new TLInputDocumentFileLocation() {
AccessHash = doc.AccessHash,
Id = doc.Id, Version = doc.Version },
doc.Size).Wait();
There are few steps that are must-to-know when downloading files. Telegram documentation says:
I have no idea what a
precise
flag is that's why I used the 1st one (using limits and offsets that are divisible by 4 KB) because 4 is divisible by 1.Here's the doc link: https://core.telegram.org/api/files
Here the code that I use using C# TLSharp