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") }