Skip to content

GramIO API Reference / gramio/dist / TelegramGiftInfo

Interface: TelegramGiftInfo

Defined in: @gramio/types/out/objects.d.ts:4824

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

Documentation

Properties

PropertyTypeDescriptionDefined in
can_be_upgraded?trueOptional. True, if the gift can be upgraded to a unique gift@gramio/types/out/objects.d.ts:4848
convert_star_count?numberOptional. Number of Telegram Stars that can be claimed by the receiver by converting the gift; omitted if conversion to Telegram Stars is impossible@gramio/types/out/objects.d.ts:4836
entities?TelegramMessageEntity[]Optional. Special entities that appear in the text@gramio/types/out/objects.d.ts:4856
giftTelegramGiftInformation about the gift@gramio/types/out/objects.d.ts:4828
is_private?trueOptional. True, if the sender and gift text are shown only to the gift receiver; otherwise, everyone will be able to see them@gramio/types/out/objects.d.ts:4860
is_upgrade_separate?trueOptional. True, if the gift's upgrade was purchased after the gift was sent@gramio/types/out/objects.d.ts:4844
owned_gift_id?stringOptional. Unique identifier of the received gift for the bot; only present for gifts received on behalf of business accounts@gramio/types/out/objects.d.ts:4832
prepaid_upgrade_star_count?numberOptional. Number of Telegram Stars that were prepaid for the ability to upgrade the gift@gramio/types/out/objects.d.ts:4840
text?stringOptional. Text of the message that was added to the gift@gramio/types/out/objects.d.ts:4852
unique_gift_number?numberOptional. Unique number reserved for this gift when upgraded. See the number field in UniqueGift@gramio/types/out/objects.d.ts:4864