From b22303c555675737a61fcd449deac6978d97c935 Mon Sep 17 00:00:00 2001 From: divyam234 Date: Mon, 6 Nov 2023 14:15:57 +0530 Subject: [PATCH] update --- services/upload.service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/upload.service.go b/services/upload.service.go index 05d5498..8fcd78f 100644 --- a/services/upload.service.go +++ b/services/upload.service.go @@ -145,7 +145,7 @@ func (us *UploadService) UploadFile(c *gin.Context) (*schemas.UploadPartOut, *ty message, ok := updates.Updates[1].(*tg.UpdateNewChannelMessage).Message.(*tg.Message) - if !ok { + if !ok || message.ID == 0 { return errors.New("failed to upload part") }