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

TDLib.Generated.FunArgs

Description

TD API function call arguments

Synopsis

Documentation

data GetAuthorizationState Source #

Parameter of Function getAuthorizationState

Constructors

GetAuthorizationState

Returns the current authorization state; this is an offline request. For informational purposes only. Use updateAuthorizationState instead to maintain the current authorization state

Instances

Instances details
Eq GetAuthorizationState Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Show GetAuthorizationState Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Generic GetAuthorizationState Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Associated Types

type Rep GetAuthorizationState :: Type -> Type #

ToJSON GetAuthorizationState Source # 
Instance details

Defined in TDLib.Generated.FunArgs

FromJSON GetAuthorizationState Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep GetAuthorizationState Source # 
Instance details

Defined in TDLib.Generated.FunArgs

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

data SetTdlibParameters Source #

Parameter of Function setTdlibParameters

Constructors

SetTdlibParameters

Sets the parameters for TDLib initialization. Works only when the current authorization state is authorizationStateWaitTdlibParameters

Fields

Instances

Instances details
Eq SetTdlibParameters Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Show SetTdlibParameters Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Generic SetTdlibParameters Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Associated Types

type Rep SetTdlibParameters :: Type -> Type #

ToJSON SetTdlibParameters Source # 
Instance details

Defined in TDLib.Generated.FunArgs

FromJSON SetTdlibParameters Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep SetTdlibParameters Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep SetTdlibParameters = D1 ('MetaData "SetTdlibParameters" "TDLib.Generated.FunArgs" "tdlib-types-0.1.0-inplace" 'False) (C1 ('MetaCons "SetTdlibParameters" 'PrefixI 'True) (S1 ('MetaSel ('Just "parameters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TdlibParameters)))

data CheckDatabaseEncryptionKey Source #

Parameter of Function checkDatabaseEncryptionKey

Constructors

CheckDatabaseEncryptionKey

Checks the database encryption key for correctness. Works only when the current authorization state is authorizationStateWaitEncryptionKey

Fields

Instances

Instances details
Eq CheckDatabaseEncryptionKey Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Show CheckDatabaseEncryptionKey Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Generic CheckDatabaseEncryptionKey Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Associated Types

type Rep CheckDatabaseEncryptionKey :: Type -> Type #

ToJSON CheckDatabaseEncryptionKey Source # 
Instance details

Defined in TDLib.Generated.FunArgs

FromJSON CheckDatabaseEncryptionKey Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep CheckDatabaseEncryptionKey Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep CheckDatabaseEncryptionKey = D1 ('MetaData "CheckDatabaseEncryptionKey" "TDLib.Generated.FunArgs" "tdlib-types-0.1.0-inplace" 'False) (C1 ('MetaCons "CheckDatabaseEncryptionKey" 'PrefixI 'True) (S1 ('MetaSel ('Just "encryption_key") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString64)))

data SetAuthenticationPhoneNumber Source #

Parameter of Function setAuthenticationPhoneNumber

Constructors

SetAuthenticationPhoneNumber

Sets the phone number of the user and sends an authentication code to the user. Works only when the current authorization state is authorizationStateWaitPhoneNumber,

Fields

Instances

Instances details
Eq SetAuthenticationPhoneNumber Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Show SetAuthenticationPhoneNumber Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Generic SetAuthenticationPhoneNumber Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Associated Types

type Rep SetAuthenticationPhoneNumber :: Type -> Type #

ToJSON SetAuthenticationPhoneNumber Source # 
Instance details

Defined in TDLib.Generated.FunArgs

FromJSON SetAuthenticationPhoneNumber Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep SetAuthenticationPhoneNumber Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep SetAuthenticationPhoneNumber = D1 ('MetaData "SetAuthenticationPhoneNumber" "TDLib.Generated.FunArgs" "tdlib-types-0.1.0-inplace" 'False) (C1 ('MetaCons "SetAuthenticationPhoneNumber" 'PrefixI 'True) (S1 ('MetaSel ('Just "phone_number") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "settings") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PhoneNumberAuthenticationSettings)))

data ResendAuthenticationCode Source #

Parameter of Function resendAuthenticationCode

Constructors

ResendAuthenticationCode

Re-sends an authentication code to the user. Works only when the current authorization state is authorizationStateWaitCode and the next_code_type of the result is not null

Instances

Instances details
Eq ResendAuthenticationCode Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Show ResendAuthenticationCode Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Generic ResendAuthenticationCode Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Associated Types

type Rep ResendAuthenticationCode :: Type -> Type #

ToJSON ResendAuthenticationCode Source # 
Instance details

Defined in TDLib.Generated.FunArgs

FromJSON ResendAuthenticationCode Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep ResendAuthenticationCode Source # 
Instance details

Defined in TDLib.Generated.FunArgs

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

data CheckAuthenticationCode Source #

Parameter of Function checkAuthenticationCode

Constructors

CheckAuthenticationCode

Checks the authentication code. Works only when the current authorization state is authorizationStateWaitCode

Fields

  • code :: T

    The verification code received via SMS, Telegram message, phone call, or flash call

Instances

Instances details
Eq CheckAuthenticationCode Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Show CheckAuthenticationCode Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Generic CheckAuthenticationCode Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Associated Types

type Rep CheckAuthenticationCode :: Type -> Type #

ToJSON CheckAuthenticationCode Source # 
Instance details

Defined in TDLib.Generated.FunArgs

FromJSON CheckAuthenticationCode Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep CheckAuthenticationCode Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep CheckAuthenticationCode = D1 ('MetaData "CheckAuthenticationCode" "TDLib.Generated.FunArgs" "tdlib-types-0.1.0-inplace" 'False) (C1 ('MetaCons "CheckAuthenticationCode" 'PrefixI 'True) (S1 ('MetaSel ('Just "code") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)))

data RequestQrCodeAuthentication Source #

Parameter of Function requestQrCodeAuthentication

Constructors

RequestQrCodeAuthentication

Requests QR code authentication by scanning a QR code on another logged in device. Works only when the current authorization state is authorizationStateWaitPhoneNumber

Fields

  • other_user_ids :: [] I32

    List of user identifiers of other users currently using the client

Instances

Instances details
Eq RequestQrCodeAuthentication Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Show RequestQrCodeAuthentication Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Generic RequestQrCodeAuthentication Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Associated Types

type Rep RequestQrCodeAuthentication :: Type -> Type #

ToJSON RequestQrCodeAuthentication Source # 
Instance details

Defined in TDLib.Generated.FunArgs

FromJSON RequestQrCodeAuthentication Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep RequestQrCodeAuthentication Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep RequestQrCodeAuthentication = D1 ('MetaData "RequestQrCodeAuthentication" "TDLib.Generated.FunArgs" "tdlib-types-0.1.0-inplace" 'False) (C1 ('MetaCons "RequestQrCodeAuthentication" 'PrefixI 'True) (S1 ('MetaSel ('Just "other_user_ids") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [I32])))

data RegisterUser Source #

Parameter of Function registerUser

Constructors

RegisterUser

Finishes user registration. Works only when the current authorization state is authorizationStateWaitRegistration

Fields

  • first_name :: T

    The first name of the user; 1-64 characters

  • last_name :: T

    The last name of the user; 0-64 characters

Instances

Instances details
Eq RegisterUser Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Show RegisterUser Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Generic RegisterUser Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Associated Types

type Rep RegisterUser :: Type -> Type #

ToJSON RegisterUser Source # 
Instance details

Defined in TDLib.Generated.FunArgs

FromJSON RegisterUser Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep RegisterUser Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep RegisterUser = D1 ('MetaData "RegisterUser" "TDLib.Generated.FunArgs" "tdlib-types-0.1.0-inplace" 'False) (C1 ('MetaCons "RegisterUser" 'PrefixI 'True) (S1 ('MetaSel ('Just "first_name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "last_name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)))

data CheckAuthenticationPassword Source #

Parameter of Function checkAuthenticationPassword

Constructors

CheckAuthenticationPassword

Checks the authentication password for correctness. Works only when the current authorization state is authorizationStateWaitPassword

Fields

Instances

Instances details
Eq CheckAuthenticationPassword Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Show CheckAuthenticationPassword Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Generic CheckAuthenticationPassword Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Associated Types

type Rep CheckAuthenticationPassword :: Type -> Type #

ToJSON CheckAuthenticationPassword Source # 
Instance details

Defined in TDLib.Generated.FunArgs

FromJSON CheckAuthenticationPassword Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep CheckAuthenticationPassword Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep CheckAuthenticationPassword = D1 ('MetaData "CheckAuthenticationPassword" "TDLib.Generated.FunArgs" "tdlib-types-0.1.0-inplace" 'False) (C1 ('MetaCons "CheckAuthenticationPassword" 'PrefixI 'True) (S1 ('MetaSel ('Just "password") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)))

data RequestAuthenticationPasswordRecovery Source #

Parameter of Function requestAuthenticationPasswordRecovery

Constructors

RequestAuthenticationPasswordRecovery

Requests to send a password recovery code to an email address that was previously set up. Works only when the current authorization state is authorizationStateWaitPassword

Instances

Instances details
Eq RequestAuthenticationPasswordRecovery Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Show RequestAuthenticationPasswordRecovery Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Generic RequestAuthenticationPasswordRecovery Source # 
Instance details

Defined in TDLib.Generated.FunArgs

ToJSON RequestAuthenticationPasswordRecovery Source # 
Instance details

Defined in TDLib.Generated.FunArgs

FromJSON RequestAuthenticationPasswordRecovery Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep RequestAuthenticationPasswordRecovery Source # 
Instance details

Defined in TDLib.Generated.FunArgs

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

data RecoverAuthenticationPassword Source #

Parameter of Function recoverAuthenticationPassword

Constructors

RecoverAuthenticationPassword

Recovers the password with a password recovery code sent to an email address that was previously set up. Works only when the current authorization state is authorizationStateWaitPassword

Fields

Instances

Instances details
Eq RecoverAuthenticationPassword Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Show RecoverAuthenticationPassword Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Generic RecoverAuthenticationPassword Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Associated Types

type Rep RecoverAuthenticationPassword :: Type -> Type #

ToJSON RecoverAuthenticationPassword Source # 
Instance details

Defined in TDLib.Generated.FunArgs

FromJSON RecoverAuthenticationPassword Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep RecoverAuthenticationPassword Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep RecoverAuthenticationPassword = D1 ('MetaData "RecoverAuthenticationPassword" "TDLib.Generated.FunArgs" "tdlib-types-0.1.0-inplace" 'False) (C1 ('MetaCons "RecoverAuthenticationPassword" 'PrefixI 'True) (S1 ('MetaSel ('Just "recovery_code") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)))

data CheckAuthenticationBotToken Source #

Parameter of Function checkAuthenticationBotToken

Constructors

CheckAuthenticationBotToken

Checks the authentication token of a bot; to log in as a bot. Works only when the current authorization state is authorizationStateWaitPhoneNumber. Can be used instead of setAuthenticationPhoneNumber and checkAuthenticationCode to log in

Fields

Instances

Instances details
Eq CheckAuthenticationBotToken Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Show CheckAuthenticationBotToken Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Generic CheckAuthenticationBotToken Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Associated Types

type Rep CheckAuthenticationBotToken :: Type -> Type #

ToJSON CheckAuthenticationBotToken Source # 
Instance details

Defined in TDLib.Generated.FunArgs

FromJSON CheckAuthenticationBotToken Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep CheckAuthenticationBotToken Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep CheckAuthenticationBotToken = D1 ('MetaData "CheckAuthenticationBotToken" "TDLib.Generated.FunArgs" "tdlib-types-0.1.0-inplace" 'False) (C1 ('MetaCons "CheckAuthenticationBotToken" 'PrefixI 'True) (S1 ('MetaSel ('Just "token") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)))

data LogOut Source #

Parameter of Function logOut

Constructors

LogOut

Closes the TDLib instance after a proper logout. Requires an available network connection. All local data will be destroyed. After the logout completes, updateAuthorizationState with authorizationStateClosed will be sent

Instances

Instances details
Eq LogOut Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Methods

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

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

Show LogOut Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Generic LogOut Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Associated Types

type Rep LogOut :: Type -> Type #

Methods

from :: LogOut -> Rep LogOut x #

to :: Rep LogOut x -> LogOut #

ToJSON LogOut Source # 
Instance details

Defined in TDLib.Generated.FunArgs

FromJSON LogOut Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep LogOut Source # 
Instance details

Defined in TDLib.Generated.FunArgs

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

data Close Source #

Parameter of Function close

Constructors

Close

Closes the TDLib instance. All databases will be flushed to disk and properly closed. After the close completes, updateAuthorizationState with authorizationStateClosed will be sent

Instances

Instances details
Eq Close Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Methods

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

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

Show Close Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Methods

showsPrec :: Int -> Close -> ShowS #

show :: Close -> String #

showList :: [Close] -> ShowS #

Generic Close Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Associated Types

type Rep Close :: Type -> Type #

Methods

from :: Close -> Rep Close x #

to :: Rep Close x -> Close #

ToJSON Close Source # 
Instance details

Defined in TDLib.Generated.FunArgs

FromJSON Close Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep Close Source # 
Instance details

Defined in TDLib.Generated.FunArgs

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

data Destroy Source #

Parameter of Function destroy

Constructors

Destroy

Closes the TDLib instance, destroying all local data without a proper logout. The current user session will remain in the list of all active sessions. All local data will be destroyed. After the destruction completes updateAuthorizationState with authorizationStateClosed will be sent

Instances

Instances details
Eq Destroy Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Methods

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

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

Show Destroy Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Generic Destroy Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Associated Types

type Rep Destroy :: Type -> Type #

Methods

from :: Destroy -> Rep Destroy x #

to :: Rep Destroy x -> Destroy #

ToJSON Destroy Source # 
Instance details

Defined in TDLib.Generated.FunArgs

FromJSON Destroy Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep Destroy Source # 
Instance details

Defined in TDLib.Generated.FunArgs

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

data ConfirmQrCodeAuthentication Source #

Parameter of Function confirmQrCodeAuthentication

Constructors

ConfirmQrCodeAuthentication

Confirms QR code authentication on another device. Returns created session on success

Fields

  • link :: T

    A link from a QR code. The link must be scanned by the in-app camera

Instances

Instances details
Eq ConfirmQrCodeAuthentication Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Show ConfirmQrCodeAuthentication Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Generic ConfirmQrCodeAuthentication Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Associated Types

type Rep ConfirmQrCodeAuthentication :: Type -> Type #

ToJSON ConfirmQrCodeAuthentication Source # 
Instance details

Defined in TDLib.Generated.FunArgs

FromJSON ConfirmQrCodeAuthentication Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep ConfirmQrCodeAuthentication Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep ConfirmQrCodeAuthentication = D1 ('MetaData "ConfirmQrCodeAuthentication" "TDLib.Generated.FunArgs" "tdlib-types-0.1.0-inplace" 'False) (C1 ('MetaCons "ConfirmQrCodeAuthentication" 'PrefixI 'True) (S1 ('MetaSel ('Just "link") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)))

data GetCurrentState Source #

Parameter of Function getCurrentState

Constructors

GetCurrentState

Returns all updates needed to restore current TDLib state, i.e. all actual UpdateAuthorizationStateUpdateUserUpdateNewChat and others. This is especially useful if TDLib is run in a separate process. This is an offline method. Can be called before authorization

Instances

Instances details
Eq GetCurrentState Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Show GetCurrentState Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Generic GetCurrentState Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Associated Types

type Rep GetCurrentState :: Type -> Type #

ToJSON GetCurrentState Source # 
Instance details

Defined in TDLib.Generated.FunArgs

FromJSON GetCurrentState Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep GetCurrentState Source # 
Instance details

Defined in TDLib.Generated.FunArgs

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

data SetDatabaseEncryptionKey Source #

Parameter of Function setDatabaseEncryptionKey

Constructors

SetDatabaseEncryptionKey

Changes the database encryption key. Usually the encryption key is never changed and is stored in some OS keychain

Fields

Instances

Instances details
Eq SetDatabaseEncryptionKey Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Show SetDatabaseEncryptionKey Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Generic SetDatabaseEncryptionKey Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Associated Types

type Rep SetDatabaseEncryptionKey :: Type -> Type #

ToJSON SetDatabaseEncryptionKey Source # 
Instance details

Defined in TDLib.Generated.FunArgs

FromJSON SetDatabaseEncryptionKey Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep SetDatabaseEncryptionKey Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep SetDatabaseEncryptionKey = D1 ('MetaData "SetDatabaseEncryptionKey" "TDLib.Generated.FunArgs" "tdlib-types-0.1.0-inplace" 'False) (C1 ('MetaCons "SetDatabaseEncryptionKey" 'PrefixI 'True) (S1 ('MetaSel ('Just "new_encryption_key") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString64)))

data GetPasswordState Source #

Parameter of Function getPasswordState

Constructors

GetPasswordState

Returns the current state of 2-step verification

Instances

Instances details
Eq GetPasswordState Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Show GetPasswordState Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Generic GetPasswordState Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Associated Types

type Rep GetPasswordState :: Type -> Type #

ToJSON GetPasswordState Source # 
Instance details

Defined in TDLib.Generated.FunArgs

FromJSON GetPasswordState Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep GetPasswordState Source # 
Instance details

Defined in TDLib.Generated.FunArgs

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

data SetPassword Source #

Parameter of Function setPassword

Constructors

SetPassword

Changes the password for the user. If a new recovery email address is specified, then the change will not be applied until the new recovery email address is confirmed

Fields

Instances

Instances details
Eq SetPassword Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Show SetPassword Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Generic SetPassword Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Associated Types

type Rep SetPassword :: Type -> Type #

ToJSON SetPassword Source # 
Instance details

Defined in TDLib.Generated.FunArgs

FromJSON SetPassword Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep SetPassword Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep SetPassword = D1 ('MetaData "SetPassword" "TDLib.Generated.FunArgs" "tdlib-types-0.1.0-inplace" 'False) (C1 ('MetaCons "SetPassword" 'PrefixI 'True) ((S1 ('MetaSel ('Just "old_password") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "new_password") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)) :*: (S1 ('MetaSel ('Just "new_hint") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: (S1 ('MetaSel ('Just "set_recovery_email_address") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "new_recovery_email_address") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)))))

data GetRecoveryEmailAddress Source #

Parameter of Function getRecoveryEmailAddress

Constructors

GetRecoveryEmailAddress

Returns a 2-step verification recovery email address that was previously set up. This method can be used to verify a password provided by the user

Fields

  • password :: T

    The password for the current user

Instances

Instances details
Eq GetRecoveryEmailAddress Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Show GetRecoveryEmailAddress Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Generic GetRecoveryEmailAddress Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Associated Types

type Rep GetRecoveryEmailAddress :: Type -> Type #

ToJSON GetRecoveryEmailAddress Source # 
Instance details

Defined in TDLib.Generated.FunArgs

FromJSON GetRecoveryEmailAddress Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep GetRecoveryEmailAddress Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep GetRecoveryEmailAddress = D1 ('MetaData "GetRecoveryEmailAddress" "TDLib.Generated.FunArgs" "tdlib-types-0.1.0-inplace" 'False) (C1 ('MetaCons "GetRecoveryEmailAddress" 'PrefixI 'True) (S1 ('MetaSel ('Just "password") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)))

data SetRecoveryEmailAddress Source #

Parameter of Function setRecoveryEmailAddress

Constructors

SetRecoveryEmailAddress

Changes the 2-step verification recovery email address of the user. If a new recovery email address is specified, then the change will not be applied until the new recovery email address is confirmed.

Instances

Instances details
Eq SetRecoveryEmailAddress Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Show SetRecoveryEmailAddress Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Generic SetRecoveryEmailAddress Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Associated Types

type Rep SetRecoveryEmailAddress :: Type -> Type #

ToJSON SetRecoveryEmailAddress Source # 
Instance details

Defined in TDLib.Generated.FunArgs

FromJSON SetRecoveryEmailAddress Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep SetRecoveryEmailAddress Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep SetRecoveryEmailAddress = D1 ('MetaData "SetRecoveryEmailAddress" "TDLib.Generated.FunArgs" "tdlib-types-0.1.0-inplace" 'False) (C1 ('MetaCons "SetRecoveryEmailAddress" 'PrefixI 'True) (S1 ('MetaSel ('Just "password") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "new_recovery_email_address") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)))

data CheckRecoveryEmailAddressCode Source #

Parameter of Function checkRecoveryEmailAddressCode

Constructors

CheckRecoveryEmailAddressCode

Checks the 2-step verification recovery email address verification code

Fields

  • code :: T

    Verification code

Instances

Instances details
Eq CheckRecoveryEmailAddressCode Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Show CheckRecoveryEmailAddressCode Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Generic CheckRecoveryEmailAddressCode Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Associated Types

type Rep CheckRecoveryEmailAddressCode :: Type -> Type #

ToJSON CheckRecoveryEmailAddressCode Source # 
Instance details

Defined in TDLib.Generated.FunArgs

FromJSON CheckRecoveryEmailAddressCode Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep CheckRecoveryEmailAddressCode Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep CheckRecoveryEmailAddressCode = D1 ('MetaData "CheckRecoveryEmailAddressCode" "TDLib.Generated.FunArgs" "tdlib-types-0.1.0-inplace" 'False) (C1 ('MetaCons "CheckRecoveryEmailAddressCode" 'PrefixI 'True) (S1 ('MetaSel ('Just "code") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)))

data ResendRecoveryEmailAddressCode Source #

Parameter of Function resendRecoveryEmailAddressCode

Constructors

ResendRecoveryEmailAddressCode

Resends the 2-step verification recovery email address verification code

Instances

Instances details
Eq ResendRecoveryEmailAddressCode Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Show ResendRecoveryEmailAddressCode Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Generic ResendRecoveryEmailAddressCode Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Associated Types

type Rep ResendRecoveryEmailAddressCode :: Type -> Type #

ToJSON ResendRecoveryEmailAddressCode Source # 
Instance details

Defined in TDLib.Generated.FunArgs

FromJSON ResendRecoveryEmailAddressCode Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep ResendRecoveryEmailAddressCode Source # 
Instance details

Defined in TDLib.Generated.FunArgs

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

data RequestPasswordRecovery Source #

Parameter of Function requestPasswordRecovery

Constructors

RequestPasswordRecovery

Requests to send a password recovery code to an email address that was previously set up

Instances

Instances details
Eq RequestPasswordRecovery Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Show RequestPasswordRecovery Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Generic RequestPasswordRecovery Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Associated Types

type Rep RequestPasswordRecovery :: Type -> Type #

ToJSON RequestPasswordRecovery Source # 
Instance details

Defined in TDLib.Generated.FunArgs

FromJSON RequestPasswordRecovery Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep RequestPasswordRecovery Source # 
Instance details

Defined in TDLib.Generated.FunArgs

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

data RecoverPassword Source #

Parameter of Function recoverPassword

Constructors

RecoverPassword

Recovers the password using a recovery code sent to an email address that was previously set up

Fields

Instances

Instances details
Eq RecoverPassword Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Show RecoverPassword Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Generic RecoverPassword Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Associated Types

type Rep RecoverPassword :: Type -> Type #

ToJSON RecoverPassword Source # 
Instance details

Defined in TDLib.Generated.FunArgs

FromJSON RecoverPassword Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep RecoverPassword Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep RecoverPassword = D1 ('MetaData "RecoverPassword" "TDLib.Generated.FunArgs" "tdlib-types-0.1.0-inplace" 'False) (C1 ('MetaCons "RecoverPassword" 'PrefixI 'True) (S1 ('MetaSel ('Just "recovery_code") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)))

data CreateTemporaryPassword Source #

Parameter of Function createTemporaryPassword

Constructors

CreateTemporaryPassword

Creates a new temporary password for processing payments

Fields

  • password :: T

    Persistent user password

  • valid_for :: I32

    Time during which the temporary password will be valid, in seconds; should be between 60 and 86400

Instances

Instances details
Eq CreateTemporaryPassword Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Show CreateTemporaryPassword Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Generic CreateTemporaryPassword Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Associated Types

type Rep CreateTemporaryPassword :: Type -> Type #

ToJSON CreateTemporaryPassword Source # 
Instance details

Defined in TDLib.Generated.FunArgs

FromJSON CreateTemporaryPassword Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep CreateTemporaryPassword Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep CreateTemporaryPassword = D1 ('MetaData "CreateTemporaryPassword" "TDLib.Generated.FunArgs" "tdlib-types-0.1.0-inplace" 'False) (C1 ('MetaCons "CreateTemporaryPassword" 'PrefixI 'True) (S1 ('MetaSel ('Just "password") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "valid_for") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)))

data GetTemporaryPasswordState Source #

Parameter of Function getTemporaryPasswordState

Constructors

GetTemporaryPasswordState

Returns information about the current temporary password

Instances

Instances details
Eq GetTemporaryPasswordState Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Show GetTemporaryPasswordState Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Generic GetTemporaryPasswordState Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Associated Types

type Rep GetTemporaryPasswordState :: Type -> Type #

ToJSON GetTemporaryPasswordState Source # 
Instance details

Defined in TDLib.Generated.FunArgs

FromJSON GetTemporaryPasswordState Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep GetTemporaryPasswordState Source # 
Instance details

Defined in TDLib.Generated.FunArgs

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

data GetMe Source #

Parameter of Function getMe

Constructors

GetMe

Returns the current user

Instances

Instances details
Eq GetMe Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Methods

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

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

Show GetMe Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Methods

showsPrec :: Int -> GetMe -> ShowS #

show :: GetMe -> String #

showList :: [GetMe] -> ShowS #

Generic GetMe Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Associated Types

type Rep GetMe :: Type -> Type #

Methods

from :: GetMe -> Rep GetMe x #

to :: Rep GetMe x -> GetMe #

ToJSON GetMe Source # 
Instance details

Defined in TDLib.Generated.FunArgs

FromJSON GetMe Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep GetMe Source # 
Instance details

Defined in TDLib.Generated.FunArgs

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

data GetUser Source #

Parameter of Function getUser

Constructors

GetUser

Returns information about a user by their identifier. This is an offline request if the current user is not a bot

Fields

Instances

Instances details
Eq GetUser Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Methods

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

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

Show GetUser Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Generic GetUser Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Associated Types

type Rep GetUser :: Type -> Type #

Methods

from :: GetUser -> Rep GetUser x #

to :: Rep GetUser x -> GetUser #

ToJSON GetUser Source # 
Instance details

Defined in TDLib.Generated.FunArgs

FromJSON GetUser Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep GetUser Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep GetUser = D1 ('MetaData "GetUser" "TDLib.Generated.FunArgs" "tdlib-types-0.1.0-inplace" 'False) (C1 ('MetaCons "GetUser" 'PrefixI 'True) (S1 ('MetaSel ('Just "user_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)))

data GetUserFullInfo Source #

Parameter of Function getUserFullInfo

Constructors

GetUserFullInfo

Returns full information about a user by their identifier

Fields

data GetBasicGroup Source #

Parameter of Function getBasicGroup

Constructors

GetBasicGroup

Returns information about a basic group by its identifier. This is an offline request if the current user is not a bot

Fields

Instances

Instances details
Eq GetBasicGroup Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Show GetBasicGroup Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Generic GetBasicGroup Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Associated Types

type Rep GetBasicGroup :: Type -> Type #

ToJSON GetBasicGroup Source # 
Instance details

Defined in TDLib.Generated.FunArgs

FromJSON GetBasicGroup Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep GetBasicGroup Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep GetBasicGroup = D1 ('MetaData "GetBasicGroup" "TDLib.Generated.FunArgs" "tdlib-types-0.1.0-inplace" 'False) (C1 ('MetaCons "GetBasicGroup" 'PrefixI 'True) (S1 ('MetaSel ('Just "basic_group_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)))

data GetBasicGroupFullInfo Source #

Parameter of Function getBasicGroupFullInfo

Constructors

GetBasicGroupFullInfo

Returns full information about a basic group by its identifier

Fields

Instances

Instances details
Eq GetBasicGroupFullInfo Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Show GetBasicGroupFullInfo Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Generic GetBasicGroupFullInfo Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Associated Types

type Rep GetBasicGroupFullInfo :: Type -> Type #

ToJSON GetBasicGroupFullInfo Source # 
Instance details

Defined in TDLib.Generated.FunArgs

FromJSON GetBasicGroupFullInfo Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep GetBasicGroupFullInfo Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep GetBasicGroupFullInfo = D1 ('MetaData "GetBasicGroupFullInfo" "TDLib.Generated.FunArgs" "tdlib-types-0.1.0-inplace" 'False) (C1 ('MetaCons "GetBasicGroupFullInfo" 'PrefixI 'True) (S1 ('MetaSel ('Just "basic_group_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)))

data GetSupergroup Source #

Parameter of Function getSupergroup

Constructors

GetSupergroup

Returns information about a supergroup or a channel by its identifier. This is an offline request if the current user is not a bot

Fields

Instances

Instances details
Eq GetSupergroup Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Show GetSupergroup Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Generic GetSupergroup Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Associated Types

type Rep GetSupergroup :: Type -> Type #

ToJSON GetSupergroup Source # 
Instance details

Defined in TDLib.Generated.FunArgs

FromJSON GetSupergroup Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep GetSupergroup Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep GetSupergroup = D1 ('MetaData "GetSupergroup" "TDLib.Generated.FunArgs" "tdlib-types-0.1.0-inplace" 'False) (C1 ('MetaCons "GetSupergroup" 'PrefixI 'True) (S1 ('MetaSel ('Just "supergroup_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)))

data GetSupergroupFullInfo Source #

Parameter of Function getSupergroupFullInfo

Constructors

GetSupergroupFullInfo

Returns full information about a supergroup or a channel by its identifier, cached for up to 1 minute

Fields

Instances

Instances details
Eq GetSupergroupFullInfo Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Show GetSupergroupFullInfo Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Generic GetSupergroupFullInfo Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Associated Types

type Rep GetSupergroupFullInfo :: Type -> Type #

ToJSON GetSupergroupFullInfo Source # 
Instance details

Defined in TDLib.Generated.FunArgs

FromJSON GetSupergroupFullInfo Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep GetSupergroupFullInfo Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep GetSupergroupFullInfo = D1 ('MetaData "GetSupergroupFullInfo" "TDLib.Generated.FunArgs" "tdlib-types-0.1.0-inplace" 'False) (C1 ('MetaCons "GetSupergroupFullInfo" 'PrefixI 'True) (S1 ('MetaSel ('Just "supergroup_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)))

data GetSecretChat Source #

Parameter of Function getSecretChat

Constructors

GetSecretChat

Returns information about a secret chat by its identifier. This is an offline request

Fields

Instances

Instances details
Eq GetSecretChat Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Show GetSecretChat Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Generic GetSecretChat Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Associated Types

type Rep GetSecretChat :: Type -> Type #

ToJSON GetSecretChat Source # 
Instance details

Defined in TDLib.Generated.FunArgs

FromJSON GetSecretChat Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep GetSecretChat Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep GetSecretChat = D1 ('MetaData "GetSecretChat" "TDLib.Generated.FunArgs" "tdlib-types-0.1.0-inplace" 'False) (C1 ('MetaCons "GetSecretChat" 'PrefixI 'True) (S1 ('MetaSel ('Just "secret_chat_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)))

data GetChat Source #

Parameter of Function getChat

Constructors

GetChat

Returns information about a chat by its identifier, this is an offline request if the current user is not a bot

Fields

Instances

Instances details
Eq GetChat Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Methods

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

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

Show GetChat Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Generic GetChat Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Associated Types

type Rep GetChat :: Type -> Type #

Methods

from :: GetChat -> Rep GetChat x #

to :: Rep GetChat x -> GetChat #

ToJSON GetChat Source # 
Instance details

Defined in TDLib.Generated.FunArgs

FromJSON GetChat Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep GetChat Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep GetChat = D1 ('MetaData "GetChat" "TDLib.Generated.FunArgs" "tdlib-types-0.1.0-inplace" 'False) (C1 ('MetaCons "GetChat" 'PrefixI 'True) (S1 ('MetaSel ('Just "chat_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53)))

data GetMessage Source #

Parameter of Function getMessage

Constructors

GetMessage

Returns information about a message

Fields

Instances

Instances details
Eq GetMessage Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Show GetMessage Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Generic GetMessage Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Associated Types

type Rep GetMessage :: Type -> Type #

ToJSON GetMessage Source # 
Instance details

Defined in TDLib.Generated.FunArgs

FromJSON GetMessage Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep GetMessage Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep GetMessage = D1 ('MetaData "GetMessage" "TDLib.Generated.FunArgs" "tdlib-types-0.1.0-inplace" 'False) (C1 ('MetaCons "GetMessage" 'PrefixI 'True) (S1 ('MetaSel ('Just "chat_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: S1 ('MetaSel ('Just "message_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53)))

data GetMessageLocally Source #

Parameter of Function getMessageLocally

Constructors

GetMessageLocally

Returns information about a message, if it is available locally without sending network request. This is an offline request

Fields

Instances

Instances details
Eq GetMessageLocally Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Show GetMessageLocally Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Generic GetMessageLocally Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Associated Types

type Rep GetMessageLocally :: Type -> Type #

ToJSON GetMessageLocally Source # 
Instance details

Defined in TDLib.Generated.FunArgs

FromJSON GetMessageLocally Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep GetMessageLocally Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep GetMessageLocally = D1 ('MetaData "GetMessageLocally" "TDLib.Generated.FunArgs" "tdlib-types-0.1.0-inplace" 'False) (C1 ('MetaCons "GetMessageLocally" 'PrefixI 'True) (S1 ('MetaSel ('Just "chat_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: S1 ('MetaSel ('Just "message_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53)))

data GetRepliedMessage Source #

Parameter of Function getRepliedMessage

Constructors

GetRepliedMessage

Returns information about a message that is replied by given message

Fields

  • chat_id :: I53

    Identifier of the chat the message belongs to

  • message_id :: I53

    Identifier of the message reply to which get

Instances

Instances details
Eq GetRepliedMessage Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Show GetRepliedMessage Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Generic GetRepliedMessage Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Associated Types

type Rep GetRepliedMessage :: Type -> Type #

ToJSON GetRepliedMessage Source # 
Instance details

Defined in TDLib.Generated.FunArgs

FromJSON GetRepliedMessage Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep GetRepliedMessage Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep GetRepliedMessage = D1 ('MetaData "GetRepliedMessage" "TDLib.Generated.FunArgs" "tdlib-types-0.1.0-inplace" 'False) (C1 ('MetaCons "GetRepliedMessage" 'PrefixI 'True) (S1 ('MetaSel ('Just "chat_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: S1 ('MetaSel ('Just "message_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53)))

data GetChatPinnedMessage Source #

Parameter of Function getChatPinnedMessage

Constructors

GetChatPinnedMessage

Returns information about a pinned chat message

Fields

  • chat_id :: I53

    Identifier of the chat the message belongs to

Instances

Instances details
Eq GetChatPinnedMessage Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Show GetChatPinnedMessage Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Generic GetChatPinnedMessage Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Associated Types

type Rep GetChatPinnedMessage :: Type -> Type #

ToJSON GetChatPinnedMessage Source # 
Instance details

Defined in TDLib.Generated.FunArgs

FromJSON GetChatPinnedMessage Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep GetChatPinnedMessage Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep GetChatPinnedMessage = D1 ('MetaData "GetChatPinnedMessage" "TDLib.Generated.FunArgs" "tdlib-types-0.1.0-inplace" 'False) (C1 ('MetaCons "GetChatPinnedMessage" 'PrefixI 'True) (S1 ('MetaSel ('Just "chat_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53)))

data GetMessages Source #

Parameter of Function getMessages

Constructors

GetMessages

Returns information about messages. If a message is not found, returns null on the corresponding position of the result

Fields

Instances

Instances details
Eq GetMessages Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Show GetMessages Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Generic GetMessages Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Associated Types

type Rep GetMessages :: Type -> Type #

ToJSON GetMessages Source # 
Instance details

Defined in TDLib.Generated.FunArgs

FromJSON GetMessages Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep GetMessages Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep GetMessages = D1 ('MetaData "GetMessages" "TDLib.Generated.FunArgs" "tdlib-types-0.1.0-inplace" 'False) (C1 ('MetaCons "GetMessages" 'PrefixI 'True) (S1 ('MetaSel ('Just "chat_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: S1 ('MetaSel ('Just "message_ids") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [I53])))

data GetFile Source #

Parameter of Function getFile

Constructors

GetFile

Returns information about a file; this is an offline request

Fields

Instances

Instances details
Eq GetFile Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Methods

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

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

Show GetFile Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Generic GetFile Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Associated Types

type Rep GetFile :: Type -> Type #

Methods

from :: GetFile -> Rep GetFile x #

to :: Rep GetFile x -> GetFile #

ToJSON GetFile Source # 
Instance details

Defined in TDLib.Generated.FunArgs

FromJSON GetFile Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep GetFile Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep GetFile = D1 ('MetaData "GetFile" "TDLib.Generated.FunArgs" "tdlib-types-0.1.0-inplace" 'False) (C1 ('MetaCons "GetFile" 'PrefixI 'True) (S1 ('MetaSel ('Just "file_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)))

data GetRemoteFile Source #

Parameter of Function getRemoteFile

Constructors

GetRemoteFile

Returns information about a file by its remote ID; this is an offline request. Can be used to register a URL as a file for further uploading, or sending as a message. Even the request succeeds, the file can be used only if it is still accessible to the user.

Fields

Instances

Instances details
Eq GetRemoteFile Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Show GetRemoteFile Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Generic GetRemoteFile Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Associated Types

type Rep GetRemoteFile :: Type -> Type #

ToJSON GetRemoteFile Source # 
Instance details

Defined in TDLib.Generated.FunArgs

FromJSON GetRemoteFile Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep GetRemoteFile Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep GetRemoteFile = D1 ('MetaData "GetRemoteFile" "TDLib.Generated.FunArgs" "tdlib-types-0.1.0-inplace" 'False) (C1 ('MetaCons "GetRemoteFile" 'PrefixI 'True) (S1 ('MetaSel ('Just "remote_file_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "file_type") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FileType)))

data GetChats Source #

Parameter of Function getChats

Constructors

GetChats

Returns an ordered list of chats in a chat list. Chats are sorted by the pair (order, chat_id) in decreasing order. (For example, to get a list of chats from the beginning, the offset_order should be equal to a biggest signed 64-bit number 9223372036854775807 == 2^63 - 1).

Fields

  • chat_list :: ChatList

    The chat list in which to return chats

  • offset_order :: I64

    Chat order to return chats from

  • offset_chat_id :: I53

    Chat identifier to return chats from

  • limit :: I32

    The maximum number of chats to be returned. It is possible that fewer chats than the limit are returned even if the end of the list is not reached

Instances

Instances details
Eq GetChats Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Show GetChats Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Generic GetChats Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Associated Types

type Rep GetChats :: Type -> Type #

Methods

from :: GetChats -> Rep GetChats x #

to :: Rep GetChats x -> GetChats #

ToJSON GetChats Source # 
Instance details

Defined in TDLib.Generated.FunArgs

FromJSON GetChats Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep GetChats Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep GetChats = D1 ('MetaData "GetChats" "TDLib.Generated.FunArgs" "tdlib-types-0.1.0-inplace" 'False) (C1 ('MetaCons "GetChats" 'PrefixI 'True) ((S1 ('MetaSel ('Just "chat_list") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ChatList) :*: S1 ('MetaSel ('Just "offset_order") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I64)) :*: (S1 ('MetaSel ('Just "offset_chat_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: S1 ('MetaSel ('Just "limit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32))))

data SearchPublicChat Source #

Parameter of Function searchPublicChat

Constructors

SearchPublicChat

Searches a public chat by its username. Currently only private chats, supergroups and channels can be public. Returns the chat if found; otherwise an error is returned

Fields

Instances

Instances details
Eq SearchPublicChat Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Show SearchPublicChat Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Generic SearchPublicChat Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Associated Types

type Rep SearchPublicChat :: Type -> Type #

ToJSON SearchPublicChat Source # 
Instance details

Defined in TDLib.Generated.FunArgs

FromJSON SearchPublicChat Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep SearchPublicChat Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep SearchPublicChat = D1 ('MetaData "SearchPublicChat" "TDLib.Generated.FunArgs" "tdlib-types-0.1.0-inplace" 'False) (C1 ('MetaCons "SearchPublicChat" 'PrefixI 'True) (S1 ('MetaSel ('Just "username") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)))

data SearchPublicChats Source #

Parameter of Function searchPublicChats

Constructors

SearchPublicChats

Searches public chats by looking for specified query in their username and title. Currently only private chats, supergroups and channels can be public. Returns a meaningful number of results. Returns nothing if the length of the searched username prefix is less than 5. Excludes private chats with contacts and chats from the chat list from the results

Fields

Instances

Instances details
Eq SearchPublicChats Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Show SearchPublicChats Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Generic SearchPublicChats Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Associated Types

type Rep SearchPublicChats :: Type -> Type #

ToJSON SearchPublicChats Source # 
Instance details

Defined in TDLib.Generated.FunArgs

FromJSON SearchPublicChats Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep SearchPublicChats Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep SearchPublicChats = D1 ('MetaData "SearchPublicChats" "TDLib.Generated.FunArgs" "tdlib-types-0.1.0-inplace" 'False) (C1 ('MetaCons "SearchPublicChats" 'PrefixI 'True) (S1 ('MetaSel ('Just "query") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)))

data SearchChats Source #

Parameter of Function searchChats

Constructors

SearchChats

Searches for the specified query in the title and username of already known chats, this is an offline request. Returns chats in the order seen in the chat list

Fields

  • query :: T

    Query to search for. If the query is empty, returns up to 20 recently found chats

  • limit :: I32

    The maximum number of chats to be returned

Instances

Instances details
Eq SearchChats Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Show SearchChats Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Generic SearchChats Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Associated Types

type Rep SearchChats :: Type -> Type #

ToJSON SearchChats Source # 
Instance details

Defined in TDLib.Generated.FunArgs

FromJSON SearchChats Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep SearchChats Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep SearchChats = D1 ('MetaData "SearchChats" "TDLib.Generated.FunArgs" "tdlib-types-0.1.0-inplace" 'False) (C1 ('MetaCons "SearchChats" 'PrefixI 'True) (S1 ('MetaSel ('Just "query") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "limit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)))

data SearchChatsOnServer Source #

Parameter of Function searchChatsOnServer

Constructors

SearchChatsOnServer

Searches for the specified query in the title and username of already known chats via request to the server. Returns chats in the order seen in the chat list

Fields

  • query :: T

    Query to search for

  • limit :: I32

    The maximum number of chats to be returned

Instances

Instances details
Eq SearchChatsOnServer Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Show SearchChatsOnServer Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Generic SearchChatsOnServer Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Associated Types

type Rep SearchChatsOnServer :: Type -> Type #

ToJSON SearchChatsOnServer Source # 
Instance details

Defined in TDLib.Generated.FunArgs

FromJSON SearchChatsOnServer Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep SearchChatsOnServer Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep SearchChatsOnServer = D1 ('MetaData "SearchChatsOnServer" "TDLib.Generated.FunArgs" "tdlib-types-0.1.0-inplace" 'False) (C1 ('MetaCons "SearchChatsOnServer" 'PrefixI 'True) (S1 ('MetaSel ('Just "query") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "limit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)))

data SearchChatsNearby Source #

Parameter of Function searchChatsNearby

Constructors

SearchChatsNearby

Returns a list of users and location-based supergroups nearby. The list of users nearby will be updated for 60 seconds after the request by the updates updateUsersNearby. The request should be sent again every 25 seconds with adjusted location to not miss new chats

Fields

Instances

Instances details
Eq SearchChatsNearby Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Show SearchChatsNearby Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Generic SearchChatsNearby Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Associated Types

type Rep SearchChatsNearby :: Type -> Type #

ToJSON SearchChatsNearby Source # 
Instance details

Defined in TDLib.Generated.FunArgs

FromJSON SearchChatsNearby Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep SearchChatsNearby Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep SearchChatsNearby = D1 ('MetaData "SearchChatsNearby" "TDLib.Generated.FunArgs" "tdlib-types-0.1.0-inplace" 'False) (C1 ('MetaCons "SearchChatsNearby" 'PrefixI 'True) (S1 ('MetaSel ('Just "location") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Location)))

data GetTopChats Source #

Parameter of Function getTopChats

Constructors

GetTopChats

Returns a list of frequently used chats. Supported only if the chat info database is enabled

Fields

Instances

Instances details
Eq GetTopChats Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Show GetTopChats Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Generic GetTopChats Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Associated Types

type Rep GetTopChats :: Type -> Type #

ToJSON GetTopChats Source # 
Instance details

Defined in TDLib.Generated.FunArgs

FromJSON GetTopChats Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep GetTopChats Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep GetTopChats = D1 ('MetaData "GetTopChats" "TDLib.Generated.FunArgs" "tdlib-types-0.1.0-inplace" 'False) (C1 ('MetaCons "GetTopChats" 'PrefixI 'True) (S1 ('MetaSel ('Just "category") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TopChatCategory) :*: S1 ('MetaSel ('Just "limit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)))

data RemoveTopChat Source #

Parameter of Function removeTopChat

Constructors

RemoveTopChat

Removes a chat from the list of frequently used chats. Supported only if the chat info database is enabled

Fields

Instances

Instances details
Eq RemoveTopChat Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Show RemoveTopChat Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Generic RemoveTopChat Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Associated Types

type Rep RemoveTopChat :: Type -> Type #

ToJSON RemoveTopChat Source # 
Instance details

Defined in TDLib.Generated.FunArgs

FromJSON RemoveTopChat Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep RemoveTopChat Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep RemoveTopChat = D1 ('MetaData "RemoveTopChat" "TDLib.Generated.FunArgs" "tdlib-types-0.1.0-inplace" 'False) (C1 ('MetaCons "RemoveTopChat" 'PrefixI 'True) (S1 ('MetaSel ('Just "category") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TopChatCategory) :*: S1 ('MetaSel ('Just "chat_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53)))

data AddRecentlyFoundChat Source #

Parameter of Function addRecentlyFoundChat

Constructors

AddRecentlyFoundChat

Adds a chat to the list of recently found chats. The chat is added to the beginning of the list. If the chat is already in the list, it will be removed from the list first

Fields

Instances

Instances details
Eq AddRecentlyFoundChat Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Show AddRecentlyFoundChat Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Generic AddRecentlyFoundChat Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Associated Types

type Rep AddRecentlyFoundChat :: Type -> Type #

ToJSON AddRecentlyFoundChat Source # 
Instance details

Defined in TDLib.Generated.FunArgs

FromJSON AddRecentlyFoundChat Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep AddRecentlyFoundChat Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep AddRecentlyFoundChat = D1 ('MetaData "AddRecentlyFoundChat" "TDLib.Generated.FunArgs" "tdlib-types-0.1.0-inplace" 'False) (C1 ('MetaCons "AddRecentlyFoundChat" 'PrefixI 'True) (S1 ('MetaSel ('Just "chat_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53)))

data RemoveRecentlyFoundChat Source #

Parameter of Function removeRecentlyFoundChat

Constructors

RemoveRecentlyFoundChat

Removes a chat from the list of recently found chats

Fields

  • chat_id :: I53

    Identifier of the chat to be removed

Instances

Instances details
Eq RemoveRecentlyFoundChat Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Show RemoveRecentlyFoundChat Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Generic RemoveRecentlyFoundChat Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Associated Types

type Rep RemoveRecentlyFoundChat :: Type -> Type #

ToJSON RemoveRecentlyFoundChat Source # 
Instance details

Defined in TDLib.Generated.FunArgs

FromJSON RemoveRecentlyFoundChat Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep RemoveRecentlyFoundChat Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep RemoveRecentlyFoundChat = D1 ('MetaData "RemoveRecentlyFoundChat" "TDLib.Generated.FunArgs" "tdlib-types-0.1.0-inplace" 'False) (C1 ('MetaCons "RemoveRecentlyFoundChat" 'PrefixI 'True) (S1 ('MetaSel ('Just "chat_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53)))

data ClearRecentlyFoundChats Source #

Parameter of Function clearRecentlyFoundChats

Constructors

ClearRecentlyFoundChats

Clears the list of recently found chats

Instances

Instances details
Eq ClearRecentlyFoundChats Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Show ClearRecentlyFoundChats Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Generic ClearRecentlyFoundChats Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Associated Types

type Rep ClearRecentlyFoundChats :: Type -> Type #

ToJSON ClearRecentlyFoundChats Source # 
Instance details

Defined in TDLib.Generated.FunArgs

FromJSON ClearRecentlyFoundChats Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep ClearRecentlyFoundChats Source # 
Instance details

Defined in TDLib.Generated.FunArgs

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

data CheckChatUsername Source #

Parameter of Function checkChatUsername

Constructors

CheckChatUsername

Checks whether a username can be set for a chat

Fields

  • chat_id :: I53

    Chat identifier; should be identifier of a supergroup chat, or a channel chat, or a private chat with self, or zero if chat is being created

  • username :: T

    Username to be checked

Instances

Instances details
Eq CheckChatUsername Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Show CheckChatUsername Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Generic CheckChatUsername Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Associated Types

type Rep CheckChatUsername :: Type -> Type #

ToJSON CheckChatUsername Source # 
Instance details

Defined in TDLib.Generated.FunArgs

FromJSON CheckChatUsername Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep CheckChatUsername Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep CheckChatUsername = D1 ('MetaData "CheckChatUsername" "TDLib.Generated.FunArgs" "tdlib-types-0.1.0-inplace" 'False) (C1 ('MetaCons "CheckChatUsername" 'PrefixI 'True) (S1 ('MetaSel ('Just "chat_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: S1 ('MetaSel ('Just "username") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)))

data GetCreatedPublicChats Source #

Parameter of Function getCreatedPublicChats

Constructors

GetCreatedPublicChats

Returns a list of public chats of the specified type, owned by the user

Fields

Instances

Instances details
Eq GetCreatedPublicChats Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Show GetCreatedPublicChats Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Generic GetCreatedPublicChats Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Associated Types

type Rep GetCreatedPublicChats :: Type -> Type #

ToJSON GetCreatedPublicChats Source # 
Instance details

Defined in TDLib.Generated.FunArgs

FromJSON GetCreatedPublicChats Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep GetCreatedPublicChats Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep GetCreatedPublicChats = D1 ('MetaData "GetCreatedPublicChats" "TDLib.Generated.FunArgs" "tdlib-types-0.1.0-inplace" 'False) (C1 ('MetaCons "GetCreatedPublicChats" 'PrefixI 'True) (S1 ('MetaSel ('Just "type_") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PublicChatType)))

data CheckCreatedPublicChatsLimit Source #

Parameter of Function checkCreatedPublicChatsLimit

Constructors

CheckCreatedPublicChatsLimit

Checks whether the maximum number of owned public chats has been reached. Returns corresponding error if the limit was reached

Fields

Instances

Instances details
Eq CheckCreatedPublicChatsLimit Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Show CheckCreatedPublicChatsLimit Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Generic CheckCreatedPublicChatsLimit Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Associated Types

type Rep CheckCreatedPublicChatsLimit :: Type -> Type #

ToJSON CheckCreatedPublicChatsLimit Source # 
Instance details

Defined in TDLib.Generated.FunArgs

FromJSON CheckCreatedPublicChatsLimit Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep CheckCreatedPublicChatsLimit Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep CheckCreatedPublicChatsLimit = D1 ('MetaData "CheckCreatedPublicChatsLimit" "TDLib.Generated.FunArgs" "tdlib-types-0.1.0-inplace" 'False) (C1 ('MetaCons "CheckCreatedPublicChatsLimit" 'PrefixI 'True) (S1 ('MetaSel ('Just "type_") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PublicChatType)))

data GetSuitableDiscussionChats Source #

Parameter of Function getSuitableDiscussionChats

Constructors

GetSuitableDiscussionChats

Returns a list of basic group and supergroup chats, which can be used as a discussion group for a channel. Basic group chats need to be first upgraded to supergroups before they can be set as a discussion group

Instances

Instances details
Eq GetSuitableDiscussionChats Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Show GetSuitableDiscussionChats Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Generic GetSuitableDiscussionChats Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Associated Types

type Rep GetSuitableDiscussionChats :: Type -> Type #

ToJSON GetSuitableDiscussionChats Source # 
Instance details

Defined in TDLib.Generated.FunArgs

FromJSON GetSuitableDiscussionChats Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep GetSuitableDiscussionChats Source # 
Instance details

Defined in TDLib.Generated.FunArgs

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

data GetInactiveSupergroupChats Source #

Parameter of Function getInactiveSupergroupChats

Constructors

GetInactiveSupergroupChats

Returns a list of recently inactive supergroups and channels. Can be used when user reaches limit on the number of joined supergroups and channels and receives CHANNELS_TOO_MUCH error

Instances

Instances details
Eq GetInactiveSupergroupChats Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Show GetInactiveSupergroupChats Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Generic GetInactiveSupergroupChats Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Associated Types

type Rep GetInactiveSupergroupChats :: Type -> Type #

ToJSON GetInactiveSupergroupChats Source # 
Instance details

Defined in TDLib.Generated.FunArgs

FromJSON GetInactiveSupergroupChats Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep GetInactiveSupergroupChats Source # 
Instance details

Defined in TDLib.Generated.FunArgs

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

data GetGroupsInCommon Source #

Parameter of Function getGroupsInCommon

Constructors

GetGroupsInCommon

Returns a list of common group chats with a given user. Chats are sorted by their type and creation date

Fields

  • user_id :: I32

    User identifier

  • offset_chat_id :: I53

    Chat identifier starting from which to return chats; use 0 for the first request

  • limit :: I32

    The maximum number of chats to be returned; up to 100

Instances

Instances details
Eq GetGroupsInCommon Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Show GetGroupsInCommon Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Generic GetGroupsInCommon Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Associated Types

type Rep GetGroupsInCommon :: Type -> Type #

ToJSON GetGroupsInCommon Source # 
Instance details

Defined in TDLib.Generated.FunArgs

FromJSON GetGroupsInCommon Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep GetGroupsInCommon Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep GetGroupsInCommon = D1 ('MetaData "GetGroupsInCommon" "TDLib.Generated.FunArgs" "tdlib-types-0.1.0-inplace" 'False) (C1 ('MetaCons "GetGroupsInCommon" 'PrefixI 'True) (S1 ('MetaSel ('Just "user_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: (S1 ('MetaSel ('Just "offset_chat_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: S1 ('MetaSel ('Just "limit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32))))

data GetChatHistory Source #

Parameter of Function getChatHistory

Constructors

GetChatHistory

Returns messages in a chat. The messages are returned in a reverse chronological order (i.e., in order of decreasing message_id).

Fields

  • chat_id :: I53

    Chat identifier

  • from_message_id :: I53

    Identifier of the message starting from which history must be fetched; use 0 to get results from the last message

  • offset :: I32

    Specify 0 to get results from exactly the from_message_id or a negative offset up to 99 to get additionally some newer messages

  • limit :: I32

    The maximum number of messages to be returned; must be positive and can't be greater than 100. If the offset is negative, the limit must be greater or equal to -offset. Fewer messages may be returned than specified by the limit, even if the end of the message history has not been reached

  • only_local :: Bool

    If true, returns only messages that are available locally without sending network requests

Instances

Instances details
Eq GetChatHistory Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Show GetChatHistory Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Generic GetChatHistory Source # 
Instance details

Defined in TDLib.Generated.FunArgs

Associated Types

type Rep GetChatHistory :: Type -> Type #

ToJSON GetChatHistory Source # 
Instance details

Defined in TDLib.Generated.FunArgs

FromJSON GetChatHistory Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep GetChatHistory Source # 
Instance details

Defined in TDLib.Generated.FunArgs

type Rep GetChatHistory = D1 ('MetaData "GetChatHistory" "TDLib.Generated.FunArgs" "tdlib-types-0.1.0-inplace" 'False) (C1 ('MetaCons "GetChatHistory" 'PrefixI 'True) ((S1 ('MetaSel ('Just "chat_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: S1 ('MetaSel ('Just "from_message_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53)) :*: (S1 ('MetaSel ('Just "offset") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: (S1 ('MetaSel ('Just "limit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "only_local") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)))))

data DeleteChatHistory Source #

Parameter of Function deleteChatHistory

Constructors

DeleteChatHistory

Deletes all messages in the chat. Use Chat.can_be_deleted_only_for_self and Chat.can_be_deleted_for_all_users fields to find whether and how the method can be applied to the chat

Fields

Instances

Instances details
Eq DeleteChatHistory Source # 
Instance details

Defined in TDLib.Generated.FunArgs