tdlib-types-0.3.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 :: 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 :: 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.3.0-inplace" 'False) (C1 ('MetaCons "Error" 'PrefixI 'True) (S1 ('MetaSel ('Just "code") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "message") '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.3.0-inplace" 'False) (C1 ('MetaCons "Ok" 'PrefixI 'False) (U1 :: Type -> Type))

data TdlibParameters Source #

Constructors

TdlibParameters

Contains parameters for TDLib initialization

Fields

  • use_test_dc :: Bool

    If set to true, the Telegram test environment will be used instead of the production environment

  • database_directory :: T

    The path to the directory for the persistent database; if empty, the current working directory will be used

  • files_directory :: T

    The path to the directory for storing files; if empty, database_directory will be used

  • use_file_database :: Bool

    If set to true, information about downloaded and uploaded files will be saved between application restarts

  • use_chat_info_database :: Bool

    If set to true, the library will maintain a cache of users, basic groups, supergroups, channels and secret chats. Implies use_file_database

  • use_message_database :: Bool

    If set to true, the library will maintain a cache of chats and messages. Implies use_chat_info_database

  • use_secret_chats :: Bool

    If set to true, support for secret chats will be enabled

  • api_id :: I32

    Application identifier for Telegram API access, which can be obtained at https://my.telegram.org

  • api_hash :: T

    Application identifier hash for Telegram API access, which can be obtained at https://my.telegram.org

  • system_language_code :: T

    IETF language tag of the user's operating system language; must be non-empty

  • device_model :: T

    Model of the device the application is being run on; must be non-empty

  • system_version :: T

    Version of the operating system the application is being run on; must be non-empty

  • application_version :: T

    Application version; must be non-empty

  • enable_storage_optimizer :: Bool

    If set to true, old files will automatically be deleted

  • ignore_file_names :: Bool

    If set to true, original file names will be ignored. Otherwise, downloaded files will be saved under names as close as possible to the original name

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.3.0-inplace" 'False) (C1 ('MetaCons "TdlibParameters" 'PrefixI 'True) (((S1 ('MetaSel ('Just "use_test_dc") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "database_directory") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "files_directory") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T))) :*: ((S1 ('MetaSel ('Just "use_file_database") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "use_chat_info_database") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :*: (S1 ('MetaSel ('Just "use_message_database") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "use_secret_chats") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)))) :*: (((S1 ('MetaSel ('Just "api_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "api_hash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)) :*: (S1 ('MetaSel ('Just "system_language_code") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "device_model") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T))) :*: ((S1 ('MetaSel ('Just "system_version") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "application_version") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)) :*: (S1 ('MetaSel ('Just "enable_storage_optimizer") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "ignore_file_names") '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_ :: 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.3.0-inplace" 'False) ((C1 ('MetaCons "AuthenticationCodeTypeTelegramMessage" 'PrefixI 'True) (S1 ('MetaSel ('Just "length") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)) :+: C1 ('MetaCons "AuthenticationCodeTypeSms" 'PrefixI 'True) (S1 ('MetaSel ('Just "length") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32))) :+: (C1 ('MetaCons "AuthenticationCodeTypeCall" 'PrefixI 'True) (S1 ('MetaSel ('Just "length") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)) :+: C1 ('MetaCons "AuthenticationCodeTypeFlashCall" 'PrefixI 'True) (S1 ('MetaSel ('Just "pattern_") '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.3.0-inplace" 'False) (C1 ('MetaCons "AuthenticationCodeInfo" 'PrefixI 'True) ((S1 ('MetaSel ('Just "phone_number") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "type_") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 AuthenticationCodeType)) :*: (S1 ('MetaSel ('Just "next_type") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 AuthenticationCodeType) :*: S1 ('MetaSel ('Just "timeout") '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.3.0-inplace" 'False) (C1 ('MetaCons "EmailAddressAuthenticationCodeInfo" 'PrefixI 'True) (S1 ('MetaSel ('Just "email_address_pattern") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "length") '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.3.0-inplace" 'False) (C1 ('MetaCons "TextEntity" 'PrefixI 'True) (S1 ('MetaSel ('Just "offset") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: (S1 ('MetaSel ('Just "length") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "type_") '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.3.0-inplace" 'False) (C1 ('MetaCons "TextEntities" 'PrefixI 'True) (S1 ('MetaSel ('Just "entities") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [TextEntity])))

data FormattedText Source #

Constructors

FormattedText

A text with some entities

Fields

  • text :: T

    The text

  • entities :: [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.3.0-inplace" 'False) (C1 ('MetaCons "FormattedText" 'PrefixI 'True) (S1 ('MetaSel ('Just "text") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "entities") '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.3.0-inplace" 'False) (C1 ('MetaCons "TermsOfService" 'PrefixI 'True) (S1 ('MetaSel ('Just "text") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FormattedText) :*: (S1 ('MetaSel ('Just "min_user_age") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "show_popup") '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 :: 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.3.0-inplace" 'False) (((C1 ('MetaCons "AuthorizationStateWaitTdlibParameters" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "AuthorizationStateWaitEncryptionKey" 'PrefixI 'True) (S1 ('MetaSel ('Just "is_encrypted") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))) :+: (C1 ('MetaCons "AuthorizationStateWaitPhoneNumber" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "AuthorizationStateWaitCode" 'PrefixI 'True) (S1 ('MetaSel ('Just "code_info") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 AuthenticationCodeInfo)) :+: C1 ('MetaCons "AuthorizationStateWaitOtherDeviceConfirmation" 'PrefixI 'True) (S1 ('MetaSel ('Just "link") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T))))) :+: ((C1 ('MetaCons "AuthorizationStateWaitRegistration" 'PrefixI 'True) (S1 ('MetaSel ('Just "terms_of_service") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TermsOfService)) :+: (C1 ('MetaCons "AuthorizationStateWaitPassword" 'PrefixI 'True) (S1 ('MetaSel ('Just "password_hint") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: (S1 ('MetaSel ('Just "has_recovery_email_address") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "recovery_email_address_pattern") '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.3.0-inplace" 'False) (C1 ('MetaCons "PasswordState" 'PrefixI 'True) ((S1 ('MetaSel ('Just "has_password") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "password_hint") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)) :*: (S1 ('MetaSel ('Just "has_recovery_email_address") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "has_passport_data") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "recovery_email_address_code_info") '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.3.0-inplace" 'False) (C1 ('MetaCons "RecoveryEmailAddress" 'PrefixI 'True) (S1 ('MetaSel ('Just "recovery_email_address") '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.3.0-inplace" 'False) (C1 ('MetaCons "TemporaryPasswordState" 'PrefixI 'True) (S1 ('MetaSel ('Just "has_password") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "valid_for") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)))

data LocalFile Source #

Constructors

LocalFile

Represents a local file

Fields

  • path :: T

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

  • can_be_downloaded :: Bool

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

  • can_be_deleted :: Bool

    True, if the file can be deleted

  • is_downloading_active :: Bool

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

  • is_downloading_completed :: Bool

    True, if the local copy is fully available

  • download_offset :: I32

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

  • downloaded_prefix_size :: 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 :: 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.3.0-inplace" 'False) (C1 ('MetaCons "LocalFile" 'PrefixI 'True) (((S1 ('MetaSel ('Just "path") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "can_be_downloaded") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :*: (S1 ('MetaSel ('Just "can_be_deleted") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "is_downloading_active") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))) :*: ((S1 ('MetaSel ('Just "is_downloading_completed") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "download_offset") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)) :*: (S1 ('MetaSel ('Just "downloaded_prefix_size") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "downloaded_size") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)))))

data RemoteFile Source #

Constructors

RemoteFile

Represents a remote file

Fields

  • id :: 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 :: 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 :: Bool

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

  • is_uploading_completed :: Bool

    True, if a remote copy is fully available

  • uploaded_size :: 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.3.0-inplace" 'False) (C1 ('MetaCons "RemoteFile" 'PrefixI 'True) ((S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "unique_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)) :*: (S1 ('MetaSel ('Just "is_uploading_active") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "is_uploading_completed") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "uploaded_size") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)))))

data File Source #

Constructors

File

Represents a file

Fields

  • id :: I32

    Unique file identifier

  • size :: I32

    File size; 0 if unknown

  • expected_size :: 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 :: LocalFile

    Information about the local copy of the file

  • remote :: 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 :: T

    Remote file identifier

InputFileLocal

A file defined by a local path

Fields

  • path :: T

    Local path to the file

InputFileGenerated

A file generated by the client

Fields

  • original_path :: T

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

  • conversion :: 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 :: 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.3.0-inplace" 'False) ((C1 ('MetaCons "InputFileId" 'PrefixI 'True) (S1 ('MetaSel ('Just "id_2") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)) :+: C1 ('MetaCons "InputFileRemote" 'PrefixI 'True) (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T))) :+: (C1 ('MetaCons "InputFileLocal" 'PrefixI 'True) (S1 ('MetaSel ('Just "path") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)) :+: C1 ('MetaCons "InputFileGenerated" 'PrefixI 'True) (S1 ('MetaSel ('Just "original_path") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: (S1 ('MetaSel ('Just "conversion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "expected_size") '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

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.3.0-inplace" 'False) (C1 ('MetaCons "Minithumbnail" 'PrefixI 'True) (S1 ('MetaSel ('Just "width") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: (S1 ('MetaSel ('Just "height") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "data_") '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.3.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 :: MaskPoint

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

  • x_shift :: 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 :: 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 :: 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

data PollOption Source #

Constructors

PollOption

Describes one answer option of a poll

Fields

  • text :: T

    Option text, 1-100 characters

  • voter_count :: I32

    Number of voters for this option, available only for closed or voted polls

  • vote_percentage :: I32

    The percentage of votes for this option, 0-100

  • is_chosen :: Bool

    True, if the option was chosen by the user

  • is_being_chosen :: Bool

    True, if the option is being chosen by a pending setPollAnswer request

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.3.0-inplace" 'False) (C1 ('MetaCons "PollOption" 'PrefixI 'True) ((S1 ('MetaSel ('Just "text") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "voter_count") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)) :*: (S1 ('MetaSel ('Just "vote_percentage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: (S1 ('MetaSel ('Just "is_chosen") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "is_being_chosen") '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 :: I32

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

  • explanation :: 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.3.0-inplace" 'False) (C1 ('MetaCons "PollTypeRegular" 'PrefixI 'True) (S1 ('MetaSel ('Just "allow_multiple_answers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :+: C1 ('MetaCons "PollTypeQuiz" 'PrefixI 'True) (S1 ('MetaSel ('Just "correct_option_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "explanation") '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

  • duration :: I32

    Duration of the audio, in seconds; as defined by the sender

  • title :: T

    Title of the audio; as defined by the sender

  • performer :: T

    Performer of the audio; as defined by the sender

  • file_name :: T

    Original name of the file; as defined by the sender

  • mime_type :: T

    The MIME type of the file; as defined by the sender

  • album_cover_minithumbnail :: Minithumbnail

    The minithumbnail of the album cover; may be null

  • album_cover_thumbnail :: PhotoSize

    The thumbnail of the album cover; as defined by the sender. The full size thumbnail should be extracted from the downloaded file; may be null

  • audio :: File

    File containing the audio

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

  • file_name :: T

    Original name of the file; as defined by the sender

  • mime_type :: T

    MIME type of the file; as defined by the sender

  • minithumbnail :: Minithumbnail

    Document minithumbnail; may be null

  • thumbnail :: PhotoSize

    Document thumbnail in JPEG or PNG format (PNG will be used only for background patterns); as defined by the sender; may be null

  • document :: File

    File containing the document

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

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.3.0-inplace" 'False) (C1 ('MetaCons "Photo" 'PrefixI 'True) (S1 ('MetaSel ('Just "has_stickers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "minithumbnail") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Minithumbnail) :*: S1 ('MetaSel ('Just "sizes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [PhotoSize]))))

data Sticker Source #

Constructors

Sticker

Describes a sticker

Fields

  • set_id :: I64

    The identifier of the sticker set to which the sticker belongs; 0 if none

  • width :: I32

    Sticker width; as defined by the sender

  • height :: I32

    Sticker height; as defined by the sender

  • emoji :: T

    Emoji corresponding to the sticker

  • is_animated :: Bool

    True, if the sticker is an animated sticker in TGS format

  • is_mask :: Bool

    True, if the sticker is a mask

  • mask_position :: MaskPosition

    Position where the mask should be placed; may be null

  • thumbnail :: PhotoSize

    Sticker thumbnail in WEBP or JPEG format; may be null

  • sticker :: File

    File containing the sticker

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

  • duration :: I32

    Duration of the voice note, in seconds; as defined by the sender

  • waveform :: ByteString64

    A waveform representation of the voice note in 5-bit format

  • mime_type :: T

    MIME type of the file; as defined by the sender

  • voice :: File

    File containing the voice note

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.3.0-inplace" 'False) (C1 ('MetaCons "VoiceNote" 'PrefixI 'True) ((S1 ('MetaSel ('Just "duration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "waveform") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString64)) :*: (S1 ('MetaSel ('Just "mime_type") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "voice") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 File))))

data Contact Source #

Constructors

Contact

Describes a user contact

Fields

  • phone_number :: T

    Phone number of the user

  • first_name :: T

    First name of the user; 1-255 characters in length

  • last_name :: T

    Last name of the user

  • vcard :: T

    Additional data about the user in a form of vCard; 0-2048 bytes in length

  • user_id :: I32

    Identifier of the user, if known; otherwise 0

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

data Location Source #

Constructors

Location

Describes a location on planet Earth

Fields

  • latitude :: Double

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

  • longitude :: 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.3.0-inplace" 'False) (C1 ('MetaCons "Location" 'PrefixI 'True) (S1 ('MetaSel ('Just "latitude") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double) :*: S1 ('MetaSel ('Just "longitude") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double)))

data Venue Source #

Constructors

Venue

Describes a venue

Fields

  • location :: Location

    Venue location; as defined by the sender

  • title :: T

    Venue name; as defined by the sender

  • address :: T

    Venue address; as defined by the sender

  • provider :: T

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

  • id :: T

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

  • type_ :: 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 :: I64

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

  • small :: File

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

  • big :: 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.3.0-inplace" 'False) (C1 ('MetaCons "ProfilePhoto" 'PrefixI 'True) (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I64) :*: (S1 ('MetaSel ('Just "small") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 File) :*: S1 ('MetaSel ('Just "big") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 File))))

data ChatPhoto Source #

Constructors

ChatPhoto

Describes the photo of a chat

Fields

  • small :: File

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

  • big :: 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.3.0-inplace" 'False) (C1 ('MetaCons "ChatPhoto" 'PrefixI 'True) (S1 ('MetaSel ('Just "small") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 File) :*: S1 ('MetaSel ('Just "big") '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

  • can_join_groups :: Bool

    True, if the bot can be invited to basic group and supergroup chats

  • can_read_all_group_messages :: Bool

    True, if the bot can read all messages in basic group or supergroup chats and not just those addressed to the bot. In private and channel chats a bot can always read all messages

  • is_inline :: Bool

    True, if the bot supports inline queries

  • inline_query_placeholder :: T

    Placeholder for inline queries (displayed on the client input field)

  • need_location :: Bool

    True, if the location of the user should be sent with every inline query to this bot

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 -> Type #

Methods

from :: UserType -> Rep UserType x #

to :: Rep UserType x -> UserType #

ToJSON UserType Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON UserType Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep UserType Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep UserType = D1 ('MetaData "UserType" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) ((C1 ('MetaCons "UserTypeRegular" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "UserTypeDeleted" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "UserTypeBot" 'PrefixI 'True) ((S1 ('MetaSel ('Just "can_join_groups") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "can_read_all_group_messages") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :*: (S1 ('MetaSel ('Just "is_inline") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "inline_query_placeholder") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "need_location") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)))) :+: C1 ('MetaCons "UserTypeUnknown" 'PrefixI 'False) (U1 :: Type -> Type)))

data BotCommand Source #

Constructors

BotCommand

Represents a command supported by a bot

Fields

Instances

Instances details
Eq BotCommand Source # 
Instance details

Defined in TDLib.Generated.Types

Show BotCommand Source # 
Instance details

Defined in TDLib.Generated.Types

Generic BotCommand Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep BotCommand :: Type -> Type #

ToJSON BotCommand Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON BotCommand Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep BotCommand Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep BotCommand = D1 ('MetaData "BotCommand" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "BotCommand" 'PrefixI 'True) (S1 ('MetaSel ('Just "command") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)))

data BotInfo Source #

Constructors

BotInfo

Provides information about a bot and its supported commands

Fields

Instances

Instances details
Eq BotInfo Source # 
Instance details

Defined in TDLib.Generated.Types

Methods

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

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

Show BotInfo Source # 
Instance details

Defined in TDLib.Generated.Types

Generic BotInfo Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep BotInfo :: Type -> Type #

Methods

from :: BotInfo -> Rep BotInfo x #

to :: Rep BotInfo x -> BotInfo #

ToJSON BotInfo Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON BotInfo Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep BotInfo Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep BotInfo = D1 ('MetaData "BotInfo" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "BotInfo" 'PrefixI 'True) (S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "commands") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [BotCommand])))

data ChatLocation Source #

Constructors

ChatLocation

Represents a location to which a chat is connected

Fields

Instances

Instances details
Eq ChatLocation Source # 
Instance details

Defined in TDLib.Generated.Types

Show ChatLocation Source # 
Instance details

Defined in TDLib.Generated.Types

Generic ChatLocation Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep ChatLocation :: Type -> Type #

ToJSON ChatLocation Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON ChatLocation Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep ChatLocation Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep ChatLocation = D1 ('MetaData "ChatLocation" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "ChatLocation" 'PrefixI 'True) (S1 ('MetaSel ('Just "location") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Location) :*: S1 ('MetaSel ('Just "address") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)))

data User Source #

Constructors

User

Represents a user

Fields

Instances

Instances details
Eq User Source # 
Instance details

Defined in TDLib.Generated.Types

Methods

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

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

Show User Source # 
Instance details

Defined in TDLib.Generated.Types

Methods

showsPrec :: Int -> User -> ShowS #

show :: User -> String #

showList :: [User] -> ShowS #

Generic User Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep User :: Type -> Type #

Methods

from :: User -> Rep User x #

to :: Rep User x -> User #

ToJSON User Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON User Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep User Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep User = D1 ('MetaData "User" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "User" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "first_name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)) :*: (S1 ('MetaSel ('Just "last_name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "username") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T))) :*: ((S1 ('MetaSel ('Just "phone_number") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UserStatus)) :*: (S1 ('MetaSel ('Just "profile_photo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ProfilePhoto) :*: S1 ('MetaSel ('Just "is_contact") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)))) :*: (((S1 ('MetaSel ('Just "is_mutual_contact") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "is_verified") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :*: (S1 ('MetaSel ('Just "is_support") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "restriction_reason") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T))) :*: ((S1 ('MetaSel ('Just "is_scam") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "have_access") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :*: (S1 ('MetaSel ('Just "type_") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UserType) :*: S1 ('MetaSel ('Just "language_code") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T))))))

data UserFullInfo Source #

Constructors

UserFullInfo

Contains full information about a user (except the full list of profile photos)

Fields

Instances

Instances details
Eq UserFullInfo Source # 
Instance details

Defined in TDLib.Generated.Types

Show UserFullInfo Source # 
Instance details

Defined in TDLib.Generated.Types

Generic UserFullInfo Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep UserFullInfo :: Type -> Type #

ToJSON UserFullInfo Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON UserFullInfo Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep UserFullInfo Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep UserFullInfo = D1 ('MetaData "UserFullInfo" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "UserFullInfo" 'PrefixI 'True) (((S1 ('MetaSel ('Just "is_blocked") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "can_be_called") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :*: (S1 ('MetaSel ('Just "has_private_calls") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "need_phone_number_privacy_exception") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))) :*: ((S1 ('MetaSel ('Just "bio") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "share_text") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)) :*: (S1 ('MetaSel ('Just "group_in_common_count") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "bot_info") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BotInfo)))))

data UserProfilePhoto Source #

Constructors

UserProfilePhoto

Contains full information about a user profile photo

Fields

  • id :: I64

    Unique user profile photo identifier

  • added_date :: I32

    Point in time (Unix timestamp) when the photo has been added

  • sizes :: [PhotoSize]

    Available variants of the user photo, in different sizes

Instances

Instances details
Eq UserProfilePhoto Source # 
Instance details

Defined in TDLib.Generated.Types

Show UserProfilePhoto Source # 
Instance details

Defined in TDLib.Generated.Types

Generic UserProfilePhoto Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep UserProfilePhoto :: Type -> Type #

ToJSON UserProfilePhoto Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON UserProfilePhoto Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep UserProfilePhoto Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep UserProfilePhoto = D1 ('MetaData "UserProfilePhoto" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "UserProfilePhoto" 'PrefixI 'True) (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I64) :*: (S1 ('MetaSel ('Just "added_date") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "sizes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [PhotoSize]))))

data UserProfilePhotos Source #

Constructors

UserProfilePhotos

Contains part of the list of user photos

Fields

Instances

Instances details
Eq UserProfilePhotos Source # 
Instance details

Defined in TDLib.Generated.Types

Show UserProfilePhotos Source # 
Instance details

Defined in TDLib.Generated.Types

Generic UserProfilePhotos Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep UserProfilePhotos :: Type -> Type #

ToJSON UserProfilePhotos Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON UserProfilePhotos Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep UserProfilePhotos Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep UserProfilePhotos = D1 ('MetaData "UserProfilePhotos" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "UserProfilePhotos" 'PrefixI 'True) (S1 ('MetaSel ('Just "total_count") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "photos") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [UserProfilePhoto])))

data Users Source #

Constructors

Users

Represents a list of users

Fields

Instances

Instances details
Eq Users Source # 
Instance details

Defined in TDLib.Generated.Types

Methods

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

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

Show Users Source # 
Instance details

Defined in TDLib.Generated.Types

Methods

showsPrec :: Int -> Users -> ShowS #

show :: Users -> String #

showList :: [Users] -> ShowS #

Generic Users Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep Users :: Type -> Type #

Methods

from :: Users -> Rep Users x #

to :: Rep Users x -> Users #

ToJSON Users Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON Users Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep Users Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep Users = D1 ('MetaData "Users" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "Users" 'PrefixI 'True) (S1 ('MetaSel ('Just "total_count") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "user_ids") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [I32])))

data ChatAdministrator Source #

Constructors

ChatAdministrator

Contains information about a chat administrator

Fields

Instances

Instances details
Eq ChatAdministrator Source # 
Instance details

Defined in TDLib.Generated.Types

Show ChatAdministrator Source # 
Instance details

Defined in TDLib.Generated.Types

Generic ChatAdministrator Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep ChatAdministrator :: Type -> Type #

ToJSON ChatAdministrator Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON ChatAdministrator Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep ChatAdministrator Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep ChatAdministrator = D1 ('MetaData "ChatAdministrator" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "ChatAdministrator" 'PrefixI 'True) (S1 ('MetaSel ('Just "user_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: (S1 ('MetaSel ('Just "custom_title") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "is_owner") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))))

data ChatAdministrators Source #

Constructors

ChatAdministrators

Represents a list of chat administrators

Fields

Instances

Instances details
Eq ChatAdministrators Source # 
Instance details

Defined in TDLib.Generated.Types

Show ChatAdministrators Source # 
Instance details

Defined in TDLib.Generated.Types

Generic ChatAdministrators Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep ChatAdministrators :: Type -> Type #

ToJSON ChatAdministrators Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON ChatAdministrators Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep ChatAdministrators Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep ChatAdministrators = D1 ('MetaData "ChatAdministrators" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "ChatAdministrators" 'PrefixI 'True) (S1 ('MetaSel ('Just "administrators") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [ChatAdministrator])))

data ChatPermissions Source #

Constructors

ChatPermissions

Describes actions that a user is allowed to take in a chat

Fields

Instances

Instances details
Eq ChatPermissions Source # 
Instance details

Defined in TDLib.Generated.Types

Show ChatPermissions Source # 
Instance details

Defined in TDLib.Generated.Types

Generic ChatPermissions Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep ChatPermissions :: Type -> Type #

ToJSON ChatPermissions Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON ChatPermissions Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep ChatPermissions Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep ChatPermissions = D1 ('MetaData "ChatPermissions" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "ChatPermissions" 'PrefixI 'True) (((S1 ('MetaSel ('Just "can_send_messages") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "can_send_media_messages") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :*: (S1 ('MetaSel ('Just "can_send_polls") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "can_send_other_messages") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))) :*: ((S1 ('MetaSel ('Just "can_add_web_page_previews") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "can_change_info") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :*: (S1 ('MetaSel ('Just "can_invite_users") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "can_pin_messages") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)))))

data ChatMemberStatus Source #

Provides information about the status of a member in a chat

Constructors

ChatMemberStatusCreator

The user is the owner of a chat and has all the administrator privileges

Fields

  • custom_title :: T

    A custom title of the owner; 0-16 characters without emojis; applicable to supergroups only

  • is_member :: Bool

    True, if the user is a member of the chat

ChatMemberStatusAdministrator

The user is a member of a chat and has some additional privileges. In basic groups, administrators can edit and delete messages sent by others, add new members, and ban unprivileged members. In supergroups and channels, there are more detailed options for administrator privileges

Fields

  • custom_title :: T

    A custom title of the owner; 0-16 characters without emojis; applicable to supergroups only

  • can_be_edited :: Bool

    True, if the current user can edit the administrator privileges for the called user

  • can_change_info :: Bool

    True, if the administrator can change the chat title, photo, and other settings

  • can_post_messages :: Bool

    True, if the administrator can create channel posts; applicable to channels only

  • can_edit_messages :: Bool

    True, if the administrator can edit messages of other users and pin messages; applicable to channels only

  • can_delete_messages :: Bool

    True, if the administrator can delete messages of other users

  • can_invite_users :: Bool

    True, if the administrator can invite new users to the chat

  • can_restrict_members :: Bool

    True, if the administrator can restrict, ban, or unban chat members

  • can_pin_messages :: Bool

    True, if the administrator can pin messages; applicable to groups only

  • can_promote_members :: Bool

    True, if the administrator can add new administrators with a subset of their own privileges or demote administrators that were directly or indirectly promoted by them

ChatMemberStatusMember

The user is a member of a chat, without any additional privileges or restrictions

ChatMemberStatusRestricted

The user is under certain restrictions in the chat. Not supported in basic groups and channels

Fields

  • is_member :: Bool

    True, if the user is a member of the chat

  • restricted_until_date :: I32

    Point in time (Unix timestamp) when restrictions will be lifted from the user; 0 if never. If the user is restricted for more than 366 days or for less than 30 seconds from the current time, the user is considered to be restricted forever

  • permissions :: ChatPermissions

    User permissions in the chat

ChatMemberStatusLeft

The user is not a chat member

ChatMemberStatusBanned

The user was banned (and hence is not a member of the chat). Implies the user can't return to the chat or view messages

Fields

  • banned_until_date :: I32

    Point in time (Unix timestamp) when the user will be unbanned; 0 if never. If the user is banned for more than 366 days or for less than 30 seconds from the current time, the user is considered to be banned forever

Instances

Instances details
Eq ChatMemberStatus Source # 
Instance details

Defined in TDLib.Generated.Types

Show ChatMemberStatus Source # 
Instance details

Defined in TDLib.Generated.Types

Generic ChatMemberStatus Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep ChatMemberStatus :: Type -> Type #

ToJSON ChatMemberStatus Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON ChatMemberStatus Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep ChatMemberStatus Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep ChatMemberStatus = D1 ('MetaData "ChatMemberStatus" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) ((C1 ('MetaCons "ChatMemberStatusCreator" 'PrefixI 'True) (S1 ('MetaSel ('Just "custom_title") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "is_member") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :+: (C1 ('MetaCons "ChatMemberStatusAdministrator" 'PrefixI 'True) (((S1 ('MetaSel ('Just "custom_title") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "can_be_edited") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :*: (S1 ('MetaSel ('Just "can_change_info") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "can_post_messages") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "can_edit_messages") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)))) :*: ((S1 ('MetaSel ('Just "can_delete_messages") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "can_invite_users") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :*: (S1 ('MetaSel ('Just "can_restrict_members") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "can_pin_messages") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "can_promote_members") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))))) :+: C1 ('MetaCons "ChatMemberStatusMember" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "ChatMemberStatusRestricted" 'PrefixI 'True) (S1 ('MetaSel ('Just "is_member") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "restricted_until_date") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "permissions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ChatPermissions))) :+: (C1 ('MetaCons "ChatMemberStatusLeft" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ChatMemberStatusBanned" 'PrefixI 'True) (S1 ('MetaSel ('Just "banned_until_date") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)))))

data ChatMember Source #

Constructors

ChatMember

A user with information about joining/leaving a chat

Fields

  • user_id :: I32

    User identifier of the chat member

  • inviter_user_id :: I32

    Identifier of a user that invitedpromotedbanned this member in the chat; 0 if unknown

  • joined_chat_date :: I32

    Point in time (Unix timestamp) when the user joined a chat

  • status :: ChatMemberStatus

    Status of the member in the chat

  • bot_info :: BotInfo

    If the user is a bot, information about the bot; may be null. Can be null even for a bot if the bot is not a chat member

Instances

Instances details
Eq ChatMember Source # 
Instance details

Defined in TDLib.Generated.Types

Show ChatMember Source # 
Instance details

Defined in TDLib.Generated.Types

Generic ChatMember Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep ChatMember :: Type -> Type #

ToJSON ChatMember Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON ChatMember Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep ChatMember Source # 
Instance details

Defined in TDLib.Generated.Types

data ChatMembers Source #

Constructors

ChatMembers

Contains a list of chat members

Fields

Instances

Instances details
Eq ChatMembers Source # 
Instance details

Defined in TDLib.Generated.Types

Show ChatMembers Source # 
Instance details

Defined in TDLib.Generated.Types

Generic ChatMembers Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep ChatMembers :: Type -> Type #

ToJSON ChatMembers Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON ChatMembers Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep ChatMembers Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep ChatMembers = D1 ('MetaData "ChatMembers" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "ChatMembers" 'PrefixI 'True) (S1 ('MetaSel ('Just "total_count") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "members") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [ChatMember])))

data ChatMembersFilter Source #

Specifies the kind of chat members to return in searchChatMembers

Constructors

ChatMembersFilterContacts

Returns contacts of the user

ChatMembersFilterAdministrators

Returns the owner and administrators

ChatMembersFilterMembers

Returns all chat members, including restricted chat members

ChatMembersFilterRestricted

Returns users under certain restrictions in the chat; can be used only by administrators in a supergroup

ChatMembersFilterBanned

Returns users banned from the chat; can be used only by administrators in a supergroup or in a channel

ChatMembersFilterBots

Returns bot members of the chat

Instances

Instances details
Eq ChatMembersFilter Source # 
Instance details

Defined in TDLib.Generated.Types

Show ChatMembersFilter Source # 
Instance details

Defined in TDLib.Generated.Types

Generic ChatMembersFilter Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep ChatMembersFilter :: Type -> Type #

ToJSON ChatMembersFilter Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON ChatMembersFilter Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep ChatMembersFilter Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep ChatMembersFilter = D1 ('MetaData "ChatMembersFilter" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) ((C1 ('MetaCons "ChatMembersFilterContacts" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ChatMembersFilterAdministrators" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ChatMembersFilterMembers" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "ChatMembersFilterRestricted" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ChatMembersFilterBanned" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ChatMembersFilterBots" 'PrefixI 'False) (U1 :: Type -> Type))))

data SupergroupMembersFilter Source #

Specifies the kind of chat members to return in getSupergroupMembers

Constructors

SupergroupMembersFilterRecent

Returns recently active users in reverse chronological order

SupergroupMembersFilterContacts

Returns contacts of the user, which are members of the supergroup or channel

Fields

SupergroupMembersFilterAdministrators

Returns the owner and administrators

SupergroupMembersFilterSearch

Used to search for supergroup or channel members via a (string) query

Fields

SupergroupMembersFilterRestricted

Returns restricted supergroup members; can be used only by administrators

Fields

SupergroupMembersFilterBanned

Returns users banned from the supergroup or channel; can be used only by administrators

Fields

SupergroupMembersFilterBots

Returns bot members of the supergroup or channel

Instances

Instances details
Eq SupergroupMembersFilter Source # 
Instance details

Defined in TDLib.Generated.Types

Show SupergroupMembersFilter Source # 
Instance details

Defined in TDLib.Generated.Types

Generic SupergroupMembersFilter Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep SupergroupMembersFilter :: Type -> Type #

ToJSON SupergroupMembersFilter Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON SupergroupMembersFilter Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep SupergroupMembersFilter Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep SupergroupMembersFilter = D1 ('MetaData "SupergroupMembersFilter" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) ((C1 ('MetaCons "SupergroupMembersFilterRecent" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "SupergroupMembersFilterContacts" 'PrefixI 'True) (S1 ('MetaSel ('Just "query") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)) :+: C1 ('MetaCons "SupergroupMembersFilterAdministrators" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "SupergroupMembersFilterSearch" 'PrefixI 'True) (S1 ('MetaSel ('Just "query") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)) :+: C1 ('MetaCons "SupergroupMembersFilterRestricted" 'PrefixI 'True) (S1 ('MetaSel ('Just "query") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T))) :+: (C1 ('MetaCons "SupergroupMembersFilterBanned" 'PrefixI 'True) (S1 ('MetaSel ('Just "query") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)) :+: C1 ('MetaCons "SupergroupMembersFilterBots" 'PrefixI 'False) (U1 :: Type -> Type))))

data BasicGroup Source #

Constructors

BasicGroup

Represents a basic group of 0-200 users (must be upgraded to a supergroup to accommodate more than 200 users)

Fields

Instances

Instances details
Eq BasicGroup Source # 
Instance details

Defined in TDLib.Generated.Types

Show BasicGroup Source # 
Instance details

Defined in TDLib.Generated.Types

Generic BasicGroup Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep BasicGroup :: Type -> Type #

ToJSON BasicGroup Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON BasicGroup Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep BasicGroup Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep BasicGroup = D1 ('MetaData "BasicGroup" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "BasicGroup" 'PrefixI 'True) ((S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "member_count") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)) :*: (S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ChatMemberStatus) :*: (S1 ('MetaSel ('Just "is_active") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "upgraded_to_supergroup_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)))))

data BasicGroupFullInfo Source #

Constructors

BasicGroupFullInfo

Contains full information about a basic group

Fields

  • description :: T

    Contains full information about a basic group

  • creator_user_id :: I32

    User identifier of the creator of the group; 0 if unknown

  • members :: [ChatMember]

    Group members

  • invite_link :: T

    Invite link for this group; available only after it has been generated at least once and only for the group creator

Instances

Instances details
Eq BasicGroupFullInfo Source # 
Instance details

Defined in TDLib.Generated.Types

Show BasicGroupFullInfo Source # 
Instance details

Defined in TDLib.Generated.Types

Generic BasicGroupFullInfo Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep BasicGroupFullInfo :: Type -> Type #

ToJSON BasicGroupFullInfo Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON BasicGroupFullInfo Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep BasicGroupFullInfo Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep BasicGroupFullInfo = D1 ('MetaData "BasicGroupFullInfo" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "BasicGroupFullInfo" 'PrefixI 'True) ((S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "creator_user_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)) :*: (S1 ('MetaSel ('Just "members") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [ChatMember]) :*: S1 ('MetaSel ('Just "invite_link") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T))))

data Supergroup Source #

Constructors

Supergroup

Represents a supergroup or channel with zero or more members (subscribers in the case of channels). From the point of view of the system, a channel is a special kind of a supergroup: only administrators can post and see the list of members, and posts from all administrators use the name and photo of the channel instead of individual names and profile photos. Unlike supergroups, channels can have an unlimited number of subscribers

Fields

  • id :: I32

    Supergroup or channel identifier

  • username :: T

    Username of the supergroup or channel; empty for private supergroups or channels

  • date :: I32

    Point in time (Unix timestamp) when the current user joined, or the point in time when the supergroup or channel was created, in case the user is not a member

  • status :: ChatMemberStatus

    Status of the current user in the supergroup or channel; custom title will be always empty

  • member_count :: I32

    Number of members in the supergroup or channel; 0 if unknown. Currently it is guaranteed to be known only if the supergroup or channel was found through SearchPublicChats

  • has_linked_chat :: Bool

    True, if the channel has a discussion group, or the supergroup is the designated discussion group for a channel

  • has_location :: Bool

    True, if the supergroup is connected to a location, i.e. the supergroup is a location-based supergroup

  • sign_messages :: Bool

    True, if messages sent to the channel should contain information about the sender. This field is only applicable to channels

  • is_slow_mode_enabled :: Bool

    True, if the slow mode is enabled in the supergroup

  • is_channel :: Bool

    True, if the supergroup is a channel

  • is_verified :: Bool

    True, if the supergroup or channel is verified

  • restriction_reason :: T

    If non-empty, contains a human-readable description of the reason why access to this supergroup or channel must be restricted

  • is_scam :: Bool

    True, if many users reported this supergroup as a scam

Instances

Instances details
Eq Supergroup Source # 
Instance details

Defined in TDLib.Generated.Types

Show Supergroup Source # 
Instance details

Defined in TDLib.Generated.Types

Generic Supergroup Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep Supergroup :: Type -> Type #

ToJSON Supergroup Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON Supergroup Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep Supergroup Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep Supergroup = D1 ('MetaData "Supergroup" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "Supergroup" 'PrefixI 'True) (((S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: (S1 ('MetaSel ('Just "username") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "date") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32))) :*: (S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ChatMemberStatus) :*: (S1 ('MetaSel ('Just "member_count") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "has_linked_chat") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)))) :*: ((S1 ('MetaSel ('Just "has_location") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "sign_messages") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "is_slow_mode_enabled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))) :*: ((S1 ('MetaSel ('Just "is_channel") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "is_verified") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :*: (S1 ('MetaSel ('Just "restriction_reason") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "is_scam") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))))))

data SupergroupFullInfo Source #

Constructors

SupergroupFullInfo

Contains full information about a supergroup or channel

Fields

  • description :: T

    Contains full information about a supergroup or channel

  • member_count :: I32

    Number of members in the supergroup or channel; 0 if unknown

  • administrator_count :: I32

    Number of privileged users in the supergroup or channel; 0 if unknown

  • restricted_count :: I32

    Number of restricted users in the supergroup; 0 if unknown

  • banned_count :: I32

    Number of users banned from chat; 0 if unknown

  • linked_chat_id :: I53

    Chat identifier of a discussion group for the channel, or a channel, for which the supergroup is the designated discussion group; 0 if none or unknown

  • slow_mode_delay :: I32

    Delay between consecutive sent messages for non-administrator supergroup members, in seconds

  • slow_mode_delay_expires_in :: Double

    Time left before next message can be sent in the supergroup, in seconds. An updateSupergroupFullInfo update is not triggered when value of this field changes, but both new and old values are non-zero

  • can_get_members :: Bool

    True, if members of the chat can be retrieved

  • can_set_username :: Bool

    True, if the chat username can be changed

  • can_set_sticker_set :: Bool

    True, if the supergroup sticker set can be changed

  • can_set_location :: Bool

    True, if the supergroup location can be changed

  • can_view_statistics :: Bool

    True, if the channel statistics is available

  • is_all_history_available :: Bool

    True, if new chat members will have access to old messages. In public or discussion groups and both public and private channels, old messages are always available, so this option affects only private supergroups without a linked chat. The value of this field is only available for chat administrators

  • sticker_set_id :: I64

    Identifier of the supergroup sticker set; 0 if none

  • location :: ChatLocation

    Location to which the supergroup is connected; may be null

  • invite_link :: T

    Invite link for this chat

  • upgraded_from_basic_group_id :: I32

    Identifier of the basic group from which supergroup was upgraded; 0 if none

  • upgraded_from_max_message_id :: I53

    Identifier of the last message in the basic group from which supergroup was upgraded; 0 if none

Instances

Instances details
Eq SupergroupFullInfo Source # 
Instance details

Defined in TDLib.Generated.Types

Show SupergroupFullInfo Source # 
Instance details

Defined in TDLib.Generated.Types

Generic SupergroupFullInfo Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep SupergroupFullInfo :: Type -> Type #

ToJSON SupergroupFullInfo Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON SupergroupFullInfo Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep SupergroupFullInfo Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep SupergroupFullInfo = D1 ('MetaData "SupergroupFullInfo" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "SupergroupFullInfo" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "member_count") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)) :*: (S1 ('MetaSel ('Just "administrator_count") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "restricted_count") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32))) :*: ((S1 ('MetaSel ('Just "banned_count") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "linked_chat_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53)) :*: (S1 ('MetaSel ('Just "slow_mode_delay") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: (S1 ('MetaSel ('Just "slow_mode_delay_expires_in") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double) :*: S1 ('MetaSel ('Just "can_get_members") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))))) :*: (((S1 ('MetaSel ('Just "can_set_username") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "can_set_sticker_set") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :*: (S1 ('MetaSel ('Just "can_set_location") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "can_view_statistics") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "is_all_history_available") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)))) :*: ((S1 ('MetaSel ('Just "sticker_set_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I64) :*: S1 ('MetaSel ('Just "location") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ChatLocation)) :*: (S1 ('MetaSel ('Just "invite_link") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: (S1 ('MetaSel ('Just "upgraded_from_basic_group_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "upgraded_from_max_message_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53)))))))

data SecretChatState Source #

Describes the current secret chat state

Constructors

SecretChatStatePending

The secret chat is not yet created; waiting for the other user to get online

SecretChatStateReady

The secret chat is ready to use

SecretChatStateClosed

The secret chat is closed

Instances

Instances details
Eq SecretChatState Source # 
Instance details

Defined in TDLib.Generated.Types

Show SecretChatState Source # 
Instance details

Defined in TDLib.Generated.Types

Generic SecretChatState Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep SecretChatState :: Type -> Type #

ToJSON SecretChatState Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON SecretChatState Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep SecretChatState Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep SecretChatState = D1 ('MetaData "SecretChatState" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "SecretChatStatePending" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "SecretChatStateReady" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "SecretChatStateClosed" 'PrefixI 'False) (U1 :: Type -> Type)))

data SecretChat Source #

Constructors

SecretChat

Represents a secret chat

Fields

  • id :: I32

    Secret chat identifier

  • user_id :: I32

    Identifier of the chat partner

  • state :: SecretChatState

    State of the secret chat

  • is_outbound :: Bool

    True, if the chat was created by the current user; otherwise false

  • ttl :: I32

    Current message Time To Live setting (self-destruct timer) for the chat, in seconds

  • key_hash :: ByteString64

    Hash of the currently used key for comparison with the hash of the chat partner's key. This is a string of 36 little-endian bytes, which must be split into groups of 2 bits, each denoting a pixel of one of 4 colors FFFFFF, D5E6F3, 2D5775, and 2F99C9.

  • layer :: I32

    Secret chat layer; determines features supported by the other client. Video notes are supported if the layer >= 66; nested text entities and underline and strikethrough entities are supported if the layer >= 101

Instances

Instances details
Eq SecretChat Source # 
Instance details

Defined in TDLib.Generated.Types

Show SecretChat Source # 
Instance details

Defined in TDLib.Generated.Types

Generic SecretChat Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep SecretChat :: Type -> Type #

ToJSON SecretChat Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON SecretChat Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep SecretChat Source # 
Instance details

Defined in TDLib.Generated.Types

data MessageForwardOrigin Source #

Contains information about the origin of a forwarded message

Constructors

MessageForwardOriginUser

The message was originally written by a known user

Fields

MessageForwardOriginHiddenUser

The message was originally written by a user, which is hidden by their privacy settings

Fields

MessageForwardOriginChannel

The message was originally a post in a channel

Fields

  • chat_id :: I53

    Identifier of the chat from which the message was originally forwarded

  • message_id :: I53

    Message identifier of the original message; 0 if unknown

  • author_signature :: T

    Original post author signature

Instances

Instances details
Eq MessageForwardOrigin Source # 
Instance details

Defined in TDLib.Generated.Types

Show MessageForwardOrigin Source # 
Instance details

Defined in TDLib.Generated.Types

Generic MessageForwardOrigin Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep MessageForwardOrigin :: Type -> Type #

ToJSON MessageForwardOrigin Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON MessageForwardOrigin Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep MessageForwardOrigin Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep MessageForwardOrigin = D1 ('MetaData "MessageForwardOrigin" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "MessageForwardOriginUser" 'PrefixI 'True) (S1 ('MetaSel ('Just "sender_user_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)) :+: (C1 ('MetaCons "MessageForwardOriginHiddenUser" 'PrefixI 'True) (S1 ('MetaSel ('Just "sender_name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)) :+: C1 ('MetaCons "MessageForwardOriginChannel" 'PrefixI 'True) (S1 ('MetaSel ('Just "chat_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: (S1 ('MetaSel ('Just "message_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: S1 ('MetaSel ('Just "author_signature") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)))))

data MessageForwardInfo Source #

Constructors

MessageForwardInfo

Contains information about a forwarded message

Fields

  • origin :: MessageForwardOrigin

    Origin of a forwarded message

  • date :: I32

    Point in time (Unix timestamp) when the message was originally sent

  • public_service_announcement_type :: T

    The type of a public service announcement for the forwarded message

  • from_chat_id :: I53

    For messages forwarded to the chat with the current user (Saved Messages) or to the channel's discussion group, the identifier of the chat from which the message was forwarded last time; 0 if unknown

  • from_message_id :: I53

    For messages forwarded to the chat with the current user (Saved Messages) or to the channel's discussion group, the identifier of the original message from which the new message was forwarded last time; 0 if unknown

Instances

Instances details
Eq MessageForwardInfo Source # 
Instance details

Defined in TDLib.Generated.Types

Show MessageForwardInfo Source # 
Instance details

Defined in TDLib.Generated.Types

Generic MessageForwardInfo Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep MessageForwardInfo :: Type -> Type #

ToJSON MessageForwardInfo Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON MessageForwardInfo Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep MessageForwardInfo Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep MessageForwardInfo = D1 ('MetaData "MessageForwardInfo" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "MessageForwardInfo" 'PrefixI 'True) ((S1 ('MetaSel ('Just "origin") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MessageForwardOrigin) :*: S1 ('MetaSel ('Just "date") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)) :*: (S1 ('MetaSel ('Just "public_service_announcement_type") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: (S1 ('MetaSel ('Just "from_chat_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: S1 ('MetaSel ('Just "from_message_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53)))))

data MessageSendingState Source #

Contains information about the sending state of the message

Constructors

MessageSendingStatePending

The message is being sent now, but has not yet been delivered to the server

MessageSendingStateFailed

The message failed to be sent

Fields

Instances

Instances details
Eq MessageSendingState Source # 
Instance details

Defined in TDLib.Generated.Types

Show MessageSendingState Source # 
Instance details

Defined in TDLib.Generated.Types

Generic MessageSendingState Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep MessageSendingState :: Type -> Type #

ToJSON MessageSendingState Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON MessageSendingState Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep MessageSendingState Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep MessageSendingState = D1 ('MetaData "MessageSendingState" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "MessageSendingStatePending" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MessageSendingStateFailed" 'PrefixI 'True) ((S1 ('MetaSel ('Just "error_code") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "error_message") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)) :*: (S1 ('MetaSel ('Just "can_retry") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "retry_after") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double))))

data Message Source #

Constructors

Message

Describes a message

Fields

  • id :: I53

    Message identifier, unique for the chat to which the message belongs

  • sender_user_id :: I32

    Identifier of the user who sent the message; 0 if unknown. Currently, it is unknown for channel posts and for channel posts automatically forwarded to discussion group

  • chat_id :: I53

    Chat identifier

  • sending_state :: MessageSendingState

    Information about the sending state of the message; may be null

  • scheduling_state :: MessageSchedulingState

    Information about the scheduling state of the message; may be null

  • is_outgoing :: Bool

    True, if the message is outgoing

  • can_be_edited :: Bool

    True, if the message can be edited. For live location and poll messages this fields shows whether editMessageLiveLocation or stopPoll can be used with this message by the client

  • can_be_forwarded :: Bool

    True, if the message can be forwarded

  • can_be_deleted_only_for_self :: Bool

    True, if the message can be deleted only for the current user while other users will continue to see it

  • can_be_deleted_for_all_users :: Bool

    True, if the message can be deleted for all users

  • is_channel_post :: Bool

    True, if the message is a channel post. All messages to channels are channel posts, all other messages are not channel posts

  • contains_unread_mention :: Bool

    True, if the message contains an unread mention for the current user

  • date :: I32

    Point in time (Unix timestamp) when the message was sent

  • edit_date :: I32

    Point in time (Unix timestamp) when the message was last edited

  • forward_info :: MessageForwardInfo

    Information about the initial message sender; may be null

  • reply_to_message_id :: I53

    If non-zero, the identifier of the message this message is replying to; can be the identifier of a deleted message

  • ttl :: I32

    For self-destructing messages, the message's TTL (Time To Live), in seconds; 0 if none. TDLib will send updateDeleteMessages or updateMessageContent once the TTL expires

  • ttl_expires_in :: Double

    Time left before the message expires, in seconds

  • via_bot_user_id :: I32

    If non-zero, the user identifier of the bot through which this message was sent

  • author_signature :: T

    For channel posts, optional author signature

  • views :: I32

    Number of times this message was viewed

  • media_album_id :: I64

    Unique identifier of an album this message belongs to. Only photos and videos can be grouped together in albums

  • restriction_reason :: T

    If non-empty, contains a human-readable description of the reason why access to this message must be restricted

  • content :: MessageContent

    Content of the message

  • reply_markup :: ReplyMarkup

    Reply markup for the message; may be null

Instances

Instances details
Eq Message Source # 
Instance details

Defined in TDLib.Generated.Types

Methods

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

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

Show Message Source # 
Instance details

Defined in TDLib.Generated.Types

Generic Message Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep Message :: Type -> Type #

Methods

from :: Message -> Rep Message x #

to :: Rep Message x -> Message #

ToJSON Message Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON Message Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep Message Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep Message = D1 ('MetaData "Message" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "Message" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: (S1 ('MetaSel ('Just "sender_user_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "chat_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53))) :*: (S1 ('MetaSel ('Just "sending_state") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MessageSendingState) :*: (S1 ('MetaSel ('Just "scheduling_state") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MessageSchedulingState) :*: S1 ('MetaSel ('Just "is_outgoing") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)))) :*: ((S1 ('MetaSel ('Just "can_be_edited") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "can_be_forwarded") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "can_be_deleted_only_for_self") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))) :*: (S1 ('MetaSel ('Just "can_be_deleted_for_all_users") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "is_channel_post") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "contains_unread_mention") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))))) :*: (((S1 ('MetaSel ('Just "date") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: (S1 ('MetaSel ('Just "edit_date") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "forward_info") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MessageForwardInfo))) :*: (S1 ('MetaSel ('Just "reply_to_message_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: (S1 ('MetaSel ('Just "ttl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "ttl_expires_in") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double)))) :*: ((S1 ('MetaSel ('Just "via_bot_user_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: (S1 ('MetaSel ('Just "author_signature") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "views") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32))) :*: ((S1 ('MetaSel ('Just "media_album_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I64) :*: S1 ('MetaSel ('Just "restriction_reason") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)) :*: (S1 ('MetaSel ('Just "content") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MessageContent) :*: S1 ('MetaSel ('Just "reply_markup") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ReplyMarkup)))))))

data Messages Source #

Constructors

Messages

Contains a list of messages

Fields

Instances

Instances details
Eq Messages Source # 
Instance details

Defined in TDLib.Generated.Types

Show Messages Source # 
Instance details

Defined in TDLib.Generated.Types

Generic Messages Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep Messages :: Type -> Type #

Methods

from :: Messages -> Rep Messages x #

to :: Rep Messages x -> Messages #

ToJSON Messages Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON Messages Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep Messages Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep Messages = D1 ('MetaData "Messages" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "Messages" 'PrefixI 'True) (S1 ('MetaSel ('Just "total_count") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "messages") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Message])))

data FoundMessages Source #

Constructors

FoundMessages

Contains a list of messages found by a search

Fields

Instances

Instances details
Eq FoundMessages Source # 
Instance details

Defined in TDLib.Generated.Types

Show FoundMessages Source # 
Instance details

Defined in TDLib.Generated.Types

Generic FoundMessages Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep FoundMessages :: Type -> Type #

ToJSON FoundMessages Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON FoundMessages Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep FoundMessages Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep FoundMessages = D1 ('MetaData "FoundMessages" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "FoundMessages" 'PrefixI 'True) (S1 ('MetaSel ('Just "messages") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Message]) :*: S1 ('MetaSel ('Just "next_from_search_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I64)))

data NotificationSettingsScope Source #

Describes the types of chats to which notification settings are applied

Constructors

NotificationSettingsScopePrivateChats

Notification settings applied to all private and secret chats when the corresponding chat setting has a default value

NotificationSettingsScopeGroupChats

Notification settings applied to all basic groups and supergroups when the corresponding chat setting has a default value

NotificationSettingsScopeChannelChats

Notification settings applied to all channels when the corresponding chat setting has a default value

Instances

Instances details
Eq NotificationSettingsScope Source # 
Instance details

Defined in TDLib.Generated.Types

Show NotificationSettingsScope Source # 
Instance details

Defined in TDLib.Generated.Types

Generic NotificationSettingsScope Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep NotificationSettingsScope :: Type -> Type #

ToJSON NotificationSettingsScope Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON NotificationSettingsScope Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep NotificationSettingsScope Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep NotificationSettingsScope = D1 ('MetaData "NotificationSettingsScope" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "NotificationSettingsScopePrivateChats" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "NotificationSettingsScopeGroupChats" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NotificationSettingsScopeChannelChats" 'PrefixI 'False) (U1 :: Type -> Type)))

data ChatNotificationSettings Source #

Constructors

ChatNotificationSettings

Contains information about notification settings for a chat

Fields

Instances

Instances details
Eq ChatNotificationSettings Source # 
Instance details

Defined in TDLib.Generated.Types

Show ChatNotificationSettings Source # 
Instance details

Defined in TDLib.Generated.Types

Generic ChatNotificationSettings Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep ChatNotificationSettings :: Type -> Type #

ToJSON ChatNotificationSettings Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON ChatNotificationSettings Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep ChatNotificationSettings Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep ChatNotificationSettings = D1 ('MetaData "ChatNotificationSettings" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "ChatNotificationSettings" 'PrefixI 'True) (((S1 ('MetaSel ('Just "use_default_mute_for") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "mute_for") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)) :*: (S1 ('MetaSel ('Just "use_default_sound") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "sound") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "use_default_show_preview") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)))) :*: ((S1 ('MetaSel ('Just "show_preview") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "use_default_disable_pinned_message_notifications") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :*: (S1 ('MetaSel ('Just "disable_pinned_message_notifications") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "use_default_disable_mention_notifications") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "disable_mention_notifications") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))))))

data ScopeNotificationSettings Source #

Constructors

ScopeNotificationSettings

Contains information about notification settings for several chats

Fields

  • mute_for :: I32

    Time left before notifications will be unmuted, in seconds

  • sound :: T

    The name of an audio file to be used for notification sounds; only applies to iOS applications

  • show_preview :: Bool

    True, if message content should be displayed in notifications

  • disable_pinned_message_notifications :: Bool

    True, if notifications for incoming pinned messages will be created as for an ordinary unread message

  • disable_mention_notifications :: Bool

    True, if notifications for messages with mentions will be created as for an ordinary unread message

Instances

Instances details
Eq ScopeNotificationSettings Source # 
Instance details

Defined in TDLib.Generated.Types

Show ScopeNotificationSettings Source # 
Instance details

Defined in TDLib.Generated.Types

Generic ScopeNotificationSettings Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep ScopeNotificationSettings :: Type -> Type #

ToJSON ScopeNotificationSettings Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON ScopeNotificationSettings Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep ScopeNotificationSettings Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep ScopeNotificationSettings = D1 ('MetaData "ScopeNotificationSettings" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "ScopeNotificationSettings" 'PrefixI 'True) ((S1 ('MetaSel ('Just "mute_for") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "sound") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)) :*: (S1 ('MetaSel ('Just "show_preview") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "disable_pinned_message_notifications") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "disable_mention_notifications") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)))))

data DraftMessage Source #

Constructors

DraftMessage

Contains information about a message draft

Fields

Instances

Instances details
Eq DraftMessage Source # 
Instance details

Defined in TDLib.Generated.Types

Show DraftMessage Source # 
Instance details

Defined in TDLib.Generated.Types

Generic DraftMessage Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep DraftMessage :: Type -> Type #

ToJSON DraftMessage Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON DraftMessage Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep DraftMessage Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep DraftMessage = D1 ('MetaData "DraftMessage" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "DraftMessage" 'PrefixI 'True) (S1 ('MetaSel ('Just "reply_to_message_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: (S1 ('MetaSel ('Just "date") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "input_message_text") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 InputMessageContent))))

data ChatType Source #

Describes the type of a chat

Constructors

ChatTypePrivate

An ordinary chat with a user

Fields

ChatTypeBasicGroup

A basic group (i.e., a chat with 0-200 other users)

Fields

ChatTypeSupergroup

A supergroup (i.e. a chat with up to GetOption("supergroup_max_size") other users), or channel (with unlimited members)

Fields

ChatTypeSecret

A secret chat with a user

Fields

Instances

Instances details
Eq ChatType Source # 
Instance details

Defined in TDLib.Generated.Types

Show ChatType Source # 
Instance details

Defined in TDLib.Generated.Types

Generic ChatType Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep ChatType :: Type -> Type #

Methods

from :: ChatType -> Rep ChatType x #

to :: Rep ChatType x -> ChatType #

ToJSON ChatType Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON ChatType Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep ChatType Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep ChatType = D1 ('MetaData "ChatType" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) ((C1 ('MetaCons "ChatTypePrivate" 'PrefixI 'True) (S1 ('MetaSel ('Just "user_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)) :+: C1 ('MetaCons "ChatTypeBasicGroup" 'PrefixI 'True) (S1 ('MetaSel ('Just "basic_group_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32))) :+: (C1 ('MetaCons "ChatTypeSupergroup" 'PrefixI 'True) (S1 ('MetaSel ('Just "supergroup_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "is_channel") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :+: C1 ('MetaCons "ChatTypeSecret" 'PrefixI 'True) (S1 ('MetaSel ('Just "secret_chat_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "user_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32))))

data ChatList Source #

Describes a list of chats

Constructors

ChatListMain

A main list of chats

ChatListArchive

A list of chats usually located at the top of the main chat list. Unmuted chats are automatically moved from the Archive to the Main chat list when a new message arrives

Instances

Instances details
Eq ChatList Source # 
Instance details

Defined in TDLib.Generated.Types

Show ChatList Source # 
Instance details

Defined in TDLib.Generated.Types

Generic ChatList Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep ChatList :: Type -> Type #

Methods

from :: ChatList -> Rep ChatList x #

to :: Rep ChatList x -> ChatList #

ToJSON ChatList Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON ChatList Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep ChatList Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep ChatList = D1 ('MetaData "ChatList" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "ChatListMain" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ChatListArchive" 'PrefixI 'False) (U1 :: Type -> Type))

data ChatSource Source #

Describes a reason why the chat is shown in a chat list

Constructors

ChatSourceMtprotoProxy

The chat is sponsored by the user's MTProxy server

ChatSourcePublicServiceAnnouncement

The chat contains a public service announcement

Fields

  • type_ :: T

    The type of the announcement

  • text :: T

    The text of the announcement

Instances

Instances details
Eq ChatSource Source # 
Instance details

Defined in TDLib.Generated.Types

Show ChatSource Source # 
Instance details

Defined in TDLib.Generated.Types

Generic ChatSource Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep ChatSource :: Type -> Type #

ToJSON ChatSource Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON ChatSource Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep ChatSource Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep ChatSource = D1 ('MetaData "ChatSource" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "ChatSourceMtprotoProxy" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ChatSourcePublicServiceAnnouncement" 'PrefixI 'True) (S1 ('MetaSel ('Just "type_") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "text") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)))

data Chat Source #

Constructors

Chat

A chat. (Can be a private chat, basic group, supergroup, or secret chat)

Fields

Instances

Instances details
Eq Chat Source # 
Instance details

Defined in TDLib.Generated.Types

Methods

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

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

Show Chat Source # 
Instance details

Defined in TDLib.Generated.Types

Methods

showsPrec :: Int -> Chat -> ShowS #

show :: Chat -> String #

showList :: [Chat] -> ShowS #

Generic Chat Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep Chat :: Type -> Type #

Methods

from :: Chat -> Rep Chat x #

to :: Rep Chat x -> Chat #

ToJSON Chat Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON Chat Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep Chat Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep Chat = D1 ('MetaData "Chat" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "Chat" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: (S1 ('MetaSel ('Just "type_") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ChatType) :*: S1 ('MetaSel ('Just "chat_list") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ChatList))) :*: (S1 ('MetaSel ('Just "title") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: (S1 ('MetaSel ('Just "photo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ChatPhoto) :*: S1 ('MetaSel ('Just "permissions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ChatPermissions)))) :*: ((S1 ('MetaSel ('Just "last_message") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Message) :*: (S1 ('MetaSel ('Just "order") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I64) :*: S1 ('MetaSel ('Just "source") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ChatSource))) :*: ((S1 ('MetaSel ('Just "is_pinned") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "is_marked_as_unread") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :*: (S1 ('MetaSel ('Just "has_scheduled_messages") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "can_be_deleted_only_for_self") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))))) :*: (((S1 ('MetaSel ('Just "can_be_deleted_for_all_users") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "can_be_reported") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "default_disable_notification") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))) :*: (S1 ('MetaSel ('Just "unread_count") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: (S1 ('MetaSel ('Just "last_read_inbox_message_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: S1 ('MetaSel ('Just "last_read_outbox_message_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53)))) :*: ((S1 ('MetaSel ('Just "unread_mention_count") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: (S1 ('MetaSel ('Just "notification_settings") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ChatNotificationSettings) :*: S1 ('MetaSel ('Just "action_bar") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ChatActionBar))) :*: ((S1 ('MetaSel ('Just "pinned_message_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: S1 ('MetaSel ('Just "reply_markup_message_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53)) :*: (S1 ('MetaSel ('Just "draft_message") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 DraftMessage) :*: S1 ('MetaSel ('Just "client_data") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)))))))

data Chats Source #

Constructors

Chats

Represents a list of chats

Fields

Instances

Instances details
Eq Chats Source # 
Instance details

Defined in TDLib.Generated.Types

Methods

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

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

Show Chats Source # 
Instance details

Defined in TDLib.Generated.Types

Methods

showsPrec :: Int -> Chats -> ShowS #

show :: Chats -> String #

showList :: [Chats] -> ShowS #

Generic Chats Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep Chats :: Type -> Type #

Methods

from :: Chats -> Rep Chats x #

to :: Rep Chats x -> Chats #

ToJSON Chats Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON Chats Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep Chats Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep Chats = D1 ('MetaData "Chats" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "Chats" 'PrefixI 'True) (S1 ('MetaSel ('Just "chat_ids") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [I53])))

data ChatNearby Source #

Constructors

ChatNearby

Describes a chat located nearby

Fields

Instances

Instances details
Eq ChatNearby Source # 
Instance details

Defined in TDLib.Generated.Types

Show ChatNearby Source # 
Instance details

Defined in TDLib.Generated.Types

Generic ChatNearby Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep ChatNearby :: Type -> Type #

ToJSON ChatNearby Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON ChatNearby Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep ChatNearby Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep ChatNearby = D1 ('MetaData "ChatNearby" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "ChatNearby" 'PrefixI 'True) (S1 ('MetaSel ('Just "chat_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: S1 ('MetaSel ('Just "distance") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)))

data ChatsNearby Source #

Constructors

ChatsNearby

Represents a list of chats located nearby

Fields

Instances

Instances details
Eq ChatsNearby Source # 
Instance details

Defined in TDLib.Generated.Types

Show ChatsNearby Source # 
Instance details

Defined in TDLib.Generated.Types

Generic ChatsNearby Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep ChatsNearby :: Type -> Type #

ToJSON ChatsNearby Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON ChatsNearby Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep ChatsNearby Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep ChatsNearby = D1 ('MetaData "ChatsNearby" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "ChatsNearby" 'PrefixI 'True) (S1 ('MetaSel ('Just "users_nearby") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [ChatNearby]) :*: S1 ('MetaSel ('Just "supergroups_nearby") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [ChatNearby])))

data ChatInviteLink Source #

Constructors

ChatInviteLink

Contains a chat invite link

Fields

Instances

data ChatInviteLinkInfo Source #

Constructors

ChatInviteLinkInfo

Contains information about a chat invite link

Fields

  • chat_id :: I53

    Chat identifier of the invite link; 0 if the user is not a member of this chat

  • type_ :: ChatType

    Contains information about the type of the chat

  • title :: T

    Title of the chat

  • photo :: ChatPhoto

    Chat photo; may be null

  • member_count :: I32

    Number of members in the chat

  • member_user_ids :: [I32]

    User identifiers of some chat members that may be known to the current user

  • is_public :: Bool

    True, if the chat is a public supergroup or channel, i.e. it has a username or it is a location-based supergroup

Instances

Instances details
Eq ChatInviteLinkInfo Source # 
Instance details

Defined in TDLib.Generated.Types

Show ChatInviteLinkInfo Source # 
Instance details

Defined in TDLib.Generated.Types

Generic ChatInviteLinkInfo Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep ChatInviteLinkInfo :: Type -> Type #

ToJSON ChatInviteLinkInfo Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON ChatInviteLinkInfo Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep ChatInviteLinkInfo Source # 
Instance details

Defined in TDLib.Generated.Types

data PublicChatType Source #

Describes a type of public chats

Constructors

PublicChatTypeHasUsername

The chat is public, because it has username

PublicChatTypeIsLocationBased

The chat is public, because it is a location-based supergroup

Instances

Instances details
Eq PublicChatType Source # 
Instance details

Defined in TDLib.Generated.Types

Show PublicChatType Source # 
Instance details

Defined in TDLib.Generated.Types

Generic PublicChatType Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep PublicChatType :: Type -> Type #

ToJSON PublicChatType Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON PublicChatType Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep PublicChatType Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep PublicChatType = D1 ('MetaData "PublicChatType" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "PublicChatTypeHasUsername" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PublicChatTypeIsLocationBased" 'PrefixI 'False) (U1 :: Type -> Type))

data ChatActionBar Source #

Describes actions which should be possible to do through a chat action bar

Constructors

ChatActionBarReportSpam

The chat can be reported as spam using the method reportChat with the reason chatReportReasonSpam

ChatActionBarReportUnrelatedLocation

The chat is a location-based supergroup, which can be reported as having unrelated location using the method reportChat with the reason chatReportReasonUnrelatedLocation

ChatActionBarReportAddBlock

The chat is a private or secret chat, which can be reported using the method reportChat, or the other user can be added to the contact list using the method addContact, or the other user can be blocked using the method blockUser

ChatActionBarAddContact

The chat is a private or secret chat and the other user can be added to the contact list using the method addContact

ChatActionBarSharePhoneNumber

The chat is a private or secret chat with a mutual contact and the user's phone number can be shared with the other user using the method sharePhoneNumber

Instances

Instances details
Eq ChatActionBar Source # 
Instance details

Defined in TDLib.Generated.Types

Show ChatActionBar Source # 
Instance details

Defined in TDLib.Generated.Types

Generic ChatActionBar Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep ChatActionBar :: Type -> Type #

ToJSON ChatActionBar Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON ChatActionBar Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep ChatActionBar Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep ChatActionBar = D1 ('MetaData "ChatActionBar" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) ((C1 ('MetaCons "ChatActionBarReportSpam" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ChatActionBarReportUnrelatedLocation" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "ChatActionBarReportAddBlock" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ChatActionBarAddContact" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ChatActionBarSharePhoneNumber" 'PrefixI 'False) (U1 :: Type -> Type))))

data KeyboardButtonType Source #

Describes a keyboard button type

Constructors

KeyboardButtonTypeText

A simple button, with text that should be sent when the button is pressed

KeyboardButtonTypeRequestPhoneNumber

A button that sends the user's phone number when pressed; available only in private chats

KeyboardButtonTypeRequestLocation

A button that sends the user's location when pressed; available only in private chats

KeyboardButtonTypeRequestPoll

A button that allows the user to create and send a poll when pressed; available only in private chats

Fields

Instances

Instances details
Eq KeyboardButtonType Source # 
Instance details

Defined in TDLib.Generated.Types

Show KeyboardButtonType Source # 
Instance details

Defined in TDLib.Generated.Types

Generic KeyboardButtonType Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep KeyboardButtonType :: Type -> Type #

ToJSON KeyboardButtonType Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON KeyboardButtonType Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep KeyboardButtonType Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep KeyboardButtonType = D1 ('MetaData "KeyboardButtonType" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) ((C1 ('MetaCons "KeyboardButtonTypeText" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "KeyboardButtonTypeRequestPhoneNumber" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "KeyboardButtonTypeRequestLocation" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "KeyboardButtonTypeRequestPoll" 'PrefixI 'True) (S1 ('MetaSel ('Just "force_regular") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "force_quiz") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))))

data KeyboardButton Source #

Constructors

KeyboardButton

Represents a single button in a bot keyboard

Fields

Instances

Instances details
Eq KeyboardButton Source # 
Instance details

Defined in TDLib.Generated.Types

Show KeyboardButton Source # 
Instance details

Defined in TDLib.Generated.Types

Generic KeyboardButton Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep KeyboardButton :: Type -> Type #

ToJSON KeyboardButton Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON KeyboardButton Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep KeyboardButton Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep KeyboardButton = D1 ('MetaData "KeyboardButton" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "KeyboardButton" 'PrefixI 'True) (S1 ('MetaSel ('Just "text") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "type_") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 KeyboardButtonType)))

data InlineKeyboardButtonType Source #

Describes the type of an inline keyboard button

Constructors

InlineKeyboardButtonTypeUrl

A button that opens a specified URL

Fields

  • url :: T

    HTTP or tg:// URL to open

InlineKeyboardButtonTypeLoginUrl

A button that opens a specified URL and automatically logs in in current user if they allowed to do that

Fields

  • url :: T

    HTTP or tg:// URL to open

  • id :: I32

    Unique button identifier

  • forward_text :: T

    If non-empty, new text of the button in forwarded messages

InlineKeyboardButtonTypeCallback

A button that sends a special callback query to a bot

Fields

InlineKeyboardButtonTypeCallbackGame

A button with a game that sends a special callback query to a bot. This button must be in the first column and row of the keyboard and can be attached only to a message with content of the type messageGame

InlineKeyboardButtonTypeSwitchInline

A button that forces an inline query to the bot to be inserted in the input field

Fields

  • query :: T

    Inline query to be sent to the bot

  • in_current_chat :: Bool

    True, if the inline query should be sent from the current chat

InlineKeyboardButtonTypeBuy

A button to buy something. This button must be in the first column and row of the keyboard and can be attached only to a message with content of the type messageInvoice

Instances

Instances details
Eq InlineKeyboardButtonType Source # 
Instance details

Defined in TDLib.Generated.Types

Show InlineKeyboardButtonType Source # 
Instance details

Defined in TDLib.Generated.Types

Generic InlineKeyboardButtonType Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep InlineKeyboardButtonType :: Type -> Type #

ToJSON InlineKeyboardButtonType Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON InlineKeyboardButtonType Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep InlineKeyboardButtonType Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep InlineKeyboardButtonType = D1 ('MetaData "InlineKeyboardButtonType" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) ((C1 ('MetaCons "InlineKeyboardButtonTypeUrl" 'PrefixI 'True) (S1 ('MetaSel ('Just "url") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)) :+: (C1 ('MetaCons "InlineKeyboardButtonTypeLoginUrl" 'PrefixI 'True) (S1 ('MetaSel ('Just "url") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "forward_text") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T))) :+: C1 ('MetaCons "InlineKeyboardButtonTypeCallback" 'PrefixI 'True) (S1 ('MetaSel ('Just "data_") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString64)))) :+: (C1 ('MetaCons "InlineKeyboardButtonTypeCallbackGame" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "InlineKeyboardButtonTypeSwitchInline" 'PrefixI 'True) (S1 ('MetaSel ('Just "query") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "in_current_chat") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :+: C1 ('MetaCons "InlineKeyboardButtonTypeBuy" 'PrefixI 'False) (U1 :: Type -> Type))))

data InlineKeyboardButton Source #

Constructors

InlineKeyboardButton

Represents a single button in an inline keyboard

Fields

Instances

Instances details
Eq InlineKeyboardButton Source # 
Instance details

Defined in TDLib.Generated.Types

Show InlineKeyboardButton Source # 
Instance details

Defined in TDLib.Generated.Types

Generic InlineKeyboardButton Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep InlineKeyboardButton :: Type -> Type #

ToJSON InlineKeyboardButton Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON InlineKeyboardButton Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep InlineKeyboardButton Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep InlineKeyboardButton = D1 ('MetaData "InlineKeyboardButton" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "InlineKeyboardButton" 'PrefixI 'True) (S1 ('MetaSel ('Just "text") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "type_") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 InlineKeyboardButtonType)))

data ReplyMarkup Source #

Contains a description of a custom keyboard and actions that can be done with it to quickly reply to bots

Constructors

ReplyMarkupRemoveKeyboard

Instructs clients to remove the keyboard once this message has been received. This kind of keyboard can't be received in an incoming message; instead, UpdateChatReplyMarkup with message_id == 0 will be sent

Fields

  • is_personal :: Bool

    True, if the keyboard is removed only for the mentioned users or the target user of a reply

ReplyMarkupForceReply

Instructs clients to force a reply to this message

Fields

  • is_personal :: Bool

    True, if the keyboard is removed only for the mentioned users or the target user of a reply

ReplyMarkupShowKeyboard

Contains a custom keyboard layout to quickly reply to bots

Fields

  • rows_2 :: [[KeyboardButton]]

    A list of rows of bot keyboard buttons

  • resize_keyboard :: Bool

    True, if the client needs to resize the keyboard vertically

  • one_time :: Bool

    True, if the client needs to hide the keyboard after use

  • is_personal :: Bool

    True, if the keyboard is removed only for the mentioned users or the target user of a reply

ReplyMarkupInlineKeyboard

Contains an inline keyboard layout

Fields

Instances

Instances details
Eq ReplyMarkup Source # 
Instance details

Defined in TDLib.Generated.Types

Show ReplyMarkup Source # 
Instance details

Defined in TDLib.Generated.Types

Generic ReplyMarkup Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep ReplyMarkup :: Type -> Type #

ToJSON ReplyMarkup Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON ReplyMarkup Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep ReplyMarkup Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep ReplyMarkup = D1 ('MetaData "ReplyMarkup" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) ((C1 ('MetaCons "ReplyMarkupRemoveKeyboard" 'PrefixI 'True) (S1 ('MetaSel ('Just "is_personal") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :+: C1 ('MetaCons "ReplyMarkupForceReply" 'PrefixI 'True) (S1 ('MetaSel ('Just "is_personal") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))) :+: (C1 ('MetaCons "ReplyMarkupShowKeyboard" 'PrefixI 'True) ((S1 ('MetaSel ('Just "rows_2") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [[KeyboardButton]]) :*: S1 ('MetaSel ('Just "resize_keyboard") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :*: (S1 ('MetaSel ('Just "one_time") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "is_personal") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))) :+: C1 ('MetaCons "ReplyMarkupInlineKeyboard" 'PrefixI 'True) (S1 ('MetaSel ('Just "rows") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [[InlineKeyboardButton]]))))

data LoginUrlInfo Source #

Contains information about an inline button of type inlineKeyboardButtonTypeLoginUrl

Constructors

LoginUrlInfoOpen

An HTTP url needs to be open

Fields

  • url :: T

    The URL to open

  • skip_confirm :: Bool

    True, if there is no need to show an ordinary open URL confirm

LoginUrlInfoRequestConfirmation

An authorization confirmation dialog needs to be shown to the user

Fields

Instances

Instances details
Eq LoginUrlInfo Source # 
Instance details

Defined in TDLib.Generated.Types

Show LoginUrlInfo Source # 
Instance details

Defined in TDLib.Generated.Types

Generic LoginUrlInfo Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep LoginUrlInfo :: Type -> Type #

ToJSON LoginUrlInfo Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON LoginUrlInfo Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep LoginUrlInfo Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep LoginUrlInfo = D1 ('MetaData "LoginUrlInfo" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "LoginUrlInfoOpen" 'PrefixI 'True) (S1 ('MetaSel ('Just "url") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "skip_confirm") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :+: C1 ('MetaCons "LoginUrlInfoRequestConfirmation" 'PrefixI 'True) ((S1 ('MetaSel ('Just "url") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "domain") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)) :*: (S1 ('MetaSel ('Just "bot_user_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "request_write_access") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))))

data RichText Source #

Describes a text object inside an instant-view web page

Constructors

RichTextPlain

A plain text

Fields

RichTextBold

A bold rich text

Fields

RichTextItalic

An italicized rich text

Fields

RichTextUnderline

An underlined rich text

Fields

RichTextStrikethrough

A strikethrough rich text

Fields

RichTextFixed

A fixed-width rich text

Fields

RichTextUrl

A rich text URL link

Fields

RichTextEmailAddress

A rich text email link

Fields

RichTextSubscript

A subscript rich text

Fields

RichTextSuperscript

A superscript rich text

Fields

RichTextMarked

A marked rich text

Fields

RichTextPhoneNumber

A rich text phone number

Fields

RichTextIcon

A small image inside the text

Fields

  • document :: Document

    The image represented as a document. The image can be in GIF, JPEG or PNG format

  • width :: I32

    Width of a bounding box in which the image should be shown; 0 if unknown

  • height :: I32

    Height of a bounding box in which the image should be shown; 0 if unknown

RichTextReference

A rich text reference of a text on the same web page

Fields

RichTextAnchor

An anchor

Fields

RichTextAnchorLink

A link to an anchor on the same web page

Fields

RichTexts

A concatenation of rich texts

Fields

Instances

Instances details
Eq RichText Source # 
Instance details

Defined in TDLib.Generated.Types

Show RichText Source # 
Instance details

Defined in TDLib.Generated.Types

Generic RichText Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep RichText :: Type -> Type #

Methods

from :: RichText -> Rep RichText x #

to :: Rep RichText x -> RichText #

ToJSON RichText Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON RichText Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep RichText Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep RichText = D1 ('MetaData "RichText" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) ((((C1 ('MetaCons "RichTextPlain" 'PrefixI 'True) (S1 ('MetaSel ('Just "text_2") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)) :+: C1 ('MetaCons "RichTextBold" 'PrefixI 'True) (S1 ('MetaSel ('Just "text") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RichText))) :+: (C1 ('MetaCons "RichTextItalic" 'PrefixI 'True) (S1 ('MetaSel ('Just "text") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RichText)) :+: C1 ('MetaCons "RichTextUnderline" 'PrefixI 'True) (S1 ('MetaSel ('Just "text") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RichText)))) :+: ((C1 ('MetaCons "RichTextStrikethrough" 'PrefixI 'True) (S1 ('MetaSel ('Just "text") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RichText)) :+: C1 ('MetaCons "RichTextFixed" 'PrefixI 'True) (S1 ('MetaSel ('Just "text") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RichText))) :+: (C1 ('MetaCons "RichTextUrl" 'PrefixI 'True) (S1 ('MetaSel ('Just "text") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RichText) :*: (S1 ('MetaSel ('Just "url") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "is_cached") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))) :+: C1 ('MetaCons "RichTextEmailAddress" 'PrefixI 'True) (S1 ('MetaSel ('Just "text") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RichText) :*: S1 ('MetaSel ('Just "email_address") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T))))) :+: (((C1 ('MetaCons "RichTextSubscript" 'PrefixI 'True) (S1 ('MetaSel ('Just "text") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RichText)) :+: C1 ('MetaCons "RichTextSuperscript" 'PrefixI 'True) (S1 ('MetaSel ('Just "text") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RichText))) :+: (C1 ('MetaCons "RichTextMarked" 'PrefixI 'True) (S1 ('MetaSel ('Just "text") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RichText)) :+: C1 ('MetaCons "RichTextPhoneNumber" 'PrefixI 'True) (S1 ('MetaSel ('Just "text") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RichText) :*: S1 ('MetaSel ('Just "phone_number") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)))) :+: ((C1 ('MetaCons "RichTextIcon" 'PrefixI 'True) (S1 ('MetaSel ('Just "document") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Document) :*: (S1 ('MetaSel ('Just "width") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "height") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32))) :+: C1 ('MetaCons "RichTextReference" 'PrefixI 'True) (S1 ('MetaSel ('Just "text") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RichText) :*: (S1 ('MetaSel ('Just "reference_text") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RichText) :*: S1 ('MetaSel ('Just "url") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)))) :+: (C1 ('MetaCons "RichTextAnchor" 'PrefixI 'True) (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)) :+: (C1 ('MetaCons "RichTextAnchorLink" 'PrefixI 'True) (S1 ('MetaSel ('Just "text") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RichText) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "url") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T))) :+: C1 ('MetaCons "RichTexts" 'PrefixI 'True) (S1 ('MetaSel ('Just "texts") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [RichText])))))))

data PageBlockCaption Source #

Constructors

PageBlockCaption

Contains a caption of an instant view web page block, consisting of a text and a trailing credit

Fields

Instances

Instances details
Eq PageBlockCaption Source # 
Instance details

Defined in TDLib.Generated.Types

Show PageBlockCaption Source # 
Instance details

Defined in TDLib.Generated.Types

Generic PageBlockCaption Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep PageBlockCaption :: Type -> Type #

ToJSON PageBlockCaption Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON PageBlockCaption Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep PageBlockCaption Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep PageBlockCaption = D1 ('MetaData "PageBlockCaption" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "PageBlockCaption" 'PrefixI 'True) (S1 ('MetaSel ('Just "text") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RichText) :*: S1 ('MetaSel ('Just "credit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RichText)))

data PageBlockListItem Source #

Constructors

PageBlockListItem

Describes an item of a list page block

Fields

Instances

Instances details
Eq PageBlockListItem Source # 
Instance details

Defined in TDLib.Generated.Types

Show PageBlockListItem Source # 
Instance details

Defined in TDLib.Generated.Types

Generic PageBlockListItem Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep PageBlockListItem :: Type -> Type #

ToJSON PageBlockListItem Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON PageBlockListItem Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep PageBlockListItem Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep PageBlockListItem = D1 ('MetaData "PageBlockListItem" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "PageBlockListItem" 'PrefixI 'True) (S1 ('MetaSel ('Just "label") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "page_blocks") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [PageBlock])))

data PageBlockHorizontalAlignment Source #

Describes a horizontal alignment of a table cell content

Constructors

PageBlockHorizontalAlignmentLeft

The content should be left-aligned

PageBlockHorizontalAlignmentCenter

The content should be center-aligned

PageBlockHorizontalAlignmentRight

The content should be right-aligned

Instances

Instances details
Eq PageBlockHorizontalAlignment Source # 
Instance details

Defined in TDLib.Generated.Types

Show PageBlockHorizontalAlignment Source # 
Instance details

Defined in TDLib.Generated.Types

Generic PageBlockHorizontalAlignment Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep PageBlockHorizontalAlignment :: Type -> Type #

ToJSON PageBlockHorizontalAlignment Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON PageBlockHorizontalAlignment Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep PageBlockHorizontalAlignment Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep PageBlockHorizontalAlignment = D1 ('MetaData "PageBlockHorizontalAlignment" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "PageBlockHorizontalAlignmentLeft" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "PageBlockHorizontalAlignmentCenter" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PageBlockHorizontalAlignmentRight" 'PrefixI 'False) (U1 :: Type -> Type)))

data PageBlockVerticalAlignment Source #

Describes a Vertical alignment of a table cell content

Constructors

PageBlockVerticalAlignmentTop

The content should be top-aligned

PageBlockVerticalAlignmentMiddle

The content should be middle-aligned

PageBlockVerticalAlignmentBottom

The content should be bottom-aligned

Instances

Instances details
Eq PageBlockVerticalAlignment Source # 
Instance details

Defined in TDLib.Generated.Types

Show PageBlockVerticalAlignment Source # 
Instance details

Defined in TDLib.Generated.Types

Generic PageBlockVerticalAlignment Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep PageBlockVerticalAlignment :: Type -> Type #

ToJSON PageBlockVerticalAlignment Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON PageBlockVerticalAlignment Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep PageBlockVerticalAlignment Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep PageBlockVerticalAlignment = D1 ('MetaData "PageBlockVerticalAlignment" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "PageBlockVerticalAlignmentTop" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "PageBlockVerticalAlignmentMiddle" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PageBlockVerticalAlignmentBottom" 'PrefixI 'False) (U1 :: Type -> Type)))

data PageBlockTableCell Source #

Constructors

PageBlockTableCell

Represents a cell of a table

Fields

Instances

Instances details
Eq PageBlockTableCell Source # 
Instance details

Defined in TDLib.Generated.Types

Show PageBlockTableCell Source # 
Instance details

Defined in TDLib.Generated.Types

Generic PageBlockTableCell Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep PageBlockTableCell :: Type -> Type #

ToJSON PageBlockTableCell Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON PageBlockTableCell Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep PageBlockTableCell Source # 
Instance details

Defined in TDLib.Generated.Types

data PageBlockRelatedArticle Source #

Constructors

PageBlockRelatedArticle

Contains information about a related article

Fields

  • url :: T

    Related article URL

  • title :: T

    Article title; may be empty

  • description :: T

    Contains information about a related article

  • photo :: Photo

    Article photo; may be null

  • author :: T

    Article author; may be empty

  • publish_date :: I32

    Point in time (Unix timestamp) when the article was published; 0 if unknown

Instances

Instances details
Eq PageBlockRelatedArticle Source # 
Instance details

Defined in TDLib.Generated.Types

Show PageBlockRelatedArticle Source # 
Instance details

Defined in TDLib.Generated.Types

Generic PageBlockRelatedArticle Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep PageBlockRelatedArticle :: Type -> Type #

ToJSON PageBlockRelatedArticle Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON PageBlockRelatedArticle Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep PageBlockRelatedArticle Source # 
Instance details

Defined in TDLib.Generated.Types

data PageBlock Source #

Describes a block of an instant view web page

Constructors

PageBlockTitle

The title of a page

Fields

PageBlockSubtitle

The subtitle of a page

Fields

PageBlockAuthorDate

The author and publishing date of a page

Fields

PageBlockHeader

A header

Fields

PageBlockSubheader

A subheader

Fields

PageBlockKicker

A kicker

Fields

PageBlockParagraph

A text paragraph

Fields

PageBlockPreformatted

A preformatted text paragraph

Fields

PageBlockFooter

The footer of a page

Fields

PageBlockDivider

An empty block separating a page

PageBlockAnchor

An invisible anchor on a page, which can be used in a URL to open the page from the specified anchor

Fields

  • name :: T

    Name of the anchor

PageBlockList

A list of data blocks

Fields

PageBlockBlockQuote

A block quote

Fields

PageBlockPullQuote

A pull quote

Fields

PageBlockAnimation

An animation

Fields

PageBlockAudio

An audio file

Fields

PageBlockPhoto

A photo

Fields

PageBlockVideo

A video

Fields

PageBlockVoiceNote

A voice note

Fields

PageBlockCover

A page cover

Fields

PageBlockEmbedded

An embedded web page

Fields

PageBlockEmbeddedPost

An embedded post

Fields

PageBlockCollage

A collage

Fields

PageBlockSlideshow

A slideshow

Fields

PageBlockChatLink

A link to a chat

Fields

  • title :: T

    Chat title

  • photo :: ChatPhoto

    Chat photo; may be null

  • username :: T

    Chat username, by which all other information about the chat should be resolved

PageBlockTable

A table

Fields

PageBlockDetails

A collapsible block

Fields

PageBlockRelatedArticles

Related articles

Fields

PageBlockMap

A map

Fields

Instances

Instances details
Eq PageBlock Source # 
Instance details

Defined in TDLib.Generated.Types

Show PageBlock Source # 
Instance details

Defined in TDLib.Generated.Types

Generic PageBlock Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep PageBlock :: Type -> Type #

ToJSON PageBlock Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON PageBlock Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep PageBlock Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep PageBlock = D1 ('MetaData "PageBlock" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) ((((C1 ('MetaCons "PageBlockTitle" 'PrefixI 'True) (S1 ('MetaSel ('Just "title_2") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RichText)) :+: (C1 ('MetaCons "PageBlockSubtitle" 'PrefixI 'True) (S1 ('MetaSel ('Just "subtitle") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RichText)) :+: C1 ('MetaCons "PageBlockAuthorDate" 'PrefixI 'True) (S1 ('MetaSel ('Just "author_2") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RichText) :*: S1 ('MetaSel ('Just "publish_date") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)))) :+: ((C1 ('MetaCons "PageBlockHeader" 'PrefixI 'True) (S1 ('MetaSel ('Just "header") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RichText)) :+: C1 ('MetaCons "PageBlockSubheader" 'PrefixI 'True) (S1 ('MetaSel ('Just "subheader") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RichText))) :+: (C1 ('MetaCons "PageBlockKicker" 'PrefixI 'True) (S1 ('MetaSel ('Just "kicker") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RichText)) :+: C1 ('MetaCons "PageBlockParagraph" 'PrefixI 'True) (S1 ('MetaSel ('Just "text") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RichText))))) :+: ((C1 ('MetaCons "PageBlockPreformatted" 'PrefixI 'True) (S1 ('MetaSel ('Just "text") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RichText) :*: S1 ('MetaSel ('Just "language") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)) :+: (C1 ('MetaCons "PageBlockFooter" 'PrefixI 'True) (S1 ('MetaSel ('Just "footer") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RichText)) :+: C1 ('MetaCons "PageBlockDivider" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "PageBlockAnchor" 'PrefixI 'True) (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)) :+: C1 ('MetaCons "PageBlockList" 'PrefixI 'True) (S1 ('MetaSel ('Just "items") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [PageBlockListItem]))) :+: (C1 ('MetaCons "PageBlockBlockQuote" 'PrefixI 'True) (S1 ('MetaSel ('Just "text") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RichText) :*: S1 ('MetaSel ('Just "credit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RichText)) :+: C1 ('MetaCons "PageBlockPullQuote" 'PrefixI 'True) (S1 ('MetaSel ('Just "text") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RichText) :*: S1 ('MetaSel ('Just "credit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RichText)))))) :+: (((C1 ('MetaCons "PageBlockAnimation" 'PrefixI 'True) (S1 ('MetaSel ('Just "animation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Animation) :*: (S1 ('MetaSel ('Just "caption") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PageBlockCaption) :*: S1 ('MetaSel ('Just "need_autoplay") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))) :+: (C1 ('MetaCons "PageBlockAudio" 'PrefixI 'True) (S1 ('MetaSel ('Just "audio") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Audio) :*: S1 ('MetaSel ('Just "caption") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PageBlockCaption)) :+: C1 ('MetaCons "PageBlockPhoto" 'PrefixI 'True) (S1 ('MetaSel ('Just "photo_2") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Photo) :*: (S1 ('MetaSel ('Just "caption") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PageBlockCaption) :*: S1 ('MetaSel ('Just "url") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T))))) :+: ((C1 ('MetaCons "PageBlockVideo" 'PrefixI 'True) ((S1 ('MetaSel ('Just "video") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Video) :*: S1 ('MetaSel ('Just "caption") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PageBlockCaption)) :*: (S1 ('MetaSel ('Just "need_autoplay") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "is_looped") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))) :+: C1 ('MetaCons "PageBlockVoiceNote" 'PrefixI 'True) (S1 ('MetaSel ('Just "voice_note") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 VoiceNote) :*: S1 ('MetaSel ('Just "caption") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PageBlockCaption))) :+: (C1 ('MetaCons "PageBlockCover" 'PrefixI 'True) (S1 ('MetaSel ('Just "cover") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PageBlock)) :+: C1 ('MetaCons "PageBlockEmbedded" 'PrefixI 'True) (((S1 ('MetaSel ('Just "url") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "html") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)) :*: (S1 ('MetaSel ('Just "poster_photo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Photo) :*: S1 ('MetaSel ('Just "width") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32))) :*: ((S1 ('MetaSel ('Just "height") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "caption") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PageBlockCaption)) :*: (S1 ('MetaSel ('Just "is_full_width") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "allow_scrolling") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))))))) :+: (((C1 ('MetaCons "PageBlockEmbeddedPost" 'PrefixI 'True) ((S1 ('MetaSel ('Just "url") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: (S1 ('MetaSel ('Just "author") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "author_photo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Photo))) :*: (S1 ('MetaSel ('Just "date") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: (S1 ('MetaSel ('Just "page_blocks") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [PageBlock]) :*: S1 ('MetaSel ('Just "caption") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PageBlockCaption)))) :+: C1 ('MetaCons "PageBlockCollage" 'PrefixI 'True) (S1 ('MetaSel ('Just "page_blocks") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [PageBlock]) :*: S1 ('MetaSel ('Just "caption") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PageBlockCaption))) :+: (C1 ('MetaCons "PageBlockSlideshow" 'PrefixI 'True) (S1 ('MetaSel ('Just "page_blocks") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [PageBlock]) :*: S1 ('MetaSel ('Just "caption") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PageBlockCaption)) :+: C1 ('MetaCons "PageBlockChatLink" 'PrefixI 'True) (S1 ('MetaSel ('Just "title") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: (S1 ('MetaSel ('Just "photo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ChatPhoto) :*: S1 ('MetaSel ('Just "username") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T))))) :+: ((C1 ('MetaCons "PageBlockTable" 'PrefixI 'True) ((S1 ('MetaSel ('Just "caption_2") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RichText) :*: S1 ('MetaSel ('Just "cells") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [[PageBlockTableCell]])) :*: (S1 ('MetaSel ('Just "is_bordered") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "is_striped") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))) :+: C1 ('MetaCons "PageBlockDetails" 'PrefixI 'True) (S1 ('MetaSel ('Just "header") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RichText) :*: (S1 ('MetaSel ('Just "page_blocks") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [PageBlock]) :*: S1 ('MetaSel ('Just "is_open") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)))) :+: (C1 ('MetaCons "PageBlockRelatedArticles" 'PrefixI 'True) (S1 ('MetaSel ('Just "header") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RichText) :*: S1 ('MetaSel ('Just "articles") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [PageBlockRelatedArticle])) :+: C1 ('MetaCons "PageBlockMap" 'PrefixI 'True) ((S1 ('MetaSel ('Just "location") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Location) :*: S1 ('MetaSel ('Just "zoom") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)) :*: (S1 ('MetaSel ('Just "width") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: (S1 ('MetaSel ('Just "height") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "caption") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PageBlockCaption)))))))))

data WebPageInstantView Source #

Constructors

WebPageInstantView

Describes an instant view page for a web page

Fields

  • page_blocks :: [PageBlock]

    Content of the web page

  • view_count :: I32

    Number of the instant view views; 0 if unknown

  • version :: I32

    Version of the instant view, currently can be 1 or 2

  • is_rtl :: Bool

    True, if the instant view must be shown from right to left

  • is_full :: Bool

    True, if the instant view contains the full page. A network request might be needed to get the full web page instant view

Instances

Instances details
Eq WebPageInstantView Source # 
Instance details

Defined in TDLib.Generated.Types

Show WebPageInstantView Source # 
Instance details

Defined in TDLib.Generated.Types

Generic WebPageInstantView Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep WebPageInstantView :: Type -> Type #

ToJSON WebPageInstantView Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON WebPageInstantView Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep WebPageInstantView Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep WebPageInstantView = D1 ('MetaData "WebPageInstantView" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "WebPageInstantView" 'PrefixI 'True) ((S1 ('MetaSel ('Just "page_blocks") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [PageBlock]) :*: S1 ('MetaSel ('Just "view_count") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)) :*: (S1 ('MetaSel ('Just "version") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: (S1 ('MetaSel ('Just "is_rtl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "is_full") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)))))

data WebPage Source #

Constructors

WebPage

Describes a web page preview

Fields

  • url :: T

    Original URL of the link

  • display_url :: T

    URL to display

  • type_ :: T

    Type of the web page. Can be: article, photo, audio, video, document, profile, app, or something else

  • site_name :: T

    Short name of the site (e.g., Google Docs, App Store)

  • title :: T

    Title of the content

  • description :: FormattedText

    Describes a web page preview

  • photo :: Photo

    Image representing the content; may be null

  • embed_url :: T

    URL to show in the embedded preview

  • embed_type :: T

    MIME type of the embedded preview, (e.g., texthtml or videomp4)

  • embed_width :: I32

    Width of the embedded preview

  • embed_height :: I32

    Height of the embedded preview

  • duration :: I32

    Duration of the content, in seconds

  • author :: T

    Author of the content

  • animation :: Animation

    Preview of the content as an animation, if available; may be null

  • audio :: Audio

    Preview of the content as an audio file, if available; may be null

  • document :: Document

    Preview of the content as a document, if available (currently only available for small PDF files and ZIP archives); may be null

  • sticker :: Sticker

    Preview of the content as a sticker for small WEBP files, if available; may be null

  • video :: Video

    Preview of the content as a video, if available; may be null

  • video_note :: VideoNote

    Preview of the content as a video note, if available; may be null

  • voice_note :: VoiceNote

    Preview of the content as a voice note, if available; may be null

  • instant_view_version :: I32

    Version of instant view, available for the web page (currently can be 1 or 2), 0 if none

Instances

Instances details
Eq WebPage Source # 
Instance details

Defined in TDLib.Generated.Types

Methods

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

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

Show WebPage Source # 
Instance details

Defined in TDLib.Generated.Types

Generic WebPage Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep WebPage :: Type -> Type #

Methods

from :: WebPage -> Rep WebPage x #

to :: Rep WebPage x -> WebPage #

ToJSON WebPage Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON WebPage Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep WebPage Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep WebPage = D1 ('MetaData "WebPage" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "WebPage" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "url") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "display_url") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)) :*: (S1 ('MetaSel ('Just "type_") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: (S1 ('MetaSel ('Just "site_name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "title") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)))) :*: ((S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FormattedText) :*: S1 ('MetaSel ('Just "photo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Photo)) :*: (S1 ('MetaSel ('Just "embed_url") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: (S1 ('MetaSel ('Just "embed_type") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "embed_width") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32))))) :*: (((S1 ('MetaSel ('Just "embed_height") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "duration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)) :*: (S1 ('MetaSel ('Just "author") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: (S1 ('MetaSel ('Just "animation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Animation) :*: S1 ('MetaSel ('Just "audio") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Audio)))) :*: ((S1 ('MetaSel ('Just "document") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Document) :*: (S1 ('MetaSel ('Just "sticker") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Sticker) :*: S1 ('MetaSel ('Just "video") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Video))) :*: (S1 ('MetaSel ('Just "video_note") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 VideoNote) :*: (S1 ('MetaSel ('Just "voice_note") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 VoiceNote) :*: S1 ('MetaSel ('Just "instant_view_version") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)))))))

data BankCardActionOpenUrl Source #

Constructors

BankCardActionOpenUrl

Describes an action associated with a bank card number

Fields

  • text :: T

    Action text

  • url :: T

    The URL to be opened

Instances

Instances details
Eq BankCardActionOpenUrl Source # 
Instance details

Defined in TDLib.Generated.Types

Show BankCardActionOpenUrl Source # 
Instance details

Defined in TDLib.Generated.Types

Generic BankCardActionOpenUrl Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep BankCardActionOpenUrl :: Type -> Type #

ToJSON BankCardActionOpenUrl Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON BankCardActionOpenUrl Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep BankCardActionOpenUrl Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep BankCardActionOpenUrl = D1 ('MetaData "BankCardActionOpenUrl" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "BankCardActionOpenUrl" 'PrefixI 'True) (S1 ('MetaSel ('Just "text") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "url") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)))

data BankCardInfo Source #

Constructors

BankCardInfo

Information about a bank card

Fields

Instances

Instances details
Eq BankCardInfo Source # 
Instance details

Defined in TDLib.Generated.Types

Show BankCardInfo Source # 
Instance details

Defined in TDLib.Generated.Types

Generic BankCardInfo Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep BankCardInfo :: Type -> Type #

ToJSON BankCardInfo Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON BankCardInfo Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep BankCardInfo Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep BankCardInfo = D1 ('MetaData "BankCardInfo" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "BankCardInfo" 'PrefixI 'True) (S1 ('MetaSel ('Just "title") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "actions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [BankCardActionOpenUrl])))

data Address Source #

Constructors

Address

Describes an address

Fields

Instances

Instances details
Eq Address Source # 
Instance details

Defined in TDLib.Generated.Types

Methods

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

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

Show Address Source # 
Instance details

Defined in TDLib.Generated.Types

Generic Address Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep Address :: Type -> Type #

Methods

from :: Address -> Rep Address x #

to :: Rep Address x -> Address #

ToJSON Address Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON Address Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep Address Source # 
Instance details

Defined in TDLib.Generated.Types

data LabeledPricePart Source #

Constructors

LabeledPricePart

Portion of the price of a product (e.g., "delivery cost", "tax amount")

Fields

  • label :: T

    Label for this portion of the product price

  • amount :: I53

    Currency amount in minimal quantity of the currency

Instances

Instances details
Eq LabeledPricePart Source # 
Instance details

Defined in TDLib.Generated.Types

Show LabeledPricePart Source # 
Instance details

Defined in TDLib.Generated.Types

Generic LabeledPricePart Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep LabeledPricePart :: Type -> Type #

ToJSON LabeledPricePart Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON LabeledPricePart Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep LabeledPricePart Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep LabeledPricePart = D1 ('MetaData "LabeledPricePart" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "LabeledPricePart" 'PrefixI 'True) (S1 ('MetaSel ('Just "label") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "amount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53)))

data Invoice Source #

Constructors

Invoice

Product invoice

Fields

Instances

Instances details
Eq Invoice Source # 
Instance details

Defined in TDLib.Generated.Types

Methods

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

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

Show Invoice Source # 
Instance details

Defined in TDLib.Generated.Types

Generic Invoice Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep Invoice :: Type -> Type #

Methods

from :: Invoice -> Rep Invoice x #

to :: Rep Invoice x -> Invoice #

ToJSON Invoice Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON Invoice Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep Invoice Source # 
Instance details

Defined in TDLib.Generated.Types

data OrderInfo Source #

Constructors

OrderInfo

Order information

Fields

Instances

Instances details
Eq OrderInfo Source # 
Instance details

Defined in TDLib.Generated.Types

Show OrderInfo Source # 
Instance details

Defined in TDLib.Generated.Types

Generic OrderInfo Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep OrderInfo :: Type -> Type #

ToJSON OrderInfo Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON OrderInfo Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep OrderInfo Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep OrderInfo = D1 ('MetaData "OrderInfo" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "OrderInfo" 'PrefixI 'True) ((S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "phone_number") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)) :*: (S1 ('MetaSel ('Just "email_address") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "shipping_address") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Address))))

data ShippingOption Source #

Constructors

ShippingOption

One shipping option

Fields

Instances

Instances details
Eq ShippingOption Source # 
Instance details

Defined in TDLib.Generated.Types

Show ShippingOption Source # 
Instance details

Defined in TDLib.Generated.Types

Generic ShippingOption Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep ShippingOption :: Type -> Type #

ToJSON ShippingOption Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON ShippingOption Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep ShippingOption Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep ShippingOption = D1 ('MetaData "ShippingOption" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "ShippingOption" 'PrefixI 'True) (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: (S1 ('MetaSel ('Just "title") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "price_parts") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [LabeledPricePart]))))

data SavedCredentials Source #

Constructors

SavedCredentials

Contains information about saved card credentials

Fields

  • id :: T

    Unique identifier of the saved credentials

  • title :: T

    Title of the saved credentials

Instances

Instances details
Eq SavedCredentials Source # 
Instance details

Defined in TDLib.Generated.Types

Show SavedCredentials Source # 
Instance details

Defined in TDLib.Generated.Types

Generic SavedCredentials Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep SavedCredentials :: Type -> Type #

ToJSON SavedCredentials Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON SavedCredentials Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep SavedCredentials Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep SavedCredentials = D1 ('MetaData "SavedCredentials" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "SavedCredentials" 'PrefixI 'True) (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "title") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)))

data InputCredentials Source #

Contains information about the payment method chosen by the user

Constructors

InputCredentialsSaved

Applies if a user chooses some previously saved payment credentials. To use their previously saved credentials, the user must have a valid temporary password

Fields

InputCredentialsNew

Applies if a user enters new credentials on a payment provider website

Fields

  • data_ :: T

    Contains JSON-encoded data with a credential identifier from the payment provider

  • allow_save :: Bool

    True, if the credential identifier can be saved on the server side

InputCredentialsAndroidPay

Applies if a user enters new credentials using Android Pay

Fields

  • data_ :: T

    Contains JSON-encoded data with a credential identifier from the payment provider

InputCredentialsApplePay

Applies if a user enters new credentials using Apple Pay

Fields

  • data_ :: T

    Contains JSON-encoded data with a credential identifier from the payment provider

Instances

Instances details
Eq InputCredentials Source # 
Instance details

Defined in TDLib.Generated.Types

Show InputCredentials Source # 
Instance details

Defined in TDLib.Generated.Types

Generic InputCredentials Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep InputCredentials :: Type -> Type #

ToJSON InputCredentials Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON InputCredentials Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep InputCredentials Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep InputCredentials = D1 ('MetaData "InputCredentials" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) ((C1 ('MetaCons "InputCredentialsSaved" 'PrefixI 'True) (S1 ('MetaSel ('Just "saved_credentials_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)) :+: C1 ('MetaCons "InputCredentialsNew" 'PrefixI 'True) (S1 ('MetaSel ('Just "data_") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "allow_save") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))) :+: (C1 ('MetaCons "InputCredentialsAndroidPay" 'PrefixI 'True) (S1 ('MetaSel ('Just "data_") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)) :+: C1 ('MetaCons "InputCredentialsApplePay" 'PrefixI 'True) (S1 ('MetaSel ('Just "data_") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T))))

data PaymentsProviderStripe Source #

Constructors

PaymentsProviderStripe

Stripe payment provider

Fields

Instances

Instances details
Eq PaymentsProviderStripe Source # 
Instance details

Defined in TDLib.Generated.Types

Show PaymentsProviderStripe Source # 
Instance details

Defined in TDLib.Generated.Types

Generic PaymentsProviderStripe Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep PaymentsProviderStripe :: Type -> Type #

ToJSON PaymentsProviderStripe Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON PaymentsProviderStripe Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep PaymentsProviderStripe Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep PaymentsProviderStripe = D1 ('MetaData "PaymentsProviderStripe" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "PaymentsProviderStripe" 'PrefixI 'True) ((S1 ('MetaSel ('Just "publishable_key") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "need_country") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :*: (S1 ('MetaSel ('Just "need_postal_code") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "need_cardholder_name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))))

data PaymentForm Source #

Constructors

PaymentForm

Contains information about an invoice payment form

Fields

Instances

Instances details
Eq PaymentForm Source # 
Instance details

Defined in TDLib.Generated.Types

Show PaymentForm Source # 
Instance details

Defined in TDLib.Generated.Types

Generic PaymentForm Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep PaymentForm :: Type -> Type #

ToJSON PaymentForm Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON PaymentForm Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep PaymentForm Source # 
Instance details

Defined in TDLib.Generated.Types

data ValidatedOrderInfo Source #

Constructors

ValidatedOrderInfo

Contains a temporary identifier of validated order information, which is stored for one hour. Also contains the available shipping options

Fields

Instances

Instances details
Eq ValidatedOrderInfo Source # 
Instance details

Defined in TDLib.Generated.Types

Show ValidatedOrderInfo Source # 
Instance details

Defined in TDLib.Generated.Types

Generic ValidatedOrderInfo Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep ValidatedOrderInfo :: Type -> Type #

ToJSON ValidatedOrderInfo Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON ValidatedOrderInfo Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep ValidatedOrderInfo Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep ValidatedOrderInfo = D1 ('MetaData "ValidatedOrderInfo" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "ValidatedOrderInfo" 'PrefixI 'True) (S1 ('MetaSel ('Just "order_info_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "shipping_options") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [ShippingOption])))

data PaymentResult Source #

Constructors

PaymentResult

Contains the result of a payment request

Fields

  • success :: Bool

    True, if the payment request was successful; otherwise the verification_url will be not empty

  • verification_url :: T

    URL for additional payment credentials verification

Instances

Instances details
Eq PaymentResult Source # 
Instance details

Defined in TDLib.Generated.Types

Show PaymentResult Source # 
Instance details

Defined in TDLib.Generated.Types

Generic PaymentResult Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep PaymentResult :: Type -> Type #

ToJSON PaymentResult Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON PaymentResult Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep PaymentResult Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep PaymentResult = D1 ('MetaData "PaymentResult" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "PaymentResult" 'PrefixI 'True) (S1 ('MetaSel ('Just "success") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "verification_url") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)))

data PaymentReceipt Source #

Constructors

PaymentReceipt

Contains information about a successful payment

Fields

Instances

Instances details
Eq PaymentReceipt Source # 
Instance details

Defined in TDLib.Generated.Types

Show PaymentReceipt Source # 
Instance details

Defined in TDLib.Generated.Types

Generic PaymentReceipt Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep PaymentReceipt :: Type -> Type #

ToJSON PaymentReceipt Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON PaymentReceipt Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep PaymentReceipt Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep PaymentReceipt = D1 ('MetaData "PaymentReceipt" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "PaymentReceipt" 'PrefixI 'True) ((S1 ('MetaSel ('Just "date") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: (S1 ('MetaSel ('Just "payments_provider_user_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "invoice") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Invoice))) :*: (S1 ('MetaSel ('Just "order_info") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 OrderInfo) :*: (S1 ('MetaSel ('Just "shipping_option") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ShippingOption) :*: S1 ('MetaSel ('Just "credentials_title") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)))))

data DatedFile Source #

Constructors

DatedFile

File with the date it was uploaded

Fields

  • file :: File

    The file

  • date :: I32

    Point in time (Unix timestamp) when the file was uploaded

Instances

Instances details
Eq DatedFile Source # 
Instance details

Defined in TDLib.Generated.Types

Show DatedFile Source # 
Instance details

Defined in TDLib.Generated.Types

Generic DatedFile Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep DatedFile :: Type -> Type #

ToJSON DatedFile Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON DatedFile Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep DatedFile Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep DatedFile = D1 ('MetaData "DatedFile" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "DatedFile" 'PrefixI 'True) (S1 ('MetaSel ('Just "file") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 File) :*: S1 ('MetaSel ('Just "date") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)))

data PassportElementType Source #

Contains the type of a Telegram Passport element

Constructors

PassportElementTypePersonalDetails

A Telegram Passport element containing the user's personal details

PassportElementTypePassport

A Telegram Passport element containing the user's passport

PassportElementTypeDriverLicense

A Telegram Passport element containing the user's driver license

PassportElementTypeIdentityCard

A Telegram Passport element containing the user's identity card

PassportElementTypeInternalPassport

A Telegram Passport element containing the user's internal passport

PassportElementTypeAddress

A Telegram Passport element containing the user's address

PassportElementTypeUtilityBill

A Telegram Passport element containing the user's utility bill

PassportElementTypeBankStatement

A Telegram Passport element containing the user's bank statement

PassportElementTypeRentalAgreement

A Telegram Passport element containing the user's rental agreement

PassportElementTypePassportRegistration

A Telegram Passport element containing the registration page of the user's passport

PassportElementTypeTemporaryRegistration

A Telegram Passport element containing the user's temporary registration

PassportElementTypePhoneNumber

A Telegram Passport element containing the user's phone number

PassportElementTypeEmailAddress

A Telegram Passport element containing the user's email address

Instances

Instances details
Eq PassportElementType Source # 
Instance details

Defined in TDLib.Generated.Types

Show PassportElementType Source # 
Instance details

Defined in TDLib.Generated.Types

Generic PassportElementType Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep PassportElementType :: Type -> Type #

ToJSON PassportElementType Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON PassportElementType Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep PassportElementType Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep PassportElementType = D1 ('MetaData "PassportElementType" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (((C1 ('MetaCons "PassportElementTypePersonalDetails" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "PassportElementTypePassport" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PassportElementTypeDriverLicense" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "PassportElementTypeIdentityCard" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "PassportElementTypeInternalPassport" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PassportElementTypeAddress" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "PassportElementTypeUtilityBill" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "PassportElementTypeBankStatement" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PassportElementTypeRentalAgreement" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "PassportElementTypePassportRegistration" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PassportElementTypeTemporaryRegistration" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "PassportElementTypePhoneNumber" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PassportElementTypeEmailAddress" 'PrefixI 'False) (U1 :: Type -> Type)))))

data Date Source #

Constructors

Date

Represents a date according to the Gregorian calendar

Fields

Instances

Instances details
Eq Date Source # 
Instance details

Defined in TDLib.Generated.Types

Methods

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

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

Show Date Source # 
Instance details

Defined in TDLib.Generated.Types

Methods

showsPrec :: Int -> Date -> ShowS #

show :: Date -> String #

showList :: [Date] -> ShowS #

Generic Date Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep Date :: Type -> Type #

Methods

from :: Date -> Rep Date x #

to :: Rep Date x -> Date #

ToJSON Date Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON Date Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep Date Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep Date = D1 ('MetaData "Date" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "Date" 'PrefixI 'True) (S1 ('MetaSel ('Just "day") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: (S1 ('MetaSel ('Just "month") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "year") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32))))

data PersonalDetails Source #

Constructors

PersonalDetails

Contains the user's personal details

Fields

Instances

Instances details
Eq PersonalDetails Source # 
Instance details

Defined in TDLib.Generated.Types

Show PersonalDetails Source # 
Instance details

Defined in TDLib.Generated.Types

Generic PersonalDetails Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep PersonalDetails :: Type -> Type #

ToJSON PersonalDetails Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON PersonalDetails Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep PersonalDetails Source # 
Instance details

Defined in TDLib.Generated.Types

data IdentityDocument Source #

Constructors

IdentityDocument

An identity document

Fields

Instances

Instances details
Eq IdentityDocument Source # 
Instance details

Defined in TDLib.Generated.Types

Show IdentityDocument Source # 
Instance details

Defined in TDLib.Generated.Types

Generic IdentityDocument Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep IdentityDocument :: Type -> Type #

ToJSON IdentityDocument Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON IdentityDocument Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep IdentityDocument Source # 
Instance details

Defined in TDLib.Generated.Types

data InputIdentityDocument Source #

Constructors

InputIdentityDocument

An identity document to be saved to Telegram Passport

Fields

Instances

Instances details
Eq InputIdentityDocument Source # 
Instance details

Defined in TDLib.Generated.Types

Show InputIdentityDocument Source # 
Instance details

Defined in TDLib.Generated.Types

Generic InputIdentityDocument Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep InputIdentityDocument :: Type -> Type #

ToJSON InputIdentityDocument Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON InputIdentityDocument Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep InputIdentityDocument Source # 
Instance details

Defined in TDLib.Generated.Types

data PersonalDocument Source #

Constructors

PersonalDocument

A personal document, containing some information about a user

Fields

Instances

Instances details
Eq PersonalDocument Source # 
Instance details

Defined in TDLib.Generated.Types

Show PersonalDocument Source # 
Instance details

Defined in TDLib.Generated.Types

Generic PersonalDocument Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep PersonalDocument :: Type -> Type #

ToJSON PersonalDocument Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON PersonalDocument Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep PersonalDocument Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep PersonalDocument = D1 ('MetaData "PersonalDocument" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "PersonalDocument" 'PrefixI 'True) (S1 ('MetaSel ('Just "files") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [DatedFile]) :*: S1 ('MetaSel ('Just "translation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [DatedFile])))

data InputPersonalDocument Source #

Constructors

InputPersonalDocument

A personal document to be saved to Telegram Passport

Fields

Instances

Instances details
Eq InputPersonalDocument Source # 
Instance details

Defined in TDLib.Generated.Types

Show InputPersonalDocument Source # 
Instance details

Defined in TDLib.Generated.Types

Generic InputPersonalDocument Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep InputPersonalDocument :: Type -> Type #

ToJSON InputPersonalDocument Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON InputPersonalDocument Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep InputPersonalDocument Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep InputPersonalDocument = D1 ('MetaData "InputPersonalDocument" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "InputPersonalDocument" 'PrefixI 'True) (S1 ('MetaSel ('Just "files") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [InputFile]) :*: S1 ('MetaSel ('Just "translation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [InputFile])))

data PassportElement Source #

Contains information about a Telegram Passport element

Constructors

PassportElementPersonalDetails

A Telegram Passport element containing the user's personal details

Fields

PassportElementPassport

A Telegram Passport element containing the user's passport

Fields

PassportElementDriverLicense

A Telegram Passport element containing the user's driver license

Fields

PassportElementIdentityCard

A Telegram Passport element containing the user's identity card

Fields

PassportElementInternalPassport

A Telegram Passport element containing the user's internal passport

Fields

PassportElementAddress

A Telegram Passport element containing the user's address

Fields

PassportElementUtilityBill

A Telegram Passport element containing the user's utility bill

Fields

PassportElementBankStatement

A Telegram Passport element containing the user's bank statement

Fields

PassportElementRentalAgreement

A Telegram Passport element containing the user's rental agreement

Fields

PassportElementPassportRegistration

A Telegram Passport element containing the user's passport registration pages

Fields

PassportElementTemporaryRegistration

A Telegram Passport element containing the user's temporary registration

Fields

PassportElementPhoneNumber

A Telegram Passport element containing the user's phone number

Fields

PassportElementEmailAddress

A Telegram Passport element containing the user's email address

Fields

Instances

Instances details
Eq PassportElement Source # 
Instance details

Defined in TDLib.Generated.Types

Show PassportElement Source # 
Instance details

Defined in TDLib.Generated.Types

Generic PassportElement Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep PassportElement :: Type -> Type #

ToJSON PassportElement Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON PassportElement Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep PassportElement Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep PassportElement = D1 ('MetaData "PassportElement" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (((C1 ('MetaCons "PassportElementPersonalDetails" 'PrefixI 'True) (S1 ('MetaSel ('Just "personal_details") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PersonalDetails)) :+: (C1 ('MetaCons "PassportElementPassport" 'PrefixI 'True) (S1 ('MetaSel ('Just "passport") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 IdentityDocument)) :+: C1 ('MetaCons "PassportElementDriverLicense" 'PrefixI 'True) (S1 ('MetaSel ('Just "driver_license") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 IdentityDocument)))) :+: (C1 ('MetaCons "PassportElementIdentityCard" 'PrefixI 'True) (S1 ('MetaSel ('Just "identity_card") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 IdentityDocument)) :+: (C1 ('MetaCons "PassportElementInternalPassport" 'PrefixI 'True) (S1 ('MetaSel ('Just "internal_passport") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 IdentityDocument)) :+: C1 ('MetaCons "PassportElementAddress" 'PrefixI 'True) (S1 ('MetaSel ('Just "address") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Address))))) :+: ((C1 ('MetaCons "PassportElementUtilityBill" 'PrefixI 'True) (S1 ('MetaSel ('Just "utility_bill") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PersonalDocument)) :+: (C1 ('MetaCons "PassportElementBankStatement" 'PrefixI 'True) (S1 ('MetaSel ('Just "bank_statement") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PersonalDocument)) :+: C1 ('MetaCons "PassportElementRentalAgreement" 'PrefixI 'True) (S1 ('MetaSel ('Just "rental_agreement") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PersonalDocument)))) :+: ((C1 ('MetaCons "PassportElementPassportRegistration" 'PrefixI 'True) (S1 ('MetaSel ('Just "passport_registration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PersonalDocument)) :+: C1 ('MetaCons "PassportElementTemporaryRegistration" 'PrefixI 'True) (S1 ('MetaSel ('Just "temporary_registration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PersonalDocument))) :+: (C1 ('MetaCons "PassportElementPhoneNumber" 'PrefixI 'True) (S1 ('MetaSel ('Just "phone_number") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)) :+: C1 ('MetaCons "PassportElementEmailAddress" 'PrefixI 'True) (S1 ('MetaSel ('Just "email_address") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T))))))

data InputPassportElement Source #

Contains information about a Telegram Passport element to be saved

Constructors

InputPassportElementPersonalDetails

A Telegram Passport element to be saved containing the user's personal details

Fields

InputPassportElementPassport

A Telegram Passport element to be saved containing the user's passport

Fields

InputPassportElementDriverLicense

A Telegram Passport element to be saved containing the user's driver license

Fields

InputPassportElementIdentityCard

A Telegram Passport element to be saved containing the user's identity card

Fields

InputPassportElementInternalPassport

A Telegram Passport element to be saved containing the user's internal passport

Fields

InputPassportElementAddress

A Telegram Passport element to be saved containing the user's address

Fields

InputPassportElementUtilityBill

A Telegram Passport element to be saved containing the user's utility bill

Fields

InputPassportElementBankStatement

A Telegram Passport element to be saved containing the user's bank statement

Fields

InputPassportElementRentalAgreement

A Telegram Passport element to be saved containing the user's rental agreement

Fields

InputPassportElementPassportRegistration

A Telegram Passport element to be saved containing the user's passport registration

Fields

InputPassportElementTemporaryRegistration

A Telegram Passport element to be saved containing the user's temporary registration

Fields

InputPassportElementPhoneNumber

A Telegram Passport element to be saved containing the user's phone number

Fields

InputPassportElementEmailAddress

A Telegram Passport element to be saved containing the user's email address

Fields

Instances

Instances details
Eq InputPassportElement Source # 
Instance details

Defined in TDLib.Generated.Types

Show InputPassportElement Source # 
Instance details

Defined in TDLib.Generated.Types

Generic InputPassportElement Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep InputPassportElement :: Type -> Type #

ToJSON InputPassportElement Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON InputPassportElement Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep InputPassportElement Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep InputPassportElement = D1 ('MetaData "InputPassportElement" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (((C1 ('MetaCons "InputPassportElementPersonalDetails" 'PrefixI 'True) (S1 ('MetaSel ('Just "personal_details") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PersonalDetails)) :+: (C1 ('MetaCons "InputPassportElementPassport" 'PrefixI 'True) (S1 ('MetaSel ('Just "passport") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 InputIdentityDocument)) :+: C1 ('MetaCons "InputPassportElementDriverLicense" 'PrefixI 'True) (S1 ('MetaSel ('Just "driver_license") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 InputIdentityDocument)))) :+: (C1 ('MetaCons "InputPassportElementIdentityCard" 'PrefixI 'True) (S1 ('MetaSel ('Just "identity_card") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 InputIdentityDocument)) :+: (C1 ('MetaCons "InputPassportElementInternalPassport" 'PrefixI 'True) (S1 ('MetaSel ('Just "internal_passport") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 InputIdentityDocument)) :+: C1 ('MetaCons "InputPassportElementAddress" 'PrefixI 'True) (S1 ('MetaSel ('Just "address") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Address))))) :+: ((C1 ('MetaCons "InputPassportElementUtilityBill" 'PrefixI 'True) (S1 ('MetaSel ('Just "utility_bill") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 InputPersonalDocument)) :+: (C1 ('MetaCons "InputPassportElementBankStatement" 'PrefixI 'True) (S1 ('MetaSel ('Just "bank_statement") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 InputPersonalDocument)) :+: C1 ('MetaCons "InputPassportElementRentalAgreement" 'PrefixI 'True) (S1 ('MetaSel ('Just "rental_agreement") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 InputPersonalDocument)))) :+: ((C1 ('MetaCons "InputPassportElementPassportRegistration" 'PrefixI 'True) (S1 ('MetaSel ('Just "passport_registration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 InputPersonalDocument)) :+: C1 ('MetaCons "InputPassportElementTemporaryRegistration" 'PrefixI 'True) (S1 ('MetaSel ('Just "temporary_registration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 InputPersonalDocument))) :+: (C1 ('MetaCons "InputPassportElementPhoneNumber" 'PrefixI 'True) (S1 ('MetaSel ('Just "phone_number") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)) :+: C1 ('MetaCons "InputPassportElementEmailAddress" 'PrefixI 'True) (S1 ('MetaSel ('Just "email_address") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T))))))

data PassportElements Source #

Constructors

PassportElements

Contains information about saved Telegram Passport elements

Fields

Instances

Instances details
Eq PassportElements Source # 
Instance details

Defined in TDLib.Generated.Types

Show PassportElements Source # 
Instance details

Defined in TDLib.Generated.Types

Generic PassportElements Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep PassportElements :: Type -> Type #

ToJSON PassportElements Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON PassportElements Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep PassportElements Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep PassportElements = D1 ('MetaData "PassportElements" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "PassportElements" 'PrefixI 'True) (S1 ('MetaSel ('Just "elements") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [PassportElement])))

data PassportElementErrorSource Source #

Contains the description of an error in a Telegram Passport element

Constructors

PassportElementErrorSourceUnspecified

The element contains an error in an unspecified place. The error will be considered resolved when new data is added

PassportElementErrorSourceDataField

One of the data fields contains an error. The error will be considered resolved when the value of the field changes

Fields

PassportElementErrorSourceFrontSide

The front side of the document contains an error. The error will be considered resolved when the file with the front side changes

PassportElementErrorSourceReverseSide

The reverse side of the document contains an error. The error will be considered resolved when the file with the reverse side changes

PassportElementErrorSourceSelfie

The selfie with the document contains an error. The error will be considered resolved when the file with the selfie changes

PassportElementErrorSourceTranslationFile

One of files with the translation of the document contains an error. The error will be considered resolved when the file changes

Fields

PassportElementErrorSourceTranslationFiles

The translation of the document contains an error. The error will be considered resolved when the list of translation files changes

PassportElementErrorSourceFile

The file contains an error. The error will be considered resolved when the file changes

Fields

PassportElementErrorSourceFiles

The list of attached files contains an error. The error will be considered resolved when the list of files changes

Instances

Instances details
Eq PassportElementErrorSource Source # 
Instance details

Defined in TDLib.Generated.Types

Show PassportElementErrorSource Source # 
Instance details

Defined in TDLib.Generated.Types

Generic PassportElementErrorSource Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep PassportElementErrorSource :: Type -> Type #

ToJSON PassportElementErrorSource Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON PassportElementErrorSource Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep PassportElementErrorSource Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep PassportElementErrorSource = D1 ('MetaData "PassportElementErrorSource" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (((C1 ('MetaCons "PassportElementErrorSourceUnspecified" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PassportElementErrorSourceDataField" 'PrefixI 'True) (S1 ('MetaSel ('Just "field_name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T))) :+: (C1 ('MetaCons "PassportElementErrorSourceFrontSide" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PassportElementErrorSourceReverseSide" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "PassportElementErrorSourceSelfie" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PassportElementErrorSourceTranslationFile" 'PrefixI 'True) (S1 ('MetaSel ('Just "file_index") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32))) :+: (C1 ('MetaCons "PassportElementErrorSourceTranslationFiles" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "PassportElementErrorSourceFile" 'PrefixI 'True) (S1 ('MetaSel ('Just "file_index") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)) :+: C1 ('MetaCons "PassportElementErrorSourceFiles" 'PrefixI 'False) (U1 :: Type -> Type)))))

data PassportElementError Source #

Constructors

PassportElementError

Contains the description of an error in a Telegram Passport element

Fields

Instances

Instances details
Eq PassportElementError Source # 
Instance details

Defined in TDLib.Generated.Types

Show PassportElementError Source # 
Instance details

Defined in TDLib.Generated.Types

Generic PassportElementError Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep PassportElementError :: Type -> Type #

ToJSON PassportElementError Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON PassportElementError Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep PassportElementError Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep PassportElementError = D1 ('MetaData "PassportElementError" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "PassportElementError" 'PrefixI 'True) (S1 ('MetaSel ('Just "type_") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PassportElementType) :*: (S1 ('MetaSel ('Just "message") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "source") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PassportElementErrorSource))))

data PassportSuitableElement Source #

Constructors

PassportSuitableElement

Contains information about a Telegram Passport element that was requested by a service

Fields

Instances

Instances details
Eq PassportSuitableElement Source # 
Instance details

Defined in TDLib.Generated.Types

Show PassportSuitableElement Source # 
Instance details

Defined in TDLib.Generated.Types

Generic PassportSuitableElement Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep PassportSuitableElement :: Type -> Type #

ToJSON PassportSuitableElement Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON PassportSuitableElement Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep PassportSuitableElement Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep PassportSuitableElement = D1 ('MetaData "PassportSuitableElement" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "PassportSuitableElement" 'PrefixI 'True) ((S1 ('MetaSel ('Just "type_") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PassportElementType) :*: S1 ('MetaSel ('Just "is_selfie_required") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :*: (S1 ('MetaSel ('Just "is_translation_required") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "is_native_name_required") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))))

data PassportRequiredElement Source #

Constructors

PassportRequiredElement

Contains a description of the required Telegram Passport element that was requested by a service

Fields

Instances

Instances details
Eq PassportRequiredElement Source # 
Instance details

Defined in TDLib.Generated.Types

Show PassportRequiredElement Source # 
Instance details

Defined in TDLib.Generated.Types

Generic PassportRequiredElement Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep PassportRequiredElement :: Type -> Type #

ToJSON PassportRequiredElement Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON PassportRequiredElement Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep PassportRequiredElement Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep PassportRequiredElement = D1 ('MetaData "PassportRequiredElement" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "PassportRequiredElement" 'PrefixI 'True) (S1 ('MetaSel ('Just "suitable_elements") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [PassportSuitableElement])))

data PassportAuthorizationForm Source #

Constructors

PassportAuthorizationForm

Contains information about a Telegram Passport authorization form that was requested

Fields

Instances

Instances details
Eq PassportAuthorizationForm Source # 
Instance details

Defined in TDLib.Generated.Types

Show PassportAuthorizationForm Source # 
Instance details

Defined in TDLib.Generated.Types

Generic PassportAuthorizationForm Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep PassportAuthorizationForm :: Type -> Type #

ToJSON PassportAuthorizationForm Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON PassportAuthorizationForm Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep PassportAuthorizationForm Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep PassportAuthorizationForm = D1 ('MetaData "PassportAuthorizationForm" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "PassportAuthorizationForm" 'PrefixI 'True) (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: (S1 ('MetaSel ('Just "required_elements") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [PassportRequiredElement]) :*: S1 ('MetaSel ('Just "privacy_policy_url") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T))))

data PassportElementsWithErrors Source #

Constructors

PassportElementsWithErrors

Contains information about a Telegram Passport elements and corresponding errors

Fields

Instances

Instances details
Eq PassportElementsWithErrors Source # 
Instance details

Defined in TDLib.Generated.Types

Show PassportElementsWithErrors Source # 
Instance details

Defined in TDLib.Generated.Types

Generic PassportElementsWithErrors Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep PassportElementsWithErrors :: Type -> Type #

ToJSON PassportElementsWithErrors Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON PassportElementsWithErrors Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep PassportElementsWithErrors Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep PassportElementsWithErrors = D1 ('MetaData "PassportElementsWithErrors" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "PassportElementsWithErrors" 'PrefixI 'True) (S1 ('MetaSel ('Just "elements") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [PassportElement]) :*: S1 ('MetaSel ('Just "errors") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [PassportElementError])))

data EncryptedCredentials Source #

Constructors

EncryptedCredentials

Contains encrypted Telegram Passport data credentials

Fields

Instances

Instances details
Eq EncryptedCredentials Source # 
Instance details

Defined in TDLib.Generated.Types

Show EncryptedCredentials Source # 
Instance details

Defined in TDLib.Generated.Types

Generic EncryptedCredentials Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep EncryptedCredentials :: Type -> Type #

ToJSON EncryptedCredentials Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON EncryptedCredentials Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep EncryptedCredentials Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep EncryptedCredentials = D1 ('MetaData "EncryptedCredentials" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "EncryptedCredentials" 'PrefixI 'True) (S1 ('MetaSel ('Just "data_") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString64) :*: (S1 ('MetaSel ('Just "hash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString64) :*: S1 ('MetaSel ('Just "secret") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString64))))

data EncryptedPassportElement Source #

Constructors

EncryptedPassportElement

Contains information about an encrypted Telegram Passport element; for bots only

Fields

Instances

Instances details
Eq EncryptedPassportElement Source # 
Instance details

Defined in TDLib.Generated.Types

Show EncryptedPassportElement Source # 
Instance details

Defined in TDLib.Generated.Types

Generic EncryptedPassportElement Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep EncryptedPassportElement :: Type -> Type #

ToJSON EncryptedPassportElement Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON EncryptedPassportElement Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep EncryptedPassportElement Source # 
Instance details

Defined in TDLib.Generated.Types

data InputPassportElementErrorSource Source #

Contains the description of an error in a Telegram Passport element; for bots only

Constructors

InputPassportElementErrorSourceUnspecified

The element contains an error in an unspecified place. The error will be considered resolved when new data is added

Fields

InputPassportElementErrorSourceDataField

A data field contains an error. The error is considered resolved when the field's value changes

Fields

InputPassportElementErrorSourceFrontSide

The front side of the document contains an error. The error is considered resolved when the file with the front side of the document changes

Fields

InputPassportElementErrorSourceReverseSide

The reverse side of the document contains an error. The error is considered resolved when the file with the reverse side of the document changes

Fields

InputPassportElementErrorSourceSelfie

The selfie contains an error. The error is considered resolved when the file with the selfie changes

Fields

InputPassportElementErrorSourceTranslationFile

One of the files containing the translation of the document contains an error. The error is considered resolved when the file with the translation changes

Fields

InputPassportElementErrorSourceTranslationFiles

The translation of the document contains an error. The error is considered resolved when the list of files changes

Fields

InputPassportElementErrorSourceFile

The file contains an error. The error is considered resolved when the file changes

Fields

InputPassportElementErrorSourceFiles

The list of attached files contains an error. The error is considered resolved when the file list changes

Fields

Instances

Instances details
Eq InputPassportElementErrorSource Source # 
Instance details

Defined in TDLib.Generated.Types

Show InputPassportElementErrorSource Source # 
Instance details

Defined in TDLib.Generated.Types

Generic InputPassportElementErrorSource Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep InputPassportElementErrorSource :: Type -> Type #

ToJSON InputPassportElementErrorSource Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON InputPassportElementErrorSource Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep InputPassportElementErrorSource Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep InputPassportElementErrorSource = D1 ('MetaData "InputPassportElementErrorSource" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (((C1 ('MetaCons "InputPassportElementErrorSourceUnspecified" 'PrefixI 'True) (S1 ('MetaSel ('Just "element_hash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString64)) :+: C1 ('MetaCons "InputPassportElementErrorSourceDataField" 'PrefixI 'True) (S1 ('MetaSel ('Just "field_name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "data_hash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString64))) :+: (C1 ('MetaCons "InputPassportElementErrorSourceFrontSide" 'PrefixI 'True) (S1 ('MetaSel ('Just "file_hash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString64)) :+: C1 ('MetaCons "InputPassportElementErrorSourceReverseSide" 'PrefixI 'True) (S1 ('MetaSel ('Just "file_hash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString64)))) :+: ((C1 ('MetaCons "InputPassportElementErrorSourceSelfie" 'PrefixI 'True) (S1 ('MetaSel ('Just "file_hash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString64)) :+: C1 ('MetaCons "InputPassportElementErrorSourceTranslationFile" 'PrefixI 'True) (S1 ('MetaSel ('Just "file_hash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString64))) :+: (C1 ('MetaCons "InputPassportElementErrorSourceTranslationFiles" 'PrefixI 'True) (S1 ('MetaSel ('Just "file_hashes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [ByteString64])) :+: (C1 ('MetaCons "InputPassportElementErrorSourceFile" 'PrefixI 'True) (S1 ('MetaSel ('Just "file_hash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString64)) :+: C1 ('MetaCons "InputPassportElementErrorSourceFiles" 'PrefixI 'True) (S1 ('MetaSel ('Just "file_hashes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [ByteString64]))))))

data InputPassportElementError Source #

Constructors

InputPassportElementError

Contains the description of an error in a Telegram Passport element; for bots only

Fields

Instances

Instances details
Eq InputPassportElementError Source # 
Instance details

Defined in TDLib.Generated.Types

Show InputPassportElementError Source # 
Instance details

Defined in TDLib.Generated.Types

Generic InputPassportElementError Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep InputPassportElementError :: Type -> Type #

ToJSON InputPassportElementError Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON InputPassportElementError Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep InputPassportElementError Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep InputPassportElementError = D1 ('MetaData "InputPassportElementError" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "InputPassportElementError" 'PrefixI 'True) (S1 ('MetaSel ('Just "type_") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PassportElementType) :*: (S1 ('MetaSel ('Just "message") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "source") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 InputPassportElementErrorSource))))

data MessageContent Source #

Contains the content of a message

Constructors

MessageText

A text message

Fields

MessageAnimation

An animation message (GIF-style).

Fields

MessageAudio

An audio message

Fields

MessageDocument

A document message (general file)

Fields

MessagePhoto

A photo message

Fields

MessageExpiredPhoto

An expired photo message (self-destructed after TTL has elapsed)

MessageSticker

A sticker message

Fields

MessageVideo

A video message

Fields

MessageExpiredVideo

An expired video message (self-destructed after TTL has elapsed)

MessageVideoNote

A video note message

Fields

  • video_note :: VideoNote

    The video note description

  • is_viewed :: Bool

    True, if at least one of the recipients has viewed the video note

  • is_secret :: Bool

    True, if the animation thumbnail must be blurred and the animation must be shown only while tapped

MessageVoiceNote

A voice note message

Fields

MessageLocation

A message with a location

Fields

  • location :: Location

    The location description

  • live_period :: I32

    Time relative to the message sent date until which the location can be updated, in seconds

  • expires_in :: I32

    Left time for which the location can be updated, in seconds. updateMessageContent is not sent when this field changes

MessageVenue

A message with information about a venue

Fields

MessageContact

A message with a user contact

Fields

MessageDice

A dice message. The dice value is randomly generated by the server

Fields

  • initial_state_sticker :: Sticker

    The animated sticker with the initial dice animation; may be null if unknown. updateMessageContent will be sent when the sticker became known

  • final_state_sticker :: Sticker

    The animated sticker with the final dice animation; may be null if unknown. updateMessageContent will be sent when the sticker became known

  • emoji :: T

    Emoji on which the dice throw animation is based

  • value :: I32

    The dice value. If the value is 0, the dice don't have final state yet

  • success_animation_frame_number :: I32

    Number of frame after which a success animation like a shower of confetti needs to be shown on updateMessageSendSucceeded

MessageGame

A message with a game

Fields

MessagePoll

A message with a poll

Fields

MessageInvoice

A message with an invoice from a bot

Fields

MessageCall

A message with information about an ended call

Fields

MessageBasicGroupChatCreate

A newly created basic group

Fields

MessageSupergroupChatCreate

A newly created supergroup or channel

Fields

MessageChatChangeTitle

An updated chat title

Fields

MessageChatChangePhoto

An updated chat photo

Fields

MessageChatDeletePhoto

A deleted chat photo

MessageChatAddMembers

New chat members were added

Fields

MessageChatJoinByLink

A new member joined the chat by invite link

MessageChatDeleteMember

A chat member was deleted

Fields

  • user_id :: I32

    User identifier of the deleted chat member

MessageChatUpgradeTo

A basic group was upgraded to a supergroup and was deactivated as the result

Fields

  • supergroup_id :: I32

    Identifier of the supergroup to which the basic group was upgraded

MessageChatUpgradeFrom

A supergroup has been created from a basic group

Fields

MessagePinMessage

A message has been pinned

Fields

  • message_id :: I53

    Identifier of the pinned message, can be an identifier of a deleted message or 0

MessageScreenshotTaken

A screenshot of a message in the chat has been taken

MessageChatSetTtl

The TTL (Time To Live) setting messages in a secret chat has been changed

Fields

MessageCustomServiceAction

A non-standard action has happened in the chat

Fields

  • text :: T

    Message text to be shown in the chat

MessageGameScore

A new high score was achieved in a game

Fields

  • game_message_id :: I53

    Identifier of the message with the game, can be an identifier of a deleted message

  • game_id :: I64

    Identifier of the game; may be different from the games presented in the message with the game

  • score :: I32

    New score

MessagePaymentSuccessful

A payment has been completed

Fields

  • invoice_message_id :: I53

    Identifier of the message with the corresponding invoice; can be an identifier of a deleted message

  • currency :: T

    Currency for the product price

  • total_amount :: I53

    Product total price in the minimal quantity of the currency

MessagePaymentSuccessfulBot

A payment has been completed; for bots only

Fields

MessageContactRegistered

A contact has registered with Telegram

MessageWebsiteConnected

The current user has connected a website by logging in using Telegram Login Widget on it

Fields

MessagePassportDataSent

Telegram Passport data has been sent

Fields

MessagePassportDataReceived

Telegram Passport data has been received; for bots only

Fields

MessageUnsupported

Message content that is not supported by the client

Instances

Instances details
Eq MessageContent Source # 
Instance details

Defined in TDLib.Generated.Types

Show MessageContent Source # 
Instance details

Defined in TDLib.Generated.Types

Generic MessageContent Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep MessageContent :: Type -> Type #

ToJSON MessageContent Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON MessageContent Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep MessageContent Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep MessageContent = D1 ('MetaData "MessageContent" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (((((C1 ('MetaCons "MessageText" 'PrefixI 'True) (S1 ('MetaSel ('Just "text_2") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FormattedText) :*: S1 ('MetaSel ('Just "web_page") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 WebPage)) :+: C1 ('MetaCons "MessageAnimation" 'PrefixI 'True) (S1 ('MetaSel ('Just "animation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Animation) :*: (S1 ('MetaSel ('Just "caption") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FormattedText) :*: S1 ('MetaSel ('Just "is_secret") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)))) :+: (C1 ('MetaCons "MessageAudio" 'PrefixI 'True) (S1 ('MetaSel ('Just "audio") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Audio) :*: S1 ('MetaSel ('Just "caption") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FormattedText)) :+: (C1 ('MetaCons "MessageDocument" 'PrefixI 'True) (S1 ('MetaSel ('Just "document") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Document) :*: S1 ('MetaSel ('Just "caption") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FormattedText)) :+: C1 ('MetaCons "MessagePhoto" 'PrefixI 'True) (S1 ('MetaSel ('Just "photo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Photo) :*: (S1 ('MetaSel ('Just "caption") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FormattedText) :*: S1 ('MetaSel ('Just "is_secret") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)))))) :+: ((C1 ('MetaCons "MessageExpiredPhoto" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MessageSticker" 'PrefixI 'True) (S1 ('MetaSel ('Just "sticker") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Sticker))) :+: (C1 ('MetaCons "MessageVideo" 'PrefixI 'True) (S1 ('MetaSel ('Just "video") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Video) :*: (S1 ('MetaSel ('Just "caption") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FormattedText) :*: S1 ('MetaSel ('Just "is_secret") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))) :+: (C1 ('MetaCons "MessageExpiredVideo" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MessageVideoNote" 'PrefixI 'True) (S1 ('MetaSel ('Just "video_note") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 VideoNote) :*: (S1 ('MetaSel ('Just "is_viewed") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "is_secret") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))))))) :+: (((C1 ('MetaCons "MessageVoiceNote" 'PrefixI 'True) (S1 ('MetaSel ('Just "voice_note") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 VoiceNote) :*: (S1 ('MetaSel ('Just "caption") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FormattedText) :*: S1 ('MetaSel ('Just "is_listened") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))) :+: C1 ('MetaCons "MessageLocation" 'PrefixI 'True) (S1 ('MetaSel ('Just "location") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Location) :*: (S1 ('MetaSel ('Just "live_period") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "expires_in") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)))) :+: (C1 ('MetaCons "MessageVenue" 'PrefixI 'True) (S1 ('MetaSel ('Just "venue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Venue)) :+: (C1 ('MetaCons "MessageContact" 'PrefixI 'True) (S1 ('MetaSel ('Just "contact") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Contact)) :+: C1 ('MetaCons "MessageDice" 'PrefixI 'True) ((S1 ('MetaSel ('Just "initial_state_sticker") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Sticker) :*: S1 ('MetaSel ('Just "final_state_sticker") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Sticker)) :*: (S1 ('MetaSel ('Just "emoji") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: (S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "success_animation_frame_number") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32))))))) :+: ((C1 ('MetaCons "MessageGame" 'PrefixI 'True) (S1 ('MetaSel ('Just "game") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Game)) :+: C1 ('MetaCons "MessagePoll" 'PrefixI 'True) (S1 ('MetaSel ('Just "poll") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Poll))) :+: (C1 ('MetaCons "MessageInvoice" 'PrefixI 'True) (((S1 ('MetaSel ('Just "title") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)) :*: (S1 ('MetaSel ('Just "photo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Photo) :*: S1 ('MetaSel ('Just "currency") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T))) :*: ((S1 ('MetaSel ('Just "total_amount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: S1 ('MetaSel ('Just "start_parameter") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)) :*: (S1 ('MetaSel ('Just "is_test") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "need_shipping_address") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "receipt_message_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53))))) :+: (C1 ('MetaCons "MessageCall" 'PrefixI 'True) (S1 ('MetaSel ('Just "discard_reason") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CallDiscardReason) :*: S1 ('MetaSel ('Just "duration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)) :+: C1 ('MetaCons "MessageBasicGroupChatCreate" 'PrefixI 'True) (S1 ('MetaSel ('Just "title") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "member_user_ids") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [I32]))))))) :+: ((((C1 ('MetaCons "MessageSupergroupChatCreate" 'PrefixI 'True) (S1 ('MetaSel ('Just "title") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)) :+: C1 ('MetaCons "MessageChatChangeTitle" 'PrefixI 'True) (S1 ('MetaSel ('Just "title") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T))) :+: (C1 ('MetaCons "MessageChatChangePhoto" 'PrefixI 'True) (S1 ('MetaSel ('Just "photo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Photo)) :+: (C1 ('MetaCons "MessageChatDeletePhoto" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MessageChatAddMembers" 'PrefixI 'True) (S1 ('MetaSel ('Just "member_user_ids") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [I32]))))) :+: ((C1 ('MetaCons "MessageChatJoinByLink" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MessageChatDeleteMember" 'PrefixI 'True) (S1 ('MetaSel ('Just "user_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32))) :+: (C1 ('MetaCons "MessageChatUpgradeTo" 'PrefixI 'True) (S1 ('MetaSel ('Just "supergroup_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)) :+: (C1 ('MetaCons "MessageChatUpgradeFrom" 'PrefixI 'True) (S1 ('MetaSel ('Just "title") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "basic_group_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)) :+: C1 ('MetaCons "MessagePinMessage" 'PrefixI 'True) (S1 ('MetaSel ('Just "message_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53)))))) :+: (((C1 ('MetaCons "MessageScreenshotTaken" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MessageChatSetTtl" 'PrefixI 'True) (S1 ('MetaSel ('Just "ttl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32))) :+: (C1 ('MetaCons "MessageCustomServiceAction" 'PrefixI 'True) (S1 ('MetaSel ('Just "text") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)) :+: (C1 ('MetaCons "MessageGameScore" 'PrefixI 'True) (S1 ('MetaSel ('Just "game_message_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: (S1 ('MetaSel ('Just "game_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I64) :*: S1 ('MetaSel ('Just "score") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32))) :+: C1 ('MetaCons "MessagePaymentSuccessful" 'PrefixI 'True) (S1 ('MetaSel ('Just "invoice_message_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: (S1 ('MetaSel ('Just "currency") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "total_amount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53)))))) :+: ((C1 ('MetaCons "MessagePaymentSuccessfulBot" 'PrefixI 'True) (((S1 ('MetaSel ('Just "invoice_message_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: S1 ('MetaSel ('Just "currency") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)) :*: (S1 ('MetaSel ('Just "total_amount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: S1 ('MetaSel ('Just "invoice_payload") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString64))) :*: ((S1 ('MetaSel ('Just "shipping_option_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "order_info") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 OrderInfo)) :*: (S1 ('MetaSel ('Just "telegram_payment_charge_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "provider_payment_charge_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)))) :+: (C1 ('MetaCons "MessageContactRegistered" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MessageWebsiteConnected" 'PrefixI 'True) (S1 ('MetaSel ('Just "domain_name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)))) :+: (C1 ('MetaCons "MessagePassportDataSent" 'PrefixI 'True) (S1 ('MetaSel ('Just "types") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [PassportElementType])) :+: (C1 ('MetaCons "MessagePassportDataReceived" 'PrefixI 'True) (S1 ('MetaSel ('Just "elements") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [EncryptedPassportElement]) :*: S1 ('MetaSel ('Just "credentials") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 EncryptedCredentials)) :+: C1 ('MetaCons "MessageUnsupported" 'PrefixI 'False) (U1 :: Type -> Type)))))))

data TextEntityType Source #

Represents a part of the text which must be formatted differently

Constructors

TextEntityTypeMention

A mention of a user by their username

TextEntityTypeHashtag

A hashtag text, beginning with "#"

TextEntityTypeCashtag

A cashtag text, beginning with "$" and consisting of capital english letters (i.e. "$USD")

TextEntityTypeBotCommand

A bot command, beginning with "/". This shouldn't be highlighted if there are no bots in the chat

TextEntityTypeUrl

An HTTP URL

TextEntityTypeEmailAddress

An email address

TextEntityTypePhoneNumber

A phone number

TextEntityTypeBankCardNumber

A bank card number. The getBankCardInfo method can be used to get information about the bank card

TextEntityTypeBold

A bold text

TextEntityTypeItalic

An italic text

TextEntityTypeUnderline

An underlined text

TextEntityTypeStrikethrough

A strikethrough text

TextEntityTypeCode

Text that must be formatted as if inside a code HTML tag

TextEntityTypePre

Text that must be formatted as if inside a pre HTML tag

TextEntityTypePreCode

Text that must be formatted as if inside pre, and code HTML tags

Fields

  • language :: T

    Programming language of the code; as defined by the sender

TextEntityTypeTextUrl

A text description shown instead of a raw URL

Fields

  • url :: T

    HTTP or tg:// URL to be opened when the link is clicked

TextEntityTypeMentionName

A text shows instead of a raw mention of the user (e.g., when the user has no username)

Fields

Instances

Instances details
Eq TextEntityType Source # 
Instance details

Defined in TDLib.Generated.Types

Show TextEntityType Source # 
Instance details

Defined in TDLib.Generated.Types

Generic TextEntityType Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep TextEntityType :: Type -> Type #

ToJSON TextEntityType Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON TextEntityType Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep TextEntityType Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep TextEntityType = D1 ('MetaData "TextEntityType" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) ((((C1 ('MetaCons "TextEntityTypeMention" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "TextEntityTypeHashtag" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "TextEntityTypeCashtag" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "TextEntityTypeBotCommand" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "TextEntityTypeUrl" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "TextEntityTypeEmailAddress" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "TextEntityTypePhoneNumber" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "TextEntityTypeBankCardNumber" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: (((C1 ('MetaCons "TextEntityTypeBold" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "TextEntityTypeItalic" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "TextEntityTypeUnderline" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "TextEntityTypeStrikethrough" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "TextEntityTypeCode" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "TextEntityTypePre" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "TextEntityTypePreCode" 'PrefixI 'True) (S1 ('MetaSel ('Just "language") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)) :+: (C1 ('MetaCons "TextEntityTypeTextUrl" 'PrefixI 'True) (S1 ('MetaSel ('Just "url") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)) :+: C1 ('MetaCons "TextEntityTypeMentionName" 'PrefixI 'True) (S1 ('MetaSel ('Just "user_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)))))))

data InputThumbnail Source #

Constructors

InputThumbnail

A thumbnail to be sent along with a file; should be in JPEG or WEBP format for stickers, and less than 200 KB in size

Fields

  • thumbnail :: InputFile

    Thumbnail file to send. Sending thumbnails by file_id is currently not supported

  • width :: I32

    Thumbnail width, usually shouldn't exceed 320. Use 0 if unknown

  • height :: I32

    Thumbnail height, usually shouldn't exceed 320. Use 0 if unknown

Instances

Instances details
Eq InputThumbnail Source # 
Instance details

Defined in TDLib.Generated.Types

Show InputThumbnail Source # 
Instance details

Defined in TDLib.Generated.Types

Generic InputThumbnail Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep InputThumbnail :: Type -> Type #

ToJSON InputThumbnail Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON InputThumbnail Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep InputThumbnail Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep InputThumbnail = D1 ('MetaData "InputThumbnail" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "InputThumbnail" 'PrefixI 'True) (S1 ('MetaSel ('Just "thumbnail") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 InputFile) :*: (S1 ('MetaSel ('Just "width") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "height") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32))))

data MessageSchedulingState Source #

Contains information about the time when a scheduled message will be sent

Constructors

MessageSchedulingStateSendAtDate

The message will be sent at the specified date

Fields

  • send_date :: I32

    Date the message will be sent. The date must be within 367 days in the future

MessageSchedulingStateSendWhenOnline

The message will be sent when the peer will be online. Applicable to private chats only and when the exact online status of the peer is known

Instances

Instances details
Eq MessageSchedulingState Source # 
Instance details

Defined in TDLib.Generated.Types

Show MessageSchedulingState Source # 
Instance details

Defined in TDLib.Generated.Types

Generic MessageSchedulingState Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep MessageSchedulingState :: Type -> Type #

ToJSON MessageSchedulingState Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON MessageSchedulingState Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep MessageSchedulingState Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep MessageSchedulingState = D1 ('MetaData "MessageSchedulingState" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "MessageSchedulingStateSendAtDate" 'PrefixI 'True) (S1 ('MetaSel ('Just "send_date") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)) :+: C1 ('MetaCons "MessageSchedulingStateSendWhenOnline" 'PrefixI 'False) (U1 :: Type -> Type))

data SendMessageOptions Source #

Constructors

SendMessageOptions

Options to be used when a message is send

Fields

Instances

Instances details
Eq SendMessageOptions Source # 
Instance details

Defined in TDLib.Generated.Types

Show SendMessageOptions Source # 
Instance details

Defined in TDLib.Generated.Types

Generic SendMessageOptions Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep SendMessageOptions :: Type -> Type #

ToJSON SendMessageOptions Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON SendMessageOptions Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep SendMessageOptions Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep SendMessageOptions = D1 ('MetaData "SendMessageOptions" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "SendMessageOptions" 'PrefixI 'True) (S1 ('MetaSel ('Just "disable_notification") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "from_background") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "scheduling_state") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MessageSchedulingState))))

data InputMessageContent Source #

The content of a message to send

Constructors

InputMessageText

A text message

Fields

  • text :: FormattedText

    Formatted text to be sent; 1-GetOption("message_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Code, Pre, PreCode, TextUrl and MentionName entities are allowed to be specified manually

  • disable_web_page_preview :: Bool

    True, if rich web page previews for URLs in the message text should be disabled

  • clear_draft :: Bool

    True, if a chat message draft should be deleted

InputMessageAnimation

An animation message (GIF-style).

Fields

InputMessageAudio

An audio message

Fields

InputMessageDocument

A document message (general file)

Fields

InputMessagePhoto

A photo message

Fields

  • photo :: InputFile

    Photo to send

  • thumbnail :: InputThumbnail

    Animation thumbnail, if available

  • added_sticker_file_ids :: [I32]

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

  • width :: I32

    Width of the animation; may be replaced by the server

  • height :: I32

    Height of the animation; may be replaced by the server

  • caption :: FormattedText

    Animation caption; 0-GetOption("message_caption_length_max") characters

  • ttl :: I32

    Photo TTL (Time To Live), in seconds (0-60). A non-zero TTL can be specified only in private chats

InputMessageSticker

A sticker message

Fields

InputMessageVideo

A video message

Fields

InputMessageVideoNote

A video note message

Fields

InputMessageVoiceNote

A voice note message

Fields

InputMessageLocation

A message with a location

Fields

  • location :: Location

    Location to be sent

  • live_period :: I32

    Period for which the location can be updated, in seconds; should be between 60 and 86400 for a live location and 0 otherwise

InputMessageVenue

A message with information about a venue

Fields

InputMessageContact

A message containing a user contact

Fields

InputMessageDice

A dice message

Fields

  • emoji :: T

    Emoji on which the dice throw animation is based

  • clear_draft :: Bool

    True, if a chat message draft should be deleted

InputMessageGame

A message with a game; not supported for channels or secret chats

Fields

InputMessageInvoice

A message with an invoice; can be used only by bots and only in private chats

Fields

InputMessagePoll

A message with a poll. Polls can't be sent to secret chats. Polls can be sent only to a private chat with a bot

Fields

  • question :: T

    Poll question, 1-255 characters

  • options :: [T]

    List of poll answer options, 2-10 strings 1-100 characters each

  • is_anonymous :: Bool

    True, if the poll voters are anonymous. Non-anonymous polls can't be sent or forwarded to channels

  • type_ :: PollType

    Type of the poll

  • open_period :: I32

    Amount of time the poll will be active after creation, in seconds; for bots only

  • close_date :: I32

    Point in time (Unix timestamp) when the poll will be automatically closed; for bots only

  • is_closed :: Bool

    True, if the poll needs to be sent already closed; for bots only

InputMessageForwarded

A forwarded message

Fields

  • from_chat_id :: I53

    Identifier for the chat this forwarded message came from

  • message_id :: I53

    Identifier of the message to forward

  • in_game_share :: Bool

    True, if a game message should be shared within a launched game; applies only to game messages

  • send_copy :: Bool

    True, if content of the message needs to be copied without a link to the original message. Always true if the message is forwarded to a secret chat

  • remove_caption :: Bool

    True, if media caption of the message copy needs to be removed. Ignored if send_copy is false

Instances

Instances details
Eq InputMessageContent Source # 
Instance details

Defined in TDLib.Generated.Types

Show InputMessageContent Source # 
Instance details

Defined in TDLib.Generated.Types

Generic InputMessageContent Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep InputMessageContent :: Type -> Type #

ToJSON InputMessageContent Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON InputMessageContent Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep InputMessageContent Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep InputMessageContent = D1 ('MetaData "InputMessageContent" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) ((((C1 ('MetaCons "InputMessageText" 'PrefixI 'True) (S1 ('MetaSel ('Just "text") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FormattedText) :*: (S1 ('MetaSel ('Just "disable_web_page_preview") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "clear_draft") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))) :+: C1 ('MetaCons "InputMessageAnimation" 'PrefixI 'True) ((S1 ('MetaSel ('Just "animation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 InputFile) :*: (S1 ('MetaSel ('Just "thumbnail") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 InputThumbnail) :*: S1 ('MetaSel ('Just "duration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32))) :*: (S1 ('MetaSel ('Just "width") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: (S1 ('MetaSel ('Just "height") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "caption") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FormattedText))))) :+: (C1 ('MetaCons "InputMessageAudio" 'PrefixI 'True) ((S1 ('MetaSel ('Just "audio") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 InputFile) :*: (S1 ('MetaSel ('Just "album_cover_thumbnail") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 InputThumbnail) :*: S1 ('MetaSel ('Just "duration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32))) :*: (S1 ('MetaSel ('Just "title") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: (S1 ('MetaSel ('Just "performer") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "caption") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FormattedText)))) :+: C1 ('MetaCons "InputMessageDocument" 'PrefixI 'True) (S1 ('MetaSel ('Just "document") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 InputFile) :*: (S1 ('MetaSel ('Just "thumbnail") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 InputThumbnail) :*: S1 ('MetaSel ('Just "caption") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FormattedText))))) :+: ((C1 ('MetaCons "InputMessagePhoto" 'PrefixI 'True) ((S1 ('MetaSel ('Just "photo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 InputFile) :*: (S1 ('MetaSel ('Just "thumbnail") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 InputThumbnail) :*: S1 ('MetaSel ('Just "added_sticker_file_ids") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [I32]))) :*: ((S1 ('MetaSel ('Just "width") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "height") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)) :*: (S1 ('MetaSel ('Just "caption") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FormattedText) :*: S1 ('MetaSel ('Just "ttl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)))) :+: C1 ('MetaCons "InputMessageSticker" 'PrefixI 'True) ((S1 ('MetaSel ('Just "sticker") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 InputFile) :*: S1 ('MetaSel ('Just "thumbnail") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 InputThumbnail)) :*: (S1 ('MetaSel ('Just "width") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "height") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)))) :+: (C1 ('MetaCons "InputMessageVideo" 'PrefixI 'True) (((S1 ('MetaSel ('Just "video") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 InputFile) :*: S1 ('MetaSel ('Just "thumbnail") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 InputThumbnail)) :*: (S1 ('MetaSel ('Just "added_sticker_file_ids") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [I32]) :*: S1 ('MetaSel ('Just "duration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32))) :*: ((S1 ('MetaSel ('Just "width") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "height") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)) :*: (S1 ('MetaSel ('Just "supports_streaming") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "caption") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FormattedText) :*: S1 ('MetaSel ('Just "ttl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32))))) :+: C1 ('MetaCons "InputMessageVideoNote" 'PrefixI 'True) ((S1 ('MetaSel ('Just "video_note") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 InputFile) :*: S1 ('MetaSel ('Just "thumbnail") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 InputThumbnail)) :*: (S1 ('MetaSel ('Just "duration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "length") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)))))) :+: (((C1 ('MetaCons "InputMessageVoiceNote" 'PrefixI 'True) ((S1 ('MetaSel ('Just "voice_note") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 InputFile) :*: S1 ('MetaSel ('Just "duration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)) :*: (S1 ('MetaSel ('Just "waveform") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString64) :*: S1 ('MetaSel ('Just "caption") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FormattedText))) :+: C1 ('MetaCons "InputMessageLocation" 'PrefixI 'True) (S1 ('MetaSel ('Just "location") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Location) :*: S1 ('MetaSel ('Just "live_period") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32))) :+: (C1 ('MetaCons "InputMessageVenue" 'PrefixI 'True) (S1 ('MetaSel ('Just "venue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Venue)) :+: C1 ('MetaCons "InputMessageContact" 'PrefixI 'True) (S1 ('MetaSel ('Just "contact") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Contact)))) :+: ((C1 ('MetaCons "InputMessageDice" 'PrefixI 'True) (S1 ('MetaSel ('Just "emoji") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "clear_draft") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :+: C1 ('MetaCons "InputMessageGame" 'PrefixI 'True) (S1 ('MetaSel ('Just "bot_user_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "game_short_name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T))) :+: (C1 ('MetaCons "InputMessageInvoice" 'PrefixI 'True) (((S1 ('MetaSel ('Just "invoice") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Invoice) :*: S1 ('MetaSel ('Just "title") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)) :*: (S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: (S1 ('MetaSel ('Just "photo_url") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "photo_size") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)))) :*: ((S1 ('MetaSel ('Just "photo_width") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: (S1 ('MetaSel ('Just "photo_height") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "payload") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString64))) :*: (S1 ('MetaSel ('Just "provider_token") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: (S1 ('MetaSel ('Just "provider_data") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "start_parameter") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T))))) :+: (C1 ('MetaCons "InputMessagePoll" 'PrefixI 'True) ((S1 ('MetaSel ('Just "question") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: (S1 ('MetaSel ('Just "options") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [T]) :*: S1 ('MetaSel ('Just "is_anonymous") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))) :*: ((S1 ('MetaSel ('Just "type_") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PollType) :*: S1 ('MetaSel ('Just "open_period") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)) :*: (S1 ('MetaSel ('Just "close_date") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "is_closed") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)))) :+: C1 ('MetaCons "InputMessageForwarded" 'PrefixI 'True) ((S1 ('MetaSel ('Just "from_chat_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: S1 ('MetaSel ('Just "message_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53)) :*: (S1 ('MetaSel ('Just "in_game_share") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "send_copy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "remove_caption") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)))))))))

data SearchMessagesFilter Source #

Represents a filter for message search results

Constructors

SearchMessagesFilterEmpty

Returns all found messages, no filter is applied

SearchMessagesFilterAnimation

Returns only animation messages

SearchMessagesFilterAudio

Returns only audio messages

SearchMessagesFilterDocument

Returns only document messages

SearchMessagesFilterPhoto

Returns only photo messages

SearchMessagesFilterVideo

Returns only video messages

SearchMessagesFilterVoiceNote

Returns only voice note messages

SearchMessagesFilterPhotoAndVideo

Returns only photo and video messages

SearchMessagesFilterUrl

Returns only messages containing URLs

SearchMessagesFilterChatPhoto

Returns only messages containing chat photos

SearchMessagesFilterCall

Returns only call messages

SearchMessagesFilterMissedCall

Returns only incoming call messages with missed/declined discard reasons

SearchMessagesFilterVideoNote

Returns only video note messages

SearchMessagesFilterVoiceAndVideoNote

Returns only voice and video note messages

SearchMessagesFilterMention

Returns only messages with mentions of the current user, or messages that are replies to their messages

SearchMessagesFilterUnreadMention

Returns only messages with unread mentions of the current user, or messages that are replies to their messages. When using this filter the results can't be additionally filtered by a query or by the sending user

SearchMessagesFilterFailedToSend

Returns only failed to send messages. This filter can be used only if the message database is used

Instances

Instances details
Eq SearchMessagesFilter Source # 
Instance details

Defined in TDLib.Generated.Types

Show SearchMessagesFilter Source # 
Instance details

Defined in TDLib.Generated.Types

Generic SearchMessagesFilter Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep SearchMessagesFilter :: Type -> Type #

ToJSON SearchMessagesFilter Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON SearchMessagesFilter Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep SearchMessagesFilter Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep SearchMessagesFilter = D1 ('MetaData "SearchMessagesFilter" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) ((((C1 ('MetaCons "SearchMessagesFilterEmpty" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "SearchMessagesFilterAnimation" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "SearchMessagesFilterAudio" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "SearchMessagesFilterDocument" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "SearchMessagesFilterPhoto" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "SearchMessagesFilterVideo" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "SearchMessagesFilterVoiceNote" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "SearchMessagesFilterPhotoAndVideo" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: (((C1 ('MetaCons "SearchMessagesFilterUrl" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "SearchMessagesFilterChatPhoto" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "SearchMessagesFilterCall" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "SearchMessagesFilterMissedCall" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "SearchMessagesFilterVideoNote" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "SearchMessagesFilterVoiceAndVideoNote" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "SearchMessagesFilterMention" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "SearchMessagesFilterUnreadMention" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "SearchMessagesFilterFailedToSend" 'PrefixI 'False) (U1 :: Type -> Type))))))

data ChatAction Source #

Describes the different types of activity in a chat

Constructors

ChatActionTyping

The user is typing a message

ChatActionRecordingVideo

The user is recording a video

ChatActionUploadingVideo

The user is uploading a video

Fields

ChatActionRecordingVoiceNote

The user is recording a voice note

ChatActionUploadingVoiceNote

The user is uploading a voice note

Fields

ChatActionUploadingPhoto

The user is uploading a photo

Fields

ChatActionUploadingDocument

The user is uploading a document

Fields

ChatActionChoosingLocation

The user is picking a location or venue to send

ChatActionChoosingContact

The user is picking a contact to send

ChatActionStartPlayingGame

The user has started to play a game

ChatActionRecordingVideoNote

The user is recording a video note

ChatActionUploadingVideoNote

The user is uploading a video note

Fields

ChatActionCancel

The user has cancelled the previous action

Instances

Instances details
Eq ChatAction Source # 
Instance details

Defined in TDLib.Generated.Types

Show ChatAction Source # 
Instance details

Defined in TDLib.Generated.Types

Generic ChatAction Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep ChatAction :: Type -> Type #

ToJSON ChatAction Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON ChatAction Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep ChatAction Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep ChatAction = D1 ('MetaData "ChatAction" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (((C1 ('MetaCons "ChatActionTyping" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ChatActionRecordingVideo" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ChatActionUploadingVideo" 'PrefixI 'True) (S1 ('MetaSel ('Just "progress") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)))) :+: (C1 ('MetaCons "ChatActionRecordingVoiceNote" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ChatActionUploadingVoiceNote" 'PrefixI 'True) (S1 ('MetaSel ('Just "progress") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)) :+: C1 ('MetaCons "ChatActionUploadingPhoto" 'PrefixI 'True) (S1 ('MetaSel ('Just "progress") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32))))) :+: ((C1 ('MetaCons "ChatActionUploadingDocument" 'PrefixI 'True) (S1 ('MetaSel ('Just "progress") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)) :+: (C1 ('MetaCons "ChatActionChoosingLocation" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ChatActionChoosingContact" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "ChatActionStartPlayingGame" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ChatActionRecordingVideoNote" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "ChatActionUploadingVideoNote" 'PrefixI 'True) (S1 ('MetaSel ('Just "progress") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)) :+: C1 ('MetaCons "ChatActionCancel" 'PrefixI 'False) (U1 :: Type -> Type)))))

data UserStatus Source #

Describes the last time the user was online

Constructors

UserStatusEmpty

The user status was never changed

UserStatusOnline

The user is online

Fields

  • expires :: I32

    Point in time (Unix timestamp) when the user's online status will expire

UserStatusOffline

The user is offline

Fields

  • was_online :: I32

    Point in time (Unix timestamp) when the user was last online

UserStatusRecently

The user was online recently

UserStatusLastWeek

The user is offline, but was online last week

UserStatusLastMonth

The user is offline, but was online last month

Instances

Instances details
Eq UserStatus Source # 
Instance details

Defined in TDLib.Generated.Types

Show UserStatus Source # 
Instance details

Defined in TDLib.Generated.Types

Generic UserStatus Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep UserStatus :: Type -> Type #

ToJSON UserStatus Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON UserStatus Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep UserStatus Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep UserStatus = D1 ('MetaData "UserStatus" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) ((C1 ('MetaCons "UserStatusEmpty" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "UserStatusOnline" 'PrefixI 'True) (S1 ('MetaSel ('Just "expires") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)) :+: C1 ('MetaCons "UserStatusOffline" 'PrefixI 'True) (S1 ('MetaSel ('Just "was_online") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)))) :+: (C1 ('MetaCons "UserStatusRecently" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "UserStatusLastWeek" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "UserStatusLastMonth" 'PrefixI 'False) (U1 :: Type -> Type))))

data Stickers Source #

Constructors

Stickers

Represents a list of stickers

Fields

Instances

Instances details
Eq Stickers Source # 
Instance details

Defined in TDLib.Generated.Types

Show Stickers Source # 
Instance details

Defined in TDLib.Generated.Types

Generic Stickers Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep Stickers :: Type -> Type #

Methods

from :: Stickers -> Rep Stickers x #

to :: Rep Stickers x -> Stickers #

ToJSON Stickers Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON Stickers Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep Stickers Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep Stickers = D1 ('MetaData "Stickers" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "Stickers" 'PrefixI 'True) (S1 ('MetaSel ('Just "stickers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Sticker])))

data Emojis Source #

Constructors

Emojis

Represents a list of emoji

Fields

Instances

Instances details
Eq Emojis Source # 
Instance details

Defined in TDLib.Generated.Types

Methods

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

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

Show Emojis Source # 
Instance details

Defined in TDLib.Generated.Types

Generic Emojis Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep Emojis :: Type -> Type #

Methods

from :: Emojis -> Rep Emojis x #

to :: Rep Emojis x -> Emojis #

ToJSON Emojis Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON Emojis Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep Emojis Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep Emojis = D1 ('MetaData "Emojis" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "Emojis" 'PrefixI 'True) (S1 ('MetaSel ('Just "emojis") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [T])))

data StickerSet Source #

Constructors

StickerSet

Represents a sticker set

Fields

  • id :: I64

    Identifier of the sticker set

  • title :: T

    Title of the sticker set

  • name :: T

    Name of the sticker set

  • thumbnail :: PhotoSize

    Sticker set thumbnail in WEBP format with width and height 100; may be null. The file can be downloaded only before the thumbnail is changed

  • is_installed :: Bool

    True, if the sticker set has been installed by the current user

  • is_archived :: Bool

    True, if the sticker set has been archived. A sticker set can't be installed and archived simultaneously

  • is_official :: Bool

    True, if the sticker set is official

  • is_animated :: Bool

    True, is the stickers in the set are animated

  • is_masks :: Bool

    True, if the stickers in the set are masks

  • is_viewed :: Bool

    True for already viewed trending sticker sets

  • stickers :: [Sticker]

    List of stickers in this set

  • emojis :: [Emojis]

    A list of emoji corresponding to the stickers in the same order. The list is only for informational purposes, because a sticker is always sent with a fixed emoji from the corresponding Sticker object

Instances

Instances details
Eq StickerSet Source # 
Instance details

Defined in TDLib.Generated.Types

Show StickerSet Source # 
Instance details

Defined in TDLib.Generated.Types

Generic StickerSet Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep StickerSet :: Type -> Type #

ToJSON StickerSet Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON StickerSet Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep StickerSet Source # 
Instance details

Defined in TDLib.Generated.Types

data StickerSetInfo Source #

Constructors

StickerSetInfo

Represents short information about a sticker set

Fields

  • id :: I64

    Identifier of the sticker set

  • title :: T

    Title of the sticker set

  • name :: T

    Name of the sticker set

  • thumbnail :: PhotoSize

    Sticker set thumbnail in WEBP format with width and height 100; may be null

  • is_installed :: Bool

    True, if the sticker set has been installed by current user

  • is_archived :: Bool

    True, if the sticker set has been archived. A sticker set can't be installed and archived simultaneously

  • is_official :: Bool

    True, if the sticker set is official

  • is_animated :: Bool

    True, is the stickers in the set are animated

  • is_masks :: Bool

    True, if the stickers in the set are masks

  • is_viewed :: Bool

    True for already viewed trending sticker sets

  • size :: I32

    Total number of stickers in the set

  • covers :: [Sticker]

    Contains up to the first 5 stickers from the set, depending on the context. If the client needs more stickers the full set should be requested

Instances

Instances details
Eq StickerSetInfo Source # 
Instance details

Defined in TDLib.Generated.Types

Show StickerSetInfo Source # 
Instance details

Defined in TDLib.Generated.Types

Generic StickerSetInfo Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep StickerSetInfo :: Type -> Type #

ToJSON StickerSetInfo Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON StickerSetInfo Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep StickerSetInfo Source # 
Instance details

Defined in TDLib.Generated.Types

data StickerSets Source #

Constructors

StickerSets

Represents a list of sticker sets

Fields

Instances

Instances details
Eq StickerSets Source # 
Instance details

Defined in TDLib.Generated.Types

Show StickerSets Source # 
Instance details

Defined in TDLib.Generated.Types

Generic StickerSets Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep StickerSets :: Type -> Type #

ToJSON StickerSets Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON StickerSets Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep StickerSets Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep StickerSets = D1 ('MetaData "StickerSets" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "StickerSets" 'PrefixI 'True) (S1 ('MetaSel ('Just "total_count") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "sets") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [StickerSetInfo])))

data CallDiscardReason Source #

Describes the reason why a call was discarded

Constructors

CallDiscardReasonEmpty

The call wasn't discarded, or the reason is unknown

CallDiscardReasonMissed

The call was ended before the conversation started. It was cancelled by the caller or missed by the other party

CallDiscardReasonDeclined

The call was ended before the conversation started. It was declined by the other party

CallDiscardReasonDisconnected

The call was ended during the conversation because the users were disconnected

CallDiscardReasonHungUp

The call was ended because one of the parties hung up

Instances

Instances details
Eq CallDiscardReason Source # 
Instance details

Defined in TDLib.Generated.Types

Show CallDiscardReason Source # 
Instance details

Defined in TDLib.Generated.Types

Generic CallDiscardReason Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep CallDiscardReason :: Type -> Type #

ToJSON CallDiscardReason Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON CallDiscardReason Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep CallDiscardReason Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep CallDiscardReason = D1 ('MetaData "CallDiscardReason" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) ((C1 ('MetaCons "CallDiscardReasonEmpty" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "CallDiscardReasonMissed" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "CallDiscardReasonDeclined" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "CallDiscardReasonDisconnected" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "CallDiscardReasonHungUp" 'PrefixI 'False) (U1 :: Type -> Type))))

data CallProtocol Source #

Constructors

CallProtocol

Specifies the supported call protocols

Fields

Instances

Instances details
Eq CallProtocol Source # 
Instance details

Defined in TDLib.Generated.Types

Show CallProtocol Source # 
Instance details

Defined in TDLib.Generated.Types

Generic CallProtocol Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep CallProtocol :: Type -> Type #

ToJSON CallProtocol Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON CallProtocol Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep CallProtocol Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep CallProtocol = D1 ('MetaData "CallProtocol" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "CallProtocol" 'PrefixI 'True) ((S1 ('MetaSel ('Just "udp_p2p") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "udp_reflector") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :*: (S1 ('MetaSel ('Just "min_layer") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: (S1 ('MetaSel ('Just "max_layer") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "library_versions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [T])))))

data CallConnection Source #

Constructors

CallConnection

Describes the address of UDP reflectors

Fields

Instances

Instances details
Eq CallConnection Source # 
Instance details

Defined in TDLib.Generated.Types

Show CallConnection Source # 
Instance details

Defined in TDLib.Generated.Types

Generic CallConnection Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep CallConnection :: Type -> Type #

ToJSON CallConnection Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON CallConnection Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep CallConnection Source # 
Instance details

Defined in TDLib.Generated.Types

data CallId Source #

Constructors

CallId

Contains the call identifier

Fields

Instances

Instances details
Eq CallId Source # 
Instance details

Defined in TDLib.Generated.Types

Methods

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

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

Show CallId Source # 
Instance details

Defined in TDLib.Generated.Types

Generic CallId Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep CallId :: Type -> Type #

Methods

from :: CallId -> Rep CallId x #

to :: Rep CallId x -> CallId #

ToJSON CallId Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON CallId Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep CallId Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep CallId = D1 ('MetaData "CallId" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "CallId" 'PrefixI 'True) (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)))

data CallState Source #

Describes the current call state

Constructors

CallStatePending

The call is pending, waiting to be accepted by a user

Fields

  • is_created :: Bool

    True, if the call has already been created by the server

  • is_received :: Bool

    True, if the call has already been received by the other party

CallStateExchangingKeys

The call has been answered and encryption keys are being exchanged

CallStateReady

The call is ready to use

Fields

CallStateHangingUp

The call is hanging up after discardCall has been called

CallStateDiscarded

The call has ended successfully

Fields

CallStateError

The call has ended with an error

Fields

  • error :: Error

    Error. An error with the code 4005000 will be returned if an outgoing call is missed because of an expired timeout

Instances

Instances details
Eq CallState Source # 
Instance details

Defined in TDLib.Generated.Types

Show CallState Source # 
Instance details

Defined in TDLib.Generated.Types

Generic CallState Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep CallState :: Type -> Type #

ToJSON CallState Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON CallState Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep CallState Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep CallState = D1 ('MetaData "CallState" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) ((C1 ('MetaCons "CallStatePending" 'PrefixI 'True) (S1 ('MetaSel ('Just "is_created") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "is_received") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :+: (C1 ('MetaCons "CallStateExchangingKeys" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "CallStateReady" 'PrefixI 'True) ((S1 ('MetaSel ('Just "protocol") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CallProtocol) :*: (S1 ('MetaSel ('Just "connections") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [CallConnection]) :*: S1 ('MetaSel ('Just "config") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T))) :*: (S1 ('MetaSel ('Just "encryption_key") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString64) :*: (S1 ('MetaSel ('Just "emojis") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [T]) :*: S1 ('MetaSel ('Just "allow_p2p") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)))))) :+: (C1 ('MetaCons "CallStateHangingUp" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "CallStateDiscarded" 'PrefixI 'True) (S1 ('MetaSel ('Just "reason") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CallDiscardReason) :*: (S1 ('MetaSel ('Just "need_rating") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "need_debug_information") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))) :+: C1 ('MetaCons "CallStateError" 'PrefixI 'True) (S1 ('MetaSel ('Just "error") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Error)))))

data CallProblem Source #

Describes the exact type of a problem with a call

Constructors

CallProblemEcho

The user heard their own voice

CallProblemNoise

The user heard background noise

CallProblemInterruptions

The other side kept disappearing

CallProblemDistortedSpeech

The speech was distorted

CallProblemSilentLocal

The user couldn't hear the other side

CallProblemSilentRemote

The other side couldn't hear the user

CallProblemDropped

The call ended unexpectedly

Instances

Instances details
Eq CallProblem Source # 
Instance details

Defined in TDLib.Generated.Types

Show CallProblem Source # 
Instance details

Defined in TDLib.Generated.Types

Generic CallProblem Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep CallProblem :: Type -> Type #

ToJSON CallProblem Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON CallProblem Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep CallProblem Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep CallProblem = D1 ('MetaData "CallProblem" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) ((C1 ('MetaCons "CallProblemEcho" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "CallProblemNoise" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "CallProblemInterruptions" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "CallProblemDistortedSpeech" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "CallProblemSilentLocal" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "CallProblemSilentRemote" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "CallProblemDropped" 'PrefixI 'False) (U1 :: Type -> Type))))

data Call Source #

Constructors

Call

Describes a call

Fields

Instances

Instances details
Eq Call Source # 
Instance details

Defined in TDLib.Generated.Types

Methods

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

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

Show Call Source # 
Instance details

Defined in TDLib.Generated.Types

Methods

showsPrec :: Int -> Call -> ShowS #

show :: Call -> String #

showList :: [Call] -> ShowS #

Generic Call Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep Call :: Type -> Type #

Methods

from :: Call -> Rep Call x #

to :: Rep Call x -> Call #

ToJSON Call Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON Call Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep Call Source # 
Instance details

Defined in TDLib.Generated.Types

data PhoneNumberAuthenticationSettings Source #

Constructors

PhoneNumberAuthenticationSettings

Contains settings for the authentication of the user's phone number

Fields

Instances

Instances details
Eq PhoneNumberAuthenticationSettings Source # 
Instance details

Defined in TDLib.Generated.Types

Show PhoneNumberAuthenticationSettings Source # 
Instance details

Defined in TDLib.Generated.Types

Generic PhoneNumberAuthenticationSettings Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep PhoneNumberAuthenticationSettings :: Type -> Type #

ToJSON PhoneNumberAuthenticationSettings Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON PhoneNumberAuthenticationSettings Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep PhoneNumberAuthenticationSettings Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep PhoneNumberAuthenticationSettings = D1 ('MetaData "PhoneNumberAuthenticationSettings" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "PhoneNumberAuthenticationSettings" 'PrefixI 'True) (S1 ('MetaSel ('Just "allow_flash_call") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "is_current_phone_number") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "allow_sms_retriever_api") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))))

data Animations Source #

Constructors

Animations

Represents a list of animations

Fields

Instances

Instances details
Eq Animations Source # 
Instance details

Defined in TDLib.Generated.Types

Show Animations Source # 
Instance details

Defined in TDLib.Generated.Types

Generic Animations Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep Animations :: Type -> Type #

ToJSON Animations Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON Animations Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep Animations Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep Animations = D1 ('MetaData "Animations" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "Animations" 'PrefixI 'True) (S1 ('MetaSel ('Just "animations") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Animation])))

data ImportedContacts Source #

Constructors

ImportedContacts

Represents the result of an ImportContacts request

Fields

  • user_ids :: [I32]

    User identifiers of the imported contacts in the same order as they were specified in the request; 0 if the contact is not yet a registered user

  • importer_count :: [I32]

    The number of users that imported the corresponding contact; 0 for already registered users or if unavailable

Instances

Instances details
Eq ImportedContacts Source # 
Instance details

Defined in TDLib.Generated.Types

Show ImportedContacts Source # 
Instance details

Defined in TDLib.Generated.Types

Generic ImportedContacts Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep ImportedContacts :: Type -> Type #

ToJSON ImportedContacts Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON ImportedContacts Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep ImportedContacts Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep ImportedContacts = D1 ('MetaData "ImportedContacts" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "ImportedContacts" 'PrefixI 'True) (S1 ('MetaSel ('Just "user_ids") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [I32]) :*: S1 ('MetaSel ('Just "importer_count") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [I32])))

data HttpUrl Source #

Constructors

HttpUrl

Contains an HTTP URL

Fields

Instances

Instances details
Eq HttpUrl Source # 
Instance details

Defined in TDLib.Generated.Types

Methods

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

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

Show HttpUrl Source # 
Instance details

Defined in TDLib.Generated.Types

Generic HttpUrl Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep HttpUrl :: Type -> Type #

Methods

from :: HttpUrl -> Rep HttpUrl x #

to :: Rep HttpUrl x -> HttpUrl #

ToJSON HttpUrl Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON HttpUrl Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep HttpUrl Source # 
Instance details

Defined in TDLib.Generated.Types

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

data InputInlineQueryResult Source #

Represents a single result of an inline query; for bots only

Constructors

InputInlineQueryResultAnimation

Represents a link to an animated GIF or an animated (i.e. without sound) H.264/MPEG-4 AVC video

Fields

  • id :: T

    Unique identifier of the query result

  • title :: T

    Title of the query result

  • thumbnail_url :: T

    URL of the result thumbnail (JPEG, GIF, or MPEG4), if it exists

  • thumbnail_mime_type :: T

    MIME type of the video thumbnail. If non-empty, must be one of "imagejpeg", "imagegif" and "video/mp4"

  • video_url :: T

    The URL of the video file (file size must not exceed 1MB)

  • video_mime_type :: T

    MIME type of the video file. Must be one of "imagegif" and "videomp4"

  • video_duration :: I32

    Duration of the video, in seconds

  • video_width :: I32

    Width of the video

  • video_height :: I32

    Height of the video

  • reply_markup :: ReplyMarkup

    The message reply markup. Must be of type replyMarkupInlineKeyboard or null

  • input_message_content :: InputMessageContent

    The content of the message to be sent. Must be one of the following types: InputMessageText, InputMessageAnimation, InputMessageLocation, InputMessageVenue or InputMessageContact

InputInlineQueryResultArticle

Represents a link to an article or web page

Fields

InputInlineQueryResultAudio

Represents a link to an MP3 audio file

Fields

InputInlineQueryResultContact

Represents a user contact

Fields

InputInlineQueryResultDocument

Represents a link to a file

Fields

InputInlineQueryResultGame

Represents a game

Fields

InputInlineQueryResultLocation

Represents a point on the map

Fields

InputInlineQueryResultPhoto

Represents link to a JPEG image

Fields

  • id :: T

    Unique identifier of the query result

  • title :: T

    Title of the query result

  • description :: T

    Represents a link to an article or web page

  • thumbnail_url :: T

    URL of the result thumbnail (JPEG, GIF, or MPEG4), if it exists

  • photo_url :: T

    The URL of the JPEG photo (photo size must not exceed 5MB)

  • photo_width :: I32

    Width of the photo

  • photo_height :: I32

    Height of the photo

  • reply_markup :: ReplyMarkup

    The message reply markup. Must be of type replyMarkupInlineKeyboard or null

  • input_message_content :: InputMessageContent

    The content of the message to be sent. Must be one of the following types: InputMessageText, InputMessageAnimation, InputMessageLocation, InputMessageVenue or InputMessageContact

InputInlineQueryResultSticker

Represents a link to a WEBP or TGS sticker

Fields

  • id :: T

    Unique identifier of the query result

  • thumbnail_url :: T

    URL of the result thumbnail (JPEG, GIF, or MPEG4), if it exists

  • sticker_url :: T

    The URL of the WEBP or TGS sticker (sticker file size must not exceed 5MB)

  • sticker_width :: I32

    Width of the sticker

  • sticker_height :: I32

    Height of the sticker

  • reply_markup :: ReplyMarkup

    The message reply markup. Must be of type replyMarkupInlineKeyboard or null

  • input_message_content :: InputMessageContent

    The content of the message to be sent. Must be one of the following types: InputMessageText, InputMessageAnimation, InputMessageLocation, InputMessageVenue or InputMessageContact

InputInlineQueryResultVenue

Represents information about a venue

Fields

InputInlineQueryResultVideo

Represents a link to a page containing an embedded video player or a video file

Fields

  • id :: T

    Unique identifier of the query result

  • title :: T

    Title of the query result

  • description :: T

    Represents a link to an article or web page

  • thumbnail_url :: T

    URL of the result thumbnail (JPEG, GIF, or MPEG4), if it exists

  • video_url :: T

    The URL of the video file (file size must not exceed 1MB)

  • mime_type :: T

    MIME type of the file content; only "applicationpdf" and "applicationzip" are currently allowed

  • video_width :: I32

    Width of the video

  • video_height :: I32

    Height of the video

  • video_duration :: I32

    Duration of the video, in seconds

  • reply_markup :: ReplyMarkup

    The message reply markup. Must be of type replyMarkupInlineKeyboard or null

  • input_message_content :: InputMessageContent

    The content of the message to be sent. Must be one of the following types: InputMessageText, InputMessageAnimation, InputMessageLocation, InputMessageVenue or InputMessageContact

InputInlineQueryResultVoiceNote

Represents a link to an opus-encoded audio file within an OGG container, single channel audio

Fields

Instances

Instances details
Eq InputInlineQueryResult Source # 
Instance details

Defined in TDLib.Generated.Types

Show InputInlineQueryResult Source # 
Instance details

Defined in TDLib.Generated.Types

Generic InputInlineQueryResult Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep InputInlineQueryResult :: Type -> Type #

ToJSON InputInlineQueryResult Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON InputInlineQueryResult Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep InputInlineQueryResult Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep InputInlineQueryResult = D1 ('MetaData "InputInlineQueryResult" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (((C1 ('MetaCons "InputInlineQueryResultAnimation" 'PrefixI 'True) (((S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "title") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)) :*: (S1 ('MetaSel ('Just "thumbnail_url") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: (S1 ('MetaSel ('Just "thumbnail_mime_type") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "video_url") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)))) :*: ((S1 ('MetaSel ('Just "video_mime_type") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: (S1 ('MetaSel ('Just "video_duration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "video_width") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32))) :*: (S1 ('MetaSel ('Just "video_height") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: (S1 ('MetaSel ('Just "reply_markup") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ReplyMarkup) :*: S1 ('MetaSel ('Just "input_message_content") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 InputMessageContent))))) :+: (C1 ('MetaCons "InputInlineQueryResultArticle" 'PrefixI 'True) (((S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "url") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)) :*: (S1 ('MetaSel ('Just "hide_url") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "title") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)))) :*: ((S1 ('MetaSel ('Just "thumbnail_url") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "thumbnail_width") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)) :*: (S1 ('MetaSel ('Just "thumbnail_height") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: (S1 ('MetaSel ('Just "reply_markup") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ReplyMarkup) :*: S1 ('MetaSel ('Just "input_message_content") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 InputMessageContent))))) :+: C1 ('MetaCons "InputInlineQueryResultAudio" 'PrefixI 'True) ((S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: (S1 ('MetaSel ('Just "title") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "performer") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T))) :*: ((S1 ('MetaSel ('Just "audio_url") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "audio_duration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)) :*: (S1 ('MetaSel ('Just "reply_markup") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ReplyMarkup) :*: S1 ('MetaSel ('Just "input_message_content") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 InputMessageContent)))))) :+: (C1 ('MetaCons "InputInlineQueryResultContact" 'PrefixI 'True) ((S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: (S1 ('MetaSel ('Just "contact") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Contact) :*: S1 ('MetaSel ('Just "thumbnail_url") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T))) :*: ((S1 ('MetaSel ('Just "thumbnail_width") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "thumbnail_height") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)) :*: (S1 ('MetaSel ('Just "reply_markup") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ReplyMarkup) :*: S1 ('MetaSel ('Just "input_message_content") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 InputMessageContent)))) :+: (C1 ('MetaCons "InputInlineQueryResultDocument" 'PrefixI 'True) (((S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "title") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)) :*: (S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: (S1 ('MetaSel ('Just "document_url") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "mime_type") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)))) :*: ((S1 ('MetaSel ('Just "thumbnail_url") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "thumbnail_width") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)) :*: (S1 ('MetaSel ('Just "thumbnail_height") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: (S1 ('MetaSel ('Just "reply_markup") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ReplyMarkup) :*: S1 ('MetaSel ('Just "input_message_content") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 InputMessageContent))))) :+: C1 ('MetaCons "InputInlineQueryResultGame" 'PrefixI 'True) (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: (S1 ('MetaSel ('Just "game_short_name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "reply_markup") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ReplyMarkup)))))) :+: ((C1 ('MetaCons "InputInlineQueryResultLocation" 'PrefixI 'True) (((S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "location") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Location)) :*: (S1 ('MetaSel ('Just "live_period") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "title") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T))) :*: ((S1 ('MetaSel ('Just "thumbnail_url") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "thumbnail_width") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)) :*: (S1 ('MetaSel ('Just "thumbnail_height") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: (S1 ('MetaSel ('Just "reply_markup") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ReplyMarkup) :*: S1 ('MetaSel ('Just "input_message_content") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 InputMessageContent))))) :+: (C1 ('MetaCons "InputInlineQueryResultPhoto" 'PrefixI 'True) (((S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "title") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)) :*: (S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "thumbnail_url") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T))) :*: ((S1 ('MetaSel ('Just "photo_url") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "photo_width") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)) :*: (S1 ('MetaSel ('Just "photo_height") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: (S1 ('MetaSel ('Just "reply_markup") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ReplyMarkup) :*: S1 ('MetaSel ('Just "input_message_content") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 InputMessageContent))))) :+: C1 ('MetaCons "InputInlineQueryResultSticker" 'PrefixI 'True) ((S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: (S1 ('MetaSel ('Just "thumbnail_url") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "sticker_url") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T))) :*: ((S1 ('MetaSel ('Just "sticker_width") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "sticker_height") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)) :*: (S1 ('MetaSel ('Just "reply_markup") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ReplyMarkup) :*: S1 ('MetaSel ('Just "input_message_content") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 InputMessageContent)))))) :+: (C1 ('MetaCons "InputInlineQueryResultVenue" 'PrefixI 'True) ((S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: (S1 ('MetaSel ('Just "venue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Venue) :*: S1 ('MetaSel ('Just "thumbnail_url") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T))) :*: ((S1 ('MetaSel ('Just "thumbnail_width") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "thumbnail_height") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)) :*: (S1 ('MetaSel ('Just "reply_markup") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ReplyMarkup) :*: S1 ('MetaSel ('Just "input_message_content") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 InputMessageContent)))) :+: (C1 ('MetaCons "InputInlineQueryResultVideo" 'PrefixI 'True) (((S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "title") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)) :*: (S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: (S1 ('MetaSel ('Just "thumbnail_url") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "video_url") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)))) :*: ((S1 ('MetaSel ('Just "mime_type") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: (S1 ('MetaSel ('Just "video_width") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "video_height") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32))) :*: (S1 ('MetaSel ('Just "video_duration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: (S1 ('MetaSel ('Just "reply_markup") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ReplyMarkup) :*: S1 ('MetaSel ('Just "input_message_content") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 InputMessageContent))))) :+: C1 ('MetaCons "InputInlineQueryResultVoiceNote" 'PrefixI 'True) ((S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: (S1 ('MetaSel ('Just "title") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "voice_note_url") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T))) :*: (S1 ('MetaSel ('Just "voice_note_duration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: (S1 ('MetaSel ('Just "reply_markup") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ReplyMarkup) :*: S1 ('MetaSel ('Just "input_message_content") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 InputMessageContent))))))))

data InlineQueryResult Source #

Represents a single result of an inline query

Constructors

InlineQueryResultArticle

Represents a link to an article or web page

Fields

  • id :: T

    Unique identifier of the query result

  • url :: T

    URL of the result, if it exists

  • hide_url :: Bool

    True, if the URL must be not shown

  • title :: T

    Title of the result

  • description :: T

    Represents a link to an article or web page

  • thumbnail :: PhotoSize

    Result thumbnail; may be null

InlineQueryResultContact

Represents a user contact

Fields

InlineQueryResultLocation

Represents a point on the map

Fields

InlineQueryResultVenue

Represents information about a venue

Fields

InlineQueryResultGame

Represents information about a game

Fields

  • id :: T

    Unique identifier of the query result

  • game :: Game

    Game result

InlineQueryResultAnimation

Represents an animation file

Fields

InlineQueryResultAudio

Represents an audio file

Fields

  • id :: T

    Unique identifier of the query result

  • audio :: Audio

    Audio file

InlineQueryResultDocument

Represents a document

Fields

InlineQueryResultPhoto

Represents a photo

Fields

InlineQueryResultSticker

Represents a sticker

Fields

InlineQueryResultVideo

Represents a video

Fields

InlineQueryResultVoiceNote

Represents a voice note

Fields

Instances

Instances details
Eq InlineQueryResult Source # 
Instance details

Defined in TDLib.Generated.Types

Show InlineQueryResult Source # 
Instance details

Defined in TDLib.Generated.Types

Generic InlineQueryResult Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep InlineQueryResult :: Type -> Type #

ToJSON InlineQueryResult Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON InlineQueryResult Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep InlineQueryResult Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep InlineQueryResult = D1 ('MetaData "InlineQueryResult" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (((C1 ('MetaCons "InlineQueryResultArticle" 'PrefixI 'True) ((S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: (S1 ('MetaSel ('Just "url") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "hide_url") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))) :*: (S1 ('MetaSel ('Just "title") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: (S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "thumbnail") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PhotoSize)))) :+: (C1 ('MetaCons "InlineQueryResultContact" 'PrefixI 'True) (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: (S1 ('MetaSel ('Just "contact") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Contact) :*: S1 ('MetaSel ('Just "thumbnail") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PhotoSize))) :+: C1 ('MetaCons "InlineQueryResultLocation" 'PrefixI 'True) ((S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "location") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Location)) :*: (S1 ('MetaSel ('Just "title") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "thumbnail") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PhotoSize))))) :+: (C1 ('MetaCons "InlineQueryResultVenue" 'PrefixI 'True) (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: (S1 ('MetaSel ('Just "venue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Venue) :*: S1 ('MetaSel ('Just "thumbnail") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PhotoSize))) :+: (C1 ('MetaCons "InlineQueryResultGame" 'PrefixI 'True) (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "game") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Game)) :+: C1 ('MetaCons "InlineQueryResultAnimation" 'PrefixI 'True) (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: (S1 ('MetaSel ('Just "animation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Animation) :*: S1 ('MetaSel ('Just "title") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)))))) :+: ((C1 ('MetaCons "InlineQueryResultAudio" 'PrefixI 'True) (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "audio") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Audio)) :+: (C1 ('MetaCons "InlineQueryResultDocument" 'PrefixI 'True) ((S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "document") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Document)) :*: (S1 ('MetaSel ('Just "title") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T))) :+: C1 ('MetaCons "InlineQueryResultPhoto" 'PrefixI 'True) ((S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "photo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Photo)) :*: (S1 ('MetaSel ('Just "title") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T))))) :+: (C1 ('MetaCons "InlineQueryResultSticker" 'PrefixI 'True) (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "sticker") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Sticker)) :+: (C1 ('MetaCons "InlineQueryResultVideo" 'PrefixI 'True) ((S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "video") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Video)) :*: (S1 ('MetaSel ('Just "title") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T))) :+: C1 ('MetaCons "InlineQueryResultVoiceNote" 'PrefixI 'True) (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: (S1 ('MetaSel ('Just "voice_note") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 VoiceNote) :*: S1 ('MetaSel ('Just "title") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)))))))

data InlineQueryResults Source #

Constructors

InlineQueryResults

Represents the results of the inline query. Use sendInlineQueryResultMessage to send the result of the query

Fields

Instances

Instances details
Eq InlineQueryResults Source # 
Instance details

Defined in TDLib.Generated.Types

Show InlineQueryResults Source # 
Instance details

Defined in TDLib.Generated.Types

Generic InlineQueryResults Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep InlineQueryResults :: Type -> Type #

ToJSON InlineQueryResults Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON InlineQueryResults Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep InlineQueryResults Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep InlineQueryResults = D1 ('MetaData "InlineQueryResults" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "InlineQueryResults" 'PrefixI 'True) ((S1 ('MetaSel ('Just "inline_query_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I64) :*: S1 ('MetaSel ('Just "next_offset") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)) :*: (S1 ('MetaSel ('Just "results") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [InlineQueryResult]) :*: (S1 ('MetaSel ('Just "switch_pm_text") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "switch_pm_parameter") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)))))

data CallbackQueryPayload Source #

Represents a payload of a callback query

Constructors

CallbackQueryPayloadData

The payload from a general callback button

Fields

CallbackQueryPayloadGame

The payload from a game callback button

Fields

  • game_short_name :: T

    A short name of the game that was attached to the callback button

Instances

Instances details
Eq CallbackQueryPayload Source # 
Instance details

Defined in TDLib.Generated.Types

Show CallbackQueryPayload Source # 
Instance details

Defined in TDLib.Generated.Types

Generic CallbackQueryPayload Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep CallbackQueryPayload :: Type -> Type #

ToJSON CallbackQueryPayload Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON CallbackQueryPayload Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep CallbackQueryPayload Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep CallbackQueryPayload = D1 ('MetaData "CallbackQueryPayload" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "CallbackQueryPayloadData" 'PrefixI 'True) (S1 ('MetaSel ('Just "data_") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString64)) :+: C1 ('MetaCons "CallbackQueryPayloadGame" 'PrefixI 'True) (S1 ('MetaSel ('Just "game_short_name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)))

data CallbackQueryAnswer Source #

Constructors

CallbackQueryAnswer

Contains a bot's answer to a callback query

Fields

  • text :: T

    Text of the answer

  • show_alert :: Bool

    True, if an alert should be shown to the user instead of a toast notification

  • url :: T

    URL to be opened

Instances

Instances details
Eq CallbackQueryAnswer Source # 
Instance details

Defined in TDLib.Generated.Types

Show CallbackQueryAnswer Source # 
Instance details

Defined in TDLib.Generated.Types

Generic CallbackQueryAnswer Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep CallbackQueryAnswer :: Type -> Type #

ToJSON CallbackQueryAnswer Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON CallbackQueryAnswer Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep CallbackQueryAnswer Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep CallbackQueryAnswer = D1 ('MetaData "CallbackQueryAnswer" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "CallbackQueryAnswer" 'PrefixI 'True) (S1 ('MetaSel ('Just "text") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: (S1 ('MetaSel ('Just "show_alert") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "url") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T))))

data CustomRequestResult Source #

Constructors

CustomRequestResult

Contains the result of a custom request

Fields

  • result :: T

    A JSON-serialized result

Instances

Instances details
Eq CustomRequestResult Source # 
Instance details

Defined in TDLib.Generated.Types

Show CustomRequestResult Source # 
Instance details

Defined in TDLib.Generated.Types

Generic CustomRequestResult Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep CustomRequestResult :: Type -> Type #

ToJSON CustomRequestResult Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON CustomRequestResult Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep CustomRequestResult Source # 
Instance details

Defined in TDLib.Generated.Types

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

data GameHighScore Source #

Constructors

GameHighScore

Contains one row of the game high score table

Fields

Instances

Instances details
Eq GameHighScore Source # 
Instance details

Defined in TDLib.Generated.Types

Show GameHighScore Source # 
Instance details

Defined in TDLib.Generated.Types

Generic GameHighScore Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep GameHighScore :: Type -> Type #

ToJSON GameHighScore Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON GameHighScore Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep GameHighScore Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep GameHighScore = D1 ('MetaData "GameHighScore" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "GameHighScore" 'PrefixI 'True) (S1 ('MetaSel ('Just "position") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: (S1 ('MetaSel ('Just "user_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "score") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32))))

data GameHighScores Source #

Constructors

GameHighScores

Contains a list of game high scores

Fields

Instances

Instances details
Eq GameHighScores Source # 
Instance details

Defined in TDLib.Generated.Types

Show GameHighScores Source # 
Instance details

Defined in TDLib.Generated.Types

Generic GameHighScores Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep GameHighScores :: Type -> Type #

ToJSON GameHighScores Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON GameHighScores Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep GameHighScores Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep GameHighScores = D1 ('MetaData "GameHighScores" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "GameHighScores" 'PrefixI 'True) (S1 ('MetaSel ('Just "scores") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [GameHighScore])))

data ChatEventAction Source #

Represents a chat event

Constructors

ChatEventMessageEdited

A message was edited

Fields

ChatEventMessageDeleted

A message was deleted

Fields

ChatEventPollStopped

A poll in a message was stopped

Fields

ChatEventMessagePinned

A message was pinned

Fields

ChatEventMessageUnpinned

A message was unpinned

ChatEventMemberJoined

A new member joined the chat

ChatEventMemberLeft

A member left the chat

ChatEventMemberInvited

A new chat member was invited

Fields

ChatEventMemberPromoted

A chat member has gained/lost administrator status, or the list of their administrator privileges has changed

Fields

ChatEventMemberRestricted

A chat member was restrictedunrestricted or bannedunbanned, or the list of their restrictions has changed

Fields

ChatEventTitleChanged

The chat title was changed

Fields

ChatEventPermissionsChanged

The chat permissions was changed

Fields

ChatEventDescriptionChanged

The chat description was changed

Fields

ChatEventUsernameChanged

The chat username was changed

Fields

ChatEventPhotoChanged

The chat photo was changed

Fields

ChatEventInvitesToggled

The can_invite_users permission of a supergroup chat was toggled

Fields

ChatEventLinkedChatChanged

The linked chat of a supergroup was changed

Fields

ChatEventSlowModeDelayChanged

The slow_mode_delay setting of a supergroup was changed

Fields

ChatEventSignMessagesToggled

The sign_messages setting of a channel was toggled

Fields

ChatEventStickerSetChanged

The supergroup sticker set was changed

Fields

ChatEventLocationChanged

The supergroup location was changed

Fields

ChatEventIsAllHistoryAvailableToggled

The is_all_history_available setting of a supergroup was toggled

Fields

Instances

Instances details
Eq ChatEventAction Source # 
Instance details

Defined in TDLib.Generated.Types

Show ChatEventAction Source # 
Instance details

Defined in TDLib.Generated.Types

Generic ChatEventAction Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep ChatEventAction :: Type -> Type #

ToJSON ChatEventAction Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON ChatEventAction Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep ChatEventAction Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep ChatEventAction = D1 ('MetaData "ChatEventAction" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) ((((C1 ('MetaCons "ChatEventMessageEdited" 'PrefixI 'True) (S1 ('MetaSel ('Just "old_message") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Message) :*: S1 ('MetaSel ('Just "new_message") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Message)) :+: C1 ('MetaCons "ChatEventMessageDeleted" 'PrefixI 'True) (S1 ('MetaSel ('Just "message") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Message))) :+: (C1 ('MetaCons "ChatEventPollStopped" 'PrefixI 'True) (S1 ('MetaSel ('Just "message") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Message)) :+: (C1 ('MetaCons "ChatEventMessagePinned" 'PrefixI 'True) (S1 ('MetaSel ('Just "message") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Message)) :+: C1 ('MetaCons "ChatEventMessageUnpinned" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "ChatEventMemberJoined" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ChatEventMemberLeft" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ChatEventMemberInvited" 'PrefixI 'True) (S1 ('MetaSel ('Just "user_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ChatMemberStatus)))) :+: (C1 ('MetaCons "ChatEventMemberPromoted" 'PrefixI 'True) (S1 ('MetaSel ('Just "user_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: (S1 ('MetaSel ('Just "old_status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ChatMemberStatus) :*: S1 ('MetaSel ('Just "new_status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ChatMemberStatus))) :+: (C1 ('MetaCons "ChatEventMemberRestricted" 'PrefixI 'True) (S1 ('MetaSel ('Just "user_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: (S1 ('MetaSel ('Just "old_status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ChatMemberStatus) :*: S1 ('MetaSel ('Just "new_status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ChatMemberStatus))) :+: C1 ('MetaCons "ChatEventTitleChanged" 'PrefixI 'True) (S1 ('MetaSel ('Just "old_title") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "new_title") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)))))) :+: (((C1 ('MetaCons "ChatEventPermissionsChanged" 'PrefixI 'True) (S1 ('MetaSel ('Just "old_permissions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ChatPermissions) :*: S1 ('MetaSel ('Just "new_permissions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ChatPermissions)) :+: C1 ('MetaCons "ChatEventDescriptionChanged" 'PrefixI 'True) (S1 ('MetaSel ('Just "old_description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "new_description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T))) :+: (C1 ('MetaCons "ChatEventUsernameChanged" 'PrefixI 'True) (S1 ('MetaSel ('Just "old_username") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "new_username") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)) :+: (C1 ('MetaCons "ChatEventPhotoChanged" 'PrefixI 'True) (S1 ('MetaSel ('Just "old_photo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Photo) :*: S1 ('MetaSel ('Just "new_photo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Photo)) :+: C1 ('MetaCons "ChatEventInvitesToggled" 'PrefixI 'True) (S1 ('MetaSel ('Just "can_invite_users") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))))) :+: ((C1 ('MetaCons "ChatEventLinkedChatChanged" 'PrefixI 'True) (S1 ('MetaSel ('Just "old_linked_chat_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: S1 ('MetaSel ('Just "new_linked_chat_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53)) :+: (C1 ('MetaCons "ChatEventSlowModeDelayChanged" 'PrefixI 'True) (S1 ('MetaSel ('Just "old_slow_mode_delay") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "new_slow_mode_delay") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)) :+: C1 ('MetaCons "ChatEventSignMessagesToggled" 'PrefixI 'True) (S1 ('MetaSel ('Just "sign_messages") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)))) :+: (C1 ('MetaCons "ChatEventStickerSetChanged" 'PrefixI 'True) (S1 ('MetaSel ('Just "old_sticker_set_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I64) :*: S1 ('MetaSel ('Just "new_sticker_set_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I64)) :+: (C1 ('MetaCons "ChatEventLocationChanged" 'PrefixI 'True) (S1 ('MetaSel ('Just "old_location") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ChatLocation) :*: S1 ('MetaSel ('Just "new_location") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ChatLocation)) :+: C1 ('MetaCons "ChatEventIsAllHistoryAvailableToggled" 'PrefixI 'True) (S1 ('MetaSel ('Just "is_all_history_available") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)))))))

data ChatEvent Source #

Constructors

ChatEvent

Represents a chat event

Fields

  • id :: I64

    Chat event identifier

  • date :: I32

    Point in time (Unix timestamp) when the event happened

  • user_id :: I32

    Identifier of the user who performed the action that triggered the event

  • action :: ChatEventAction

    Action performed by the user

Instances

Instances details
Eq ChatEvent Source # 
Instance details

Defined in TDLib.Generated.Types

Show ChatEvent Source # 
Instance details

Defined in TDLib.Generated.Types

Generic ChatEvent Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep ChatEvent :: Type -> Type #

ToJSON ChatEvent Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON ChatEvent Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep ChatEvent Source # 
Instance details

Defined in TDLib.Generated.Types

data ChatEvents Source #

Constructors

ChatEvents

Contains a list of chat events

Fields

Instances

Instances details
Eq ChatEvents Source # 
Instance details

Defined in TDLib.Generated.Types

Show ChatEvents Source # 
Instance details

Defined in TDLib.Generated.Types

Generic ChatEvents Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep ChatEvents :: Type -> Type #

ToJSON ChatEvents Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON ChatEvents Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep ChatEvents Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep ChatEvents = D1 ('MetaData "ChatEvents" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "ChatEvents" 'PrefixI 'True) (S1 ('MetaSel ('Just "events") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [ChatEvent])))

data ChatEventLogFilters Source #

Constructors

ChatEventLogFilters

Represents a set of filters used to obtain a chat event log

Fields

Instances

Instances details
Eq ChatEventLogFilters Source # 
Instance details

Defined in TDLib.Generated.Types

Show ChatEventLogFilters Source # 
Instance details

Defined in TDLib.Generated.Types

Generic ChatEventLogFilters Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep ChatEventLogFilters :: Type -> Type #

ToJSON ChatEventLogFilters Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON ChatEventLogFilters Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep ChatEventLogFilters Source # 
Instance details

Defined in TDLib.Generated.Types

data LanguagePackStringValue Source #

Represents the value of a string in a language pack

Constructors

LanguagePackStringValueOrdinary

An ordinary language pack string

Fields

LanguagePackStringValuePluralized

A language pack string which has different forms based on the number of some object it mentions. See https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html for more info

Fields

LanguagePackStringValueDeleted

A deleted language pack string, the value should be taken from the built-in english language pack

Instances

Instances details
Eq LanguagePackStringValue Source # 
Instance details

Defined in TDLib.Generated.Types

Show LanguagePackStringValue Source # 
Instance details

Defined in TDLib.Generated.Types

Generic LanguagePackStringValue Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep LanguagePackStringValue :: Type -> Type #

ToJSON LanguagePackStringValue Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON LanguagePackStringValue Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep LanguagePackStringValue Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep LanguagePackStringValue = D1 ('MetaData "LanguagePackStringValue" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "LanguagePackStringValueOrdinary" 'PrefixI 'True) (S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)) :+: (C1 ('MetaCons "LanguagePackStringValuePluralized" 'PrefixI 'True) ((S1 ('MetaSel ('Just "zero_value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: (S1 ('MetaSel ('Just "one_value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "two_value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T))) :*: (S1 ('MetaSel ('Just "few_value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: (S1 ('MetaSel ('Just "many_value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "other_value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)))) :+: C1 ('MetaCons "LanguagePackStringValueDeleted" 'PrefixI 'False) (U1 :: Type -> Type)))

data LanguagePackString Source #

Constructors

LanguagePackString

Represents one language pack string

Fields

Instances

Instances details
Eq LanguagePackString Source # 
Instance details

Defined in TDLib.Generated.Types

Show LanguagePackString Source # 
Instance details

Defined in TDLib.Generated.Types

Generic LanguagePackString Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep LanguagePackString :: Type -> Type #

ToJSON LanguagePackString Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON LanguagePackString Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep LanguagePackString Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep LanguagePackString = D1 ('MetaData "LanguagePackString" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "LanguagePackString" 'PrefixI 'True) (S1 ('MetaSel ('Just "key") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 LanguagePackStringValue)))

data LanguagePackStrings Source #

Constructors

LanguagePackStrings

Contains a list of language pack strings

Fields

Instances

Instances details
Eq LanguagePackStrings Source # 
Instance details

Defined in TDLib.Generated.Types

Show LanguagePackStrings Source # 
Instance details

Defined in TDLib.Generated.Types

Generic LanguagePackStrings Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep LanguagePackStrings :: Type -> Type #

ToJSON LanguagePackStrings Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON LanguagePackStrings Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep LanguagePackStrings Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep LanguagePackStrings = D1 ('MetaData "LanguagePackStrings" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "LanguagePackStrings" 'PrefixI 'True) (S1 ('MetaSel ('Just "strings") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [LanguagePackString])))

data LanguagePackInfo Source #

Constructors

LanguagePackInfo

Contains information about a language pack

Fields

Instances

Instances details
Eq LanguagePackInfo Source # 
Instance details

Defined in TDLib.Generated.Types

Show LanguagePackInfo Source # 
Instance details

Defined in TDLib.Generated.Types

Generic LanguagePackInfo Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep LanguagePackInfo :: Type -> Type #

ToJSON LanguagePackInfo Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON LanguagePackInfo Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep LanguagePackInfo Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep LanguagePackInfo = D1 ('MetaData "LanguagePackInfo" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "LanguagePackInfo" 'PrefixI 'True) (((S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: (S1 ('MetaSel ('Just "base_language_pack_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T))) :*: (S1 ('MetaSel ('Just "native_name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: (S1 ('MetaSel ('Just "plural_code") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "is_official") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)))) :*: ((S1 ('MetaSel ('Just "is_rtl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "is_beta") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "is_installed") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))) :*: ((S1 ('MetaSel ('Just "total_string_count") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "translated_string_count") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)) :*: (S1 ('MetaSel ('Just "local_string_count") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "translation_url") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T))))))

data LocalizationTargetInfo Source #

Constructors

LocalizationTargetInfo

Contains information about the current localization target

Fields

Instances

Instances details
Eq LocalizationTargetInfo Source # 
Instance details

Defined in TDLib.Generated.Types

Show LocalizationTargetInfo Source # 
Instance details

Defined in TDLib.Generated.Types

Generic LocalizationTargetInfo Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep LocalizationTargetInfo :: Type -> Type #

ToJSON LocalizationTargetInfo Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON LocalizationTargetInfo Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep LocalizationTargetInfo Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep LocalizationTargetInfo = D1 ('MetaData "LocalizationTargetInfo" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "LocalizationTargetInfo" 'PrefixI 'True) (S1 ('MetaSel ('Just "language_packs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [LanguagePackInfo])))

data DeviceToken Source #

Represents a data needed to subscribe for push notifications through registerDevice method. To use specific push notification service, you must specify the correct application platform and upload valid server authentication data at https://my.telegram.org

Constructors

DeviceTokenFirebaseCloudMessaging

A token for Firebase Cloud Messaging

Fields

  • token :: T

    Device registration token; may be empty to de-register a device

  • encrypt :: Bool

    True, if push notifications should be additionally encrypted

DeviceTokenApplePush

A token for Apple Push Notification service

Fields

DeviceTokenApplePushVoIP

A token for Apple Push Notification service VoIP notifications

Fields

DeviceTokenWindowsPush

A token for Windows Push Notification Services

Fields

  • access_token :: T

    The access token that will be used to send notifications; may be empty to de-register a device

DeviceTokenMicrosoftPush

A token for Microsoft Push Notification Service

Fields

  • channel_uri :: T

    Push notification channel URI; may be empty to de-register a device

DeviceTokenMicrosoftPushVoIP

A token for Microsoft Push Notification Service VoIP channel

Fields

  • channel_uri :: T

    Push notification channel URI; may be empty to de-register a device

DeviceTokenWebPush

A token for web Push API

Fields

  • endpoint :: T

    Absolute URL exposed by the push service where the application server can send push messages; may be empty to de-register a device

  • p256dh_base64url :: T

    Base64url-encoded P-256 elliptic curve Diffie-Hellman public key

  • auth_base64url :: T

    Base64url-encoded authentication secret

DeviceTokenSimplePush

A token for Simple Push API for Firefox OS

Fields

  • endpoint :: T

    Absolute URL exposed by the push service where the application server can send push messages; may be empty to de-register a device

DeviceTokenUbuntuPush

A token for Ubuntu Push Client service

Fields

  • token :: T

    Device registration token; may be empty to de-register a device

DeviceTokenBlackBerryPush

A token for BlackBerry Push Service

Fields

  • token :: T

    Device registration token; may be empty to de-register a device

DeviceTokenTizenPush

A token for Tizen Push Service

Fields

  • reg_id :: T

    Push service registration identifier; may be empty to de-register a device

Instances

Instances details
Eq DeviceToken Source # 
Instance details

Defined in TDLib.Generated.Types

Show DeviceToken Source # 
Instance details

Defined in TDLib.Generated.Types

Generic DeviceToken Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep DeviceToken :: Type -> Type #

ToJSON DeviceToken Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON DeviceToken Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep DeviceToken Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep DeviceToken = D1 ('MetaData "DeviceToken" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (((C1 ('MetaCons "DeviceTokenFirebaseCloudMessaging" 'PrefixI 'True) (S1 ('MetaSel ('Just "token") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "encrypt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :+: C1 ('MetaCons "DeviceTokenApplePush" 'PrefixI 'True) (S1 ('MetaSel ('Just "device_token") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "is_app_sandbox") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))) :+: (C1 ('MetaCons "DeviceTokenApplePushVoIP" 'PrefixI 'True) (S1 ('MetaSel ('Just "device_token") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: (S1 ('MetaSel ('Just "is_app_sandbox") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "encrypt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))) :+: (C1 ('MetaCons "DeviceTokenWindowsPush" 'PrefixI 'True) (S1 ('MetaSel ('Just "access_token") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)) :+: C1 ('MetaCons "DeviceTokenMicrosoftPush" 'PrefixI 'True) (S1 ('MetaSel ('Just "channel_uri") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T))))) :+: ((C1 ('MetaCons "DeviceTokenMicrosoftPushVoIP" 'PrefixI 'True) (S1 ('MetaSel ('Just "channel_uri") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)) :+: (C1 ('MetaCons "DeviceTokenWebPush" 'PrefixI 'True) (S1 ('MetaSel ('Just "endpoint") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: (S1 ('MetaSel ('Just "p256dh_base64url") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "auth_base64url") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T))) :+: C1 ('MetaCons "DeviceTokenSimplePush" 'PrefixI 'True) (S1 ('MetaSel ('Just "endpoint") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)))) :+: (C1 ('MetaCons "DeviceTokenUbuntuPush" 'PrefixI 'True) (S1 ('MetaSel ('Just "token") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)) :+: (C1 ('MetaCons "DeviceTokenBlackBerryPush" 'PrefixI 'True) (S1 ('MetaSel ('Just "token") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)) :+: C1 ('MetaCons "DeviceTokenTizenPush" 'PrefixI 'True) (S1 ('MetaSel ('Just "reg_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T))))))

data PushReceiverId Source #

Constructors

PushReceiverId

Contains a globally unique push receiver identifier, which can be used to identify which account has received a push notification

Fields

  • id :: I64

    The globally unique identifier of push notification subscription

Instances

Instances details
Eq PushReceiverId Source # 
Instance details

Defined in TDLib.Generated.Types

Show PushReceiverId Source # 
Instance details

Defined in TDLib.Generated.Types

Generic PushReceiverId Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep PushReceiverId :: Type -> Type #

ToJSON PushReceiverId Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON PushReceiverId Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep PushReceiverId Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep PushReceiverId = D1 ('MetaData "PushReceiverId" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "PushReceiverId" 'PrefixI 'True) (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I64)))

data BackgroundFill Source #

Describes a fill of a background

Constructors

BackgroundFillSolid

Describes a solid fill of a background

Fields

  • color :: I32

    A color of the background in the RGB24 format

BackgroundFillGradient

Describes a gradient fill of a background

Fields

  • top_color :: I32

    A top color of the background in the RGB24 format

  • bottom_color :: I32

    A bottom color of the background in the RGB24 format

  • rotation_angle :: I32

    Clockwise rotation angle of the gradient, in degrees; 0-359. Should be always divisible by 45

Instances

Instances details
Eq BackgroundFill Source # 
Instance details

Defined in TDLib.Generated.Types

Show BackgroundFill Source # 
Instance details

Defined in TDLib.Generated.Types

Generic BackgroundFill Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep BackgroundFill :: Type -> Type #

ToJSON BackgroundFill Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON BackgroundFill Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep BackgroundFill Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep BackgroundFill = D1 ('MetaData "BackgroundFill" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "BackgroundFillSolid" 'PrefixI 'True) (S1 ('MetaSel ('Just "color") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)) :+: C1 ('MetaCons "BackgroundFillGradient" 'PrefixI 'True) (S1 ('MetaSel ('Just "top_color") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: (S1 ('MetaSel ('Just "bottom_color") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "rotation_angle") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32))))

data BackgroundType Source #

Describes the type of a background

Constructors

BackgroundTypeWallpaper

A wallpaper in JPEG format

Fields

  • is_blurred :: Bool

    True, if the wallpaper must be downscaled to fit in 450x450 square and then box-blurred with radius 12

  • is_moving :: Bool

    True, if the background needs to be slightly moved when device is tilted

BackgroundTypePattern

A PNG or TGV (gzipped subset of SVG with MIME type "application/x-tgwallpattern") pattern to be combined with the background fill chosen by the user

Fields

  • fill :: BackgroundFill

    Description of the background fill

  • intensity :: I32

    Intensity of the pattern when it is shown above the filled background, 0-100

  • is_moving :: Bool

    True, if the background needs to be slightly moved when device is tilted

BackgroundTypeFill

A filled background

Fields

Instances

Instances details
Eq BackgroundType Source # 
Instance details

Defined in TDLib.Generated.Types

Show BackgroundType Source # 
Instance details

Defined in TDLib.Generated.Types

Generic BackgroundType Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep BackgroundType :: Type -> Type #

ToJSON BackgroundType Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON BackgroundType Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep BackgroundType Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep BackgroundType = D1 ('MetaData "BackgroundType" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "BackgroundTypeWallpaper" 'PrefixI 'True) (S1 ('MetaSel ('Just "is_blurred") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "is_moving") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :+: (C1 ('MetaCons "BackgroundTypePattern" 'PrefixI 'True) (S1 ('MetaSel ('Just "fill") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BackgroundFill) :*: (S1 ('MetaSel ('Just "intensity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "is_moving") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))) :+: C1 ('MetaCons "BackgroundTypeFill" 'PrefixI 'True) (S1 ('MetaSel ('Just "fill") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BackgroundFill))))

data Background Source #

Constructors

Background

Describes a chat background

Fields

  • id :: I64

    Unique background identifier

  • is_default :: Bool

    True, if this is one of default backgrounds

  • is_dark :: Bool

    True, if the background is dark and is recommended to be used with dark theme

  • name :: T

    Unique background name

  • document :: Document

    Document with the background; may be null. Null only for filled backgrounds

  • type_ :: BackgroundType

    Type of the background

Instances

Instances details
Eq Background Source # 
Instance details

Defined in TDLib.Generated.Types

Show Background Source # 
Instance details

Defined in TDLib.Generated.Types

Generic Background Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep Background :: Type -> Type #

ToJSON Background Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON Background Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep Background Source # 
Instance details

Defined in TDLib.Generated.Types

data Backgrounds Source #

Constructors

Backgrounds

Contains a list of backgrounds

Fields

Instances

Instances details
Eq Backgrounds Source # 
Instance details

Defined in TDLib.Generated.Types

Show Backgrounds Source # 
Instance details

Defined in TDLib.Generated.Types

Generic Backgrounds Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep Backgrounds :: Type -> Type #

ToJSON Backgrounds Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON Backgrounds Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep Backgrounds Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep Backgrounds = D1 ('MetaData "Backgrounds" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "Backgrounds" 'PrefixI 'True) (S1 ('MetaSel ('Just "backgrounds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Background])))

data InputBackground Source #

Contains information about background to set

Constructors

InputBackgroundLocal

A background from a local file

Fields

  • background :: InputFile

    Background file to use. Only inputFileLocal and inputFileGenerated are supported. The file must be in JPEG format for wallpapers and in PNG format for patterns

InputBackgroundRemote

A background from the server

Fields

Instances

Instances details
Eq InputBackground Source # 
Instance details

Defined in TDLib.Generated.Types

Show InputBackground Source # 
Instance details

Defined in TDLib.Generated.Types

Generic InputBackground Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep InputBackground :: Type -> Type #

ToJSON InputBackground Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON InputBackground Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep InputBackground Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep InputBackground = D1 ('MetaData "InputBackground" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "InputBackgroundLocal" 'PrefixI 'True) (S1 ('MetaSel ('Just "background") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 InputFile)) :+: C1 ('MetaCons "InputBackgroundRemote" 'PrefixI 'True) (S1 ('MetaSel ('Just "background_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I64)))

data Hashtags Source #

Constructors

Hashtags

Contains a list of hashtags

Fields

Instances

Instances details
Eq Hashtags Source # 
Instance details

Defined in TDLib.Generated.Types

Show Hashtags Source # 
Instance details

Defined in TDLib.Generated.Types

Generic Hashtags Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep Hashtags :: Type -> Type #

Methods

from :: Hashtags -> Rep Hashtags x #

to :: Rep Hashtags x -> Hashtags #

ToJSON Hashtags Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON Hashtags Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep Hashtags Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep Hashtags = D1 ('MetaData "Hashtags" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "Hashtags" 'PrefixI 'True) (S1 ('MetaSel ('Just "hashtags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [T])))

data CanTransferOwnershipResult Source #

Represents result of checking whether the current session can be used to transfer a chat ownership to another user

Constructors

CanTransferOwnershipResultOk

The session can be used

CanTransferOwnershipResultPasswordNeeded

The 2-step verification needs to be enabled first

CanTransferOwnershipResultPasswordTooFresh

The 2-step verification was enabled recently, user needs to wait

Fields

  • retry_after :: I32

    Time left before the session can be used to transfer ownership of a chat, in seconds

CanTransferOwnershipResultSessionTooFresh

The session was created recently, user needs to wait

Fields

  • retry_after :: I32

    Time left before the session can be used to transfer ownership of a chat, in seconds

Instances

Instances details
Eq CanTransferOwnershipResult Source # 
Instance details

Defined in TDLib.Generated.Types

Show CanTransferOwnershipResult Source # 
Instance details

Defined in TDLib.Generated.Types

Generic CanTransferOwnershipResult Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep CanTransferOwnershipResult :: Type -> Type #

ToJSON CanTransferOwnershipResult Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON CanTransferOwnershipResult Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep CanTransferOwnershipResult Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep CanTransferOwnershipResult = D1 ('MetaData "CanTransferOwnershipResult" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) ((C1 ('MetaCons "CanTransferOwnershipResultOk" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "CanTransferOwnershipResultPasswordNeeded" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "CanTransferOwnershipResultPasswordTooFresh" 'PrefixI 'True) (S1 ('MetaSel ('Just "retry_after") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)) :+: C1 ('MetaCons "CanTransferOwnershipResultSessionTooFresh" 'PrefixI 'True) (S1 ('MetaSel ('Just "retry_after") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32))))

data CheckChatUsernameResult Source #

Represents result of checking whether a username can be set for a chat

Constructors

CheckChatUsernameResultOk

The username can be set

CheckChatUsernameResultUsernameInvalid

The username is invalid

CheckChatUsernameResultUsernameOccupied

The username is occupied

CheckChatUsernameResultPublicChatsTooMuch

The user has too much chats with username, one of them should be made private first

CheckChatUsernameResultPublicGroupsUnavailable

The user can't be a member of a public supergroup

Instances

Instances details
Eq CheckChatUsernameResult Source # 
Instance details

Defined in TDLib.Generated.Types

Show CheckChatUsernameResult Source # 
Instance details

Defined in TDLib.Generated.Types

Generic CheckChatUsernameResult Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep CheckChatUsernameResult :: Type -> Type #

ToJSON CheckChatUsernameResult Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON CheckChatUsernameResult Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep CheckChatUsernameResult Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep CheckChatUsernameResult = D1 ('MetaData "CheckChatUsernameResult" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) ((C1 ('MetaCons "CheckChatUsernameResultOk" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "CheckChatUsernameResultUsernameInvalid" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "CheckChatUsernameResultUsernameOccupied" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "CheckChatUsernameResultPublicChatsTooMuch" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "CheckChatUsernameResultPublicGroupsUnavailable" 'PrefixI 'False) (U1 :: Type -> Type))))

data PushMessageContent Source #

Contains content of a push message notification

Constructors

PushMessageContentHidden

A general message with hidden content

Fields

  • is_pinned :: Bool

    True, if the message is a pinned message with the specified content

PushMessageContentAnimation

An animation message (GIF-style).

Fields

PushMessageContentAudio

An audio message

Fields

  • audio :: Audio

    Message content; may be null

  • is_pinned :: Bool

    True, if the message is a pinned message with the specified content

PushMessageContentContact

A message with a user contact

Fields

  • name :: T

    Contact's name

  • is_pinned :: Bool

    True, if the message is a pinned message with the specified content

PushMessageContentContactRegistered

A contact has registered with Telegram

PushMessageContentDocument

A document message (a general file)

Fields

PushMessageContentGame

A message with a game

Fields

  • title :: T

    Game title, empty for pinned game message

  • is_pinned :: Bool

    True, if the message is a pinned message with the specified content

PushMessageContentGameScore

A new high score was achieved in a game

Fields

  • title :: T

    Game title, empty for pinned game message

  • score :: I32

    New score, 0 for pinned message

  • is_pinned :: Bool

    True, if the message is a pinned message with the specified content

PushMessageContentInvoice

A message with an invoice from a bot

Fields

  • price :: T

    Product price

  • is_pinned :: Bool

    True, if the message is a pinned message with the specified content

PushMessageContentLocation

A message with a location

Fields

  • is_live :: Bool

    True, if the location is live

  • is_pinned :: Bool

    True, if the message is a pinned message with the specified content

PushMessageContentPhoto

A photo message

Fields

PushMessageContentPoll

A message with a poll

Fields

PushMessageContentScreenshotTaken

A screenshot of a message in the chat has been taken

PushMessageContentSticker

A message with a sticker

Fields

  • sticker :: Sticker

    Message content; may be null

  • emoji :: T

    Emoji corresponding to the sticker; may be empty

  • is_pinned :: Bool

    True, if the message is a pinned message with the specified content

PushMessageContentText

A text message

Fields

  • text :: T

    Message text

  • is_pinned :: Bool

    True, if the message is a pinned message with the specified content

PushMessageContentVideo

A video message

Fields

PushMessageContentVideoNote

A video note message

Fields

PushMessageContentVoiceNote

A voice note message

Fields

PushMessageContentBasicGroupChatCreate

A newly created basic group

PushMessageContentChatAddMembers

New chat members were invited to a group

Fields

PushMessageContentChatChangePhoto

A chat photo was edited

PushMessageContentChatChangeTitle

A chat title was edited

Fields

  • title :: T

    Game title, empty for pinned game message

PushMessageContentChatDeleteMember

A chat member was deleted

Fields

PushMessageContentChatJoinByLink

A new member joined the chat by invite link

PushMessageContentMessageForwards

A forwarded messages

Fields

PushMessageContentMediaAlbum

A media album

Fields

Instances

Instances details
Eq PushMessageContent Source # 
Instance details

Defined in TDLib.Generated.Types

Show PushMessageContent Source # 
Instance details

Defined in TDLib.Generated.Types

Generic PushMessageContent Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep PushMessageContent :: Type -> Type #

ToJSON PushMessageContent Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON PushMessageContent Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep PushMessageContent Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep PushMessageContent = D1 ('MetaData "PushMessageContent" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) ((((C1 ('MetaCons "PushMessageContentHidden" 'PrefixI 'True) (S1 ('MetaSel ('Just "is_pinned") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :+: (C1 ('MetaCons "PushMessageContentAnimation" 'PrefixI 'True) (S1 ('MetaSel ('Just "animation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Animation) :*: (S1 ('MetaSel ('Just "caption") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "is_pinned") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))) :+: C1 ('MetaCons "PushMessageContentAudio" 'PrefixI 'True) (S1 ('MetaSel ('Just "audio") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Audio) :*: S1 ('MetaSel ('Just "is_pinned") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)))) :+: (C1 ('MetaCons "PushMessageContentContact" 'PrefixI 'True) (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "is_pinned") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :+: (C1 ('MetaCons "PushMessageContentContactRegistered" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PushMessageContentDocument" 'PrefixI 'True) (S1 ('MetaSel ('Just "document") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Document) :*: S1 ('MetaSel ('Just "is_pinned") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))))) :+: ((C1 ('MetaCons "PushMessageContentGame" 'PrefixI 'True) (S1 ('MetaSel ('Just "title") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "is_pinned") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :+: (C1 ('MetaCons "PushMessageContentGameScore" 'PrefixI 'True) (S1 ('MetaSel ('Just "title") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: (S1 ('MetaSel ('Just "score") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "is_pinned") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))) :+: C1 ('MetaCons "PushMessageContentInvoice" 'PrefixI 'True) (S1 ('MetaSel ('Just "price") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "is_pinned") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)))) :+: ((C1 ('MetaCons "PushMessageContentLocation" 'PrefixI 'True) (S1 ('MetaSel ('Just "is_live") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "is_pinned") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :+: C1 ('MetaCons "PushMessageContentPhoto" 'PrefixI 'True) ((S1 ('MetaSel ('Just "photo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Photo) :*: S1 ('MetaSel ('Just "caption") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)) :*: (S1 ('MetaSel ('Just "is_secret") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "is_pinned") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)))) :+: (C1 ('MetaCons "PushMessageContentPoll" 'PrefixI 'True) (S1 ('MetaSel ('Just "question") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: (S1 ('MetaSel ('Just "is_regular") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "is_pinned") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))) :+: C1 ('MetaCons "PushMessageContentScreenshotTaken" 'PrefixI 'False) (U1 :: Type -> Type))))) :+: (((C1 ('MetaCons "PushMessageContentSticker" 'PrefixI 'True) (S1 ('MetaSel ('Just "sticker") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Sticker) :*: (S1 ('MetaSel ('Just "emoji") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "is_pinned") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))) :+: (C1 ('MetaCons "PushMessageContentText" 'PrefixI 'True) (S1 ('MetaSel ('Just "text") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "is_pinned") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :+: C1 ('MetaCons "PushMessageContentVideo" 'PrefixI 'True) ((S1 ('MetaSel ('Just "video") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Video) :*: S1 ('MetaSel ('Just "caption") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)) :*: (S1 ('MetaSel ('Just "is_secret") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "is_pinned") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))))) :+: (C1 ('MetaCons "PushMessageContentVideoNote" 'PrefixI 'True) (S1 ('MetaSel ('Just "video_note") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 VideoNote) :*: S1 ('MetaSel ('Just "is_pinned") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :+: (C1 ('MetaCons "PushMessageContentVoiceNote" 'PrefixI 'True) (S1 ('MetaSel ('Just "voice_note") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 VoiceNote) :*: S1 ('MetaSel ('Just "is_pinned") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :+: C1 ('MetaCons "PushMessageContentBasicGroupChatCreate" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: ((C1 ('MetaCons "PushMessageContentChatAddMembers" 'PrefixI 'True) (S1 ('MetaSel ('Just "member_name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: (S1 ('MetaSel ('Just "is_current_user") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "is_returned") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))) :+: (C1 ('MetaCons "PushMessageContentChatChangePhoto" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PushMessageContentChatChangeTitle" 'PrefixI 'True) (S1 ('MetaSel ('Just "title") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)))) :+: ((C1 ('MetaCons "PushMessageContentChatDeleteMember" 'PrefixI 'True) (S1 ('MetaSel ('Just "member_name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: (S1 ('MetaSel ('Just "is_current_user") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "is_left") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))) :+: C1 ('MetaCons "PushMessageContentChatJoinByLink" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "PushMessageContentMessageForwards" 'PrefixI 'True) (S1 ('MetaSel ('Just "total_count") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)) :+: C1 ('MetaCons "PushMessageContentMediaAlbum" 'PrefixI 'True) (S1 ('MetaSel ('Just "total_count") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: (S1 ('MetaSel ('Just "has_photos") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "has_videos") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))))))))

data NotificationType Source #

Contains detailed information about a notification

Constructors

NotificationTypeNewMessage

New message was received

Fields

NotificationTypeNewSecretChat

New secret chat was created

NotificationTypeNewCall

New call was received

Fields

NotificationTypeNewPushMessage

New message was received through a push notification

Fields

  • message_id :: I53

    The message identifier. The message will not be available in the chat history, but the ID can be used in viewMessages and as reply_to_message_id

  • sender_user_id :: I32

    Sender of the message; 0 if unknown. Corresponding user may be inaccessible

  • sender_name :: T

    Name of the sender; can be different from the name of the sender user

  • is_outgoing :: Bool

    True, if the message is outgoing

  • content :: PushMessageContent

    Push message content

Instances

Instances details
Eq NotificationType Source # 
Instance details

Defined in TDLib.Generated.Types

Show NotificationType Source # 
Instance details

Defined in TDLib.Generated.Types

Generic NotificationType Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep NotificationType :: Type -> Type #

ToJSON NotificationType Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON NotificationType Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep NotificationType Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep NotificationType = D1 ('MetaData "NotificationType" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) ((C1 ('MetaCons "NotificationTypeNewMessage" 'PrefixI 'True) (S1 ('MetaSel ('Just "message") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Message)) :+: C1 ('MetaCons "NotificationTypeNewSecretChat" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "NotificationTypeNewCall" 'PrefixI 'True) (S1 ('MetaSel ('Just "call_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)) :+: C1 ('MetaCons "NotificationTypeNewPushMessage" 'PrefixI 'True) ((S1 ('MetaSel ('Just "message_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: S1 ('MetaSel ('Just "sender_user_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)) :*: (S1 ('MetaSel ('Just "sender_name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: (S1 ('MetaSel ('Just "is_outgoing") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "content") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PushMessageContent))))))

data NotificationGroupType Source #

Describes the type of notifications in a notification group

Constructors

NotificationGroupTypeMessages

A group containing notifications of type notificationTypeNewMessage and notificationTypeNewPushMessage with ordinary unread messages

NotificationGroupTypeMentions

A group containing notifications of type notificationTypeNewMessage and notificationTypeNewPushMessage with unread mentions of the current user, replies to their messages, or a pinned message

NotificationGroupTypeSecretChat

A group containing a notification of type notificationTypeNewSecretChat

NotificationGroupTypeCalls

A group containing notifications of type notificationTypeNewCall

Instances

Instances details
Eq NotificationGroupType Source # 
Instance details

Defined in TDLib.Generated.Types

Show NotificationGroupType Source # 
Instance details

Defined in TDLib.Generated.Types

Generic NotificationGroupType Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep NotificationGroupType :: Type -> Type #

ToJSON NotificationGroupType Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON NotificationGroupType Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep NotificationGroupType Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep NotificationGroupType = D1 ('MetaData "NotificationGroupType" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) ((C1 ('MetaCons "NotificationGroupTypeMessages" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NotificationGroupTypeMentions" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "NotificationGroupTypeSecretChat" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NotificationGroupTypeCalls" 'PrefixI 'False) (U1 :: Type -> Type)))

data Notification Source #

Constructors

Notification

Contains information about a notification

Fields

Instances

Instances details
Eq Notification Source # 
Instance details

Defined in TDLib.Generated.Types

Show Notification Source # 
Instance details

Defined in TDLib.Generated.Types

Generic Notification Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep Notification :: Type -> Type #

ToJSON Notification Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON Notification Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep Notification Source # 
Instance details

Defined in TDLib.Generated.Types

data NotificationGroup Source #

Constructors

NotificationGroup

Describes a group of notifications

Fields

Instances

Instances details
Eq NotificationGroup Source # 
Instance details

Defined in TDLib.Generated.Types

Show NotificationGroup Source # 
Instance details

Defined in TDLib.Generated.Types

Generic NotificationGroup Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep NotificationGroup :: Type -> Type #

ToJSON NotificationGroup Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON NotificationGroup Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep NotificationGroup Source # 
Instance details

Defined in TDLib.Generated.Types

data OptionValue Source #

Represents the value of an option

Constructors

OptionValueBoolean

Represents a boolean option

Fields

OptionValueEmpty

Represents an unknown option or an option which has a default value

OptionValueInteger

Represents an integer option

Fields

OptionValueString

Represents a string option

Fields

  • value :: T

    The value of the option

Instances

Instances details
Eq OptionValue Source # 
Instance details

Defined in TDLib.Generated.Types

Show OptionValue Source # 
Instance details

Defined in TDLib.Generated.Types

Generic OptionValue Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep OptionValue :: Type -> Type #

ToJSON OptionValue Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON OptionValue Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep OptionValue Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep OptionValue = D1 ('MetaData "OptionValue" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) ((C1 ('MetaCons "OptionValueBoolean" 'PrefixI 'True) (S1 ('MetaSel ('Just "value_3") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :+: C1 ('MetaCons "OptionValueEmpty" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "OptionValueInteger" 'PrefixI 'True) (S1 ('MetaSel ('Just "value_2") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)) :+: C1 ('MetaCons "OptionValueString" 'PrefixI 'True) (S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T))))

data JsonObjectMember Source #

Constructors

JsonObjectMember

Represents one member of a JSON object

Fields

Instances

Instances details
Eq JsonObjectMember Source # 
Instance details

Defined in TDLib.Generated.Types

Show JsonObjectMember Source # 
Instance details

Defined in TDLib.Generated.Types

Generic JsonObjectMember Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep JsonObjectMember :: Type -> Type #

ToJSON JsonObjectMember Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON JsonObjectMember Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep JsonObjectMember Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep JsonObjectMember = D1 ('MetaData "JsonObjectMember" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "JsonObjectMember" 'PrefixI 'True) (S1 ('MetaSel ('Just "key") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 JsonValue)))

data JsonValue Source #

Represents a JSON value

Constructors

JsonValueNull

Represents a null JSON value

JsonValueBoolean

Represents a boolean JSON value

Fields

JsonValueNumber

Represents a numeric JSON value

Fields

JsonValueString

Represents a string JSON value

Fields

JsonValueArray

Represents a JSON array

Fields

JsonValueObject

Represents a JSON object

Fields

Instances

Instances details
Eq JsonValue Source # 
Instance details

Defined in TDLib.Generated.Types

Show JsonValue Source # 
Instance details

Defined in TDLib.Generated.Types

Generic JsonValue Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep JsonValue :: Type -> Type #

ToJSON JsonValue Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON JsonValue Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep JsonValue Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep JsonValue = D1 ('MetaData "JsonValue" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) ((C1 ('MetaCons "JsonValueNull" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "JsonValueBoolean" 'PrefixI 'True) (S1 ('MetaSel ('Just "value_3") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :+: C1 ('MetaCons "JsonValueNumber" 'PrefixI 'True) (S1 ('MetaSel ('Just "value_2") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double)))) :+: (C1 ('MetaCons "JsonValueString" 'PrefixI 'True) (S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)) :+: (C1 ('MetaCons "JsonValueArray" 'PrefixI 'True) (S1 ('MetaSel ('Just "values") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [JsonValue])) :+: C1 ('MetaCons "JsonValueObject" 'PrefixI 'True) (S1 ('MetaSel ('Just "members") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [JsonObjectMember])))))

data UserPrivacySettingRule Source #

Represents a single rule for managing privacy settings

Constructors

UserPrivacySettingRuleAllowAll

A rule to allow all users to do something

UserPrivacySettingRuleAllowContacts

A rule to allow all of a user's contacts to do something

UserPrivacySettingRuleAllowUsers

A rule to allow certain specified users to do something

Fields

  • user_ids :: [I32]

    The user identifiers, total number of users in all rules must not exceed 1000

UserPrivacySettingRuleAllowChatMembers

A rule to allow all members of certain specified basic groups and supergroups to doing something

Fields

  • chat_ids :: [I53]

    The chat identifiers, total number of chats in all rules must not exceed 20

UserPrivacySettingRuleRestrictAll

A rule to restrict all users from doing something

UserPrivacySettingRuleRestrictContacts

A rule to restrict all contacts of a user from doing something

UserPrivacySettingRuleRestrictUsers

A rule to restrict all specified users from doing something

Fields

  • user_ids :: [I32]

    The user identifiers, total number of users in all rules must not exceed 1000

UserPrivacySettingRuleRestrictChatMembers

A rule to restrict all members of specified basic groups and supergroups from doing something

Fields

  • chat_ids :: [I53]

    The chat identifiers, total number of chats in all rules must not exceed 20

Instances

Instances details
Eq UserPrivacySettingRule Source # 
Instance details

Defined in TDLib.Generated.Types

Show UserPrivacySettingRule Source # 
Instance details

Defined in TDLib.Generated.Types

Generic UserPrivacySettingRule Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep UserPrivacySettingRule :: Type -> Type #

ToJSON UserPrivacySettingRule Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON UserPrivacySettingRule Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep UserPrivacySettingRule Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep UserPrivacySettingRule = D1 ('MetaData "UserPrivacySettingRule" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (((C1 ('MetaCons "UserPrivacySettingRuleAllowAll" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "UserPrivacySettingRuleAllowContacts" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "UserPrivacySettingRuleAllowUsers" 'PrefixI 'True) (S1 ('MetaSel ('Just "user_ids") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [I32])) :+: C1 ('MetaCons "UserPrivacySettingRuleAllowChatMembers" 'PrefixI 'True) (S1 ('MetaSel ('Just "chat_ids") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [I53])))) :+: ((C1 ('MetaCons "UserPrivacySettingRuleRestrictAll" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "UserPrivacySettingRuleRestrictContacts" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "UserPrivacySettingRuleRestrictUsers" 'PrefixI 'True) (S1 ('MetaSel ('Just "user_ids") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [I32])) :+: C1 ('MetaCons "UserPrivacySettingRuleRestrictChatMembers" 'PrefixI 'True) (S1 ('MetaSel ('Just "chat_ids") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [I53])))))

data UserPrivacySettingRules Source #

Constructors

UserPrivacySettingRules

A list of privacy rules. Rules are matched in the specified order. The first matched rule defines the privacy setting for a given user. If no rule matches, the action is not allowed

Fields

Instances

Instances details
Eq UserPrivacySettingRules Source # 
Instance details

Defined in TDLib.Generated.Types

Show UserPrivacySettingRules Source # 
Instance details

Defined in TDLib.Generated.Types

Generic UserPrivacySettingRules Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep UserPrivacySettingRules :: Type -> Type #

ToJSON UserPrivacySettingRules Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON UserPrivacySettingRules Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep UserPrivacySettingRules Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep UserPrivacySettingRules = D1 ('MetaData "UserPrivacySettingRules" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "UserPrivacySettingRules" 'PrefixI 'True) (S1 ('MetaSel ('Just "rules") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [UserPrivacySettingRule])))

data UserPrivacySetting Source #

Describes available user privacy settings

Constructors

UserPrivacySettingShowStatus

A privacy setting for managing whether the user's online status is visible

UserPrivacySettingShowProfilePhoto

A privacy setting for managing whether the user's profile photo is visible

UserPrivacySettingShowLinkInForwardedMessages

A privacy setting for managing whether a link to the user's account is included in forwarded messages

UserPrivacySettingShowPhoneNumber

A privacy setting for managing whether the user's phone number is visible

UserPrivacySettingAllowChatInvites

A privacy setting for managing whether the user can be invited to chats

UserPrivacySettingAllowCalls

A privacy setting for managing whether the user can be called

UserPrivacySettingAllowPeerToPeerCalls

A privacy setting for managing whether peer-to-peer connections can be used for calls

UserPrivacySettingAllowFindingByPhoneNumber

A privacy setting for managing whether the user can be found by their phone number. Checked only if the phone number is not known to the other user. Can be set only to "Allow contacts" or "Allow all"

Instances

Instances details
Eq UserPrivacySetting Source # 
Instance details

Defined in TDLib.Generated.Types

Show UserPrivacySetting Source # 
Instance details

Defined in TDLib.Generated.Types

Generic UserPrivacySetting Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep UserPrivacySetting :: Type -> Type #

ToJSON UserPrivacySetting Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON UserPrivacySetting Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep UserPrivacySetting Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep UserPrivacySetting = D1 ('MetaData "UserPrivacySetting" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (((C1 ('MetaCons "UserPrivacySettingShowStatus" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "UserPrivacySettingShowProfilePhoto" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "UserPrivacySettingShowLinkInForwardedMessages" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "UserPrivacySettingShowPhoneNumber" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "UserPrivacySettingAllowChatInvites" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "UserPrivacySettingAllowCalls" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "UserPrivacySettingAllowPeerToPeerCalls" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "UserPrivacySettingAllowFindingByPhoneNumber" 'PrefixI 'False) (U1 :: Type -> Type))))

data AccountTtl Source #

Constructors

AccountTtl

Contains information about the period of inactivity after which the current user's account will automatically be deleted

Fields

  • days :: I32

    Number of days of inactivity before the account will be flagged for deletion; should range from 30-366 days

Instances

Instances details
Eq AccountTtl Source # 
Instance details

Defined in TDLib.Generated.Types

Show AccountTtl Source # 
Instance details

Defined in TDLib.Generated.Types

Generic AccountTtl Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep AccountTtl :: Type -> Type #

ToJSON AccountTtl Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON AccountTtl Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep AccountTtl Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep AccountTtl = D1 ('MetaData "AccountTtl" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "AccountTtl" 'PrefixI 'True) (S1 ('MetaSel ('Just "days") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)))

data Session Source #

Constructors

Session

Contains information about one session in a Telegram application used by the current user. Sessions should be shown to the user in the returned order

Fields

  • id :: I64

    Session identifier

  • is_current :: Bool

    True, if this session is the current session

  • is_password_pending :: Bool

    True, if a password is needed to complete authorization of the session

  • api_id :: I32

    Telegram API identifier, as provided by the application

  • application_name :: T

    Name of the application, as provided by the application

  • application_version :: T

    The version of the application, as provided by the application

  • is_official_application :: Bool

    True, if the application is an official application or uses the api_id of an official application

  • device_model :: T

    Model of the device the application has been run or is running on, as provided by the application

  • platform :: T

    Operating system the application has been run or is running on, as provided by the application

  • system_version :: T

    Version of the operating system the application has been run or is running on, as provided by the application

  • log_in_date :: I32

    Point in time (Unix timestamp) when the user has logged in

  • last_active_date :: I32

    Point in time (Unix timestamp) when the session was last used

  • ip :: T

    IP address from which the session was created, in human-readable format

  • country :: T

    A two-letter country code for the country from which the session was created, based on the IP address

  • region :: T

    Region code from which the session was created, based on the IP address

Instances

Instances details
Eq Session Source # 
Instance details

Defined in TDLib.Generated.Types

Methods

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

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

Show Session Source # 
Instance details

Defined in TDLib.Generated.Types

Generic Session Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep Session :: Type -> Type #

Methods

from :: Session -> Rep Session x #

to :: Rep Session x -> Session #

ToJSON Session Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON Session Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep Session Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep Session = D1 ('MetaData "Session" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "Session" 'PrefixI 'True) (((S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I64) :*: (S1 ('MetaSel ('Just "is_current") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "is_password_pending") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))) :*: ((S1 ('MetaSel ('Just "api_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "application_name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)) :*: (S1 ('MetaSel ('Just "application_version") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "is_official_application") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)))) :*: (((S1 ('MetaSel ('Just "device_model") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "platform") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)) :*: (S1 ('MetaSel ('Just "system_version") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "log_in_date") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32))) :*: ((S1 ('MetaSel ('Just "last_active_date") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "ip") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)) :*: (S1 ('MetaSel ('Just "country") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "region") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T))))))

data Sessions Source #

Constructors

Sessions

Contains a list of sessions

Fields

Instances

Instances details
Eq Sessions Source # 
Instance details

Defined in TDLib.Generated.Types

Show Sessions Source # 
Instance details

Defined in TDLib.Generated.Types

Generic Sessions Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep Sessions :: Type -> Type #

Methods

from :: Sessions -> Rep Sessions x #

to :: Rep Sessions x -> Sessions #

ToJSON Sessions Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON Sessions Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep Sessions Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep Sessions = D1 ('MetaData "Sessions" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "Sessions" 'PrefixI 'True) (S1 ('MetaSel ('Just "sessions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Session])))

data ConnectedWebsite Source #

Constructors

ConnectedWebsite

Contains information about one website the current user is logged in with Telegram

Fields

  • id :: I64

    Website identifier

  • domain_name :: T

    The domain name of the website

  • bot_user_id :: I32

    User identifier of a bot linked with the website

  • browser :: T

    The version of a browser used to log in

  • platform :: T

    Operating system the browser is running on

  • log_in_date :: I32

    Point in time (Unix timestamp) when the user was logged in

  • last_active_date :: I32

    Point in time (Unix timestamp) when obtained authorization was last used

  • ip :: T

    IP address from which the user was logged in, in human-readable format

  • location :: T

    Human-readable description of a country and a region, from which the user was logged in, based on the IP address

Instances

Instances details
Eq ConnectedWebsite Source # 
Instance details

Defined in TDLib.Generated.Types

Show ConnectedWebsite Source # 
Instance details

Defined in TDLib.Generated.Types

Generic ConnectedWebsite Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep ConnectedWebsite :: Type -> Type #

ToJSON ConnectedWebsite Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON ConnectedWebsite Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep ConnectedWebsite Source # 
Instance details

Defined in TDLib.Generated.Types

data ConnectedWebsites Source #

Constructors

ConnectedWebsites

Contains a list of websites the current user is logged in with Telegram

Fields

Instances

Instances details
Eq ConnectedWebsites Source # 
Instance details

Defined in TDLib.Generated.Types

Show ConnectedWebsites Source # 
Instance details

Defined in TDLib.Generated.Types

Generic ConnectedWebsites Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep ConnectedWebsites :: Type -> Type #

ToJSON ConnectedWebsites Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON ConnectedWebsites Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep ConnectedWebsites Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep ConnectedWebsites = D1 ('MetaData "ConnectedWebsites" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "ConnectedWebsites" 'PrefixI 'True) (S1 ('MetaSel ('Just "websites") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [ConnectedWebsite])))

data ChatReportReason Source #

Describes the reason why a chat is reported

Constructors

ChatReportReasonSpam

The chat contains spam messages

ChatReportReasonViolence

The chat promotes violence

ChatReportReasonPornography

The chat contains pornographic messages

ChatReportReasonChildAbuse

The chat has child abuse related content

ChatReportReasonCopyright

The chat contains copyrighted content

ChatReportReasonUnrelatedLocation

The location-based chat is unrelated to its stated location

ChatReportReasonCustom

A custom reason provided by the user

Fields

Instances

Instances details
Eq ChatReportReason Source # 
Instance details

Defined in TDLib.Generated.Types

Show ChatReportReason Source # 
Instance details

Defined in TDLib.Generated.Types

Generic ChatReportReason Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep ChatReportReason :: Type -> Type #

ToJSON ChatReportReason Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON ChatReportReason Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep ChatReportReason Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep ChatReportReason = D1 ('MetaData "ChatReportReason" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) ((C1 ('MetaCons "ChatReportReasonSpam" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ChatReportReasonViolence" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ChatReportReasonPornography" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "ChatReportReasonChildAbuse" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ChatReportReasonCopyright" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "ChatReportReasonUnrelatedLocation" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ChatReportReasonCustom" 'PrefixI 'True) (S1 ('MetaSel ('Just "text") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)))))

data PublicMessageLink Source #

Constructors

PublicMessageLink

Contains a public HTTPS link to a message in a supergroup or channel with a username

Fields

  • link :: T

    Message link

  • html :: T

    HTML-code for embedding the message

Instances

data MessageLinkInfo Source #

Constructors

MessageLinkInfo

Contains information about a link to a message in a chat

Fields

  • is_public :: Bool

    True, if the link is a public link for a message in a chat

  • chat_id :: I53

    If found, identifier of the chat to which the message belongs, 0 otherwise

  • message :: Message

    If found, the linked message; may be null

  • for_album :: Bool

    True, if the whole media album to which the message belongs is linked

Instances

Instances details
Eq MessageLinkInfo Source # 
Instance details

Defined in TDLib.Generated.Types

Show MessageLinkInfo Source # 
Instance details

Defined in TDLib.Generated.Types

Generic MessageLinkInfo Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep MessageLinkInfo :: Type -> Type #

ToJSON MessageLinkInfo Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON MessageLinkInfo Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep MessageLinkInfo Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep MessageLinkInfo = D1 ('MetaData "MessageLinkInfo" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "MessageLinkInfo" 'PrefixI 'True) ((S1 ('MetaSel ('Just "is_public") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "chat_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53)) :*: (S1 ('MetaSel ('Just "message") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Message) :*: S1 ('MetaSel ('Just "for_album") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))))

data FilePart Source #

Constructors

FilePart

Contains a part of a file

Fields

Instances

Instances details
Eq FilePart Source # 
Instance details

Defined in TDLib.Generated.Types

Show FilePart Source # 
Instance details

Defined in TDLib.Generated.Types

Generic FilePart Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep FilePart :: Type -> Type #

Methods

from :: FilePart -> Rep FilePart x #

to :: Rep FilePart x -> FilePart #

ToJSON FilePart Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON FilePart Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep FilePart Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep FilePart = D1 ('MetaData "FilePart" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "FilePart" 'PrefixI 'True) (S1 ('MetaSel ('Just "data_") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString64)))

data FileType Source #

Represents the type of a file

Constructors

FileTypeNone

The data is not a file

FileTypeAnimation

The file is an animation

FileTypeAudio

The file is an audio file

FileTypeDocument

The file is a document

FileTypePhoto

The file is a photo

FileTypeProfilePhoto

The file is a profile photo

FileTypeSecret

The file was sent to a secret chat (the file type is not known to the server)

FileTypeSecretThumbnail

The file is a thumbnail of a file from a secret chat

FileTypeSecure

The file is a file from Secure storage used for storing Telegram Passport files

FileTypeSticker

The file is a sticker

FileTypeThumbnail

The file is a thumbnail of another file

FileTypeUnknown

The file type is not yet known

FileTypeVideo

The file is a video

FileTypeVideoNote

The file is a video note

FileTypeVoiceNote

The file is a voice note

FileTypeWallpaper

The file is a wallpaper or a background pattern

Instances

Instances details
Eq FileType Source # 
Instance details

Defined in TDLib.Generated.Types

Show FileType Source # 
Instance details

Defined in TDLib.Generated.Types

Generic FileType Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep FileType :: Type -> Type #

Methods

from :: FileType -> Rep FileType x #

to :: Rep FileType x -> FileType #

ToJSON FileType Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON FileType Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep FileType Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep FileType = D1 ('MetaData "FileType" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) ((((C1 ('MetaCons "FileTypeNone" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "FileTypeAnimation" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "FileTypeAudio" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "FileTypeDocument" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "FileTypePhoto" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "FileTypeProfilePhoto" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "FileTypeSecret" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "FileTypeSecretThumbnail" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: (((C1 ('MetaCons "FileTypeSecure" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "FileTypeSticker" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "FileTypeThumbnail" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "FileTypeUnknown" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "FileTypeVideo" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "FileTypeVideoNote" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "FileTypeVoiceNote" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "FileTypeWallpaper" 'PrefixI 'False) (U1 :: Type -> Type)))))

data StorageStatisticsByFileType Source #

Constructors

StorageStatisticsByFileType

Contains the storage usage statistics for a specific file type

Fields

Instances

Instances details
Eq StorageStatisticsByFileType Source # 
Instance details

Defined in TDLib.Generated.Types

Show StorageStatisticsByFileType Source # 
Instance details

Defined in TDLib.Generated.Types

Generic StorageStatisticsByFileType Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep StorageStatisticsByFileType :: Type -> Type #

ToJSON StorageStatisticsByFileType Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON StorageStatisticsByFileType Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep StorageStatisticsByFileType Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep StorageStatisticsByFileType = D1 ('MetaData "StorageStatisticsByFileType" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "StorageStatisticsByFileType" 'PrefixI 'True) (S1 ('MetaSel ('Just "file_type") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FileType) :*: (S1 ('MetaSel ('Just "size") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: S1 ('MetaSel ('Just "count") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32))))

data StorageStatisticsByChat Source #

Constructors

StorageStatisticsByChat

Contains the storage usage statistics for a specific chat

Fields

Instances

Instances details
Eq StorageStatisticsByChat Source # 
Instance details

Defined in TDLib.Generated.Types

Show StorageStatisticsByChat Source # 
Instance details

Defined in TDLib.Generated.Types

Generic StorageStatisticsByChat Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep StorageStatisticsByChat :: Type -> Type #

ToJSON StorageStatisticsByChat Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON StorageStatisticsByChat Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep StorageStatisticsByChat Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep StorageStatisticsByChat = D1 ('MetaData "StorageStatisticsByChat" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "StorageStatisticsByChat" 'PrefixI 'True) ((S1 ('MetaSel ('Just "chat_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: S1 ('MetaSel ('Just "size") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53)) :*: (S1 ('MetaSel ('Just "count") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "by_file_type") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [StorageStatisticsByFileType]))))

data StorageStatistics Source #

Constructors

StorageStatistics

Contains the exact storage usage statistics split by chats and file type

Fields

Instances

Instances details
Eq StorageStatistics Source # 
Instance details

Defined in TDLib.Generated.Types

Show StorageStatistics Source # 
Instance details

Defined in TDLib.Generated.Types

Generic StorageStatistics Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep StorageStatistics :: Type -> Type #

ToJSON StorageStatistics Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON StorageStatistics Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep StorageStatistics Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep StorageStatistics = D1 ('MetaData "StorageStatistics" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "StorageStatistics" 'PrefixI 'True) (S1 ('MetaSel ('Just "size") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: (S1 ('MetaSel ('Just "count") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "by_chat") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [StorageStatisticsByChat]))))

data StorageStatisticsFast Source #

Constructors

StorageStatisticsFast

Contains approximate storage usage statistics, excluding files of unknown file type

Fields

Instances

Instances details
Eq StorageStatisticsFast Source # 
Instance details

Defined in TDLib.Generated.Types

Show StorageStatisticsFast Source # 
Instance details

Defined in TDLib.Generated.Types

Generic StorageStatisticsFast Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep StorageStatisticsFast :: Type -> Type #

ToJSON StorageStatisticsFast Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON StorageStatisticsFast Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep StorageStatisticsFast Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep StorageStatisticsFast = D1 ('MetaData "StorageStatisticsFast" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "StorageStatisticsFast" 'PrefixI 'True) ((S1 ('MetaSel ('Just "files_size") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: S1 ('MetaSel ('Just "file_count") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)) :*: (S1 ('MetaSel ('Just "database_size") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: (S1 ('MetaSel ('Just "language_pack_database_size") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: S1 ('MetaSel ('Just "log_size") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53)))))

data DatabaseStatistics Source #

Constructors

DatabaseStatistics

Contains database statistics

Fields

  • statistics :: T

    Database statistics in an unspecified human-readable format

Instances

Instances details
Eq DatabaseStatistics Source # 
Instance details

Defined in TDLib.Generated.Types

Show DatabaseStatistics Source # 
Instance details

Defined in TDLib.Generated.Types

Generic DatabaseStatistics Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep DatabaseStatistics :: Type -> Type #

ToJSON DatabaseStatistics Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON DatabaseStatistics Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep DatabaseStatistics Source # 
Instance details

Defined in TDLib.Generated.Types

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

data NetworkType Source #

Represents the type of a network

Constructors

NetworkTypeNone

The network is not available

NetworkTypeMobile

A mobile network

NetworkTypeMobileRoaming

A mobile roaming network

NetworkTypeWiFi

A Wi-Fi network

NetworkTypeOther

A different network type (e.g., Ethernet network)

Instances

Instances details
Eq NetworkType Source # 
Instance details

Defined in TDLib.Generated.Types

Show NetworkType Source # 
Instance details

Defined in TDLib.Generated.Types

Generic NetworkType Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep NetworkType :: Type -> Type #

ToJSON NetworkType Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON NetworkType Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep NetworkType Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep NetworkType = D1 ('MetaData "NetworkType" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) ((C1 ('MetaCons "NetworkTypeNone" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NetworkTypeMobile" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "NetworkTypeMobileRoaming" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "NetworkTypeWiFi" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NetworkTypeOther" 'PrefixI 'False) (U1 :: Type -> Type))))

data NetworkStatisticsEntry Source #

Contains statistics about network usage

Constructors

NetworkStatisticsEntryFile

Contains information about the total amount of data that was used to send and receive files

Fields

NetworkStatisticsEntryCall

Contains information about the total amount of data that was used for calls

Fields

Instances

Instances details
Eq NetworkStatisticsEntry Source # 
Instance details

Defined in TDLib.Generated.Types

Show NetworkStatisticsEntry Source # 
Instance details

Defined in TDLib.Generated.Types

Generic NetworkStatisticsEntry Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep NetworkStatisticsEntry :: Type -> Type #

ToJSON NetworkStatisticsEntry Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON NetworkStatisticsEntry Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep NetworkStatisticsEntry Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep NetworkStatisticsEntry = D1 ('MetaData "NetworkStatisticsEntry" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "NetworkStatisticsEntryFile" 'PrefixI 'True) ((S1 ('MetaSel ('Just "file_type") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FileType) :*: S1 ('MetaSel ('Just "network_type") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NetworkType)) :*: (S1 ('MetaSel ('Just "sent_bytes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: S1 ('MetaSel ('Just "received_bytes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53))) :+: C1 ('MetaCons "NetworkStatisticsEntryCall" 'PrefixI 'True) ((S1 ('MetaSel ('Just "network_type") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NetworkType) :*: S1 ('MetaSel ('Just "sent_bytes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53)) :*: (S1 ('MetaSel ('Just "received_bytes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: S1 ('MetaSel ('Just "duration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double))))

data NetworkStatistics Source #

Constructors

NetworkStatistics

A full list of available network statistic entries

Fields

Instances

Instances details
Eq NetworkStatistics Source # 
Instance details

Defined in TDLib.Generated.Types

Show NetworkStatistics Source # 
Instance details

Defined in TDLib.Generated.Types

Generic NetworkStatistics Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep NetworkStatistics :: Type -> Type #

ToJSON NetworkStatistics Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON NetworkStatistics Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep NetworkStatistics Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep NetworkStatistics = D1 ('MetaData "NetworkStatistics" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "NetworkStatistics" 'PrefixI 'True) (S1 ('MetaSel ('Just "since_date") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "entries") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [NetworkStatisticsEntry])))

data AutoDownloadSettings Source #

Constructors

AutoDownloadSettings

Contains auto-download settings

Fields

Instances

Instances details
Eq AutoDownloadSettings Source # 
Instance details

Defined in TDLib.Generated.Types

Show AutoDownloadSettings Source # 
Instance details

Defined in TDLib.Generated.Types

Generic AutoDownloadSettings Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep AutoDownloadSettings :: Type -> Type #

ToJSON AutoDownloadSettings Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON AutoDownloadSettings Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep AutoDownloadSettings Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep AutoDownloadSettings = D1 ('MetaData "AutoDownloadSettings" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "AutoDownloadSettings" 'PrefixI 'True) (((S1 ('MetaSel ('Just "is_auto_download_enabled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "max_photo_file_size") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)) :*: (S1 ('MetaSel ('Just "max_video_file_size") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "max_other_file_size") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32))) :*: ((S1 ('MetaSel ('Just "video_upload_bitrate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "preload_large_videos") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :*: (S1 ('MetaSel ('Just "preload_next_audio") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "use_less_data_for_calls") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)))))

data AutoDownloadSettingsPresets Source #

Constructors

AutoDownloadSettingsPresets

Contains auto-download settings presets for the user

Fields

Instances

Instances details
Eq AutoDownloadSettingsPresets Source # 
Instance details

Defined in TDLib.Generated.Types

Show AutoDownloadSettingsPresets Source # 
Instance details

Defined in TDLib.Generated.Types

Generic AutoDownloadSettingsPresets Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep AutoDownloadSettingsPresets :: Type -> Type #

ToJSON AutoDownloadSettingsPresets Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON AutoDownloadSettingsPresets Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep AutoDownloadSettingsPresets Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep AutoDownloadSettingsPresets = D1 ('MetaData "AutoDownloadSettingsPresets" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "AutoDownloadSettingsPresets" 'PrefixI 'True) (S1 ('MetaSel ('Just "low") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 AutoDownloadSettings) :*: (S1 ('MetaSel ('Just "medium") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 AutoDownloadSettings) :*: S1 ('MetaSel ('Just "high") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 AutoDownloadSettings))))

data ConnectionState Source #

Describes the current state of the connection to Telegram servers

Constructors

ConnectionStateWaitingForNetwork

Currently waiting for the network to become available. Use setNetworkType to change the available network type

ConnectionStateConnectingToProxy

Currently establishing a connection with a proxy server

ConnectionStateConnecting

Currently establishing a connection to the Telegram servers

ConnectionStateUpdating

Downloading data received while the client was offline

ConnectionStateReady

There is a working connection to the Telegram servers

Instances

Instances details
Eq ConnectionState Source # 
Instance details

Defined in TDLib.Generated.Types

Show ConnectionState Source # 
Instance details

Defined in TDLib.Generated.Types

Generic ConnectionState Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep ConnectionState :: Type -> Type #

ToJSON ConnectionState Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON ConnectionState Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep ConnectionState Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep ConnectionState = D1 ('MetaData "ConnectionState" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) ((C1 ('MetaCons "ConnectionStateWaitingForNetwork" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ConnectionStateConnectingToProxy" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "ConnectionStateConnecting" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ConnectionStateUpdating" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ConnectionStateReady" 'PrefixI 'False) (U1 :: Type -> Type))))

data TopChatCategory Source #

Represents the categories of chats for which a list of frequently used chats can be retrieved

Constructors

TopChatCategoryUsers

A category containing frequently used private chats with non-bot users

TopChatCategoryBots

A category containing frequently used private chats with bot users

TopChatCategoryGroups

A category containing frequently used basic groups and supergroups

TopChatCategoryChannels

A category containing frequently used channels

TopChatCategoryInlineBots

A category containing frequently used chats with inline bots sorted by their usage in inline mode

TopChatCategoryCalls

A category containing frequently used chats used for calls

TopChatCategoryForwardChats

A category containing frequently used chats used to forward messages

Instances

Instances details
Eq TopChatCategory Source # 
Instance details

Defined in TDLib.Generated.Types

Show TopChatCategory Source # 
Instance details

Defined in TDLib.Generated.Types

Generic TopChatCategory Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep TopChatCategory :: Type -> Type #

ToJSON TopChatCategory Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON TopChatCategory Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep TopChatCategory Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep TopChatCategory = D1 ('MetaData "TopChatCategory" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) ((C1 ('MetaCons "TopChatCategoryUsers" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "TopChatCategoryBots" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "TopChatCategoryGroups" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "TopChatCategoryChannels" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "TopChatCategoryInlineBots" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "TopChatCategoryCalls" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "TopChatCategoryForwardChats" 'PrefixI 'False) (U1 :: Type -> Type))))

data TMeUrlType Source #

Describes the type of a URL linking to an internal Telegram entity

Constructors

TMeUrlTypeUser

A URL linking to a user

Fields

TMeUrlTypeSupergroup

A URL linking to a public supergroup or channel

Fields

TMeUrlTypeChatInvite

A chat invite link

Fields

TMeUrlTypeStickerSet

A URL linking to a sticker set

Fields

Instances

Instances details
Eq TMeUrlType Source # 
Instance details

Defined in TDLib.Generated.Types

Show TMeUrlType Source # 
Instance details

Defined in TDLib.Generated.Types

Generic TMeUrlType Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep TMeUrlType :: Type -> Type #

ToJSON TMeUrlType Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON TMeUrlType Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep TMeUrlType Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep TMeUrlType = D1 ('MetaData "TMeUrlType" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) ((C1 ('MetaCons "TMeUrlTypeUser" 'PrefixI 'True) (S1 ('MetaSel ('Just "user_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)) :+: C1 ('MetaCons "TMeUrlTypeSupergroup" 'PrefixI 'True) (S1 ('MetaSel ('Just "supergroup_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53))) :+: (C1 ('MetaCons "TMeUrlTypeChatInvite" 'PrefixI 'True) (S1 ('MetaSel ('Just "info") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ChatInviteLinkInfo)) :+: C1 ('MetaCons "TMeUrlTypeStickerSet" 'PrefixI 'True) (S1 ('MetaSel ('Just "sticker_set_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I64))))

data TMeUrl Source #

Constructors

TMeUrl

Represents a URL linking to an internal Telegram entity

Fields

Instances

Instances details
Eq TMeUrl Source # 
Instance details

Defined in TDLib.Generated.Types

Methods

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

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

Show TMeUrl Source # 
Instance details

Defined in TDLib.Generated.Types

Generic TMeUrl Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep TMeUrl :: Type -> Type #

Methods

from :: TMeUrl -> Rep TMeUrl x #

to :: Rep TMeUrl x -> TMeUrl #

ToJSON TMeUrl Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON TMeUrl Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep TMeUrl Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep TMeUrl = D1 ('MetaData "TMeUrl" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "TMeUrl" 'PrefixI 'True) (S1 ('MetaSel ('Just "url") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "type_") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TMeUrlType)))

data TMeUrls Source #

Constructors

TMeUrls

Contains a list of t.me URLs

Fields

Instances

Instances details
Eq TMeUrls Source # 
Instance details

Defined in TDLib.Generated.Types

Methods

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

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

Show TMeUrls Source # 
Instance details

Defined in TDLib.Generated.Types

Generic TMeUrls Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep TMeUrls :: Type -> Type #

Methods

from :: TMeUrls -> Rep TMeUrls x #

to :: Rep TMeUrls x -> TMeUrls #

ToJSON TMeUrls Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON TMeUrls Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep TMeUrls Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep TMeUrls = D1 ('MetaData "TMeUrls" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "TMeUrls" 'PrefixI 'True) (S1 ('MetaSel ('Just "urls") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [TMeUrl])))

data Count Source #

Constructors

Count

Contains a counter

Fields

Instances

Instances details
Eq Count Source # 
Instance details

Defined in TDLib.Generated.Types

Methods

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

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

Show Count Source # 
Instance details

Defined in TDLib.Generated.Types

Methods

showsPrec :: Int -> Count -> ShowS #

show :: Count -> String #

showList :: [Count] -> ShowS #

Generic Count Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep Count :: Type -> Type #

Methods

from :: Count -> Rep Count x #

to :: Rep Count x -> Count #

ToJSON Count Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON Count Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep Count Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep Count = D1 ('MetaData "Count" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "Count" 'PrefixI 'True) (S1 ('MetaSel ('Just "count") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)))

data Text Source #

Constructors

Text

Contains some text

Fields

Instances

Instances details
Eq Text Source # 
Instance details

Defined in TDLib.Generated.Types

Methods

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

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

Show Text Source # 
Instance details

Defined in TDLib.Generated.Types

Methods

showsPrec :: Int -> Text -> ShowS #

show :: Text -> String #

showList :: [Text] -> ShowS #

Generic Text Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep Text :: Type -> Type #

Methods

from :: Text -> Rep Text x #

to :: Rep Text x -> Text #

ToJSON Text Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON Text Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep Text Source # 
Instance details

Defined in TDLib.Generated.Types

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

data Seconds Source #

Constructors

Seconds

Contains a value representing a number of seconds

Fields

Instances

Instances details
Eq Seconds Source # 
Instance details

Defined in TDLib.Generated.Types

Methods

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

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

Show Seconds Source # 
Instance details

Defined in TDLib.Generated.Types

Generic Seconds Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep Seconds :: Type -> Type #

Methods

from :: Seconds -> Rep Seconds x #

to :: Rep Seconds x -> Seconds #

ToJSON Seconds Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON Seconds Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep Seconds Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep Seconds = D1 ('MetaData "Seconds" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "Seconds" 'PrefixI 'True) (S1 ('MetaSel ('Just "seconds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double)))

data DeepLinkInfo Source #

Constructors

DeepLinkInfo

Contains information about a tg:// deep link

Fields

Instances

Instances details
Eq DeepLinkInfo Source # 
Instance details

Defined in TDLib.Generated.Types

Show DeepLinkInfo Source # 
Instance details

Defined in TDLib.Generated.Types

Generic DeepLinkInfo Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep DeepLinkInfo :: Type -> Type #

ToJSON DeepLinkInfo Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON DeepLinkInfo Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep DeepLinkInfo Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep DeepLinkInfo = D1 ('MetaData "DeepLinkInfo" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "DeepLinkInfo" 'PrefixI 'True) (S1 ('MetaSel ('Just "text") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FormattedText) :*: S1 ('MetaSel ('Just "need_update_application") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)))

data TextParseMode Source #

Describes the way the text should be parsed for TextEntities

Constructors

TextParseModeMarkdown

The text uses Markdown-style formatting

Fields

TextParseModeHTML

The text uses HTML-style formatting. The same as Telegram Bot API HTML parse mode

Instances

Instances details
Eq TextParseMode Source # 
Instance details

Defined in TDLib.Generated.Types

Show TextParseMode Source # 
Instance details

Defined in TDLib.Generated.Types

Generic TextParseMode Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep TextParseMode :: Type -> Type #

ToJSON TextParseMode Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON TextParseMode Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep TextParseMode Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep TextParseMode = D1 ('MetaData "TextParseMode" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "TextParseModeMarkdown" 'PrefixI 'True) (S1 ('MetaSel ('Just "version") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)) :+: C1 ('MetaCons "TextParseModeHTML" 'PrefixI 'False) (U1 :: Type -> Type))

data ProxyType Source #

Describes the type of a proxy server

Constructors

ProxyTypeSocks5

A SOCKS5 proxy server

Fields

  • username :: T

    Username for logging in; may be empty

  • password :: T

    Password for logging in; may be empty

ProxyTypeHttp

A HTTP transparent proxy server

Fields

  • username :: T

    Username for logging in; may be empty

  • password :: T

    Password for logging in; may be empty

  • http_only :: Bool

    Pass true if the proxy supports only HTTP requests and doesn't support transparent TCP connections via HTTP CONNECT method

ProxyTypeMtproto

An MTProto proxy server

Fields

  • secret :: T

    The proxy's secret in hexadecimal encoding

Instances

Instances details
Eq ProxyType Source # 
Instance details

Defined in TDLib.Generated.Types

Show ProxyType Source # 
Instance details

Defined in TDLib.Generated.Types

Generic ProxyType Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep ProxyType :: Type -> Type #

ToJSON ProxyType Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON ProxyType Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep ProxyType Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep ProxyType = D1 ('MetaData "ProxyType" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "ProxyTypeSocks5" 'PrefixI 'True) (S1 ('MetaSel ('Just "username") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "password") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)) :+: (C1 ('MetaCons "ProxyTypeHttp" 'PrefixI 'True) (S1 ('MetaSel ('Just "username") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: (S1 ('MetaSel ('Just "password") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "http_only") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))) :+: C1 ('MetaCons "ProxyTypeMtproto" 'PrefixI 'True) (S1 ('MetaSel ('Just "secret") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T))))

data Proxy Source #

Constructors

Proxy

Contains information about a proxy server

Fields

Instances

Instances details
Eq Proxy Source # 
Instance details

Defined in TDLib.Generated.Types

Methods

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

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

Show Proxy Source # 
Instance details

Defined in TDLib.Generated.Types

Methods

showsPrec :: Int -> Proxy -> ShowS #

show :: Proxy -> String #

showList :: [Proxy] -> ShowS #

Generic Proxy Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep Proxy :: Type -> Type #

Methods

from :: Proxy -> Rep Proxy x #

to :: Rep Proxy x -> Proxy #

ToJSON Proxy Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON Proxy Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep Proxy Source # 
Instance details

Defined in TDLib.Generated.Types

data Proxies Source #

Constructors

Proxies

Represents a list of proxy servers

Fields

Instances

Instances details
Eq Proxies Source # 
Instance details

Defined in TDLib.Generated.Types

Methods

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

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

Show Proxies Source # 
Instance details

Defined in TDLib.Generated.Types

Generic Proxies Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep Proxies :: Type -> Type #

Methods

from :: Proxies -> Rep Proxies x #

to :: Rep Proxies x -> Proxies #

ToJSON Proxies Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON Proxies Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep Proxies Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep Proxies = D1 ('MetaData "Proxies" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "Proxies" 'PrefixI 'True) (S1 ('MetaSel ('Just "proxies") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Proxy])))

data InputSticker Source #

Describes a sticker that needs to be added to a sticker set

Constructors

InputStickerStatic

A static sticker in PNG format, which will be converted to WEBP server-side

Fields

  • sticker :: InputFile

    PNG image with the sticker; must be up to 512 KB in size and fit in a 512x512 square

  • emojis :: T

    Emojis corresponding to the sticker

  • mask_position :: MaskPosition

    For masks, position where the mask should be placed; may be null

InputStickerAnimated

An animated sticker in TGS format

Fields

  • sticker :: InputFile

    PNG image with the sticker; must be up to 512 KB in size and fit in a 512x512 square

  • emojis :: T

    Emojis corresponding to the sticker

Instances

Instances details
Eq InputSticker Source # 
Instance details

Defined in TDLib.Generated.Types

Show InputSticker Source # 
Instance details

Defined in TDLib.Generated.Types

Generic InputSticker Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep InputSticker :: Type -> Type #

ToJSON InputSticker Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON InputSticker Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep InputSticker Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep InputSticker = D1 ('MetaData "InputSticker" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "InputStickerStatic" 'PrefixI 'True) (S1 ('MetaSel ('Just "sticker") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 InputFile) :*: (S1 ('MetaSel ('Just "emojis") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "mask_position") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MaskPosition))) :+: C1 ('MetaCons "InputStickerAnimated" 'PrefixI 'True) (S1 ('MetaSel ('Just "sticker") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 InputFile) :*: S1 ('MetaSel ('Just "emojis") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)))

data DateRange Source #

Constructors

DateRange

Represents a date range

Fields

  • start_date :: I32

    Point in time (Unix timestamp) at which the date range begins

  • end_date :: I32

    Point in time (Unix timestamp) at which the date range ends

Instances

Instances details
Eq DateRange Source # 
Instance details

Defined in TDLib.Generated.Types

Show DateRange Source # 
Instance details

Defined in TDLib.Generated.Types

Generic DateRange Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep DateRange :: Type -> Type #

ToJSON DateRange Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON DateRange Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep DateRange Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep DateRange = D1 ('MetaData "DateRange" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "DateRange" 'PrefixI 'True) (S1 ('MetaSel ('Just "start_date") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "end_date") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)))

data StatisticsValue Source #

Constructors

StatisticsValue

A statistics value

Fields

Instances

Instances details
Eq StatisticsValue Source # 
Instance details

Defined in TDLib.Generated.Types

Show StatisticsValue Source # 
Instance details

Defined in TDLib.Generated.Types

Generic StatisticsValue Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep StatisticsValue :: Type -> Type #

ToJSON StatisticsValue Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON StatisticsValue Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep StatisticsValue Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep StatisticsValue = D1 ('MetaData "StatisticsValue" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "StatisticsValue" 'PrefixI 'True) (S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double) :*: (S1 ('MetaSel ('Just "previous_value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double) :*: S1 ('MetaSel ('Just "growth_rate_percentage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double))))

data StatisticsGraph Source #

Describes a statistics graph

Constructors

StatisticsGraphData

A graph data

Fields

  • json_data :: T

    Graph data in JSON format

  • zoom_token :: T

    If non-empty, a token which can be used to receive a zoomed in graph

StatisticsGraphAsync

The graph data to be asynchronously loaded through getChatStatisticsGraph

Fields

  • token :: T

    The token to use for data loading

StatisticsGraphError

An error message to be shown to the user instead of the graph

Fields

Instances

Instances details
Eq StatisticsGraph Source # 
Instance details

Defined in TDLib.Generated.Types

Show StatisticsGraph Source # 
Instance details

Defined in TDLib.Generated.Types

Generic StatisticsGraph Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep StatisticsGraph :: Type -> Type #

ToJSON StatisticsGraph Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON StatisticsGraph Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep StatisticsGraph Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep StatisticsGraph = D1 ('MetaData "StatisticsGraph" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "StatisticsGraphData" 'PrefixI 'True) (S1 ('MetaSel ('Just "json_data") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "zoom_token") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)) :+: (C1 ('MetaCons "StatisticsGraphAsync" 'PrefixI 'True) (S1 ('MetaSel ('Just "token") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)) :+: C1 ('MetaCons "StatisticsGraphError" 'PrefixI 'True) (S1 ('MetaSel ('Just "error_message") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T))))

data ChatStatisticsMessageInteractionCounters Source #

Constructors

ChatStatisticsMessageInteractionCounters

Contains statistics about interactions with a message

Fields

Instances

Instances details
Eq ChatStatisticsMessageInteractionCounters Source # 
Instance details

Defined in TDLib.Generated.Types

Show ChatStatisticsMessageInteractionCounters Source # 
Instance details

Defined in TDLib.Generated.Types

Generic ChatStatisticsMessageInteractionCounters Source # 
Instance details

Defined in TDLib.Generated.Types

ToJSON ChatStatisticsMessageInteractionCounters Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON ChatStatisticsMessageInteractionCounters Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep ChatStatisticsMessageInteractionCounters Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep ChatStatisticsMessageInteractionCounters = D1 ('MetaData "ChatStatisticsMessageInteractionCounters" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "ChatStatisticsMessageInteractionCounters" 'PrefixI 'True) (S1 ('MetaSel ('Just "message_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: (S1 ('MetaSel ('Just "view_count") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "forward_count") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32))))

data ChatStatistics Source #

Constructors

ChatStatistics

A detailed statistics about a chat

Fields

Instances

Instances details
Eq ChatStatistics Source # 
Instance details

Defined in TDLib.Generated.Types

Show ChatStatistics Source # 
Instance details

Defined in TDLib.Generated.Types

Generic ChatStatistics Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep ChatStatistics :: Type -> Type #

ToJSON ChatStatistics Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON ChatStatistics Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep ChatStatistics Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep ChatStatistics = D1 ('MetaData "ChatStatistics" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "ChatStatistics" 'PrefixI 'True) (((S1 ('MetaSel ('Just "period") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 DateRange) :*: (S1 ('MetaSel ('Just "member_count") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 StatisticsValue) :*: S1 ('MetaSel ('Just "mean_view_count") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 StatisticsValue))) :*: ((S1 ('MetaSel ('Just "mean_share_count") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 StatisticsValue) :*: S1 ('MetaSel ('Just "enabled_notifications_percentage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double)) :*: (S1 ('MetaSel ('Just "member_count_graph") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 StatisticsGraph) :*: S1 ('MetaSel ('Just "join_graph") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 StatisticsGraph)))) :*: (((S1 ('MetaSel ('Just "mute_graph") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 StatisticsGraph) :*: S1 ('MetaSel ('Just "view_count_by_hour_graph") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 StatisticsGraph)) :*: (S1 ('MetaSel ('Just "view_count_by_source_graph") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 StatisticsGraph) :*: S1 ('MetaSel ('Just "join_by_source_graph") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 StatisticsGraph))) :*: ((S1 ('MetaSel ('Just "language_graph") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 StatisticsGraph) :*: S1 ('MetaSel ('Just "message_interaction_graph") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 StatisticsGraph)) :*: (S1 ('MetaSel ('Just "instant_view_interaction_graph") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 StatisticsGraph) :*: S1 ('MetaSel ('Just "recent_message_interactions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [ChatStatisticsMessageInteractionCounters]))))))

data Update Source #

Contains notifications about data changes

Constructors

UpdateAuthorizationState

The user authorization state has changed

Fields

UpdateNewMessage

A new message was received; can also be an outgoing message

Fields

UpdateMessageSendAcknowledged

A request to send a message has reached the Telegram server. This doesn't mean that the message will be sent successfully or even that the send message request will be processed. This update will be sent only if the option "use_quick_ack" is set to true. This update may be sent multiple times for the same message

Fields

UpdateMessageSendSucceeded

A message has been successfully sent

Fields

UpdateMessageSendFailed

A message failed to send. Be aware that some messages being sent can be irrecoverably deleted, in which case updateDeleteMessages will be received instead of this update

Fields

UpdateMessageContent

The message content has changed

Fields

UpdateMessageEdited

A message was edited. Changes in the message content will come in a separate updateMessageContent

Fields

UpdateMessageViews

The view count of the message has changed

Fields

UpdateMessageContentOpened

The message content was opened. Updates voice note messages to "listened", video note messages to "viewed" and starts the TTL timer for self-destructing messages

Fields

UpdateMessageMentionRead

A message with an unread mention was read

Fields

UpdateMessageLiveLocationViewed

A message with a live location was viewed. When the update is received, the client is supposed to update the live location

Fields

UpdateNewChat

A new chat has been loaded/created. This update is guaranteed to come before the chat identifier is returned to the client. The chat field changes will be reported through separate updates

Fields

UpdateChatChatList

The list to which the chat belongs was changed. This update is guaranteed to be sent only when chat.order == 0 and the current or the new chat list is null

Fields

UpdateChatTitle

The title of a chat was changed

Fields

  • chat_id :: I53

    The chat identifier of the sent message

  • title :: T

    The new chat title

UpdateChatPhoto

A chat photo was changed

Fields

UpdateChatPermissions

Chat permissions was changed

Fields

UpdateChatLastMessage

The last message of a chat was changed. If last_message is null, then the last message in the chat became unknown. Some new unknown messages might be added to the chat in this case

Fields

UpdateChatOrder

The order of the chat in the chat list has changed. Instead of this update updateChatLastMessage, updateChatIsPinned, updateChatDraftMessage, or updateChatSource might be sent

Fields

  • chat_id :: I53

    The chat identifier of the sent message

  • order :: I64

    New value of the chat order

UpdateChatIsPinned

A chat was pinned or unpinned

Fields

UpdateChatIsMarkedAsUnread

A chat was marked as unread or was read

Fields

UpdateChatSource

A chat's source in the chat list has changed

Fields

UpdateChatHasScheduledMessages

A chat's has_scheduled_messages field has changed

Fields

UpdateChatDefaultDisableNotification

The value of the default disable_notification parameter, used when a message is sent to the chat, was changed

Fields

UpdateChatReadInbox

Incoming messages were read or number of unread messages has been changed

Fields

UpdateChatReadOutbox

Outgoing messages were read

Fields

UpdateChatUnreadMentionCount

The chat unread_mention_count has changed

Fields

UpdateChatNotificationSettings

Notification settings for a chat were changed

Fields

UpdateScopeNotificationSettings

Notification settings for some type of chats were updated

Fields

UpdateChatActionBar

The chat action bar was changed

Fields

UpdateChatPinnedMessage

The chat pinned message was changed

Fields

  • chat_id :: I53

    The chat identifier of the sent message

  • pinned_message_id :: I53

    The new identifier of the pinned message; 0 if there is no pinned message in the chat

UpdateChatReplyMarkup

The default chat reply markup was changed. Can occur because new messages with reply markup were received or because an old reply markup was hidden by the user

Fields

  • chat_id :: I53

    The chat identifier of the sent message

  • reply_markup_message_id :: I53

    Identifier of the message from which reply markup needs to be used; 0 if there is no default custom reply markup in the chat

UpdateChatDraftMessage

A chat draft has changed. Be aware that the update may come in the currently opened chat but with old content of the draft. If the user has changed the content of the draft, this update shouldn't be applied

Fields

UpdateChatOnlineMemberCount

The number of online group members has changed. This update with non-zero count is sent only for currently opened chats. There is no guarantee that it will be sent just after the count has changed

Fields

UpdateNotification

A notification was changed

Fields

UpdateNotificationGroup

A list of active notifications in a notification group has changed

Fields

UpdateActiveNotifications

Contains active notifications that was shown on previous application launches. This update is sent only if the message database is used. In that case it comes once before any updateNotification and updateNotificationGroup update

Fields

UpdateHavePendingNotifications

Describes whether there are some pending notification updates. Can be used to prevent application from killing, while there are some pending notifications

Fields

UpdateDeleteMessages

Some messages were deleted

Fields

  • chat_id :: I53

    The chat identifier of the sent message

  • message_ids :: [I53]

    Identifiers of the deleted messages

  • is_permanent :: Bool

    True, if the messages are permanently deleted by a user (as opposed to just becoming inaccessible)

  • from_cache :: Bool

    True, if the messages are deleted only from the cache and can possibly be retrieved again in the future

UpdateUserChatAction

User activity in the chat has changed

Fields

UpdateUserStatus

The user went online or offline

Fields

UpdateUser

Some data of a user has changed. This update is guaranteed to come before the user identifier is returned to the client

Fields

UpdateBasicGroup

Some data of a basic group has changed. This update is guaranteed to come before the basic group identifier is returned to the client

Fields

UpdateSupergroup

Some data of a supergroup or a channel has changed. This update is guaranteed to come before the supergroup identifier is returned to the client

Fields

UpdateSecretChat

Some data of a secret chat has changed. This update is guaranteed to come before the secret chat identifier is returned to the client

Fields

UpdateUserFullInfo

Some data from userFullInfo has been changed

Fields

UpdateBasicGroupFullInfo

Some data from basicGroupFullInfo has been changed

Fields

UpdateSupergroupFullInfo

Some data from supergroupFullInfo has been changed

Fields

UpdateServiceNotification

Service notification from the server. Upon receiving this the client must show a popup with the content of the notification

Fields

  • type_ :: T

    Notification type. If type begins with AUTH_KEY_DROP_, then two buttons Cancel and "Log out" should be shown under notification; if user presses the second, all local data should be destroyed using Destroy method

  • content :: MessageContent

    Notification content

UpdateFile

Information about a file was updated

Fields

UpdateFileGenerationStart

The file generation process needs to be started by the client

Fields

  • generation_id :: I64

    Unique identifier for the generation process

  • original_path :: T

    The path to a file from which a new file is generated; may be empty

  • destination_path :: T

    The path to a file that should be created and where the new file should be generated

  • conversion :: T

    String specifying the conversion applied to the original file. If conversion is "" than original_path contains an HTTP/HTTPS URL of a file, which should be downloaded by the client

UpdateFileGenerationStop

File generation is no longer needed

Fields

UpdateCall

New call was created or information about a call was updated

Fields

UpdateUserPrivacySettingRules

Some privacy setting rules have been changed

Fields

UpdateUnreadMessageCount

Number of unread messages in a chat list has changed. This update is sent only if the message database is used

Fields

UpdateUnreadChatCount

Number of unread chats, i.e. with unread messages or marked as unread, has changed. This update is sent only if the message database is used

Fields

UpdateOption

An option changed its value

Fields

UpdateStickerSet

A sticker set has changed

Fields

UpdateInstalledStickerSets

The list of installed sticker sets was updated

Fields

UpdateTrendingStickerSets

The list of trending sticker sets was updated or some of them were viewed

Fields

UpdateRecentStickers

The list of recently used stickers was updated

Fields

  • is_attached :: Bool

    True, if the list of stickers attached to photo or video files was updated, otherwise the list of sent stickers is updated

  • sticker_ids :: [I32]

    The new list of file identifiers of recently used stickers

UpdateFavoriteStickers

The list of favorite stickers was updated

Fields

  • sticker_ids :: [I32]

    The new list of file identifiers of recently used stickers

UpdateSavedAnimations

The list of saved animations was updated

Fields

UpdateSelectedBackground

The selected background has changed

Fields

UpdateLanguagePackStrings

Some language pack strings have been updated

Fields

UpdateConnectionState

The connection state has changed

Fields

UpdateTermsOfService

New terms of service must be accepted by the user. If the terms of service are declined, then the deleteAccount method should be called with the reason "Decline ToS update"

Fields

UpdateUsersNearby

The list of users nearby has changed. The update is sent only 60 seconds after a successful searchChatsNearby request

Fields

UpdateDiceEmojis

The list of supported dice emojis has changed

Fields

  • emojis :: [T]

    The new list of supported dice emojis

UpdateNewInlineQuery

A new incoming inline query; for bots only

Fields

UpdateNewChosenInlineResult

The user has chosen a result of an inline query; for bots only

Fields

UpdateNewCallbackQuery

A new incoming callback query; for bots only

Fields

UpdateNewInlineCallbackQuery

A new incoming callback query from a message sent via a bot; for bots only

Fields

UpdateNewShippingQuery

A new incoming shipping query; for bots only. Only for invoices with flexible price

Fields

UpdateNewPreCheckoutQuery

A new incoming pre-checkout query; for bots only. Contains full information about a checkout

Fields

UpdateNewCustomEvent

A new incoming event; for bots only

Fields

  • event :: T

    A JSON-serialized event

UpdateNewCustomQuery

A new incoming query; for bots only

Fields

UpdatePoll

A poll was updated; for bots only

Fields

UpdatePollAnswer

A user changed the answer to a poll; for bots only

Fields

  • poll_id :: I64

    Unique poll identifier

  • user_id :: I32

    Identifier of a user performing an action

  • option_ids :: [I32]

    0-based identifiers of answer options, chosen by the user

Instances

Instances details
Eq Update Source # 
Instance details

Defined in TDLib.Generated.Types

Methods

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

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

Show Update Source # 
Instance details

Defined in TDLib.Generated.Types

Generic Update Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep Update :: Type -> Type #

Methods

from :: Update -> Rep Update x #

to :: Rep Update x -> Update #

ToJSON Update Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON Update Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep Update Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep Update = D1 ('MetaData "Update" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) ((((((C1 ('MetaCons "UpdateAuthorizationState" 'PrefixI 'True) (S1 ('MetaSel ('Just "authorization_state") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 AuthorizationState)) :+: C1 ('MetaCons "UpdateNewMessage" 'PrefixI 'True) (S1 ('MetaSel ('Just "message") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Message))) :+: (C1 ('MetaCons "UpdateMessageSendAcknowledged" 'PrefixI 'True) (S1 ('MetaSel ('Just "chat_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: S1 ('MetaSel ('Just "message_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53)) :+: C1 ('MetaCons "UpdateMessageSendSucceeded" 'PrefixI 'True) (S1 ('MetaSel ('Just "message") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Message) :*: S1 ('MetaSel ('Just "old_message_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53)))) :+: ((C1 ('MetaCons "UpdateMessageSendFailed" 'PrefixI 'True) ((S1 ('MetaSel ('Just "message") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Message) :*: S1 ('MetaSel ('Just "old_message_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53)) :*: (S1 ('MetaSel ('Just "error_code") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "error_message") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T))) :+: C1 ('MetaCons "UpdateMessageContent" 'PrefixI 'True) (S1 ('MetaSel ('Just "chat_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: (S1 ('MetaSel ('Just "message_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: S1 ('MetaSel ('Just "new_content") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MessageContent)))) :+: (C1 ('MetaCons "UpdateMessageEdited" 'PrefixI 'True) ((S1 ('MetaSel ('Just "chat_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: S1 ('MetaSel ('Just "message_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53)) :*: (S1 ('MetaSel ('Just "edit_date") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "reply_markup") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ReplyMarkup))) :+: (C1 ('MetaCons "UpdateMessageViews" 'PrefixI 'True) (S1 ('MetaSel ('Just "chat_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: (S1 ('MetaSel ('Just "message_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: S1 ('MetaSel ('Just "views") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32))) :+: C1 ('MetaCons "UpdateMessageContentOpened" 'PrefixI 'True) (S1 ('MetaSel ('Just "chat_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: S1 ('MetaSel ('Just "message_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53)))))) :+: (((C1 ('MetaCons "UpdateMessageMentionRead" 'PrefixI 'True) (S1 ('MetaSel ('Just "chat_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: (S1 ('MetaSel ('Just "message_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: S1 ('MetaSel ('Just "unread_mention_count") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32))) :+: C1 ('MetaCons "UpdateMessageLiveLocationViewed" 'PrefixI 'True) (S1 ('MetaSel ('Just "chat_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: S1 ('MetaSel ('Just "message_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53))) :+: (C1 ('MetaCons "UpdateNewChat" 'PrefixI 'True) (S1 ('MetaSel ('Just "chat") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Chat)) :+: (C1 ('MetaCons "UpdateChatChatList" 'PrefixI 'True) (S1 ('MetaSel ('Just "chat_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: S1 ('MetaSel ('Just "chat_list") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ChatList)) :+: C1 ('MetaCons "UpdateChatTitle" 'PrefixI 'True) (S1 ('MetaSel ('Just "chat_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: S1 ('MetaSel ('Just "title") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T))))) :+: ((C1 ('MetaCons "UpdateChatPhoto" 'PrefixI 'True) (S1 ('MetaSel ('Just "chat_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: S1 ('MetaSel ('Just "photo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ChatPhoto)) :+: C1 ('MetaCons "UpdateChatPermissions" 'PrefixI 'True) (S1 ('MetaSel ('Just "chat_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: S1 ('MetaSel ('Just "permissions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ChatPermissions))) :+: (C1 ('MetaCons "UpdateChatLastMessage" 'PrefixI 'True) (S1 ('MetaSel ('Just "chat_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: (S1 ('MetaSel ('Just "last_message") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Message) :*: S1 ('MetaSel ('Just "order") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I64))) :+: (C1 ('MetaCons "UpdateChatOrder" 'PrefixI 'True) (S1 ('MetaSel ('Just "chat_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: S1 ('MetaSel ('Just "order") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I64)) :+: C1 ('MetaCons "UpdateChatIsPinned" 'PrefixI 'True) (S1 ('MetaSel ('Just "chat_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: (S1 ('MetaSel ('Just "is_pinned") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "order") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I64)))))))) :+: ((((C1 ('MetaCons "UpdateChatIsMarkedAsUnread" 'PrefixI 'True) (S1 ('MetaSel ('Just "chat_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: S1 ('MetaSel ('Just "is_marked_as_unread") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :+: C1 ('MetaCons "UpdateChatSource" 'PrefixI 'True) (S1 ('MetaSel ('Just "chat_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: (S1 ('MetaSel ('Just "source") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ChatSource) :*: S1 ('MetaSel ('Just "order") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I64)))) :+: (C1 ('MetaCons "UpdateChatHasScheduledMessages" 'PrefixI 'True) (S1 ('MetaSel ('Just "chat_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: S1 ('MetaSel ('Just "has_scheduled_messages") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :+: (C1 ('MetaCons "UpdateChatDefaultDisableNotification" 'PrefixI 'True) (S1 ('MetaSel ('Just "chat_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: S1 ('MetaSel ('Just "default_disable_notification") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :+: C1 ('MetaCons "UpdateChatReadInbox" 'PrefixI 'True) (S1 ('MetaSel ('Just "chat_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: (S1 ('MetaSel ('Just "last_read_inbox_message_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: S1 ('MetaSel ('Just "unread_count") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)))))) :+: ((C1 ('MetaCons "UpdateChatReadOutbox" 'PrefixI 'True) (S1 ('MetaSel ('Just "chat_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: S1 ('MetaSel ('Just "last_read_outbox_message_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53)) :+: C1 ('MetaCons "UpdateChatUnreadMentionCount" 'PrefixI 'True) (S1 ('MetaSel ('Just "chat_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: S1 ('MetaSel ('Just "unread_mention_count") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32))) :+: (C1 ('MetaCons "UpdateChatNotificationSettings" 'PrefixI 'True) (S1 ('MetaSel ('Just "chat_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: S1 ('MetaSel ('Just "notification_settings_2") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ChatNotificationSettings)) :+: (C1 ('MetaCons "UpdateScopeNotificationSettings" 'PrefixI 'True) (S1 ('MetaSel ('Just "scope") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NotificationSettingsScope) :*: S1 ('MetaSel ('Just "notification_settings") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ScopeNotificationSettings)) :+: C1 ('MetaCons "UpdateChatActionBar" 'PrefixI 'True) (S1 ('MetaSel ('Just "chat_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: S1 ('MetaSel ('Just "action_bar") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ChatActionBar)))))) :+: (((C1 ('MetaCons "UpdateChatPinnedMessage" 'PrefixI 'True) (S1 ('MetaSel ('Just "chat_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: S1 ('MetaSel ('Just "pinned_message_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53)) :+: C1 ('MetaCons "UpdateChatReplyMarkup" 'PrefixI 'True) (S1 ('MetaSel ('Just "chat_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: S1 ('MetaSel ('Just "reply_markup_message_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53))) :+: (C1 ('MetaCons "UpdateChatDraftMessage" 'PrefixI 'True) (S1 ('MetaSel ('Just "chat_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: (S1 ('MetaSel ('Just "draft_message") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 DraftMessage) :*: S1 ('MetaSel ('Just "order") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I64))) :+: (C1 ('MetaCons "UpdateChatOnlineMemberCount" 'PrefixI 'True) (S1 ('MetaSel ('Just "chat_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: S1 ('MetaSel ('Just "online_member_count") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)) :+: C1 ('MetaCons "UpdateNotification" 'PrefixI 'True) (S1 ('MetaSel ('Just "notification_group_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "notification") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Notification))))) :+: ((C1 ('MetaCons "UpdateNotificationGroup" 'PrefixI 'True) (((S1 ('MetaSel ('Just "notification_group_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "type_2") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NotificationGroupType)) :*: (S1 ('MetaSel ('Just "chat_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: S1 ('MetaSel ('Just "notification_settings_chat_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53))) :*: ((S1 ('MetaSel ('Just "is_silent") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "total_count") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)) :*: (S1 ('MetaSel ('Just "added_notifications") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Notification]) :*: S1 ('MetaSel ('Just "removed_notification_ids") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [I32])))) :+: C1 ('MetaCons "UpdateActiveNotifications" 'PrefixI 'True) (S1 ('MetaSel ('Just "groups") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [NotificationGroup]))) :+: (C1 ('MetaCons "UpdateHavePendingNotifications" 'PrefixI 'True) (S1 ('MetaSel ('Just "have_delayed_notifications") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "have_unreceived_notifications") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :+: (C1 ('MetaCons "UpdateDeleteMessages" 'PrefixI 'True) ((S1 ('MetaSel ('Just "chat_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: S1 ('MetaSel ('Just "message_ids") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [I53])) :*: (S1 ('MetaSel ('Just "is_permanent") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "from_cache") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))) :+: C1 ('MetaCons "UpdateUserChatAction" 'PrefixI 'True) (S1 ('MetaSel ('Just "chat_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: (S1 ('MetaSel ('Just "user_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "action") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ChatAction))))))))) :+: (((((C1 ('MetaCons "UpdateUserStatus" 'PrefixI 'True) (S1 ('MetaSel ('Just "user_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UserStatus)) :+: C1 ('MetaCons "UpdateUser" 'PrefixI 'True) (S1 ('MetaSel ('Just "user") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 User))) :+: (C1 ('MetaCons "UpdateBasicGroup" 'PrefixI 'True) (S1 ('MetaSel ('Just "basic_group") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BasicGroup)) :+: C1 ('MetaCons "UpdateSupergroup" 'PrefixI 'True) (S1 ('MetaSel ('Just "supergroup") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Supergroup)))) :+: ((C1 ('MetaCons "UpdateSecretChat" 'PrefixI 'True) (S1 ('MetaSel ('Just "secret_chat") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SecretChat)) :+: C1 ('MetaCons "UpdateUserFullInfo" 'PrefixI 'True) (S1 ('MetaSel ('Just "user_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "user_full_info") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UserFullInfo))) :+: (C1 ('MetaCons "UpdateBasicGroupFullInfo" 'PrefixI 'True) (S1 ('MetaSel ('Just "basic_group_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "basic_group_full_info") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BasicGroupFullInfo)) :+: (C1 ('MetaCons "UpdateSupergroupFullInfo" 'PrefixI 'True) (S1 ('MetaSel ('Just "supergroup_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "supergroup_full_info") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SupergroupFullInfo)) :+: C1 ('MetaCons "UpdateServiceNotification" 'PrefixI 'True) (S1 ('MetaSel ('Just "type_") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "content") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MessageContent)))))) :+: (((C1 ('MetaCons "UpdateFile" 'PrefixI 'True) (S1 ('MetaSel ('Just "file") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 File)) :+: C1 ('MetaCons "UpdateFileGenerationStart" 'PrefixI 'True) ((S1 ('MetaSel ('Just "generation_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I64) :*: S1 ('MetaSel ('Just "original_path") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)) :*: (S1 ('MetaSel ('Just "destination_path") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "conversion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)))) :+: (C1 ('MetaCons "UpdateFileGenerationStop" 'PrefixI 'True) (S1 ('MetaSel ('Just "generation_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I64)) :+: (C1 ('MetaCons "UpdateCall" 'PrefixI 'True) (S1 ('MetaSel ('Just "call") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Call)) :+: C1 ('MetaCons "UpdateUserPrivacySettingRules" 'PrefixI 'True) (S1 ('MetaSel ('Just "setting") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UserPrivacySetting) :*: S1 ('MetaSel ('Just "rules") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UserPrivacySettingRules))))) :+: ((C1 ('MetaCons "UpdateUnreadMessageCount" 'PrefixI 'True) (S1 ('MetaSel ('Just "chat_list") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ChatList) :*: (S1 ('MetaSel ('Just "unread_count") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "unread_unmuted_count") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32))) :+: C1 ('MetaCons "UpdateUnreadChatCount" 'PrefixI 'True) ((S1 ('MetaSel ('Just "chat_list") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ChatList) :*: (S1 ('MetaSel ('Just "total_count") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "unread_count") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32))) :*: (S1 ('MetaSel ('Just "unread_unmuted_count") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: (S1 ('MetaSel ('Just "marked_as_unread_count") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "marked_as_unread_unmuted_count") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32))))) :+: (C1 ('MetaCons "UpdateOption" 'PrefixI 'True) (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 OptionValue)) :+: (C1 ('MetaCons "UpdateStickerSet" 'PrefixI 'True) (S1 ('MetaSel ('Just "sticker_set") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 StickerSet)) :+: C1 ('MetaCons "UpdateInstalledStickerSets" 'PrefixI 'True) (S1 ('MetaSel ('Just "is_masks") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "sticker_set_ids") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [I64]))))))) :+: ((((C1 ('MetaCons "UpdateTrendingStickerSets" 'PrefixI 'True) (S1 ('MetaSel ('Just "sticker_sets") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 StickerSets)) :+: C1 ('MetaCons "UpdateRecentStickers" 'PrefixI 'True) (S1 ('MetaSel ('Just "is_attached") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "sticker_ids") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [I32]))) :+: (C1 ('MetaCons "UpdateFavoriteStickers" 'PrefixI 'True) (S1 ('MetaSel ('Just "sticker_ids") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [I32])) :+: (C1 ('MetaCons "UpdateSavedAnimations" 'PrefixI 'True) (S1 ('MetaSel ('Just "animation_ids") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [I32])) :+: C1 ('MetaCons "UpdateSelectedBackground" 'PrefixI 'True) (S1 ('MetaSel ('Just "for_dark_theme") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "background") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Background))))) :+: ((C1 ('MetaCons "UpdateLanguagePackStrings" 'PrefixI 'True) (S1 ('MetaSel ('Just "localization_target") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: (S1 ('MetaSel ('Just "language_pack_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "strings") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [LanguagePackString]))) :+: C1 ('MetaCons "UpdateConnectionState" 'PrefixI 'True) (S1 ('MetaSel ('Just "state") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ConnectionState))) :+: (C1 ('MetaCons "UpdateTermsOfService" 'PrefixI 'True) (S1 ('MetaSel ('Just "terms_of_service_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "terms_of_service") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TermsOfService)) :+: (C1 ('MetaCons "UpdateUsersNearby" 'PrefixI 'True) (S1 ('MetaSel ('Just "users_nearby") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [ChatNearby])) :+: C1 ('MetaCons "UpdateDiceEmojis" 'PrefixI 'True) (S1 ('MetaSel ('Just "emojis") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [T])))))) :+: (((C1 ('MetaCons "UpdateNewInlineQuery" 'PrefixI 'True) ((S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I64) :*: S1 ('MetaSel ('Just "sender_user_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)) :*: (S1 ('MetaSel ('Just "user_location") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Location) :*: (S1 ('MetaSel ('Just "query") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "offset") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)))) :+: C1 ('MetaCons "UpdateNewChosenInlineResult" 'PrefixI 'True) ((S1 ('MetaSel ('Just "sender_user_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "user_location") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Location)) :*: (S1 ('MetaSel ('Just "query") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: (S1 ('MetaSel ('Just "result_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "inline_message_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T))))) :+: (C1 ('MetaCons "UpdateNewCallbackQuery" 'PrefixI 'True) ((S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I64) :*: (S1 ('MetaSel ('Just "sender_user_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "chat_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53))) :*: (S1 ('MetaSel ('Just "message_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: (S1 ('MetaSel ('Just "chat_instance") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I64) :*: S1 ('MetaSel ('Just "payload") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CallbackQueryPayload)))) :+: (C1 ('MetaCons "UpdateNewInlineCallbackQuery" 'PrefixI 'True) ((S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I64) :*: S1 ('MetaSel ('Just "sender_user_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)) :*: (S1 ('MetaSel ('Just "inline_message_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: (S1 ('MetaSel ('Just "chat_instance") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I64) :*: S1 ('MetaSel ('Just "payload") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CallbackQueryPayload)))) :+: C1 ('MetaCons "UpdateNewShippingQuery" 'PrefixI 'True) ((S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I64) :*: S1 ('MetaSel ('Just "sender_user_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)) :*: (S1 ('MetaSel ('Just "invoice_payload_2") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "shipping_address") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Address)))))) :+: ((C1 ('MetaCons "UpdateNewPreCheckoutQuery" 'PrefixI 'True) ((S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I64) :*: (S1 ('MetaSel ('Just "sender_user_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "currency") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T))) :*: ((S1 ('MetaSel ('Just "total_amount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: S1 ('MetaSel ('Just "invoice_payload") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString64)) :*: (S1 ('MetaSel ('Just "shipping_option_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "order_info") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 OrderInfo)))) :+: C1 ('MetaCons "UpdateNewCustomEvent" 'PrefixI 'True) (S1 ('MetaSel ('Just "event") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T))) :+: (C1 ('MetaCons "UpdateNewCustomQuery" 'PrefixI 'True) (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I64) :*: (S1 ('MetaSel ('Just "data_") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "timeout") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32))) :+: (C1 ('MetaCons "UpdatePoll" 'PrefixI 'True) (S1 ('MetaSel ('Just "poll") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Poll)) :+: C1 ('MetaCons "UpdatePollAnswer" 'PrefixI 'True) (S1 ('MetaSel ('Just "poll_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I64) :*: (S1 ('MetaSel ('Just "user_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "option_ids") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [I32]))))))))))

data Updates Source #

Constructors

Updates

Contains a list of updates

Fields

Instances

Instances details
Eq Updates Source # 
Instance details

Defined in TDLib.Generated.Types

Methods

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

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

Show Updates Source # 
Instance details

Defined in TDLib.Generated.Types

Generic Updates Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep Updates :: Type -> Type #

Methods

from :: Updates -> Rep Updates x #

to :: Rep Updates x -> Updates #

ToJSON Updates Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON Updates Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep Updates Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep Updates = D1 ('MetaData "Updates" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "Updates" 'PrefixI 'True) (S1 ('MetaSel ('Just "updates") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Update])))

data LogStream Source #

Describes a stream to which TDLib internal log is written

Constructors

LogStreamDefault

The log is written to stderr or an OS specific log

LogStreamFile

The log is written to a file

Fields

  • path :: T

    Path to the file to where the internal TDLib log will be written

  • max_file_size :: I53

    The maximum size of the file to where the internal TDLib log is written before the file will be auto-rotated

LogStreamEmpty

The log is written nowhere

Instances

Instances details
Eq LogStream Source # 
Instance details

Defined in TDLib.Generated.Types

Show LogStream Source # 
Instance details

Defined in TDLib.Generated.Types

Generic LogStream Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep LogStream :: Type -> Type #

ToJSON LogStream Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON LogStream Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep LogStream Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep LogStream = D1 ('MetaData "LogStream" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "LogStreamDefault" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "LogStreamFile" 'PrefixI 'True) (S1 ('MetaSel ('Just "path") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "max_file_size") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53)) :+: C1 ('MetaCons "LogStreamEmpty" 'PrefixI 'False) (U1 :: Type -> Type)))

data LogVerbosityLevel Source #

Constructors

LogVerbosityLevel

Contains a TDLib internal log verbosity level

Fields

Instances

Instances details
Eq LogVerbosityLevel Source # 
Instance details

Defined in TDLib.Generated.Types

Show LogVerbosityLevel Source # 
Instance details

Defined in TDLib.Generated.Types

Generic LogVerbosityLevel Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep LogVerbosityLevel :: Type -> Type #

ToJSON LogVerbosityLevel Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON LogVerbosityLevel Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep LogVerbosityLevel Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep LogVerbosityLevel = D1 ('MetaData "LogVerbosityLevel" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "LogVerbosityLevel" 'PrefixI 'True) (S1 ('MetaSel ('Just "verbosity_level") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)))

data LogTags Source #

Constructors

LogTags

Contains a list of available TDLib internal log tags

Fields

  • tags :: [T]

    List of log tags

Instances

Instances details
Eq LogTags Source # 
Instance details

Defined in TDLib.Generated.Types

Methods

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

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

Show LogTags Source # 
Instance details

Defined in TDLib.Generated.Types

Generic LogTags Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep LogTags :: Type -> Type #

Methods

from :: LogTags -> Rep LogTags x #

to :: Rep LogTags x -> LogTags #

ToJSON LogTags Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON LogTags Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep LogTags Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep LogTags = D1 ('MetaData "LogTags" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "LogTags" 'PrefixI 'True) (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [T])))

data TestInt Source #

Constructors

TestInt

A simple object containing a number; for testing only

Fields

Instances

Instances details
Eq TestInt Source # 
Instance details

Defined in TDLib.Generated.Types

Methods

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

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

Show TestInt Source # 
Instance details

Defined in TDLib.Generated.Types

Generic TestInt Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep TestInt :: Type -> Type #

Methods

from :: TestInt -> Rep TestInt x #

to :: Rep TestInt x -> TestInt #

ToJSON TestInt Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON TestInt Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep TestInt Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep TestInt = D1 ('MetaData "TestInt" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "TestInt" 'PrefixI 'True) (S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)))

data TestString Source #

Constructors

TestString

A simple object containing a string; for testing only

Fields

Instances

Instances details
Eq TestString Source # 
Instance details

Defined in TDLib.Generated.Types

Show TestString Source # 
Instance details

Defined in TDLib.Generated.Types

Generic TestString Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep TestString :: Type -> Type #

ToJSON TestString Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON TestString Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep TestString Source # 
Instance details

Defined in TDLib.Generated.Types

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

data TestBytes Source #

Constructors

TestBytes

A simple object containing a sequence of bytes; for testing only

Fields

Instances

Instances details
Eq TestBytes Source # 
Instance details

Defined in TDLib.Generated.Types

Show TestBytes Source # 
Instance details

Defined in TDLib.Generated.Types

Generic TestBytes Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep TestBytes :: Type -> Type #

ToJSON TestBytes Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON TestBytes Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep TestBytes Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep TestBytes = D1 ('MetaData "TestBytes" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "TestBytes" 'PrefixI 'True) (S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString64)))

data TestVectorInt Source #

Constructors

TestVectorInt

A simple object containing a vector of numbers; for testing only

Fields

Instances

Instances details
Eq TestVectorInt Source # 
Instance details

Defined in TDLib.Generated.Types

Show TestVectorInt Source # 
Instance details

Defined in TDLib.Generated.Types

Generic TestVectorInt Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep TestVectorInt :: Type -> Type #

ToJSON TestVectorInt Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON TestVectorInt Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep TestVectorInt Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep TestVectorInt = D1 ('MetaData "TestVectorInt" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "TestVectorInt" 'PrefixI 'True) (S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [I32])))

data TestVectorIntObject Source #

Constructors

TestVectorIntObject

A simple object containing a vector of objects that hold a number; for testing only

Fields

Instances

Instances details
Eq TestVectorIntObject Source # 
Instance details

Defined in TDLib.Generated.Types

Show TestVectorIntObject Source # 
Instance details

Defined in TDLib.Generated.Types

Generic TestVectorIntObject Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep TestVectorIntObject :: Type -> Type #

ToJSON TestVectorIntObject Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON TestVectorIntObject Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep TestVectorIntObject Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep TestVectorIntObject = D1 ('MetaData "TestVectorIntObject" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "TestVectorIntObject" 'PrefixI 'True) (S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [TestInt])))

data TestVectorString Source #

Constructors

TestVectorString

A simple object containing a vector of strings; for testing only

Fields

Instances

Instances details
Eq TestVectorString Source # 
Instance details

Defined in TDLib.Generated.Types

Show TestVectorString Source # 
Instance details

Defined in TDLib.Generated.Types

Generic TestVectorString Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep TestVectorString :: Type -> Type #

ToJSON TestVectorString Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON TestVectorString Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep TestVectorString Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep TestVectorString = D1 ('MetaData "TestVectorString" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "TestVectorString" 'PrefixI 'True) (S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [T])))

data TestVectorStringObject Source #

Constructors

TestVectorStringObject

A simple object containing a vector of objects that hold a string; for testing only

Fields

Instances

Instances details
Eq TestVectorStringObject Source # 
Instance details

Defined in TDLib.Generated.Types

Show TestVectorStringObject Source # 
Instance details

Defined in TDLib.Generated.Types

Generic TestVectorStringObject Source # 
Instance details

Defined in TDLib.Generated.Types

Associated Types

type Rep TestVectorStringObject :: Type -> Type #

ToJSON TestVectorStringObject Source # 
Instance details

Defined in TDLib.Generated.Types

FromJSON TestVectorStringObject Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep TestVectorStringObject Source # 
Instance details

Defined in TDLib.Generated.Types

type Rep TestVectorStringObject = D1 ('MetaData "TestVectorStringObject" "TDLib.Generated.Types" "tdlib-types-0.3.0-inplace" 'False) (C1 ('MetaCons "TestVectorStringObject" 'PrefixI 'True) (S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [TestString])))