{-# LANGUAGE DeriveGeneric #-}
module Telegram.Bot.API.Types.VideoNote where
import Data.Aeson (FromJSON (..), ToJSON (..))
import GHC.Generics (Generic)
import Telegram.Bot.API.Types.Common
import Telegram.Bot.API.Types.PhotoSize
import Telegram.Bot.API.Internal.Utils
data VideoNote = VideoNote
{ VideoNote -> FileId
videoNoteFileId :: FileId
, VideoNote -> FileId
videoNoteFileUniqueId :: FileId
, VideoNote -> Int
videoNoteLength :: Int
, VideoNote -> Seconds
videoNoteDuration :: Seconds
, VideoNote -> Maybe PhotoSize
videoNoteThumb :: Maybe PhotoSize
, VideoNote -> Maybe Integer
videoNoteFileSize :: Maybe Integer
}
deriving (forall x. Rep VideoNote x -> VideoNote
forall x. VideoNote -> Rep VideoNote x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep VideoNote x -> VideoNote
$cfrom :: forall x. VideoNote -> Rep VideoNote x
Generic, Int -> VideoNote -> ShowS
[VideoNote] -> ShowS
VideoNote -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [VideoNote] -> ShowS
$cshowList :: [VideoNote] -> ShowS
show :: VideoNote -> String
$cshow :: VideoNote -> String
showsPrec :: Int -> VideoNote -> ShowS
$cshowsPrec :: Int -> VideoNote -> ShowS
Show)
instance ToJSON VideoNote where toJSON :: VideoNote -> Value
toJSON = forall a (d :: Meta) (f :: * -> *).
(Generic a, GToJSON Zero (Rep a), Rep a ~ D1 d f, Datatype d) =>
a -> Value
gtoJSON
instance FromJSON VideoNote where parseJSON :: Value -> Parser VideoNote
parseJSON = forall a (d :: Meta) (f :: * -> *).
(Generic a, GFromJSON Zero (Rep a), Rep a ~ D1 d f, Datatype d) =>
Value -> Parser a
gparseJSON