Raw.MessageMediaGiveaway
Contains info about a giveaway, see here for more info.
messageMediaGiveaway#daad85b0 flags:# only_new_subscribers:flags.0?true winners_are_visible:flags.2?true channels:Vector<long> countries_iso2:flags.1?Vector<string> prize_description:flags.3?string quantity:int months:int until_date:int = MessageMedia;
export namespace Raw {
export class MessageMediaGiveaway {
constructor(params: {
onlyNewSubscribers?: boolean;
winnersAreVisible?: boolean;
channels: Array<bigint>;
countriesIso2?: Array<string>;
prizeDescription?: string;
quantity: number;
months: number;
untilDate: number;
}) {}
}
}
🚫
This is a types constructor, you can’t use it as method when call invoke.
Layer: 185
Constructor ID: 0xdaad85b0
Property
onlyNewSubscribers
: boolean or undefinedIf set, only new subscribers starting from the giveaway creation date will be able to participate to the giveaway.
winnersAreVisible
: boolean or undefinedIf set, giveaway winners are public and will be listed in a messagemediagiveawayresults message that will be automatically sent to the channel once the giveaway ends.
channels
: Array of bigintThe channels that the user must join to participate in the giveaway.
countriesIso2
: Array of string or undefinedIf set, only users residing in these countries can participate in the giveaway, (specified as a list of two-letter iso 3166-1 alpha-2 country codes); otherwise there are no country-based limitations.
prizeDescription
: string or undefinedCan contain a textual description of additional giveaway prizes.
quantity
: numberNumber of telegram premium subscriptions given away.
months
: numberDuration in months of each telegram premium subscription in the giveaway.
untilDate
: numberThe end date of the giveaway.