Layer 224
PaymentsToggleStarGiftsPinnedToTop
Pins a received gift on top of the profile of the user or owned channels by using payments. toggle Star Gifts Pinned To Top.
method
Users
payments.toggleStarGiftsPinnedToTop#1513e7b0 peer:InputPeer stargift:Vector<InputSavedStarGift> = Bool;
Parameters
| Name | Type | Description |
|---|---|---|
| Peer | InputPeer | The peer where to pin the gift. |
| Stargift | Vector<InputSavedStarGift> | The gift to pin. |
Returns
BoolGogram Example
// PaymentsToggleStarGiftsPinnedToTop - positional arguments result, err := client.PaymentsToggleStarGiftsPinnedToTop(&tg.InputPeerUser{UserID: int64(777000)}, []tg.InputSavedStarGift{&tg.InputSavedStarGift{}}) if err != nil { // handle error } // result is *tg.Bool
Possible Errors
| Code | Type | Description |
|---|---|---|
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |