haskell-tdlib-2.1.21.0: Binding to the Telegram Database Library
Safe HaskellSafe-Inferred
LanguageGHC2021

TD.Data.InputPhoto

Documentation

data InputPhoto Source #

Constructors

InputPhoto

A photo to be sent

Fields

  • photo :: Maybe InputFile

    Photo to be sent. The photo must be at most 10 MB in size. The photo's width and height must not exceed 10000 in total. Width and height ratio must be at most 20

  • thumbnail :: Maybe InputThumbnail

    Photo thumbnail; pass null to skip thumbnail uploading. The thumbnail is sent to the other party only in secret chats

  • video :: Maybe InputFile

    Video of the live photo; not supported in secret chats; pass null if the photo isn't a live photo

  • added_sticker_file_ids :: Maybe [Int]

    File identifiers of the stickers added to the photo, if applicable

  • width :: Maybe Int

    Photo width; may be replaced by the server

  • height :: Maybe Int

    Photo height; may be replaced by the server

Instances

Instances details
FromJSON InputPhoto Source # 
Instance details

Defined in TD.Data.InputPhoto

ToJSON InputPhoto Source # 
Instance details

Defined in TD.Data.InputPhoto

Show InputPhoto Source # 
Instance details

Defined in TD.Data.InputPhoto

Eq InputPhoto Source # 
Instance details

Defined in TD.Data.InputPhoto

ShortShow InputPhoto Source # 
Instance details

Defined in TD.Data.InputPhoto