Skip to content

GramIO API Reference / @gramio/contexts/dist / GiveawayCreated

Class: GiveawayCreated

Defined in: contexts/index.d.ts:2645

This object represents a service message about the creation of a scheduled giveaway. Currently holds no information.

Constructors

Constructor

new GiveawayCreated(payload): GiveawayCreated

Defined in: contexts/index.d.ts:2647

Parameters

ParameterType
payloadTelegramGiveawayCreated

Returns

GiveawayCreated

Properties

PropertyTypeDefined in
payloadTelegramGiveawayCreatedcontexts/index.d.ts:2646

Accessors

[toStringTag]

Get Signature

get [toStringTag](): string

Defined in: contexts/index.d.ts:2649

MDN

Returns

string


prizeStarCount

Get Signature

get prizeStarCount(): number

Defined in: contexts/index.d.ts:2651

The number of Telegram Stars that were split between giveaway winners; for Telegram Star giveaways only

Returns

number