payments.SaveStarGift

class pyrogram.raw.functions.payments.SaveStarGift

Display or remove a received gift » from our profile.

Details:
  • Layer: 223

  • 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
├── unsavetrue (optional)
└── stargiftInputSavedStarGift
│ └── msg_idint
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ └── saved_idlong
└── slugstring

Example

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