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

This object represents a message about a scheduled giveaway. More...

#include <telebot-types.h>

Public Attributes

struct telebot_chatchats
 
int count_chats
 
long winners_selection_date
 
int winner_count
 
bool only_new_members
 
bool has_public_winners
 
char * prize_description
 
char ** country_codes
 
int count_country_codes
 
int prize_star_count
 
int premium_subscription_month_count
 

Detailed Description

This object represents a message about a scheduled giveaway.

Member Data Documentation

◆ chats

struct telebot_chat* telebot_giveaway::chats

The list of chats which the user must join to participate in the giveaway

◆ country_codes

char** telebot_giveaway::country_codes

Optional. A list of two-letter ISO 3166-1 alpha-2 country codes

◆ has_public_winners

bool telebot_giveaway::has_public_winners

Optional. True, if the list of giveaway winners will be visible to everyone

◆ only_new_members

bool telebot_giveaway::only_new_members

Optional. True, if only users who join the chats after the giveaway started should be eligible to win

◆ premium_subscription_month_count

int telebot_giveaway::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::prize_description

Optional. Description of additional giveaway prize

◆ prize_star_count

int telebot_giveaway::prize_star_count

Optional. The number of Telegram Stars to be split between giveaway winners

◆ winner_count

int telebot_giveaway::winner_count

The number of users which are supposed to be selected as winners of the giveaway

◆ winners_selection_date

long telebot_giveaway::winners_selection_date

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


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