# payments.getSavedStarGift

> Fetch info about specific [gifts](https://core.telegram.org/api/gifts) owned by a peer we control.

[Back to methods index](index.html)



Fetch info about specific [gifts](https://core.telegram.org/api/gifts) owned by a peer we control.

Note that unlike what the name suggests, the method can be used to fetch both "saved" and "unsaved" gifts (aka gifts both pinned and not pinned to the profile).

### Parameters:

| Name     |    Type       | Description | Required |
|----------|---------------|-------------|----------|
|stargift|Array of [InputSavedStarGift](/API_docs/types/InputSavedStarGift.html) | List of gifts to fetch info about. | Yes|


### Return type: [payments.SavedStarGifts](/API_docs/types/payments.SavedStarGifts.html)

### Can users use this method: **YES**


### Can bots use this method: **NO**


### Can bots use this method over a business connection with the `businessConnectionId` flag: **NO**


### MadelineProto Example ([now async for huge speed and parallelism!](https://docs.madelineproto.xyz/docs/ASYNC.html)):


```php
if (!file_exists('madeline.php')) {
    copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php');
}
include 'madeline.php';

$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();

$payments_SavedStarGifts = $MadelineProto->payments->getSavedStarGift(stargift: [$InputSavedStarGift, $InputSavedStarGift], );
```
