tdlib-types-0.2.0: Types and Functions generated from tdlib api spec
Safe HaskellNone
LanguageHaskell2010

TDLib.Generated.Types

Description

TD API data types generated by tdlib-gen

Synopsis

Documentation

type I53 = Int Source #

type I32 = Int Source #

type T = Text Source #

data Error Source #

Constructors

Error

An object of this type can be returned on every function call, in case of an error

Fields

  • code_1 :: I32

    Error code; subject to future changes. If the error code is 406, the error message must not be processed in any way and must not be displayed to the user

  • message_1 :: T

    Error message; subject to future changes

Instances

Instances details
Eq Error Source # 
Instance details

Defined in TDLib.Generated.Types

Methods

(==) :: Error -> Error -> Bool #

(/=) :: Error -> Error -> Bool #

Show Error Source # 
Instance details

Defined in TDLib.Generated.Types

Methods

showsPrec :: Int -> Error -> ShowS #

show :: Error -> String #

showList :: [Error] -> ShowS #

Generic Error Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep Error :: Type -> Type #

Methods

from :: Error -> Rep Error x #

to :: Rep Error x -> Error #

ToJSON Error Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON Error Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep Error Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep Error = D1 ('MetaData "Error" "TDLib.Generated.Types" "tdlib-types-0.2.0-inplace" 'False) (C1 ('MetaCons "Error" 'PrefixI 'True) (S1 ('MetaSel ('Just "code_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "message_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)))

data Ok Source #

Constructors

Ok

An object of this type is returned on a successful function call for certain functions

Instances

Instances details
Eq Ok Source # 
Instance details

Defined in TDLib.Generated.Types

Methods

(==) :: Ok -> Ok -> Bool #

(/=) :: Ok -> Ok -> Bool #

Show Ok Source # 
Instance details

Defined in TDLib.Generated.Types

Methods

showsPrec :: Int -> Ok -> ShowS #

show :: Ok -> String #

showList :: [Ok] -> ShowS #

Generic Ok Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep Ok :: Type -> Type #

Methods

from :: Ok -> Rep Ok x #

to :: Rep Ok x -> Ok #

ToJSON Ok Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON Ok Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep Ok Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep Ok = D1 ('MetaData "Ok" "TDLib.Generated.Types" "tdlib-types-0.2.0-inplace" 'False) (C1 ('MetaCons "Ok" 'PrefixI 'False) (U1 :: Type -> Type))

data TdlibParameters Source #

Constructors

TdlibParameters

Contains parameters for TDLib initialization

Fields

Instances

Instances details
Eq TdlibParameters Source # 
Instance details

Defined in TDLib.Generated.Types

Show TdlibParameters Source # 
Instance details

Defined in TDLib.Generated.Types

Generic TdlibParameters Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep TdlibParameters :: Type -> Type #

ToJSON TdlibParameters Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON TdlibParameters Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep TdlibParameters Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep TdlibParameters = D1 ('MetaData "TdlibParameters" "TDLib.Generated.Types" "tdlib-types-0.2.0-inplace" 'False) (C1 ('MetaCons "TdlibParameters" 'PrefixI 'True) (((S1 ('MetaSel ('Just "use_test_dc_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "database_directory_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "files_directory_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T))) :*: ((S1 ('MetaSel ('Just "use_file_database_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "use_chat_info_database_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :*: (S1 ('MetaSel ('Just "use_message_database_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "use_secret_chats_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)))) :*: (((S1 ('MetaSel ('Just "api_id_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "api_hash_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)) :*: (S1 ('MetaSel ('Just "system_language_code_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "device_model_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T))) :*: ((S1 ('MetaSel ('Just "system_version_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "application_version_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)) :*: (S1 ('MetaSel ('Just "enable_storage_optimizer_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "ignore_file_names_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))))))

data AuthenticationCodeType Source #

Provides information about the method by which an authentication code is delivered to the user

Constructors

AuthenticationCodeTypeTelegramMessage

An authentication code is delivered via a private Telegram message, which can be viewed in another client

Fields

AuthenticationCodeTypeSms

An authentication code is delivered via an SMS message to the specified phone number

Fields

AuthenticationCodeTypeCall

An authentication code is delivered via a phone call to the specified phone number

Fields

AuthenticationCodeTypeFlashCall

An authentication code is delivered by an immediately cancelled call to the specified phone number. The number from which the call was made is the code

Fields

  • pattern_4 :: T

    Pattern of the phone number from which the call will be made

Instances

Instances details
Eq AuthenticationCodeType Source # 
Instance details

Defined in TDLib.Generated.Types

Show AuthenticationCodeType Source # 
Instance details

Defined in TDLib.Generated.Types

Generic AuthenticationCodeType Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep AuthenticationCodeType :: Type -> Type #

ToJSON AuthenticationCodeType Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON AuthenticationCodeType Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep AuthenticationCodeType Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep AuthenticationCodeType = D1 ('MetaData "AuthenticationCodeType" "TDLib.Generated.Types" "tdlib-types-0.2.0-inplace" 'False) ((C1 ('MetaCons "AuthenticationCodeTypeTelegramMessage" 'PrefixI 'True) (S1 ('MetaSel ('Just "length_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)) :+: C1 ('MetaCons "AuthenticationCodeTypeSms" 'PrefixI 'True) (S1 ('MetaSel ('Just "length_2") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32))) :+: (C1 ('MetaCons "AuthenticationCodeTypeCall" 'PrefixI 'True) (S1 ('MetaSel ('Just "length_3") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)) :+: C1 ('MetaCons "AuthenticationCodeTypeFlashCall" 'PrefixI 'True) (S1 ('MetaSel ('Just "pattern_4") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T))))

data AuthenticationCodeInfo Source #

Constructors

AuthenticationCodeInfo

Information about the authentication code that was sent

Fields

Instances

Instances details
Eq AuthenticationCodeInfo Source # 
Instance details

Defined in TDLib.Generated.Types

Show AuthenticationCodeInfo Source # 
Instance details

Defined in TDLib.Generated.Types

Generic AuthenticationCodeInfo Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep AuthenticationCodeInfo :: Type -> Type #

ToJSON AuthenticationCodeInfo Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON AuthenticationCodeInfo Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep AuthenticationCodeInfo Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep AuthenticationCodeInfo = D1 ('MetaData "AuthenticationCodeInfo" "TDLib.Generated.Types" "tdlib-types-0.2.0-inplace" 'False) (C1 ('MetaCons "AuthenticationCodeInfo" 'PrefixI 'True) ((S1 ('MetaSel ('Just "phone_number_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "type_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 AuthenticationCodeType)) :*: (S1 ('MetaSel ('Just "next_type_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 AuthenticationCodeType) :*: S1 ('MetaSel ('Just "timeout_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32))))

data EmailAddressAuthenticationCodeInfo Source #

Constructors

EmailAddressAuthenticationCodeInfo

Information about the email address authentication code that was sent

Fields

Instances

Instances details
Eq EmailAddressAuthenticationCodeInfo Source # 
Instance details

Defined in TDLib.Generated.Types

Show EmailAddressAuthenticationCodeInfo Source # 
Instance details

Defined in TDLib.Generated.Types

Generic EmailAddressAuthenticationCodeInfo Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep EmailAddressAuthenticationCodeInfo :: Type -> Type #

ToJSON EmailAddressAuthenticationCodeInfo Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON EmailAddressAuthenticationCodeInfo Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep EmailAddressAuthenticationCodeInfo Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep EmailAddressAuthenticationCodeInfo = D1 ('MetaData "EmailAddressAuthenticationCodeInfo" "TDLib.Generated.Types" "tdlib-types-0.2.0-inplace" 'False) (C1 ('MetaCons "EmailAddressAuthenticationCodeInfo" 'PrefixI 'True) (S1 ('MetaSel ('Just "email_address_pattern_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "length_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)))

data TextEntity Source #

Constructors

TextEntity

Represents a part of the text that needs to be formatted in some unusual way

Fields

Instances

Instances details
Eq TextEntity Source # 
Instance details

Defined in TDLib.Generated.Types

Show TextEntity Source # 
Instance details

Defined in TDLib.Generated.Types

Generic TextEntity Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep TextEntity :: Type -> Type #

ToJSON TextEntity Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON TextEntity Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep TextEntity Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep TextEntity = D1 ('MetaData "TextEntity" "TDLib.Generated.Types" "tdlib-types-0.2.0-inplace" 'False) (C1 ('MetaCons "TextEntity" 'PrefixI 'True) (S1 ('MetaSel ('Just "offset_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: (S1 ('MetaSel ('Just "length_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "type_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TextEntityType))))

data TextEntities Source #

Constructors

TextEntities

Contains a list of text entities

Fields

Instances

Instances details
Eq TextEntities Source # 
Instance details

Defined in TDLib.Generated.Types

Show TextEntities Source # 
Instance details

Defined in TDLib.Generated.Types

Generic TextEntities Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep TextEntities :: Type -> Type #

ToJSON TextEntities Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON TextEntities Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep TextEntities Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep TextEntities = D1 ('MetaData "TextEntities" "TDLib.Generated.Types" "tdlib-types-0.2.0-inplace" 'False) (C1 ('MetaCons "TextEntities" 'PrefixI 'True) (S1 ('MetaSel ('Just "entities_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [TextEntity])))

data FormattedText Source #

Constructors

FormattedText

A text with some entities

Fields

  • text_1 :: T

    The text

  • entities_1 :: [] TextEntity

    Entities contained in the text. Entities can be nested, but must not mutually intersect with each other.

Instances

Instances details
Eq FormattedText Source # 
Instance details

Defined in TDLib.Generated.Types

Show FormattedText Source # 
Instance details

Defined in TDLib.Generated.Types

Generic FormattedText Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep FormattedText :: Type -> Type #

ToJSON FormattedText Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON FormattedText Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep FormattedText Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep FormattedText = D1 ('MetaData "FormattedText" "TDLib.Generated.Types" "tdlib-types-0.2.0-inplace" 'False) (C1 ('MetaCons "FormattedText" 'PrefixI 'True) (S1 ('MetaSel ('Just "text_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "entities_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [TextEntity])))

data TermsOfService Source #

Constructors

TermsOfService

Contains Telegram terms of service

Fields

Instances

Instances details
Eq TermsOfService Source # 
Instance details

Defined in TDLib.Generated.Types

Show TermsOfService Source # 
Instance details

Defined in TDLib.Generated.Types

Generic TermsOfService Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep TermsOfService :: Type -> Type #

ToJSON TermsOfService Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON TermsOfService Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep TermsOfService Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep TermsOfService = D1 ('MetaData "TermsOfService" "TDLib.Generated.Types" "tdlib-types-0.2.0-inplace" 'False) (C1 ('MetaCons "TermsOfService" 'PrefixI 'True) (S1 ('MetaSel ('Just "text_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FormattedText) :*: (S1 ('MetaSel ('Just "min_user_age_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "show_popup_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))))

data AuthorizationState Source #

Represents the current authorization state of the client

Constructors

AuthorizationStateWaitTdlibParameters

TDLib needs TdlibParameters for initialization

AuthorizationStateWaitEncryptionKey

TDLib needs an encryption key to decrypt the local database

Fields

AuthorizationStateWaitPhoneNumber

TDLib needs the user's phone number to authorize. Call setAuthenticationPhoneNumber to provide the phone number, or use requestQrCodeAuthentication, or checkAuthenticationBotToken for other authentication options

AuthorizationStateWaitCode

TDLib needs the user's authentication code to authorize

Fields

AuthorizationStateWaitOtherDeviceConfirmation

The user needs to confirm authorization on another logged in device by scanning a QR code with the provided link

Fields

  • link_5 :: T

    A tg:// URL for the QR code. The link will be updated frequently

AuthorizationStateWaitRegistration

The user is unregistered and need to accept terms of service and enter their first name and last name to finish registration

Fields

AuthorizationStateWaitPassword

The user has been authorized, but needs to enter a password to start using the application

Fields

AuthorizationStateReady

The user has been successfully authorized. TDLib is now ready to answer queries

AuthorizationStateLoggingOut

The user is currently logging out

AuthorizationStateClosing

TDLib is closing, all subsequent queries will be answered with the error 500. Note that closing TDLib can take a while. All resources will be freed only after authorizationStateClosed has been received

AuthorizationStateClosed

TDLib client is in its final state. All databases are closed and all resources are released. No other updates will be received after this. All queries will be responded to

Instances

Instances details
Eq AuthorizationState Source # 
Instance details

Defined in TDLib.Generated.Types

Show AuthorizationState Source # 
Instance details

Defined in TDLib.Generated.Types

Generic AuthorizationState Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep AuthorizationState :: Type -> Type #

ToJSON AuthorizationState Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON AuthorizationState Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep AuthorizationState Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep AuthorizationState = D1 ('MetaData "AuthorizationState" "TDLib.Generated.Types" "tdlib-types-0.2.0-inplace" 'False) (((C1 ('MetaCons "AuthorizationStateWaitTdlibParameters" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "AuthorizationStateWaitEncryptionKey" 'PrefixI 'True) (S1 ('MetaSel ('Just "is_encrypted_2") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))) :+: (C1 ('MetaCons "AuthorizationStateWaitPhoneNumber" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "AuthorizationStateWaitCode" 'PrefixI 'True) (S1 ('MetaSel ('Just "code_info_4") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 AuthenticationCodeInfo)) :+: C1 ('MetaCons "AuthorizationStateWaitOtherDeviceConfirmation" 'PrefixI 'True) (S1 ('MetaSel ('Just "link_5") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T))))) :+: ((C1 ('MetaCons "AuthorizationStateWaitRegistration" 'PrefixI 'True) (S1 ('MetaSel ('Just "terms_of_service_6") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TermsOfService)) :+: (C1 ('MetaCons "AuthorizationStateWaitPassword" 'PrefixI 'True) (S1 ('MetaSel ('Just "password_hint_7") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: (S1 ('MetaSel ('Just "has_recovery_email_address_7") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "recovery_email_address_pattern_7") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T))) :+: C1 ('MetaCons "AuthorizationStateReady" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "AuthorizationStateLoggingOut" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "AuthorizationStateClosing" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "AuthorizationStateClosed" 'PrefixI 'False) (U1 :: Type -> Type)))))

data PasswordState Source #

Constructors

PasswordState

Represents the current state of 2-step verification

Fields

Instances

Instances details
Eq PasswordState Source # 
Instance details

Defined in TDLib.Generated.Types

Show PasswordState Source # 
Instance details

Defined in TDLib.Generated.Types

Generic PasswordState Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep PasswordState :: Type -> Type #

ToJSON PasswordState Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON PasswordState Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep PasswordState Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep PasswordState = D1 ('MetaData "PasswordState" "TDLib.Generated.Types" "tdlib-types-0.2.0-inplace" 'False) (C1 ('MetaCons "PasswordState" 'PrefixI 'True) ((S1 ('MetaSel ('Just "has_password_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "password_hint_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)) :*: (S1 ('MetaSel ('Just "has_recovery_email_address_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "has_passport_data_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "recovery_email_address_code_info_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 EmailAddressAuthenticationCodeInfo)))))

data RecoveryEmailAddress Source #

Constructors

RecoveryEmailAddress

Contains information about the current recovery email address

Fields

Instances

Instances details
Eq RecoveryEmailAddress Source # 
Instance details

Defined in TDLib.Generated.Types

Show RecoveryEmailAddress Source # 
Instance details

Defined in TDLib.Generated.Types

Generic RecoveryEmailAddress Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep RecoveryEmailAddress :: Type -> Type #

ToJSON RecoveryEmailAddress Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON RecoveryEmailAddress Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep RecoveryEmailAddress Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep RecoveryEmailAddress = D1 ('MetaData "RecoveryEmailAddress" "TDLib.Generated.Types" "tdlib-types-0.2.0-inplace" 'False) (C1 ('MetaCons "RecoveryEmailAddress" 'PrefixI 'True) (S1 ('MetaSel ('Just "recovery_email_address_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)))

data TemporaryPasswordState Source #

Constructors

TemporaryPasswordState

Returns information about the availability of a temporary password, which can be used for payments

Fields

Instances

Instances details
Eq TemporaryPasswordState Source # 
Instance details

Defined in TDLib.Generated.Types

Show TemporaryPasswordState Source # 
Instance details

Defined in TDLib.Generated.Types

Generic TemporaryPasswordState Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep TemporaryPasswordState :: Type -> Type #

ToJSON TemporaryPasswordState Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON TemporaryPasswordState Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep TemporaryPasswordState Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep TemporaryPasswordState = D1 ('MetaData "TemporaryPasswordState" "TDLib.Generated.Types" "tdlib-types-0.2.0-inplace" 'False) (C1 ('MetaCons "TemporaryPasswordState" 'PrefixI 'True) (S1 ('MetaSel ('Just "has_password_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "valid_for_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)))

data LocalFile Source #

Constructors

LocalFile

Represents a local file

Fields

  • path_1 :: T

    Local path to the locally available file part; may be empty

  • can_be_downloaded_1 :: Bool

    True, if it is possible to try to download or generate the file

  • can_be_deleted_1 :: Bool

    True, if the file can be deleted

  • is_downloading_active_1 :: Bool

    True, if the file is currently being downloaded (or a local copy is being generated by some other means)

  • is_downloading_completed_1 :: Bool

    True, if the local copy is fully available

  • download_offset_1 :: I32

    Download will be started from this offset. downloaded_prefix_size is calculated from this offset

  • downloaded_prefix_size_1 :: I32

    If is_downloading_completed is false, then only some prefix of the file starting from download_offset is ready to be read. downloaded_prefix_size is the size of that prefix

  • downloaded_size_1 :: I32

    Total downloaded file bytes. Should be used only for calculating download progress. The actual file size may be bigger, and some parts of it may contain garbage

Instances

Instances details
Eq LocalFile Source # 
Instance details

Defined in TDLib.Generated.Types

Show LocalFile Source # 
Instance details

Defined in TDLib.Generated.Types

Generic LocalFile Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep LocalFile :: Type -> Type #

ToJSON LocalFile Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON LocalFile Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep LocalFile Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep LocalFile = D1 ('MetaData "LocalFile" "TDLib.Generated.Types" "tdlib-types-0.2.0-inplace" 'False) (C1 ('MetaCons "LocalFile" 'PrefixI 'True) (((S1 ('MetaSel ('Just "path_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "can_be_downloaded_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :*: (S1 ('MetaSel ('Just "can_be_deleted_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "is_downloading_active_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))) :*: ((S1 ('MetaSel ('Just "is_downloading_completed_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "download_offset_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)) :*: (S1 ('MetaSel ('Just "downloaded_prefix_size_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "downloaded_size_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)))))

data RemoteFile Source #

Constructors

RemoteFile

Represents a remote file

Fields

  • id_1 :: T

    Remote file identifier; may be empty. Can be used by the current user across application restarts or even from other devices. Uniquely identifies a file, but a file can have a lot of different valid identifiers.

  • unique_id_1 :: T

    Unique file identifier; may be empty if unknown. The unique file identifier which is the same for the same file even for different users and is persistent over time

  • is_uploading_active_1 :: Bool

    True, if the file is currently being uploaded (or a remote copy is being generated by some other means)

  • is_uploading_completed_1 :: Bool

    True, if a remote copy is fully available

  • uploaded_size_1 :: I32

    Size of the remote available part of the file; 0 if unknown

Instances

Instances details
Eq RemoteFile Source # 
Instance details

Defined in TDLib.Generated.Types

Show RemoteFile Source # 
Instance details

Defined in TDLib.Generated.Types

Generic RemoteFile Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep RemoteFile :: Type -> Type #

ToJSON RemoteFile Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON RemoteFile Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep RemoteFile Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep RemoteFile = D1 ('MetaData "RemoteFile" "TDLib.Generated.Types" "tdlib-types-0.2.0-inplace" 'False) (C1 ('MetaCons "RemoteFile" 'PrefixI 'True) ((S1 ('MetaSel ('Just "id_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "unique_id_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)) :*: (S1 ('MetaSel ('Just "is_uploading_active_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "is_uploading_completed_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "uploaded_size_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)))))

data File Source #

Constructors

File

Represents a file

Fields

  • id_1 :: I32

    Unique file identifier

  • size_1 :: I32

    File size; 0 if unknown

  • expected_size_1 :: I32

    Expected file size in case the exact file size is unknown, but an approximate size is known. Can be used to show download/upload progress

  • local_1 :: LocalFile

    Information about the local copy of the file

  • remote_1 :: RemoteFile

    Information about the remote copy of the file

Instances

Instances details
Eq File Source # 
Instance details

Defined in TDLib.Generated.Types

Methods

(==) :: File -> File -> Bool #

(/=) :: File -> File -> Bool #

Show File Source # 
Instance details

Defined in TDLib.Generated.Types

Methods

showsPrec :: Int -> File -> ShowS #

show :: File -> String #

showList :: [File] -> ShowS #

Generic File Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep File :: Type -> Type #

Methods

from :: File -> Rep File x #

to :: Rep File x -> File #

ToJSON File Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON File Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep File Source # 
Instance details

Defined in TDLib.Generated.Types

data InputFile Source #

Points to a file

Constructors

InputFileId

A file defined by its unique ID

Fields

InputFileRemote

A file defined by its remote ID. The remote ID is guaranteed to be usable only if the corresponding file is still accessible to the user and known to TDLib.

Fields

  • id_2 :: T

    Remote file identifier

InputFileLocal

A file defined by a local path

Fields

InputFileGenerated

A file generated by the client

Fields

  • original_path_4 :: T

    Local path to a file from which the file is generated; may be empty if there is no such file

  • conversion_4 :: T

    String specifying the conversion applied to the original file; should be persistent across application restarts. Conversions beginning with # are reserved for internal TDLib usage

  • expected_size_4 :: I32

    Expected size of the generated file; 0 if unknown

Instances

Instances details
Eq InputFile Source # 
Instance details

Defined in TDLib.Generated.Types

Show InputFile Source # 
Instance details

Defined in TDLib.Generated.Types

Generic InputFile Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep InputFile :: Type -> Type #

ToJSON InputFile Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON InputFile Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep InputFile Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep InputFile = D1 ('MetaData "InputFile" "TDLib.Generated.Types" "tdlib-types-0.2.0-inplace" 'False) ((C1 ('MetaCons "InputFileId" 'PrefixI 'True) (S1 ('MetaSel ('Just "id_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)) :+: C1 ('MetaCons "InputFileRemote" 'PrefixI 'True) (S1 ('MetaSel ('Just "id_2") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T))) :+: (C1 ('MetaCons "InputFileLocal" 'PrefixI 'True) (S1 ('MetaSel ('Just "path_3") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)) :+: C1 ('MetaCons "InputFileGenerated" 'PrefixI 'True) (S1 ('MetaSel ('Just "original_path_4") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: (S1 ('MetaSel ('Just "conversion_4") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "expected_size_4") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)))))

data PhotoSize Source #

Constructors

PhotoSize

Photo description

Fields

Instances

Instances details
Eq PhotoSize Source # 
Instance details

Defined in TDLib.Generated.Types

Show PhotoSize Source # 
Instance details

Defined in TDLib.Generated.Types

Generic PhotoSize Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep PhotoSize :: Type -> Type #

ToJSON PhotoSize Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON PhotoSize Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep PhotoSize Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep PhotoSize = D1 ('MetaData "PhotoSize" "TDLib.Generated.Types" "tdlib-types-0.2.0-inplace" 'False) (C1 ('MetaCons "PhotoSize" 'PrefixI 'True) ((S1 ('MetaSel ('Just "type_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "photo_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 File)) :*: (S1 ('MetaSel ('Just "width_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "height_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32))))

data Minithumbnail Source #

Constructors

Minithumbnail

Thumbnail image of a very poor quality and low resolution

Fields

Instances

Instances details
Eq Minithumbnail Source # 
Instance details

Defined in TDLib.Generated.Types

Show Minithumbnail Source # 
Instance details

Defined in TDLib.Generated.Types

Generic Minithumbnail Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep Minithumbnail :: Type -> Type #

ToJSON Minithumbnail Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON Minithumbnail Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep Minithumbnail Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep Minithumbnail = D1 ('MetaData "Minithumbnail" "TDLib.Generated.Types" "tdlib-types-0.2.0-inplace" 'False) (C1 ('MetaCons "Minithumbnail" 'PrefixI 'True) (S1 ('MetaSel ('Just "width_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: (S1 ('MetaSel ('Just "height_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "data_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString64))))

data MaskPoint Source #

Part of the face, relative to which a mask should be placed

Constructors

MaskPointForehead

A mask should be placed relatively to the forehead

MaskPointEyes

A mask should be placed relatively to the eyes

MaskPointMouth

A mask should be placed relatively to the mouth

MaskPointChin

A mask should be placed relatively to the chin

Instances

Instances details
Eq MaskPoint Source # 
Instance details

Defined in TDLib.Generated.Types

Show MaskPoint Source # 
Instance details

Defined in TDLib.Generated.Types

Generic MaskPoint Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep MaskPoint :: Type -> Type #

ToJSON MaskPoint Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON MaskPoint Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep MaskPoint Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep MaskPoint = D1 ('MetaData "MaskPoint" "TDLib.Generated.Types" "tdlib-types-0.2.0-inplace" 'False) ((C1 ('MetaCons "MaskPointForehead" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MaskPointEyes" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "MaskPointMouth" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MaskPointChin" 'PrefixI 'False) (U1 :: Type -> Type)))

data MaskPosition Source #

Constructors

MaskPosition

Position on a photo where a mask should be placed

Fields

  • point_1 :: MaskPoint

    Part of the face, relative to which the mask should be placed

  • x_shift_1 :: Double

    Shift by X-axis measured in widths of the mask scaled to the face size, from left to right. (For example, -1.0 will place the mask just to the left of the default mask position)

  • y_shift_1 :: Double

    Shift by Y-axis measured in heights of the mask scaled to the face size, from top to bottom. (For example, 1.0 will place the mask just below the default mask position)

  • scale_1 :: Double

    Mask scaling coefficient. (For example, 2.0 means a doubled size)

Instances

Instances details
Eq MaskPosition Source # 
Instance details

Defined in TDLib.Generated.Types

Show MaskPosition Source # 
Instance details

Defined in TDLib.Generated.Types

Generic MaskPosition Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep MaskPosition :: Type -> Type #

ToJSON MaskPosition Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON MaskPosition Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep MaskPosition Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep MaskPosition = D1 ('MetaData "MaskPosition" "TDLib.Generated.Types" "tdlib-types-0.2.0-inplace" 'False) (C1 ('MetaCons "MaskPosition" 'PrefixI 'True) ((S1 ('MetaSel ('Just "point_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MaskPoint) :*: S1 ('MetaSel ('Just "x_shift_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double)) :*: (S1 ('MetaSel ('Just "y_shift_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double) :*: S1 ('MetaSel ('Just "scale_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double))))

data PollOption Source #

Constructors

PollOption

Describes one answer option of a poll

Fields

Instances

Instances details
Eq PollOption Source # 
Instance details

Defined in TDLib.Generated.Types

Show PollOption Source # 
Instance details

Defined in TDLib.Generated.Types

Generic PollOption Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep PollOption :: Type -> Type #

ToJSON PollOption Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON PollOption Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep PollOption Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep PollOption = D1 ('MetaData "PollOption" "TDLib.Generated.Types" "tdlib-types-0.2.0-inplace" 'False) (C1 ('MetaCons "PollOption" 'PrefixI 'True) ((S1 ('MetaSel ('Just "text_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "voter_count_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)) :*: (S1 ('MetaSel ('Just "vote_percentage_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: (S1 ('MetaSel ('Just "is_chosen_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "is_being_chosen_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)))))

data PollType Source #

Describes the type of a poll

Constructors

PollTypeRegular

A regular poll

Fields

PollTypeQuiz

A poll in quiz mode, which has exactly one correct answer option and can be answered only once

Fields

  • correct_option_id_2 :: I32

    0-based identifier of the correct answer option; -1 for a yet unanswered poll

  • explanation_2 :: FormattedText

    Text that is shown when the user chooses an incorrect answer or taps on the lamp icon, 0-200 characters with at most 2 line feeds; empty for a yet unanswered poll

Instances

Instances details
Eq PollType Source # 
Instance details

Defined in TDLib.Generated.Types

Show PollType Source # 
Instance details

Defined in TDLib.Generated.Types

Generic PollType Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep PollType :: Type -> Type #

Methods

from :: PollType -> Rep PollType x #

to :: Rep PollType x -> PollType #

ToJSON PollType Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON PollType Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep PollType Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep PollType = D1 ('MetaData "PollType" "TDLib.Generated.Types" "tdlib-types-0.2.0-inplace" 'False) (C1 ('MetaCons "PollTypeRegular" 'PrefixI 'True) (S1 ('MetaSel ('Just "allow_multiple_answers_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :+: C1 ('MetaCons "PollTypeQuiz" 'PrefixI 'True) (S1 ('MetaSel ('Just "correct_option_id_2") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "explanation_2") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FormattedText)))

data Animation Source #

Constructors

Animation

Describes an animation file. The animation must be encoded in GIF or MPEG4 format

Fields

Instances

Instances details
Eq Animation Source # 
Instance details

Defined in TDLib.Generated.Types

Show Animation Source # 
Instance details

Defined in TDLib.Generated.Types

Generic Animation Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep Animation :: Type -> Type #

ToJSON Animation Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON Animation Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep Animation Source # 
Instance details

Defined in TDLib.Generated.Types

data Audio Source #

Constructors

Audio

Describes an audio file. Audio is usually in MP3 or M4A format

Fields

Instances

Instances details
Eq Audio Source # 
Instance details

Defined in TDLib.Generated.Types

Methods

(==) :: Audio -> Audio -> Bool #

(/=) :: Audio -> Audio -> Bool #

Show Audio Source # 
Instance details

Defined in TDLib.Generated.Types

Methods

showsPrec :: Int -> Audio -> ShowS #

show :: Audio -> String #

showList :: [Audio] -> ShowS #

Generic Audio Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep Audio :: Type -> Type #

Methods

from :: Audio -> Rep Audio x #

to :: Rep Audio x -> Audio #

ToJSON Audio Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON Audio Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep Audio Source # 
Instance details

Defined in TDLib.Generated.Types

data Document Source #

Constructors

Document

Describes a document of any type

Fields

Instances

Instances details
Eq Document Source # 
Instance details

Defined in TDLib.Generated.Types

Show Document Source # 
Instance details

Defined in TDLib.Generated.Types

Generic Document Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep Document :: Type -> Type #

Methods

from :: Document -> Rep Document x #

to :: Rep Document x -> Document #

ToJSON Document Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON Document Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep Document Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep Document = D1 ('MetaData "Document" "TDLib.Generated.Types" "tdlib-types-0.2.0-inplace" 'False) (C1 ('MetaCons "Document" 'PrefixI 'True) ((S1 ('MetaSel ('Just "file_name_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "mime_type_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)) :*: (S1 ('MetaSel ('Just "minithumbnail_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Minithumbnail) :*: (S1 ('MetaSel ('Just "thumbnail_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PhotoSize) :*: S1 ('MetaSel ('Just "document_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 File)))))

data Photo Source #

Constructors

Photo

Describes a photo

Fields

Instances

Instances details
Eq Photo Source # 
Instance details

Defined in TDLib.Generated.Types

Methods

(==) :: Photo -> Photo -> Bool #

(/=) :: Photo -> Photo -> Bool #

Show Photo Source # 
Instance details

Defined in TDLib.Generated.Types

Methods

showsPrec :: Int -> Photo -> ShowS #

show :: Photo -> String #

showList :: [Photo] -> ShowS #

Generic Photo Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep Photo :: Type -> Type #

Methods

from :: Photo -> Rep Photo x #

to :: Rep Photo x -> Photo #

ToJSON Photo Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON Photo Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep Photo Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep Photo = D1 ('MetaData "Photo" "TDLib.Generated.Types" "tdlib-types-0.2.0-inplace" 'False) (C1 ('MetaCons "Photo" 'PrefixI 'True) (S1 ('MetaSel ('Just "has_stickers_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "minithumbnail_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Minithumbnail) :*: S1 ('MetaSel ('Just "sizes_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [PhotoSize]))))

data Sticker Source #

Constructors

Sticker

Describes a sticker

Fields

Instances

Instances details
Eq Sticker Source # 
Instance details

Defined in TDLib.Generated.Types

Methods

(==) :: Sticker -> Sticker -> Bool #

(/=) :: Sticker -> Sticker -> Bool #

Show Sticker Source # 
Instance details

Defined in TDLib.Generated.Types

Generic Sticker Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep Sticker :: Type -> Type #

Methods

from :: Sticker -> Rep Sticker x #

to :: Rep Sticker x -> Sticker #

ToJSON Sticker Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON Sticker Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep Sticker Source # 
Instance details

Defined in TDLib.Generated.Types

data Video Source #

Constructors

Video

Describes a video file

Fields

Instances

Instances details
Eq Video Source # 
Instance details

Defined in TDLib.Generated.Types

Methods

(==) :: Video -> Video -> Bool #

(/=) :: Video -> Video -> Bool #

Show Video Source # 
Instance details

Defined in TDLib.Generated.Types

Methods

showsPrec :: Int -> Video -> ShowS #

show :: Video -> String #

showList :: [Video] -> ShowS #

Generic Video Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep Video :: Type -> Type #

Methods

from :: Video -> Rep Video x #

to :: Rep Video x -> Video #

ToJSON Video Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON Video Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep Video Source # 
Instance details

Defined in TDLib.Generated.Types

data VideoNote Source #

Constructors

VideoNote

Describes a video note. The video must be equal in width and height, cropped to a circle, and stored in MPEG4 format

Fields

Instances

Instances details
Eq VideoNote Source # 
Instance details

Defined in TDLib.Generated.Types

Show VideoNote Source # 
Instance details

Defined in TDLib.Generated.Types

Generic VideoNote Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep VideoNote :: Type -> Type #

ToJSON VideoNote Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON VideoNote Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep VideoNote Source # 
Instance details

Defined in TDLib.Generated.Types

data VoiceNote Source #

Constructors

VoiceNote

Describes a voice note. The voice note must be encoded with the Opus codec, and stored inside an OGG container. Voice notes can have only a single audio channel

Fields

Instances

Instances details
Eq VoiceNote Source # 
Instance details

Defined in TDLib.Generated.Types

Show VoiceNote Source # 
Instance details

Defined in TDLib.Generated.Types

Generic VoiceNote Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep VoiceNote :: Type -> Type #

ToJSON VoiceNote Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON VoiceNote Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep VoiceNote Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep VoiceNote = D1 ('MetaData "VoiceNote" "TDLib.Generated.Types" "tdlib-types-0.2.0-inplace" 'False) (C1 ('MetaCons "VoiceNote" 'PrefixI 'True) ((S1 ('MetaSel ('Just "duration_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "waveform_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString64)) :*: (S1 ('MetaSel ('Just "mime_type_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "voice_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 File))))

data Contact Source #

Constructors

Contact

Describes a user contact

Fields

Instances

Instances details
Eq Contact Source # 
Instance details

Defined in TDLib.Generated.Types

Methods

(==) :: Contact -> Contact -> Bool #

(/=) :: Contact -> Contact -> Bool #

Show Contact Source # 
Instance details

Defined in TDLib.Generated.Types

Generic Contact Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep Contact :: Type -> Type #

Methods

from :: Contact -> Rep Contact x #

to :: Rep Contact x -> Contact #

ToJSON Contact Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON Contact Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep Contact Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep Contact = D1 ('MetaData "Contact" "TDLib.Generated.Types" "tdlib-types-0.2.0-inplace" 'False) (C1 ('MetaCons "Contact" 'PrefixI 'True) ((S1 ('MetaSel ('Just "phone_number_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "first_name_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)) :*: (S1 ('MetaSel ('Just "last_name_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: (S1 ('MetaSel ('Just "vcard_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "user_id_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)))))

data Location Source #

Constructors

Location

Describes a location on planet Earth

Fields

  • latitude_1 :: Double

    Latitude of the location in degrees; as defined by the sender

  • longitude_1 :: Double

    Longitude of the location, in degrees; as defined by the sender

Instances

Instances details
Eq Location Source # 
Instance details

Defined in TDLib.Generated.Types

Show Location Source # 
Instance details

Defined in TDLib.Generated.Types

Generic Location Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep Location :: Type -> Type #

Methods

from :: Location -> Rep Location x #

to :: Rep Location x -> Location #

ToJSON Location Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON Location Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep Location Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep Location = D1 ('MetaData "Location" "TDLib.Generated.Types" "tdlib-types-0.2.0-inplace" 'False) (C1 ('MetaCons "Location" 'PrefixI 'True) (S1 ('MetaSel ('Just "latitude_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double) :*: S1 ('MetaSel ('Just "longitude_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double)))

data Venue Source #

Constructors

Venue

Describes a venue

Fields

  • location_1 :: Location

    Venue location; as defined by the sender

  • title_1 :: T

    Venue name; as defined by the sender

  • address_1 :: T

    Venue address; as defined by the sender

  • provider_1 :: T

    Provider of the venue database; as defined by the sender. Currently only "foursquare" needs to be supported

  • id_1 :: T

    Identifier of the venue in the provider database; as defined by the sender

  • type_1 :: T

    Type of the venue in the provider database; as defined by the sender

Instances

Instances details
Eq Venue Source # 
Instance details

Defined in TDLib.Generated.Types

Methods

(==) :: Venue -> Venue -> Bool #

(/=) :: Venue -> Venue -> Bool #

Show Venue Source # 
Instance details

Defined in TDLib.Generated.Types

Methods

showsPrec :: Int -> Venue -> ShowS #

show :: Venue -> String #

showList :: [Venue] -> ShowS #

Generic Venue Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep Venue :: Type -> Type #

Methods

from :: Venue -> Rep Venue x #

to :: Rep Venue x -> Venue #

ToJSON Venue Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON Venue Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep Venue Source # 
Instance details

Defined in TDLib.Generated.Types

data Game Source #

Constructors

Game

Describes a game

Fields

Instances

Instances details
Eq Game Source # 
Instance details

Defined in TDLib.Generated.Types

Methods

(==) :: Game -> Game -> Bool #

(/=) :: Game -> Game -> Bool #

Show Game Source # 
Instance details

Defined in TDLib.Generated.Types

Methods

showsPrec :: Int -> Game -> ShowS #

show :: Game -> String #

showList :: [Game] -> ShowS #

Generic Game Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep Game :: Type -> Type #

Methods

from :: Game -> Rep Game x #

to :: Rep Game x -> Game #

ToJSON Game Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON Game Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep Game Source # 
Instance details

Defined in TDLib.Generated.Types

data Poll Source #

Constructors

Poll

Describes a poll

Fields

Instances

Instances details
Eq Poll Source # 
Instance details

Defined in TDLib.Generated.Types

Methods

(==) :: Poll -> Poll -> Bool #

(/=) :: Poll -> Poll -> Bool #

Show Poll Source # 
Instance details

Defined in TDLib.Generated.Types

Methods

showsPrec :: Int -> Poll -> ShowS #

show :: Poll -> String #

showList :: [Poll] -> ShowS #

Generic Poll Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep Poll :: Type -> Type #

Methods

from :: Poll -> Rep Poll x #

to :: Rep Poll x -> Poll #

ToJSON Poll Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON Poll Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep Poll Source # 
Instance details

Defined in TDLib.Generated.Types

data ProfilePhoto Source #

Constructors

ProfilePhoto

Describes a user profile photo

Fields

  • id_1 :: I64

    Photo identifier; 0 for an empty photo. Can be used to find a photo in a list of userProfilePhotos

  • small_1 :: File

    A small (160x160) user profile photo. The file can be downloaded only before the photo is changed

  • big_1 :: File

    A big (640x640) user profile photo. The file can be downloaded only before the photo is changed

Instances

Instances details
Eq ProfilePhoto Source # 
Instance details

Defined in TDLib.Generated.Types

Show ProfilePhoto Source # 
Instance details

Defined in TDLib.Generated.Types

Generic ProfilePhoto Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep ProfilePhoto :: Type -> Type #

ToJSON ProfilePhoto Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON ProfilePhoto Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep ProfilePhoto Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep ProfilePhoto = D1 ('MetaData "ProfilePhoto" "TDLib.Generated.Types" "tdlib-types-0.2.0-inplace" 'False) (C1 ('MetaCons "ProfilePhoto" 'PrefixI 'True) (S1 ('MetaSel ('Just "id_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I64) :*: (S1 ('MetaSel ('Just "small_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 File) :*: S1 ('MetaSel ('Just "big_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 File))))

data ChatPhoto Source #

Constructors

ChatPhoto

Describes the photo of a chat

Fields

  • small_1 :: File

    A small (160x160) chat photo. The file can be downloaded only before the photo is changed

  • big_1 :: File

    A big (640x640) chat photo. The file can be downloaded only before the photo is changed

Instances

Instances details
Eq ChatPhoto Source # 
Instance details

Defined in TDLib.Generated.Types

Show ChatPhoto Source # 
Instance details

Defined in TDLib.Generated.Types

Generic ChatPhoto Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep ChatPhoto :: Type -> Type #

ToJSON ChatPhoto Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON ChatPhoto Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep ChatPhoto Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep ChatPhoto = D1 ('MetaData "ChatPhoto" "TDLib.Generated.Types" "tdlib-types-0.2.0-inplace" 'False) (C1 ('MetaCons "ChatPhoto" 'PrefixI 'True) (S1 ('MetaSel ('Just "small_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 File) :*: S1 ('MetaSel ('Just "big_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 File)))

data UserType Source #

Represents the type of a user. The following types are possible: regular users, deleted users and bots

Constructors

UserTypeRegular

A regular user

UserTypeDeleted

A deleted user or deleted bot. No information on the user besides the user identifier is available. It is not possible to perform any active actions on this type of user

UserTypeBot

A bot (see https://core.telegram.org/bots)

Fields

UserTypeUnknown

No information on the user besides the user identifier is available, yet this user has not been deleted. This object is extremely rare and must be handled like a deleted user. It is not possible to perform any actions on users of this type

Instances

Instances details
Eq UserType Source # 
Instance details

Defined in TDLib.Generated.Types

Show UserType Source # 
Instance details

Defined in TDLib.Generated.Types

Generic UserType Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep UserType :: Type ->