telegram-bot-api-7.0: Easy to use library for building Telegram bots. Exports Telegram Bot API.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Telegram.Bot.API.Types.ChatBoostSource

Synopsis

ChatBoostSource

data ChatBoostSource Source #

This object describes the source of a chat boost. It can be one of

  • ChatBoostSourcePremium
  • ChatBoostSourceGiftCode
  • ChatBoostSourceGiveaway

Constructors

ChatBoostSourcePremium

The boost was obtained by subscribing to Telegram Premium or by gifting a Telegram Premium subscription to another user.

Fields

ChatBoostSourceGiftCode

The boost was obtained by the creation of Telegram Premium gift codes to boost a chat. Each such code boosts the chat 4 times for the duration of the corresponding Telegram Premium subscription.

Fields

ChatBoostSourceGiveaway

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.

Fields

Instances

Instances details
FromJSON ChatBoostSource Source # 
Instance details

Defined in Telegram.Bot.API.Types.ChatBoostSource

ToJSON ChatBoostSource Source # 
Instance details

Defined in Telegram.Bot.API.Types.ChatBoostSource

Generic ChatBoostSource Source # 
Instance details

Defined in Telegram.Bot.API.Types.ChatBoostSource

Associated Types

type Rep ChatBoostSource :: Type -> Type #

Show ChatBoostSource Source # 
Instance details

Defined in Telegram.Bot.API.Types.ChatBoostSource

type Rep ChatBoostSource Source # 
Instance details

Defined in Telegram.Bot.API.Types.ChatBoostSource

type Rep ChatBoostSource = D1 ('MetaData "ChatBoostSource" "Telegram.Bot.API.Types.ChatBoostSource" "telegram-bot-api-7.0-2XShkJeCLX71W7OKNKemWZ" 'False) (C1 ('MetaCons "ChatBoostSourcePremium" 'PrefixI 'True) (S1 ('MetaSel ('Just "chatBoostSourcePremiumSource") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "chatBoostSourcePremiumUser") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 User)) :+: (C1 ('MetaCons "ChatBoostSourceGiftCode" 'PrefixI 'True) (S1 ('MetaSel ('Just "chatBoostSourceGiftCodeSource") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "chatBoostSourceGiftCodeUser") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 User)) :+: C1 ('MetaCons "ChatBoostSourceGiveaway" 'PrefixI 'True) ((S1 ('MetaSel ('Just "chatBoostSourceGiveawaySource") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "chatBoostSourceGiveawayGiveawayMessageId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MessageId)) :*: (S1 ('MetaSel ('Just "chatBoostSourceGiveawayUser") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe User)) :*: S1 ('MetaSel ('Just "chatBoostSourceGiveawayIsUnclaimed") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool))))))