mirror of
https://github.com/tgdrive/teldrive.git
synced 2025-11-07 00:06:26 +08:00
Merge branch 'main' of https://github.com/divyam234/teldrive
This commit is contained in:
commit
b3353893e2
1 changed files with 3 additions and 0 deletions
|
|
@ -70,6 +70,9 @@ func (us *UserService) GetProfilePhoto(c *gin.Context) {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
peer := self.AsInputPeer()
|
peer := self.AsInputPeer()
|
||||||
|
if self.Photo == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
photo, _ := self.Photo.AsNotEmpty()
|
photo, _ := self.Photo.AsNotEmpty()
|
||||||
location := &tg.InputPeerPhotoFileLocation{Big: false, Peer: peer, PhotoID: photo.PhotoID}
|
location := &tg.InputPeerPhotoFileLocation{Big: false, Peer: peer, PhotoID: photo.PhotoID}
|
||||||
buff, err := iterContent(c, client, location)
|
buff, err := iterContent(c, client, location)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue