Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
divyam234 committed Nov 6, 2023
1 parent abb5029 commit b22303c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/upload.service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}

Expand Down

0 comments on commit b22303c

Please sign in to comment.