This commit is contained in:
divyam234 2023-08-27 16:38:47 +05:30
commit b3353893e2

View file

@ -70,6 +70,9 @@ func (us *UserService) GetProfilePhoto(c *gin.Context) {
return err
}
peer := self.AsInputPeer()
if self.Photo == nil {
return nil
}
photo, _ := self.Photo.AsNotEmpty()
location := &tg.InputPeerPhotoFileLocation{Big: false, Peer: peer, PhotoID: photo.PhotoID}
buff, err := iterContent(c, client, location)