StaticGramBot API

GiveawayWinners

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

Поля

The chat that created the giveaway
Identifier of the message with the giveaway in the chat
Point in time (Unix timestamp) when winners of the giveaway were selected
Total number of winners in the giveaway
winnersArray of User
List of up to 100 winners of the giveaway
additional_chat_countIntegeroptional
The number of other chats the user had to join in order to be eligible for the giveaway
prize_star_countIntegeroptional
The number of Telegram Stars that were split between giveaway winners; for Telegram Star giveaways only
The number of months the Telegram Premium subscription won from the giveaway will be active for; for Telegram Premium giveaways only
unclaimed_prize_countIntegeroptional
Number of undistributed prizes
only_new_membersTrueoptional
True, if only users who had joined the chats after the giveaway started were eligible to win
was_refundedTrueoptional
True, if the giveaway was canceled because the payment for it was refunded
prize_descriptionStringoptional
Description of additional giveaway prize

Минимальный JSON

JSON
{
  "chat": {
    "id": 1780243423,
    "type": "private"
  },
  "giveaway_message_id": 1,
  "winners_selection_date": 1,
  "winner_count": 1,
  "winners": []
}

Где используется

Описания методов и типов взяты из официальной документации Telegram Bot API (Bot API 10.3). Адрес API: https://api.staticgram.top