payments.SaveStarGift

class pyrogram.raw.functions.payments.SaveStarGift

Display or remove a received gift » from our profile.

Details:
  • Layer: 227

  • ID: 2A2A697C

Parameters:
  • stargift (InputSavedStarGift) – The gift to display or remove.

  • unsave (bool, optional) – If set, hides the gift from our profile.

Returns:

bool

TL Schema

payments.saveStarGift#2a2a697c
flags:#
unsave:flags.0?true
stargift:InputSavedStarGift

= Bool

Parameter Tree

SaveStarGift
├── unsave → true (optional)
└── stargift → InputSavedStarGift
│ └── msg_id → int
│ ├── peer → InputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ └── saved_id → long
└── slug → string

Example

await app.invoke(
    SaveStarGift(
        unsave=None,
        stargift=InputSavedStarGiftUser(msg_id=0),
    )
)