class Tourmaline::ChatBoostSourceGiveaway

Overview

The boost was obtained by the creation of a Telegram Premium giveaway. This boosts the chat 4 times for the duration of the corresponding Telegram Premium subscription.

Included Modules

Defined in:

tourmaline/types/api.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(source : String, giveaway_message_id : Int32 | Int64, user : Tourmaline::User | Nil = nil, is_unclaimed : Bool | Nil = nil) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def giveaway_message_id : Int32 | Int64 #

Identifier of a message in the chat with the giveaway; the message could have been deleted already. May be 0 if the message isn't sent yet.


[View source]
def giveaway_message_id=(giveaway_message_id : Int32 | Int64) #

Identifier of a message in the chat with the giveaway; the message could have been deleted already. May be 0 if the message isn't sent yet.


[View source]
def is_unclaimed=(is_unclaimed : Bool | Nil) #

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


[View source]
def is_unclaimed? : Bool | Nil #

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


[View source]
def source : String #

Source of the boost, always "giveaway"


[View source]
def source=(source : String) #

Source of the boost, always "giveaway"


[View source]
def user : Tourmaline::User | Nil #

Optional. User that won the prize in the giveaway if any


[View source]
def user=(user : Tourmaline::User | Nil) #

Optional. User that won the prize in the giveaway if any


[View source]