mirror of
https://github.com/tgdrive/teldrive.git
synced 2025-01-09 00:29:57 +08:00
update
This commit is contained in:
parent
abb5029472
commit
b22303c555
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue