Skip to content

toggleGiftIsSaved

Function · TDLib 1.8.67 · d1085f9c

Toggles whether a gift is shown on the current user's or the channel's profile page; requires can_post_messages administrator right in the channel chat

toggleGiftIsSaved(
  received_gift_id: string,
  is_saved: Bool
) → Ok

received_gift_id

string

Identifier of the gift

is_saved

Bool

Pass true to display the gift on the user's or the channel's profile page; pass false to remove it from the profile page