Skip to content

GramIO API Reference / gramio/dist / TelegramGiveawayWinners

Interface: TelegramGiveawayWinners

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

This object represents a message about the completion of a giveaway with public winners.

Documentation

Properties

PropertyTypeDescriptionDefined in
additional_chat_count?numberOptional. The number of other chats the user had to join in order to be eligible for the giveaway@gramio/types/out/objects.d.ts:2783
chatTelegramChatThe chat that created the giveaway@gramio/types/out/objects.d.ts:2763
giveaway_message_idnumberIdentifier of the message with the giveaway in the chat@gramio/types/out/objects.d.ts:2767
only_new_members?trueOptional. True, if only users who had joined the chats after the giveaway started were eligible to win@gramio/types/out/objects.d.ts:2799
premium_subscription_month_count?numberOptional. The number of months the Telegram Premium subscription won from the giveaway will be active for; for Telegram Premium giveaways only@gramio/types/out/objects.d.ts:2791
prize_description?stringOptional. Description of additional giveaway prize@gramio/types/out/objects.d.ts:2807
prize_star_count?numberOptional. The number of Telegram Stars that were split between giveaway winners; for Telegram Star giveaways only@gramio/types/out/objects.d.ts:2787
unclaimed_prize_count?numberOptional. Number of undistributed prizes@gramio/types/out/objects.d.ts:2795
was_refunded?trueOptional. True, if the giveaway was canceled because the payment for it was refunded@gramio/types/out/objects.d.ts:2803
winner_countnumberTotal number of winners in the giveaway@gramio/types/out/objects.d.ts:2775
winnersTelegramUser[]List of up to 100 winners of the giveaway@gramio/types/out/objects.d.ts:2779
winners_selection_datenumberPoint in time (Unix timestamp) when winners of the giveaway were selected@gramio/types/out/objects.d.ts:2771