This commit is contained in:
divyam234 2023-11-06 14:15:57 +05:30
parent abb5029472
commit b22303c555

View file

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