Open theSadra opened 3 years ago
i find such code example, but it throw Flood Prevention exception var mediaPhoto = message.Media as TLMessageMediaPhoto;
var photo = mediaPhoto.Photo as TLPhoto;
TLPhotoSize photoSize = photo.Sizes.ToList().OfType<TLPhotoSize>().Last();
TLFileLocation location = (TLFileLocation)photoSize.Location;
TLAbsInputFileLocation inputLocation = new TLInputFileLocation()
{
LocalId = location.LocalId,
Secret = location.Secret,
VolumeId = location.VolumeId
};
TLInputFileLocation inputFileLocation = inputLocation as TLInputFileLocation;
var photoFile = await _client.GetFile(inputFileLocation, 1024 * 512);
does anyone know how to avoid this error?
Check this thread https://github.com/sochix/TLSharp/issues/1019
Hi everyone, I'm using Tl sharp to create a channel message receiver. and I have a problem about receiving and saving Photo Files. I checked out official tlsharp code sample to get document files bud I want to save photo files using client.get(); method.
this is the code sample for ducument files:
How can I use this code for getting and saving Photo files?