Telebot 9.4
Library for Telegram bot API
Loading...
Searching...
No Matches
Public Attributes | List of all members
telebot_giveaway_winners Struct Reference

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

#include <telebot-types.h>

Public Attributes

struct telebot_chatchat
 
int giveaway_message_id
 
long winners_selection_date
 
int winner_count
 
struct telebot_userwinners
 
int count_winners
 
int additional_chat_count
 
int prize_star_count
 
int premium_subscription_month_count
 
int unclaimed_prize_count
 
bool only_new_members
 
bool was_refunded
 
char * prize_description
 

Detailed Description

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

Member Data Documentation

◆ additional_chat_count

int telebot_giveaway_winners::additional_chat_count

Optional. The number of other chats the user had to join in order to be eligible for the giveaway

◆ chat

struct telebot_chat* telebot_giveaway_winners::chat

The chat that created the giveaway

◆ giveaway_message_id

int telebot_giveaway_winners::giveaway_message_id

Identifier of the message with the giveaway in the chat

◆ only_new_members

bool telebot_giveaway_winners::only_new_members

Optional. True, if only users who had joined the chats after the giveaway started were eligible to win

◆ premium_subscription_month_count

int telebot_giveaway_winners::premium_subscription_month_count

Optional. The number of months the Telegram Premium subscription won from the giveaway will be active for

◆ prize_description

char* telebot_giveaway_winners::prize_description

Optional. Description of additional giveaway prize

◆ prize_star_count

int telebot_giveaway_winners::prize_star_count

Optional. The number of Telegram Stars that were split between giveaway winners

◆ unclaimed_prize_count

int telebot_giveaway_winners::unclaimed_prize_count

Optional. Number of undistributed prizes

◆ was_refunded

bool telebot_giveaway_winners::was_refunded

Optional. True, if the giveaway was canceled because the payment for it was refunded

◆ winner_count

int telebot_giveaway_winners::winner_count

Total number of winners in the giveaway

◆ winners

struct telebot_user* telebot_giveaway_winners::winners

List of winners of the giveaway

◆ winners_selection_date

long telebot_giveaway_winners::winners_selection_date

Point in time (Unix timestamp) when winners of the giveaway were selected


The documentation for this struct was generated from the following file: