Available types

GiftInfo

Describes a service message about a regular gift that was sent or received.

fields

fieldtyperequireddescription
giftGiftrequiredInformation about the gift
owned_gift_idstringoptionalOptional. Unique identifier of the received gift for the bot; only present for gifts received on behalf of business accounts
convert_star_countnumberoptionalOptional. Number of Telegram Stars that can be claimed by the receiver by converting the gift; omitted if conversion to Telegram Stars is impossible
prepaid_upgrade_star_countnumberoptionalOptional. Number of Telegram Stars that were prepaid for the ability to upgrade the gift
is_upgrade_separatebooleanoptionalOptional. True, if the gift's upgrade was purchased after the gift was sent
can_be_upgradedbooleanoptionalOptional. True, if the gift can be upgraded to a unique gift
textstringoptionalOptional. Text of the message that was added to the gift
entitiesMessageEntity[]optionalOptional. Special entities that appear in the text
is_privatebooleanoptionalOptional. True, if the sender and gift text are shown only to the gift receiver; otherwise, everyone will be able to see them
unique_gift_numbernumberoptionalOptional. Unique number reserved for this gift when upgraded. See the number field in UniqueGift.

import

types.ts
import type { GiftInfo } from "@yaebal/types";

used by

types