Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- data InputChatPhoto
- = InputChatPhotoPrevious { }
- | InputChatPhotoStatic { }
- | InputChatPhotoAnimation { }
- | InputChatPhotoSticker { }
Documentation
data InputChatPhoto Source #
Describes a photo to be set as a user profile or chat photo
InputChatPhotoPrevious | A previously used profile photo of the current user |
| |
InputChatPhotoStatic | A static photo in JPEG format |
InputChatPhotoAnimation | An animation in MPEG4 format; must be square, at most 10 seconds long, have width between 160 and 1280 and be at most 2MB in size |
InputChatPhotoSticker | A sticker on a custom background |
|
Instances
FromJSON InputChatPhoto Source # | |
Defined in TD.Data.InputChatPhoto parseJSON :: Value -> Parser InputChatPhoto # parseJSONList :: Value -> Parser [InputChatPhoto] # | |
ToJSON InputChatPhoto Source # | |
Defined in TD.Data.InputChatPhoto toJSON :: InputChatPhoto -> Value # toEncoding :: InputChatPhoto -> Encoding # toJSONList :: [InputChatPhoto] -> Value # toEncodingList :: [InputChatPhoto] -> Encoding # | |
Show InputChatPhoto Source # | |
Defined in TD.Data.InputChatPhoto showsPrec :: Int -> InputChatPhoto -> ShowS # show :: InputChatPhoto -> String # showList :: [InputChatPhoto] -> ShowS # | |
Eq InputChatPhoto Source # | |
Defined in TD.Data.InputChatPhoto (==) :: InputChatPhoto -> InputChatPhoto -> Bool # (/=) :: InputChatPhoto -> InputChatPhoto -> Bool # | |
ShortShow InputChatPhoto Source # | |
Defined in TD.Data.InputChatPhoto shortShow :: InputChatPhoto -> String Source # |