giveaway implementation
parent
bd151fc816
commit
e06de39556
33
types.go
33
types.go
|
@ -741,6 +741,22 @@ type Message struct {
|
||||||
//
|
//
|
||||||
// optional
|
// optional
|
||||||
GeneralForumTopicUnhidden *GeneralForumTopicUnhidden `json:"general_forum_topic_unhidden,omitempty"`
|
GeneralForumTopicUnhidden *GeneralForumTopicUnhidden `json:"general_forum_topic_unhidden,omitempty"`
|
||||||
|
// Service message: a scheduled giveaway was created
|
||||||
|
//
|
||||||
|
// optional
|
||||||
|
GiveawayCreated *GiveawayCreated `json:"giveaway_created,omitempty"`
|
||||||
|
// The message is a scheduled giveaway message
|
||||||
|
//
|
||||||
|
// optional
|
||||||
|
Giveaway *Giveaway `json:"giveaway,omitempty"`
|
||||||
|
// A giveaway with public winners was completed
|
||||||
|
//
|
||||||
|
// optional
|
||||||
|
GiveawayWinners *GiveawayWinners `json:"giveaway_winners,omitempty"`
|
||||||
|
// Service message: a giveaway without public winners was completed
|
||||||
|
//
|
||||||
|
// optional
|
||||||
|
GiveawayCompleted *GiveawayCompleted `json:"giveaway_completed,omitempty"`
|
||||||
// VideoChatScheduled is a service message: video chat scheduled.
|
// VideoChatScheduled is a service message: video chat scheduled.
|
||||||
//
|
//
|
||||||
// optional
|
// optional
|
||||||
|
@ -1659,6 +1675,9 @@ type VideoChatParticipantsInvited struct {
|
||||||
Users []User `json:"users,omitempty"`
|
Users []User `json:"users,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// This object represents a service message about the creation of a scheduled giveaway. Currently holds no information.
|
||||||
|
type GiveawayCreated struct{}
|
||||||
|
|
||||||
// Giveaway represents a message about a scheduled giveaway.
|
// Giveaway represents a message about a scheduled giveaway.
|
||||||
type Giveaway struct {
|
type Giveaway struct {
|
||||||
// Chats is the list of chats which the user must join to participate in the giveaway
|
// Chats is the list of chats which the user must join to participate in the giveaway
|
||||||
|
@ -1738,6 +1757,20 @@ type GiveawayWinners struct {
|
||||||
PrizeDescription string `json:"prize_description,omitempty"`
|
PrizeDescription string `json:"prize_description,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// This object represents a service message about the completion of a giveaway without public winners.
|
||||||
|
type GiveawayCompleted struct {
|
||||||
|
// Number of winners in the giveaway
|
||||||
|
WinnerCount int `json:"winner_count"`
|
||||||
|
// Number of undistributed prizes
|
||||||
|
//
|
||||||
|
// optional
|
||||||
|
UnclaimedprizeCounr int `json:"unclaimed_prize_count,omitempty"`
|
||||||
|
// Message with the giveaway that was completed, if it wasn't deleted
|
||||||
|
//
|
||||||
|
// optional
|
||||||
|
GiveawayMessage *Message `json:"giveaway_message,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
// LinkPreviewOptions describes the options used for link preview generation.
|
// LinkPreviewOptions describes the options used for link preview generation.
|
||||||
type LinkPreviewOptions struct {
|
type LinkPreviewOptions struct {
|
||||||
// IsDisabled True, if the link preview is disabled
|
// IsDisabled True, if the link preview is disabled
|
||||||
|
|
Loading…
Reference in New Issue