Link Search Menu Expand Document

Constructor: payments.savedStarGifts

Back to constructors index

Represents a list of gifts.

Attributes:

NameTypeRequiredDescription
countintYesTotal number of results (can be less than the returned gifts, in which case next_offset will be set).
chat_notifications_enabledBoolOptionalTernary value: can be not set, set&true, set&false.
Can only be set for channels we own: the value indicates whether we enabled gift notifications for this channel.
giftsArray of SavedStarGiftYesGifts
next_offsetstringOptionalOffset to pass to payments.getSavedStarGifts to fetch the next page of results.
chatsArray of ChatYesChannels mentioned in gifts
usersArray of UserYesUsers mentioned in gifts

Type: payments.SavedStarGifts

Example:

$payments_savedStarGifts = ['_' => 'payments.savedStarGifts', 'count' => int, 'chat_notifications_enabled' => Bool, 'gifts' => [SavedStarGift, SavedStarGift], 'next_offset' => 'string', 'chats' => [Chat, Chat], 'users' => [User, User]];