X-Git-Url: https://git.giacomolli.uk/onechat/blobdiff_plain/3b2bf881d484ba1a33ff77a342564b8195a75c80..48d7bce28b18ecef4c52c98821675605464cecb9:/whatsapp_image.go 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.