44 lines
2.2 KiB
Go
44 lines
2.2 KiB
Go
package models
|
|
|
|
// Giveaway https://core.telegram.org/bots/api#giveaway
|
|
type Giveaway struct {
|
|
Chats []Chat `json:"chats"`
|
|
WinnersSelectionDate int `json:"winners_selection_date"`
|
|
WinnerCount int `json:"winner_count"`
|
|
OnlyNewMembers bool `json:"only_new_members,omitempty"`
|
|
HasPublicWinners bool `json:"has_public_winners,omitempty"`
|
|
PrizeDescription string `json:"prize_description,omitempty"`
|
|
CountryCodes []string `json:"country_codes,omitempty"`
|
|
PrizeStarCount int `json:"prize_star_count,omitempty"`
|
|
PremiumSubscriptionMonthCount int `json:"premium_subscription_month_count,omitempty"`
|
|
}
|
|
|
|
// GiveawayCreated https://core.telegram.org/bots/api#giveawaycreated
|
|
type GiveawayCreated struct {
|
|
PrizeStarCount int `json:"prize_star_count,omitempty"`
|
|
}
|
|
|
|
// GiveawayWinners https://core.telegram.org/bots/api#giveawaywinners
|
|
type GiveawayWinners struct {
|
|
Chat Chat `json:"chat"`
|
|
GiveawayMessageID int `json:"giveaway_message_id"`
|
|
WinnersSelectionDate int `json:"winners_selection_date"`
|
|
WinnerCount int `json:"winner_count"`
|
|
Winners []User `json:"winners"`
|
|
AdditionalChatCount int `json:"additional_chat_count,omitempty"`
|
|
PremiumSubscriptionMonthCount int `json:"premium_subscription_month_count,omitempty"`
|
|
UnclaimedPrizeCount int `json:"unclaimed_prize_count,omitempty"`
|
|
PrizeStarCount int `json:"prize_star_count,omitempty"`
|
|
OnlyNewMembers bool `json:"only_new_members,omitempty"`
|
|
WasRefunded bool `json:"was_refunded,omitempty"`
|
|
PrizeDescription string `json:"prize_description,omitempty"`
|
|
}
|
|
|
|
// GiveawayCompleted https://core.telegram.org/bots/api#giveawaycompleted
|
|
type GiveawayCompleted struct {
|
|
WinnerCount int `json:"winner_count"`
|
|
UnclaimedPrizeCount int `json:"unclaimed_prize_count,omitempty"`
|
|
GiveawayMessage *Message `json:"giveaway_message,omitempty"`
|
|
IsStarGiveaway bool `json:"is_star_giveaway,omitempty"`
|
|
}
|