X-Git-Url: https://git.giacomolli.uk/onechat/blobdiff_plain/0da50dc187c8b4aa23ac1ddd0418c0da779389d9..3cdbd017da9ae7a7045f4272f16d4b262fd01c79:/whatsapp_image.go?ds=inline diff --git a/whatsapp_image.go b/whatsapp_image.go index 4277b0a..d4b88d8 100644 --- a/whatsapp_image.go +++ b/whatsapp_image.go @@ -4,15 +4,11 @@ import ( "context" "errors" "fmt" - "time" "go.mau.fi/whatsmeow" "go.mau.fi/whatsmeow/proto/waE2E" ) -// whatsappImageTime is the longest time of an image download. -const whatsappImageTime = 2 * time.Minute - // whatsappImage downloads only supported images and stores them before the // event can be acknowledged. Both the declared size and the downloaded bytes // must fit the image store. Decoded bytes determine the stored format.