mirror of
https://github.com/tgdrive/teldrive.git
synced 2025-10-09 23:06:04 +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)
|
message, ok := updates.Updates[1].(*tg.UpdateNewChannelMessage).Message.(*tg.Message)
|
||||||
|
|
||||||
if !ok {
|
if !ok || message.ID == 0 {
|
||||||
return errors.New("failed to upload part")
|
return errors.New("failed to upload part")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue