-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
53 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
telegram-bot-api/src/Telegram/Bot/API/Types/ChatBoostAdded.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{-# LANGUAGE DeriveGeneric #-} | ||
module Telegram.Bot.API.Types.ChatBoostAdded where | ||
|
||
import Data.Aeson (FromJSON (..), ToJSON (..)) | ||
import GHC.Generics (Generic) | ||
|
||
import Telegram.Bot.API.Internal.Utils | ||
|
||
-- ** 'ChatBoostAdded' | ||
|
||
-- | This object represents a boost added to a chat or changed. | ||
data ChatBoostAdded = ChatBoostAdded | ||
{ chatBoostAddedBoostCount :: Int -- ^ Number of boosts added by the user. | ||
} | ||
deriving (Generic, Show) | ||
|
||
instance ToJSON ChatBoostAdded where toJSON = gtoJSON | ||
instance FromJSON ChatBoostAdded where parseJSON = gparseJSON |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
module Telegram.Bot.API.Types.Story where | ||
|
||
import Data.Aeson | ||
|
||
data Story | ||
|
||
instance Show Story | ||
|
||
instance FromJSON Story | ||
|
||
instance ToJSON Story |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters