UserGift.toggle()#
- UserGift.toggle()#
Bound method toggle of
UserGift
.Use as a shortcut for:
await client.toggle_gift_is_saved( sender_user_id=user_id, message_id=message_id )
- Parameters:
is_saved (
bool
) – Pass True to display the gift on the user’s profile page; pass False to remove it from the profile page.
Example
await user_gift.toggle(is_saved=False)
- Returns:
bool
– On success, True is returned.