Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/grammy/types.ts>ChatBoostSourceGiveaway

The Telegram Bot Framework.
Very Popular
Latest
interface ChatBoostSourceGiveaway
import { type ChatBoostSourceGiveaway } from "https://deno.land/x/grammy@v1.31.3/types.ts";

The boost was obtained by the creation of a Telegram Premium or a Telegram Star giveaway. This boosts the chat 4 times for the duration of the corresponding Telegram Premium subscription for Telegram Premium giveaways and prize_star_count / 500 times for one year for Telegram Star giveaways.

Properties

source: "giveaway"

Source of the boost, always “giveaway”

giveaway_message_id: number

Identifier of a message in the chat with the giveaway; the message could have been deleted already

optional
user: User

User that won the prize in the giveaway if any; for Telegram Premium giveaways only

optional
prize_star_count: number

The number of Telegram Stars to be split between giveaway winners; for Telegram Star giveaways only

optional
is_unclaimed: true

True, if the giveaway was completed, but there was no user to win the prize