Safe Haskell | None |
---|---|
Language | Haskell2010 |
TDLib.Generated.FunArgs
Description
TD API function call arguments
Synopsis
- data GetAuthorizationState = GetAuthorizationState {
- data SetTdlibParameters = SetTdlibParameters {}
- data CheckDatabaseEncryptionKey = CheckDatabaseEncryptionKey {}
- data SetAuthenticationPhoneNumber = SetAuthenticationPhoneNumber {}
- data ResendAuthenticationCode = ResendAuthenticationCode {
- data CheckAuthenticationCode = CheckAuthenticationCode {}
- data RequestQrCodeAuthentication = RequestQrCodeAuthentication {
- otherUserIds :: [I32]
- data RegisterUser = RegisterUser {}
- data CheckAuthenticationPassword = CheckAuthenticationPassword {}
- data RequestAuthenticationPasswordRecovery = RequestAuthenticationPasswordRecovery {
- data RecoverAuthenticationPassword = RecoverAuthenticationPassword {
- recoveryCode :: T
- data CheckAuthenticationBotToken = CheckAuthenticationBotToken {}
- data LogOut = LogOut {
- data Close = Close {
- data Destroy = Destroy {
- data ConfirmQrCodeAuthentication = ConfirmQrCodeAuthentication {}
- data GetCurrentState = GetCurrentState {
- data SetDatabaseEncryptionKey = SetDatabaseEncryptionKey {}
- data GetPasswordState = GetPasswordState {
- data SetPassword = SetPassword {}
- data GetRecoveryEmailAddress = GetRecoveryEmailAddress {}
- data SetRecoveryEmailAddress = SetRecoveryEmailAddress {}
- data CheckRecoveryEmailAddressCode = CheckRecoveryEmailAddressCode {}
- data ResendRecoveryEmailAddressCode = ResendRecoveryEmailAddressCode {
- data RequestPasswordRecovery = RequestPasswordRecovery {
- data RecoverPassword = RecoverPassword {
- recoveryCode :: T
- data CreateTemporaryPassword = CreateTemporaryPassword {}
- data GetTemporaryPasswordState = GetTemporaryPasswordState {
- data GetMe = GetMe {
- data GetUser = GetUser {}
- data GetUserFullInfo = GetUserFullInfo {}
- data GetBasicGroup = GetBasicGroup {
- basicGroupId :: I32
- data GetBasicGroupFullInfo = GetBasicGroupFullInfo {
- basicGroupId :: I32
- data GetSupergroup = GetSupergroup {
- supergroupId :: I32
- data GetSupergroupFullInfo = GetSupergroupFullInfo {
- supergroupId :: I32
- data GetSecretChat = GetSecretChat {
- secretChatId :: I32
- data GetChat = GetChat {}
- data GetMessage = GetMessage {}
- data GetMessageLocally = GetMessageLocally {}
- data GetRepliedMessage = GetRepliedMessage {}
- data GetChatPinnedMessage = GetChatPinnedMessage {}
- data GetMessages = GetMessages {
- chatId :: I53
- messageIds :: [I53]
- data GetFile = GetFile {}
- data GetRemoteFile = GetRemoteFile {
- remoteFileId :: T
- fileType :: FileType
- data GetChats = GetChats {
- chatList :: ChatList
- offsetOrder :: I64
- offsetChatId :: I53
- limit :: I32
- data SearchPublicChat = SearchPublicChat {}
- data SearchPublicChats = SearchPublicChats {}
- data SearchChats = SearchChats {}
- data SearchChatsOnServer = SearchChatsOnServer {}
- data SearchChatsNearby = SearchChatsNearby {}
- data GetTopChats = GetTopChats {
- category :: TopChatCategory
- limit :: I32
- data RemoveTopChat = RemoveTopChat {
- category :: TopChatCategory
- chatId :: I53
- data AddRecentlyFoundChat = AddRecentlyFoundChat {}
- data RemoveRecentlyFoundChat = RemoveRecentlyFoundChat {}
- data ClearRecentlyFoundChats = ClearRecentlyFoundChats {
- data CheckChatUsername = CheckChatUsername {}
- data GetCreatedPublicChats = GetCreatedPublicChats {}
- data CheckCreatedPublicChatsLimit = CheckCreatedPublicChatsLimit {}
- data GetSuitableDiscussionChats = GetSuitableDiscussionChats {
- data GetInactiveSupergroupChats = GetInactiveSupergroupChats {
- data GetGroupsInCommon = GetGroupsInCommon {}
- data GetChatHistory = GetChatHistory {}
- data DeleteChatHistory = DeleteChatHistory {}
- data SearchChatMessages = SearchChatMessages {
- chatId :: I53
- query :: T
- senderUserId :: I32
- fromMessageId :: I53
- offset :: I32
- limit :: I32
- filter :: SearchMessagesFilter
- data SearchMessages = SearchMessages {
- chatList :: ChatList
- query :: T
- offsetDate :: I32
- offsetChatId :: I53
- offsetMessageId :: I53
- limit :: I32
- data SearchSecretMessages = SearchSecretMessages {
- chatId :: I53
- query :: T
- fromSearchId :: I64
- limit :: I32
- filter :: SearchMessagesFilter
- data SearchCallMessages = SearchCallMessages {
- fromMessageId :: I53
- limit :: I32
- onlyMissed :: Bool
- data SearchChatRecentLocationMessages = SearchChatRecentLocationMessages {}
- data GetActiveLiveLocationMessages = GetActiveLiveLocationMessages {
- data GetChatMessageByDate = GetChatMessageByDate {}
- data GetChatMessageCount = GetChatMessageCount {}
- data GetChatScheduledMessages = GetChatScheduledMessages {}
- data RemoveNotification = RemoveNotification {}
- data RemoveNotificationGroup = RemoveNotificationGroup {}
- data GetPublicMessageLink = GetPublicMessageLink {}
- data GetMessageLink = GetMessageLink {}
- data GetMessageLinkInfo = GetMessageLinkInfo {}
- data SendMessage = SendMessage {}
- data SendMessageAlbum = SendMessageAlbum {}
- data SendBotStartMessage = SendBotStartMessage {}
- data SendInlineQueryResultMessage = SendInlineQueryResultMessage {
- chatId :: I53
- replyToMessageId :: I53
- options :: SendMessageOptions
- queryId :: I64
- resultId :: T
- hideViaBot :: Bool
- data ForwardMessages = ForwardMessages {
- chatId :: I53
- fromChatId :: I53
- messageIds :: [I53]
- options :: SendMessageOptions
- asAlbum :: Bool
- sendCopy :: Bool
- removeCaption :: Bool
- data ResendMessages = ResendMessages {
- chatId :: I53
- messageIds :: [I53]
- data SendChatSetTtlMessage = SendChatSetTtlMessage {}
- data SendChatScreenshotTakenNotification = SendChatScreenshotTakenNotification {}
- data AddLocalMessage = AddLocalMessage {}
- data DeleteMessages = DeleteMessages {}
- data DeleteChatMessagesFromUser = DeleteChatMessagesFromUser {}
- data EditMessageText = EditMessageText {}
- data EditMessageLiveLocation = EditMessageLiveLocation {
- chatId :: I53
- messageId :: I53
- replyMarkup :: ReplyMarkup
- location :: Maybe Location
- data EditMessageMedia = EditMessageMedia {}
- data EditMessageCaption = EditMessageCaption {
- chatId :: I53
- messageId :: I53
- replyMarkup :: ReplyMarkup
- caption :: FormattedText
- data EditMessageReplyMarkup = EditMessageReplyMarkup {
- chatId :: I53
- messageId :: I53
- replyMarkup :: ReplyMarkup
- data EditInlineMessageText = EditInlineMessageText {}
- data EditInlineMessageLiveLocation = EditInlineMessageLiveLocation {}
- data EditInlineMessageMedia = EditInlineMessageMedia {}
- data EditInlineMessageCaption = EditInlineMessageCaption {}
- data EditInlineMessageReplyMarkup = EditInlineMessageReplyMarkup {}
- data EditMessageSchedulingState = EditMessageSchedulingState {}
- data GetTextEntities = GetTextEntities {}
- data ParseTextEntities = ParseTextEntities {
- text :: T
- parseMode :: TextParseMode
- data ParseMarkdown = ParseMarkdown {}
- data GetMarkdownText = GetMarkdownText {}
- data GetFileMimeType = GetFileMimeType {}
- data GetFileExtension = GetFileExtension {}
- data CleanFileName = CleanFileName {}
- data GetLanguagePackString = GetLanguagePackString {
- languagePackDatabasePath :: T
- localizationTarget :: T
- languagePackId :: T
- key :: T
- data GetJsonValue = GetJsonValue {}
- data GetJsonString = GetJsonString {}
- data SetPollAnswer = SetPollAnswer {}
- data GetPollVoters = GetPollVoters {}
- data StopPoll = StopPoll {
- chatId :: I53
- messageId :: I53
- replyMarkup :: ReplyMarkup
- data GetLoginUrlInfo = GetLoginUrlInfo {}
- data GetLoginUrl = GetLoginUrl {}
- data GetInlineQueryResults = GetInlineQueryResults {}
- data AnswerInlineQuery = AnswerInlineQuery {
- inlineQueryId :: I64
- isPersonal :: Bool
- results :: [InputInlineQueryResult]
- cacheTime :: I32
- nextOffset :: T
- switchPmText :: T
- switchPmParameter :: T
- data GetCallbackQueryAnswer = GetCallbackQueryAnswer {}
- data AnswerCallbackQuery = AnswerCallbackQuery {}
- data AnswerShippingQuery = AnswerShippingQuery {}
- data AnswerPreCheckoutQuery = AnswerPreCheckoutQuery {}
- data SetGameScore = SetGameScore {}
- data SetInlineGameScore = SetInlineGameScore {
- inlineMessageId :: T
- editMessage :: Bool
- userId :: I32
- score :: I32
- force :: Bool
- data GetGameHighScores = GetGameHighScores {}
- data GetInlineGameHighScores = GetInlineGameHighScores {
- inlineMessageId :: T
- userId :: I32
- data DeleteChatReplyMarkup = DeleteChatReplyMarkup {}
- data SendChatAction = SendChatAction {
- chatId :: I53
- action :: ChatAction
- data OpenChat = OpenChat {}
- data CloseChat = CloseChat {}
- data ViewMessages = ViewMessages {}
- data OpenMessageContent = OpenMessageContent {}
- data ReadAllChatMentions = ReadAllChatMentions {}
- data CreatePrivateChat = CreatePrivateChat {}
- data CreateBasicGroupChat = CreateBasicGroupChat {
- basicGroupId :: I32
- force :: Bool
- data CreateSupergroupChat = CreateSupergroupChat {
- supergroupId :: I32
- force :: Bool
- data CreateSecretChat = CreateSecretChat {
- secretChatId :: I32
- data CreateNewBasicGroupChat = CreateNewBasicGroupChat {}
- data CreateNewSupergroupChat = CreateNewSupergroupChat {
- title :: T
- isChannel :: Bool
- description :: T
- location :: ChatLocation
- data CreateNewSecretChat = CreateNewSecretChat {}
- data UpgradeBasicGroupChatToSupergroupChat = UpgradeBasicGroupChatToSupergroupChat {}
- data GetChatListsToAddChat = GetChatListsToAddChat {}
- data AddChatToList = AddChatToList {}
- data GetChatFilter = GetChatFilter {
- chatFilterId :: I32
- data CreateChatFilter = CreateChatFilter {
- filter :: ChatFilter
- data EditChatFilter = EditChatFilter {
- chatFilterId :: I32
- filter :: ChatFilter
- data DeleteChatFilter = DeleteChatFilter {
- chatFilterId :: I32
- data ReorderChatFilters = ReorderChatFilters {
- chatFilterIds :: [I32]
- data GetRecommendedChatFilters = GetRecommendedChatFilters {
- data GetChatFilterDefaultIconName = GetChatFilterDefaultIconName {
- filter :: ChatFilter
- data SetChatTitle = SetChatTitle {}
- data SetChatPhoto = SetChatPhoto {}
- data SetChatPermissions = SetChatPermissions {}
- data SetChatDraftMessage = SetChatDraftMessage {}
- data SetChatNotificationSettings = SetChatNotificationSettings {}
- data ToggleChatIsMarkedAsUnread = ToggleChatIsMarkedAsUnread {
- chatId :: I53
- isMarkedAsUnread :: Bool
- data ToggleChatDefaultDisableNotification = ToggleChatDefaultDisableNotification {}
- data SetChatClientData = SetChatClientData {
- chatId :: I53
- clientData :: T
- data SetChatDescription = SetChatDescription {
- chatId :: I53
- description :: T
- data SetChatDiscussionGroup = SetChatDiscussionGroup {
- chatId :: I53
- discussionChatId :: I53
- data SetChatLocation = SetChatLocation {
- chatId :: I53
- location :: ChatLocation
- data SetChatSlowModeDelay = SetChatSlowModeDelay {
- chatId :: I53
- slowModeDelay :: I32
- data PinChatMessage = PinChatMessage {}
- data UnpinChatMessage = UnpinChatMessage {}
- data JoinChat = JoinChat {}
- data LeaveChat = LeaveChat {}
- data AddChatMember = AddChatMember {}
- data AddChatMembers = AddChatMembers {}
- data SetChatMemberStatus = SetChatMemberStatus {}
- data CanTransferOwnership = CanTransferOwnership {
- data TransferChatOwnership = TransferChatOwnership {}
- data GetChatMember = GetChatMember {}
- data SearchChatMembers = SearchChatMembers {}
- data GetChatAdministrators = GetChatAdministrators {}
- data ClearAllDraftMessages = ClearAllDraftMessages {}
- data GetChatNotificationSettingsExceptions = GetChatNotificationSettingsExceptions {}
- data GetScopeNotificationSettings = GetScopeNotificationSettings {}
- data SetScopeNotificationSettings = SetScopeNotificationSettings {}
- data ResetAllNotificationSettings = ResetAllNotificationSettings {
- data ToggleChatIsPinned = ToggleChatIsPinned {}
- data SetPinnedChats = SetPinnedChats {}
- data DownloadFile = DownloadFile {}
- data GetFileDownloadedPrefixSize = GetFileDownloadedPrefixSize {}
- data CancelDownloadFile = CancelDownloadFile {
- fileId :: I32
- onlyIfPending :: Bool
- data UploadFile = UploadFile {}
- data CancelUploadFile = CancelUploadFile {}
- data WriteGeneratedFilePart = WriteGeneratedFilePart {
- generationId :: I64
- offset :: I32
- data_ :: ByteString64
- data SetFileGenerationProgress = SetFileGenerationProgress {
- generationId :: I64
- expectedSize :: I32
- localPrefixSize :: I32
- data FinishFileGeneration = FinishFileGeneration {
- generationId :: I64
- error :: Error
- data ReadFilePart = ReadFilePart {}
- data DeleteFile = DeleteFile {}
- data GenerateChatInviteLink = GenerateChatInviteLink {}
- data CheckChatInviteLink = CheckChatInviteLink {
- inviteLink :: T
- data JoinChatByInviteLink = JoinChatByInviteLink {
- inviteLink :: T
- data CreateCall = CreateCall {
- userId :: I32
- protocol :: CallProtocol
- data AcceptCall = AcceptCall {
- callId :: I32
- protocol :: CallProtocol
- data DiscardCall = DiscardCall {
- callId :: I32
- isDisconnected :: Bool
- duration :: I32
- connectionId :: I64
- data SendCallRating = SendCallRating {}
- data SendCallDebugInformation = SendCallDebugInformation {
- callId :: I32
- debugInformation :: T
- data BlockUser = BlockUser {}
- data UnblockUser = UnblockUser {}
- data GetBlockedUsers = GetBlockedUsers {}
- data AddContact = AddContact {}
- data ImportContacts = ImportContacts {}
- data GetContacts = GetContacts {
- data SearchContacts = SearchContacts {}
- data RemoveContacts = RemoveContacts {}
- data GetImportedContactCount = GetImportedContactCount {
- data ChangeImportedContacts = ChangeImportedContacts {}
- data ClearImportedContacts = ClearImportedContacts {
- data SharePhoneNumber = SharePhoneNumber {}
- data GetUserProfilePhotos = GetUserProfilePhotos {}
- data GetStickers = GetStickers {}
- data SearchStickers = SearchStickers {}
- data GetInstalledStickerSets = GetInstalledStickerSets {}
- data GetArchivedStickerSets = GetArchivedStickerSets {}
- data GetTrendingStickerSets = GetTrendingStickerSets {}
- data GetAttachedStickerSets = GetAttachedStickerSets {}
- data GetStickerSet = GetStickerSet {}
- data SearchStickerSet = SearchStickerSet {}
- data SearchInstalledStickerSets = SearchInstalledStickerSets {}
- data SearchStickerSets = SearchStickerSets {}
- data ChangeStickerSet = ChangeStickerSet {
- setId :: I64
- isInstalled :: Bool
- isArchived :: Bool
- data ViewTrendingStickerSets = ViewTrendingStickerSets {
- stickerSetIds :: [I64]
- data ReorderInstalledStickerSets = ReorderInstalledStickerSets {
- isMasks :: Bool
- stickerSetIds :: [I64]
- data GetRecentStickers = GetRecentStickers {
- isAttached :: Bool
- data AddRecentSticker = AddRecentSticker {
- isAttached :: Bool
- sticker :: InputFile
- data RemoveRecentSticker = RemoveRecentSticker {
- isAttached :: Bool
- sticker :: InputFile
- data ClearRecentStickers = ClearRecentStickers {
- isAttached :: Bool
- data GetFavoriteStickers = GetFavoriteStickers {
- data AddFavoriteSticker = AddFavoriteSticker {}
- data RemoveFavoriteSticker = RemoveFavoriteSticker {}
- data GetStickerEmojis = GetStickerEmojis {}
- data SearchEmojis = SearchEmojis {
- text :: T
- exactMatch :: Bool
- inputLanguageCodes :: [T]
- data GetEmojiSuggestionsUrl = GetEmojiSuggestionsUrl {
- languageCode :: T
- data GetSavedAnimations = GetSavedAnimations {
- data AddSavedAnimation = AddSavedAnimation {}
- data RemoveSavedAnimation = RemoveSavedAnimation {}
- data GetRecentInlineBots = GetRecentInlineBots {
- data SearchHashtags = SearchHashtags {}
- data RemoveRecentHashtag = RemoveRecentHashtag {}
- data GetWebPagePreview = GetWebPagePreview {}
- data GetWebPageInstantView = GetWebPageInstantView {}
- data SetProfilePhoto = SetProfilePhoto {}
- data DeleteProfilePhoto = DeleteProfilePhoto {}
- data SetName = SetName {}
- data SetBio = SetBio {}
- data SetUsername = SetUsername {}
- data SetLocation = SetLocation {}
- data ChangePhoneNumber = ChangePhoneNumber {}
- data ResendChangePhoneNumberCode = ResendChangePhoneNumberCode {
- data CheckChangePhoneNumberCode = CheckChangePhoneNumberCode {}
- data SetCommands = SetCommands {
- commands :: [BotCommand]
- data GetActiveSessions = GetActiveSessions {
- data TerminateSession = TerminateSession {}
- data TerminateAllOtherSessions = TerminateAllOtherSessions {
- data GetConnectedWebsites = GetConnectedWebsites {
- data DisconnectWebsite = DisconnectWebsite {}
- data DisconnectAllWebsites = DisconnectAllWebsites {
- data SetSupergroupUsername = SetSupergroupUsername {
- supergroupId :: I32
- username :: T
- data SetSupergroupStickerSet = SetSupergroupStickerSet {
- supergroupId :: I32
- stickerSetId :: I64
- data ToggleSupergroupSignMessages = ToggleSupergroupSignMessages {
- supergroupId :: I32
- signMessages :: Bool
- data ToggleSupergroupIsAllHistoryAvailable = ToggleSupergroupIsAllHistoryAvailable {}
- data ReportSupergroupSpam = ReportSupergroupSpam {
- supergroupId :: I32
- userId :: I32
- messageIds :: [I53]
- data GetSupergroupMembers = GetSupergroupMembers {
- supergroupId :: I32
- filter :: SupergroupMembersFilter
- offset :: I32
- limit :: I32
- data DeleteSupergroup = DeleteSupergroup {
- supergroupId :: I32
- data CloseSecretChat = CloseSecretChat {
- secretChatId :: I32
- data GetChatEventLog = GetChatEventLog {}
- data GetPaymentForm = GetPaymentForm {}
- data ValidateOrderInfo = ValidateOrderInfo {}
- data SendPaymentForm = SendPaymentForm {
- chatId :: I53
- messageId :: I53
- orderInfoId :: T
- shippingOptionId :: T
- credentials :: InputCredentials
- data GetPaymentReceipt = GetPaymentReceipt {}
- data GetSavedOrderInfo = GetSavedOrderInfo {
- data DeleteSavedOrderInfo = DeleteSavedOrderInfo {
- data DeleteSavedCredentials = DeleteSavedCredentials {
- data GetSupportUser = GetSupportUser {
- data GetBackgrounds = GetBackgrounds {
- forDarkTheme :: Bool
- data GetBackgroundUrl = GetBackgroundUrl {
- name :: T
- type_ :: BackgroundType
- data SearchBackground = SearchBackground {}
- data SetBackground = SetBackground {}
- data RemoveBackground = RemoveBackground {
- backgroundId :: I64
- data ResetBackgrounds = ResetBackgrounds {
- data GetLocalizationTargetInfo = GetLocalizationTargetInfo {}
- data GetLanguagePackInfo = GetLanguagePackInfo {
- languagePackId :: T
- data GetLanguagePackStrings = GetLanguagePackStrings {
- languagePackId :: T
- keys :: [T]
- data SynchronizeLanguagePack = SynchronizeLanguagePack {
- languagePackId :: T
- data AddCustomServerLanguagePack = AddCustomServerLanguagePack {
- languagePackId :: T
- data SetCustomLanguagePack = SetCustomLanguagePack {}
- data EditCustomLanguagePackInfo = EditCustomLanguagePackInfo {}
- data SetCustomLanguagePackString = SetCustomLanguagePackString {}
- data DeleteLanguagePack = DeleteLanguagePack {
- languagePackId :: T
- data RegisterDevice = RegisterDevice {
- deviceToken :: DeviceToken
- otherUserIds :: [I32]
- data ProcessPushNotification = ProcessPushNotification {}
- data GetPushReceiverId = GetPushReceiverId {}
- data GetRecentlyVisitedTMeUrls = GetRecentlyVisitedTMeUrls {}
- data SetUserPrivacySettingRules = SetUserPrivacySettingRules {}
- data GetUserPrivacySettingRules = GetUserPrivacySettingRules {}
- data GetOption = GetOption {}
- data SetOption = SetOption {
- name :: T
- value :: OptionValue
- data SetAccountTtl = SetAccountTtl {
- ttl :: AccountTtl
- data GetAccountTtl = GetAccountTtl {
- data DeleteAccount = DeleteAccount {}
- data RemoveChatActionBar = RemoveChatActionBar {}
- data ReportChat = ReportChat {
- chatId :: I53
- reason :: ChatReportReason
- messageIds :: [I53]
- data GetChatStatisticsUrl = GetChatStatisticsUrl {}
- data GetChatStatistics = GetChatStatistics {}
- data GetChatStatisticsGraph = GetChatStatisticsGraph {}
- data GetStorageStatistics = GetStorageStatistics {}
- data GetStorageStatisticsFast = GetStorageStatisticsFast {
- data GetDatabaseStatistics = GetDatabaseStatistics {
- data OptimizeStorage = OptimizeStorage {}
- data SetNetworkType = SetNetworkType {
- type_ :: NetworkType
- data GetNetworkStatistics = GetNetworkStatistics {
- onlyCurrent :: Bool
- data AddNetworkStatistics = AddNetworkStatistics {}
- data ResetNetworkStatistics = ResetNetworkStatistics {
- data GetAutoDownloadSettingsPresets = GetAutoDownloadSettingsPresets {
- data SetAutoDownloadSettings = SetAutoDownloadSettings {}
- data GetBankCardInfo = GetBankCardInfo {
- bankCardNumber :: T
- data GetPassportElement = GetPassportElement {}
- data GetAllPassportElements = GetAllPassportElements {}
- data SetPassportElement = SetPassportElement {}
- data DeletePassportElement = DeletePassportElement {}
- data SetPassportElementErrors = SetPassportElementErrors {
- userId :: I32
- errors :: [InputPassportElementError]
- data GetPreferredCountryLanguage = GetPreferredCountryLanguage {
- countryCode :: T
- data SendPhoneNumberVerificationCode = SendPhoneNumberVerificationCode {}
- data ResendPhoneNumberVerificationCode = ResendPhoneNumberVerificationCode {
- data CheckPhoneNumberVerificationCode = CheckPhoneNumberVerificationCode {}
- data SendEmailAddressVerificationCode = SendEmailAddressVerificationCode {
- emailAddress :: T
- data ResendEmailAddressVerificationCode = ResendEmailAddressVerificationCode {
- data CheckEmailAddressVerificationCode = CheckEmailAddressVerificationCode {}
- data GetPassportAuthorizationForm = GetPassportAuthorizationForm {}
- data GetPassportAuthorizationFormAvailableElements = GetPassportAuthorizationFormAvailableElements {
- autorizationFormId :: I32
- password :: T
- data SendPassportAuthorizationForm = SendPassportAuthorizationForm {}
- data SendPhoneNumberConfirmationCode = SendPhoneNumberConfirmationCode {}
- data ResendPhoneNumberConfirmationCode = ResendPhoneNumberConfirmationCode {
- data CheckPhoneNumberConfirmationCode = CheckPhoneNumberConfirmationCode {}
- data SetBotUpdatesStatus = SetBotUpdatesStatus {}
- data UploadStickerFile = UploadStickerFile {
- userId :: I32
- pngSticker :: InputFile
- data CreateNewStickerSet = CreateNewStickerSet {}
- data AddStickerToSet = AddStickerToSet {}
- data SetStickerSetThumbnail = SetStickerSetThumbnail {}
- data SetStickerPositionInSet = SetStickerPositionInSet {}
- data RemoveStickerFromSet = RemoveStickerFromSet {}
- data GetMapThumbnailFile = GetMapThumbnailFile {}
- data AcceptTermsOfService = AcceptTermsOfService {}
- data SendCustomRequest = SendCustomRequest {
- method :: T
- parameters :: T
- data AnswerCustomQuery = AnswerCustomQuery {
- customQueryId :: I64
- data_ :: T
- data SetAlarm = SetAlarm {}
- data GetCountryCode = GetCountryCode {
- data GetInviteText = GetInviteText {
- data GetDeepLinkInfo = GetDeepLinkInfo {}
- data GetApplicationConfig = GetApplicationConfig {
- data SaveApplicationLogEvent = SaveApplicationLogEvent {}
- data AddProxy = AddProxy {}
- data EditProxy = EditProxy {}
- data EnableProxy = EnableProxy {}
- data DisableProxy = DisableProxy {
- data RemoveProxy = RemoveProxy {}
- data GetProxies = GetProxies {
- data GetProxyLink = GetProxyLink {}
- data PingProxy = PingProxy {}
- data SetLogStream = SetLogStream {}
- data GetLogStream = GetLogStream {
- data SetLogVerbosityLevel = SetLogVerbosityLevel {}
- data GetLogVerbosityLevel = GetLogVerbosityLevel {
- data GetLogTags = GetLogTags {
- data SetLogTagVerbosityLevel = SetLogTagVerbosityLevel {
- tag :: T
- newVerbosityLevel :: I32
- data GetLogTagVerbosityLevel = GetLogTagVerbosityLevel {}
- data AddLogMessage = AddLogMessage {
- verbosityLevel :: I32
- text :: T
- data TestCallEmpty = TestCallEmpty {
- data TestCallString = TestCallString {}
- data TestCallBytes = TestCallBytes {
- x :: ByteString64
- data TestCallVectorInt = TestCallVectorInt {}
- data TestCallVectorIntObject = TestCallVectorIntObject {}
- data TestCallVectorString = TestCallVectorString {}
- data TestCallVectorStringObject = TestCallVectorStringObject {
- x :: [TestString]
- data TestSquareInt = TestSquareInt {}
- data TestNetwork = TestNetwork {
- data TestProxy = TestProxy {}
- data TestGetDifference = TestGetDifference {
- data TestUseUpdate = TestUseUpdate {
- data TestReturnError = TestReturnError {}
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
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
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
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
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
data CheckAuthenticationCode Source #
Parameter of Function checkAuthenticationCode
Constructors
CheckAuthenticationCode | Checks the authentication code. Works only when the current authorization state is authorizationStateWaitCode |
Instances
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
|
Instances
data RegisterUser Source #
Parameter of Function registerUser
Constructors
RegisterUser | Finishes user registration. Works only when the current authorization state is authorizationStateWaitRegistration |
Instances
data CheckAuthenticationPassword Source #
Parameter of Function checkAuthenticationPassword
Constructors
CheckAuthenticationPassword | Checks the authentication password for correctness. Works only when the current authorization state is authorizationStateWaitPassword |
Instances
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
Eq RequestAuthenticationPasswordRecovery Source # | |
Show RequestAuthenticationPasswordRecovery Source # | |
Defined in TDLib.Generated.FunArgs Methods showsPrec :: Int -> RequestAuthenticationPasswordRecovery -> ShowS # show :: RequestAuthenticationPasswordRecovery -> String # showList :: [RequestAuthenticationPasswordRecovery] -> ShowS # | |
Generic RequestAuthenticationPasswordRecovery Source # | |
Defined in TDLib.Generated.FunArgs Associated Types type Rep RequestAuthenticationPasswordRecovery :: Type -> Type # | |
ToJSON RequestAuthenticationPasswordRecovery Source # | |
Defined in TDLib.Generated.FunArgs | |
FromJSON RequestAuthenticationPasswordRecovery Source # | |
Defined in TDLib.Generated.FunArgs | |
type Rep RequestAuthenticationPasswordRecovery Source # | |
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
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 |
Instances
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 |
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 |
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 |
data ConfirmQrCodeAuthentication Source #
Parameter of Function confirmQrCodeAuthentication
Constructors
ConfirmQrCodeAuthentication | Confirms QR code authentication on another device. Returns created session on success |
Instances
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
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
data GetPasswordState Source #
Parameter of Function getPasswordState
Constructors
GetPasswordState | Returns the current state of 2-step verification |
Instances
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
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 |
Instances
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. |
Fields
|
Instances
data CheckRecoveryEmailAddressCode Source #
Parameter of Function checkRecoveryEmailAddressCode
Constructors
CheckRecoveryEmailAddressCode | Checks the 2-step verification recovery email address verification code |
Instances
data ResendRecoveryEmailAddressCode Source #
Parameter of Function resendRecoveryEmailAddressCode
Constructors
ResendRecoveryEmailAddressCode | Resends the 2-step verification recovery email address verification code |
Instances
Eq ResendRecoveryEmailAddressCode Source # | |
Defined in TDLib.Generated.FunArgs | |
Show ResendRecoveryEmailAddressCode Source # | |
Defined in TDLib.Generated.FunArgs Methods showsPrec :: Int -> ResendRecoveryEmailAddressCode -> ShowS # show :: ResendRecoveryEmailAddressCode -> String # showList :: [ResendRecoveryEmailAddressCode] -> ShowS # | |
Generic ResendRecoveryEmailAddressCode Source # | |
Defined in TDLib.Generated.FunArgs Associated Types type Rep ResendRecoveryEmailAddressCode :: Type -> Type # | |
ToJSON ResendRecoveryEmailAddressCode Source # | |
Defined in TDLib.Generated.FunArgs | |
FromJSON ResendRecoveryEmailAddressCode Source # | |
Defined in TDLib.Generated.FunArgs Methods parseJSON :: Value -> Parser ResendRecoveryEmailAddressCode # parseJSONList :: Value -> Parser [ResendRecoveryEmailAddressCode] # | |
type Rep ResendRecoveryEmailAddressCode Source # | |
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
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
data CreateTemporaryPassword Source #
Parameter of Function createTemporaryPassword
Constructors
CreateTemporaryPassword | Creates a new temporary password for processing payments |
Instances
data GetTemporaryPasswordState Source #
Parameter of Function getTemporaryPasswordState
Constructors
GetTemporaryPasswordState | Returns information about the current temporary password |
Instances
Parameter of Function getMe
Constructors
GetMe | Returns the current user |
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 |
data GetUserFullInfo Source #
Parameter of Function getUserFullInfo
Constructors
GetUserFullInfo | Returns full information about a user by their identifier |
Instances
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
data GetBasicGroupFullInfo Source #
Parameter of Function getBasicGroupFullInfo
Constructors
GetBasicGroupFullInfo | Returns full information about a basic group by its identifier |
Fields
|
Instances
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
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
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
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 |
data GetMessage Source #
Parameter of Function getMessage
Constructors
GetMessage | Returns information about a message |
Instances
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 |
Instances
data GetRepliedMessage Source #
Parameter of Function getRepliedMessage
Constructors
GetRepliedMessage | Returns information about a message that is replied by given message |
Instances
data GetChatPinnedMessage Source #
Parameter of Function getChatPinnedMessage
Constructors
GetChatPinnedMessage | Returns information about a pinned chat message |
Instances
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
Parameter of Function getFile
Constructors
GetFile | Returns information about a file; this is an offline request |
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
Parameter of Function getChats
Constructors
GetChats | Returns an ordered list of chats in a chat list. Chats are sorted by the pair (chat.position.order, chat.id) in descending 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
|
Instances
Eq GetChats Source # | |
Show GetChats Source # | |
Generic GetChats Source # | |
ToJSON GetChats Source # | |
Defined in TDLib.Generated.FunArgs | |
FromJSON GetChats Source # | |
type Rep GetChats Source # | |
Defined in TDLib.Generated.FunArgs type Rep GetChats = D1 ('MetaData "GetChats" "TDLib.Generated.FunArgs" "tdlib-types-0.4.0-inplace" 'False) (C1 ('MetaCons "GetChats" 'PrefixI 'True) ((S1 ('MetaSel ('Just "chatList") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ChatList) :*: S1 ('MetaSel ('Just "offsetOrder") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I64)) :*: (S1 ('MetaSel ('Just "offsetChatId") '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 |
Instances
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 |
Instances
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 main chat list |
Instances
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 main chat list |
Instances
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 |
Instances
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
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
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 |
Instances
data RemoveRecentlyFoundChat Source #
Parameter of Function removeRecentlyFoundChat
Constructors
RemoveRecentlyFoundChat | Removes a chat from the list of recently found chats |
Instances
data ClearRecentlyFoundChats Source #
Parameter of Function clearRecentlyFoundChats
Constructors
ClearRecentlyFoundChats | Clears the list of recently found chats |
Instances
data CheckChatUsername Source #
Parameter of Function checkChatUsername
Constructors
CheckChatUsername | Checks whether a username can be set for a chat |
Instances
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
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
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
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
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 |
Instances
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
|
Instances
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 |
Instances
data SearchChatMessages Source #
Parameter of Function searchChatMessages
Constructors
SearchChatMessages | Searches for messages with given words in the chat. Returns the results in reverse chronological order, i.e. in order of decreasing message_id. Cannot be used in secret chats with a non-empty query |
Fields
|
Instances
data SearchMessages Source #
Parameter of Function searchMessages
Constructors
SearchMessages | Searches for messages in all chats except secret chats. Returns the results in reverse chronological order (i.e., in order of decreasing (date, chat_id, message_id)). |
Fields
|
Instances
data SearchSecretMessages Source #
Parameter of Function searchSecretMessages
Constructors
SearchSecretMessages | Searches for messages in secret chats. Returns the results in reverse chronological order. For optimal performance the number of returned messages is chosen by the library |
Fields
|
Instances
data SearchCallMessages Source #
Parameter of Function searchCallMessages
Constructors
SearchCallMessages | Searches for call messages. Returns the results in reverse chronological order (i. e., in order of decreasing message_id). For optimal performance the number of returned messages is chosen by the library |
Fields
|
Instances
data SearchChatRecentLocationMessages Source #
Parameter of Function searchChatRecentLocationMessages
Constructors
SearchChatRecentLocationMessages | Returns information about the recent locations of chat members that were sent to the chat. Returns up to 1 location message per user |
Instances
data GetActiveLiveLocationMessages Source #
Parameter of Function getActiveLiveLocationMessages
Constructors
GetActiveLiveLocationMessages | Returns all active live locations that should be updated by the client. The list is persistent across application restarts only if the message database is used |
Instances
data GetChatMessageByDate Source #
Parameter of Function getChatMessageByDate
Constructors
GetChatMessageByDate | Returns the last message sent in a chat no later than the specified date |
Instances
data GetChatMessageCount Source #
Parameter of Function getChatMessageCount
Constructors
GetChatMessageCount | Returns approximate number of messages of the specified type in the chat |
Fields
|
Instances
data GetChatScheduledMessages Source #
Parameter of Function getChatScheduledMessages
Constructors
GetChatScheduledMessages | Returns all scheduled messages in a chat. The messages are returned in a reverse chronological order (i.e., in order of decreasing message_id) |
Instances
data RemoveNotification Source #
Parameter of Function removeNotification
Constructors
RemoveNotification | Removes an active notification from notification list. Needs to be called only if the notification is removed by the current user |
Fields
|
Instances
data RemoveNotificationGroup Source #
Parameter of Function removeNotificationGroup
Constructors
RemoveNotificationGroup | Removes a group of active notifications. Needs to be called only if the notification group is removed by the current user |
Fields
|
Instances
data GetPublicMessageLink Source #
Parameter of Function getPublicMessageLink
Constructors
GetPublicMessageLink | Returns a public HTTPS link to a message. Available only for messages in supergroups and channels with a username |
Instances
data GetMessageLink Source #
Parameter of Function getMessageLink
Constructors
GetMessageLink | Returns a private HTTPS link to a message in a chat. Available only for already sent messages in supergroups and channels. The link will work only for members of the chat |
Instances
data GetMessageLinkInfo Source #
Parameter of Function getMessageLinkInfo
Constructors
GetMessageLinkInfo | Returns information about a public or private message link |
Fields
|
Instances
data SendMessage Source #
Parameter of Function sendMessage
Constructors
SendMessage | Sends a message. Returns the sent message |
Fields
|
Instances
data SendMessageAlbum Source #
Parameter of Function sendMessageAlbum
Constructors
SendMessageAlbum | Sends messages grouped together into an album. Currently only photo and video messages can be grouped into an album. Returns sent messages |
Fields
|
Instances
data SendBotStartMessage Source #
Parameter of Function sendBotStartMessage
Constructors
SendBotStartMessage | Invites a bot to a chat (if it is not yet a member) and sends it the /start command. Bots can't be invited to a private chat other than the chat with the bot. Bots can't be invited to channels (although they can be added as admins) and secret chats. Returns the sent message |
Instances
data SendInlineQueryResultMessage Source #
Parameter of Function sendInlineQueryResultMessage
Constructors
SendInlineQueryResultMessage | Sends the result of an inline query as a message. Returns the sent message. Always clears a chat draft message |
Fields
|
Instances
data ForwardMessages Source #
Parameter of Function forwardMessages
Constructors
ForwardMessages | Forwards previously sent messages. Returns the forwarded messages in the same order as the message identifiers passed in message_ids. If a message can't be forwarded, null will be returned instead of the message |
Fields
|
Instances
data ResendMessages Source #
Parameter of Function resendMessages
Constructors
ResendMessages | Resends messages which failed to send. Can be called only for messages for which messageSendingStateFailed.can_retry is true and after specified in messageSendingStateFailed.retry_after time passed. |
Fields
|
Instances
data SendChatSetTtlMessage Source #
Parameter of Function sendChatSetTtlMessage
Constructors
SendChatSetTtlMessage | Changes the current TTL setting (sets a new self-destruct timer) in a secret chat and sends the corresponding message |
Instances
data SendChatScreenshotTakenNotification Source #
Parameter of Function sendChatScreenshotTakenNotification
Constructors
SendChatScreenshotTakenNotification | Sends a notification about a screenshot taken in a chat. Supported only in private and secret chats |
Instances
data AddLocalMessage Source #
Parameter of Function addLocalMessage
Constructors
AddLocalMessage | Adds a local message to a chat. The message is persistent across application restarts only if the message database is used. Returns the added message |
Fields
|
Instances
data DeleteMessages Source #
Parameter of Function deleteMessages
Constructors
DeleteMessages | Deletes messages |
Instances
data DeleteChatMessagesFromUser Source #
Parameter of Function deleteChatMessagesFromUser
Constructors
DeleteChatMessagesFromUser | Deletes all messages sent by the specified user to a chat. Supported only for supergroups; requires can_delete_messages administrator privileges |
Instances
data EditMessageText Source #
Parameter of Function editMessageText
Constructors
EditMessageText | Edits the text of a message (or a text of a game message). Returns the edited message after the edit is completed on the server side |
Fields
|
Instances
data EditMessageLiveLocation Source #
Parameter of Function editMessageLiveLocation
Constructors
EditMessageLiveLocation | Edits the message content of a live location. Messages can be edited for a limited period of time specified in the live location. Returns the edited message after the edit is completed on the server side |
Fields
|
Instances
data EditMessageMedia Source #
Parameter of Function editMessageMedia
Constructors
EditMessageMedia | Edits the content of a message with an animation, an audio, a document, a photo or a video. The media in the message can't be replaced if the message was set to self-destruct. Media can't be replaced by self-destructing media. Media in an album can be edited only to contain a photo or a video. Returns the edited message after the edit is completed on the server side |
Fields
|
Instances
data EditMessageCaption Source #
Parameter of Function editMessageCaption
Constructors
EditMessageCaption | Edits the message content caption. Returns the edited message after the edit is completed on the server side |
Fields
|
Instances
data EditMessageReplyMarkup Source #
Parameter of Function editMessageReplyMarkup
Constructors
EditMessageReplyMarkup | Edits the message reply markup; for bots only. Returns the edited message after the edit is completed on the server side |
Fields
|
Instances
data EditInlineMessageText Source #
Parameter of Function editInlineMessageText
Constructors
EditInlineMessageText | Edits the text of an inline text or game message sent via a bot; for bots only |
Fields
|
Instances
data EditInlineMessageLiveLocation Source #
Parameter of Function editInlineMessageLiveLocation
Constructors
EditInlineMessageLiveLocation | Edits the content of a live location in an inline message sent via a bot; for bots only |
Fields
|
Instances
data EditInlineMessageMedia Source #
Parameter of Function editInlineMessageMedia
Constructors
EditInlineMessageMedia | Edits the content of a message with an animation, an audio, a document, a photo or a video in an inline message sent via a bot; for bots only |
Fields
|
Instances
data EditInlineMessageCaption Source #
Parameter of Function editInlineMessageCaption
Constructors
EditInlineMessageCaption | Edits the caption of an inline message sent via a bot; for bots only |
Fields
|
Instances
data EditInlineMessageReplyMarkup Source #
Parameter of Function editInlineMessageReplyMarkup
Constructors
EditInlineMessageReplyMarkup | Edits the reply markup of an inline message sent via a bot; for bots only |
Fields
|
Instances
data EditMessageSchedulingState Source #
Parameter of Function editMessageSchedulingState
Constructors
EditMessageSchedulingState | Edits the time when a scheduled message will be sent. Scheduling state of all messages in the same album or forwarded together with the message will be also changed |
Fields
|
Instances
data GetTextEntities Source #
Parameter of Function getTextEntities
Constructors
GetTextEntities | Returns all entities (mentions, hashtags, cashtags, bot commands, bank card numbers, URLs, and email addresses) contained in the text. This is an offline method. Can be called before authorization. Can be called synchronously |
Instances
data ParseTextEntities Source #
Parameter of Function parseTextEntities
Constructors
ParseTextEntities | Parses Bold, Italic, Underline, Strikethrough, Code, Pre, PreCode, TextUrl and MentionName entities contained in the text. This is an offline method. Can be called before authorization. Can be called synchronously |
Fields
|
Instances
data ParseMarkdown Source #
Parameter of Function parseMarkdown
Constructors
ParseMarkdown | Parses Markdown entities in a human-friendly format, ignoring mark up errors. This is an offline method. Can be called before authorization. Can be called synchronously |
Fields
|
Instances
data GetMarkdownText Source #
Parameter of Function getMarkdownText
Constructors
GetMarkdownText | Replaces text entities with Markdown formatting in a human-friendly format. Entities that can't be represented in Markdown unambiguously are kept as is. This is an offline method. Can be called before authorization. Can be called synchronously |
Fields
|
Instances
data GetFileMimeType Source #
Parameter of Function getFileMimeType
Constructors
GetFileMimeType | Returns the MIME type of a file, guessed by its extension. Returns an empty string on failure. This is an offline method. Can be called before authorization. Can be called synchronously |
Instances
data GetFileExtension Source #
Parameter of Function getFileExtension
Constructors
GetFileExtension | Returns the extension of a file, guessed by its MIME type. Returns an empty string on failure. This is an offline method. Can be called before authorization. Can be called synchronously |
Instances
data CleanFileName Source #
Parameter of Function cleanFileName
Constructors
CleanFileName | Removes potentially dangerous characters from the name of a file. The encoding of the file name is supposed to be UTF-8. Returns an empty string on failure. This is an offline method. Can be called before authorization. Can be called synchronously |
Instances
data GetLanguagePackString Source #
Parameter of Function getLanguagePackString
Constructors
GetLanguagePackString | Returns a string stored in the local database from the specified localization target and language pack by its key. Returns a 404 error if the string is not found. This is an offline method. Can be called before authorization. Can be called synchronously |
Fields
|
Instances
data GetJsonValue Source #
Parameter of Function getJsonValue
Constructors
GetJsonValue | Converts a JSON-serialized string to corresponding JsonValue object. This is an offline method. Can be called before authorization. Can be called synchronously |
Instances
Eq GetJsonValue Source # | |
Defined in TDLib.Generated.FunArgs | |
Show GetJsonValue Source # | |
Defined in TDLib.Generated.FunArgs Methods showsPrec :: Int -> GetJsonValue -> ShowS # show :: GetJsonValue -> String # showList :: [GetJsonValue] -> ShowS # | |
Generic GetJsonValue Source # | |
Defined in TDLib.Generated.FunArgs Associated Types type Rep GetJsonValue :: Type -> Type # | |
ToJSON GetJsonValue Source # | |
Defined in TDLib.Generated.FunArgs Methods toJSON :: GetJsonValue -> Value # toEncoding :: GetJsonValue -> Encoding # toJSONList :: [GetJsonValue] -> Value # toEncodingList :: [GetJsonValue] -> Encoding # | |
FromJSON GetJsonValue Source # | |
Defined in TDLib.Generated.FunArgs | |
type Rep GetJsonValue Source # | |
Defined in TDLib.Generated.FunArgs type Rep GetJsonValue = D1 ('MetaData "GetJsonValue" "TDLib.Generated.FunArgs" "tdlib-types-0.4.0-inplace" 'False) (C1 ('MetaCons "GetJsonValue" 'PrefixI 'True) (S1 ('MetaSel ('Just "json") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T))) |
data GetJsonString Source #
Parameter of Function getJsonString
Constructors
GetJsonString | Converts a JsonValue object to corresponding JSON-serialized string. This is an offline method. Can be called before authorization. Can be called synchronously |
Instances
data SetPollAnswer Source #
Parameter of Function setPollAnswer
Constructors
SetPollAnswer | Changes the user answer to a poll. A poll in quiz mode can be answered only once |
Instances
data GetPollVoters Source #
Parameter of Function getPollVoters
Constructors
GetPollVoters | Returns users voted for the specified option in a non-anonymous polls. For the optimal performance the number of returned users is chosen by the library |
Fields
|
Instances
Parameter of Function stopPoll
Constructors
StopPoll | Stops a poll. A poll in a message can be stopped when the message has can_be_edited flag set |
Fields
|
Instances
Eq StopPoll Source # | |
Show StopPoll Source # | |
Generic StopPoll Source # | |
ToJSON StopPoll Source # | |
Defined in TDLib.Generated.FunArgs | |
FromJSON StopPoll Source # | |
type Rep StopPoll Source # | |
Defined in TDLib.Generated.FunArgs type Rep StopPoll = D1 ('MetaData "StopPoll" "TDLib.Generated.FunArgs" "tdlib-types-0.4.0-inplace" 'False) (C1 ('MetaCons "StopPoll" 'PrefixI 'True) (S1 ('MetaSel ('Just "chatId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: (S1 ('MetaSel ('Just "messageId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53) :*: S1 ('MetaSel ('Just "replyMarkup") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ReplyMarkup)))) |
data GetLoginUrlInfo Source #
Parameter of Function getLoginUrlInfo
Constructors
GetLoginUrlInfo | Returns information about a button of type inlineKeyboardButtonTypeLoginUrl. The method needs to be called when the user presses the button |
Instances
data GetLoginUrl Source #
Parameter of Function getLoginUrl
Constructors
GetLoginUrl | Returns an HTTP URL which can be used to automatically authorize the user on a website after clicking an inline button of type inlineKeyboardButtonTypeLoginUrl. |
Instances
data GetInlineQueryResults Source #
Parameter of Function getInlineQueryResults
Constructors
GetInlineQueryResults | Sends an inline query to a bot and returns its results. Returns an error with code 502 if the bot fails to answer the query before the query timeout expires |
Instances
data AnswerInlineQuery Source #
Parameter of Function answerInlineQuery
Constructors
AnswerInlineQuery | Sets the result of an inline query; for bots only |
Fields
|
Instances
data GetCallbackQueryAnswer Source #
Parameter of Function getCallbackQueryAnswer
Constructors
GetCallbackQueryAnswer | Sends a callback query to a bot and returns an answer. Returns an error with code 502 if the bot fails to answer the query before the query timeout expires |
Instances
data AnswerCallbackQuery Source #
Parameter of Function answerCallbackQuery
Constructors
AnswerCallbackQuery | Sets the result of a callback query; for bots only |
Instances
data AnswerShippingQuery Source #
Parameter of Function answerShippingQuery
Constructors
AnswerShippingQuery | Sets the result of a shipping query; for bots only |
Fields
|
Instances
data AnswerPreCheckoutQuery Source #
Parameter of Function answerPreCheckoutQuery
Constructors
AnswerPreCheckoutQuery | Sets the result of a pre-checkout query; for bots only |
Fields
|
Instances
data SetGameScore Source #
Parameter of Function setGameScore
Constructors
SetGameScore | Updates the game score of the specified user in the game; for bots only |
Fields
|
Instances
data SetInlineGameScore Source #
Parameter of Function setInlineGameScore
Constructors
SetInlineGameScore | Updates the game score of the specified user in a game; for bots only |
Fields
|
Instances
data GetGameHighScores Source #
Parameter of Function getGameHighScores
Constructors
GetGameHighScores | Returns the high scores for a game and some part of the high score table in the range of the specified user; for bots only |
Instances
data GetInlineGameHighScores Source #
Parameter of Function getInlineGameHighScores
Constructors
GetInlineGameHighScores | Returns game high scores and some part of the high score table in the range of the specified user; for bots only |
Fields
|
Instances
data DeleteChatReplyMarkup Source #
Parameter of Function deleteChatReplyMarkup
Constructors
DeleteChatReplyMarkup | Deletes the default reply markup from a chat. Must be called after a one-time keyboard or a ForceReply reply markup has been used. UpdateChatReplyMarkup will be sent if the reply markup will be changed |
Instances
data SendChatAction Source #
Parameter of Function sendChatAction
Constructors
SendChatAction | Sends a notification about user activity in a chat |
Fields
|
Instances
Parameter of Function openChat
Constructors
OpenChat | Informs TDLib that the chat is opened by the user. Many useful activities depend on the chat being opened or closed (e.g., in supergroups and channels all updates are received only for opened chats) |
Parameter of Function closeChat
Constructors
CloseChat | Informs TDLib that the chat is closed by the user. Many useful activities depend on the chat being opened or closed |
data ViewMessages Source #
Parameter of Function viewMessages
Constructors
ViewMessages | Informs TDLib that messages are being viewed by the user. Many useful activities depend on whether the messages are currently being viewed or not (e.g., marking messages as read, incrementing a view counter, updating a view counter, removing deleted messages in supergroups and channels) |
Instances
data OpenMessageContent Source #
Parameter of Function openMessageContent
Constructors
OpenMessageContent | Informs TDLib that the message content has been opened (e.g., the user has opened a photo, video, document, location or venue, or has listened to an audio file or voice note message). An updateMessageContentOpened update will be generated if something has changed |
Instances
data ReadAllChatMentions Source #
Parameter of Function readAllChatMentions
Constructors
ReadAllChatMentions | Marks all mentions in a chat as read |
Instances
data CreatePrivateChat Source #
Parameter of Function createPrivateChat
Constructors
CreatePrivateChat | Returns an existing chat corresponding to a given user |
Instances
data CreateBasicGroupChat Source #
Parameter of Function createBasicGroupChat
Constructors
CreateBasicGroupChat | Returns an existing chat corresponding to a known basic group |
Fields
|
Instances
data CreateSupergroupChat Source #
Parameter of Function createSupergroupChat
Constructors
CreateSupergroupChat | Returns an existing chat corresponding to a known supergroup or channel |
Fields
|
Instances
data CreateSecretChat Source #
Parameter of Function createSecretChat
Constructors
CreateSecretChat | Returns an existing chat corresponding to a known secret chat |
Fields
|
Instances
data CreateNewBasicGroupChat Source #
Parameter of Function createNewBasicGroupChat
Constructors
CreateNewBasicGroupChat | Creates a new basic group and sends a corresponding messageBasicGroupChatCreate. Returns the newly created chat |
Instances
data CreateNewSupergroupChat Source #
Parameter of Function createNewSupergroupChat
Constructors
CreateNewSupergroupChat | Creates a new supergroup or channel and sends a corresponding messageSupergroupChatCreate. Returns the newly created chat |
Fields
|
Instances
data CreateNewSecretChat Source #
Parameter of Function createNewSecretChat
Constructors
CreateNewSecretChat | Creates a new secret chat. Returns the newly created chat |
Instances
data UpgradeBasicGroupChatToSupergroupChat Source #
Parameter of Function upgradeBasicGroupChatToSupergroupChat
Constructors
UpgradeBasicGroupChatToSupergroupChat | Creates a new supergroup from an existing basic group and sends a corresponding messageChatUpgradeTo and messageChatUpgradeFrom; requires creator privileges. Deactivates the original basic group |
Instances
data GetChatListsToAddChat Source #
Parameter of Function getChatListsToAddChat
Constructors
GetChatListsToAddChat | Returns chat lists to which the chat can be added. This is an offline request |
Instances
data AddChatToList Source #
Parameter of Function addChatToList
Constructors
AddChatToList | Adds a chat to a chat list. A chat can't be simultaneously in Main and Archive chat lists, so it is automatically removed from another one if needed |
Instances
data GetChatFilter Source #
Parameter of Function getChatFilter
Constructors
GetChatFilter | Returns information about a chat filter by its identifier |
Fields
|
Instances
data CreateChatFilter Source #
Parameter of Function createChatFilter
Constructors
CreateChatFilter | Creates new chat filter. Returns information about the created chat filter |
Fields
|
Instances
data EditChatFilter Source #
Parameter of Function editChatFilter
Constructors
EditChatFilter | Edits existing chat filter. Returns information about the edited chat filter |
Fields
|
Instances
data DeleteChatFilter Source #
Parameter of Function deleteChatFilter
Constructors
DeleteChatFilter | Deletes existing chat filter |
Fields
|
Instances
data ReorderChatFilters Source #
Parameter of Function reorderChatFilters
Constructors
ReorderChatFilters | Changes the order of chat filters |
Fields
|
Instances
data GetRecommendedChatFilters Source #
Parameter of Function getRecommendedChatFilters
Constructors
GetRecommendedChatFilters | Returns recommended chat filters for the current user |
Instances
data GetChatFilterDefaultIconName Source #
Parameter of Function getChatFilterDefaultIconName
Constructors
GetChatFilterDefaultIconName | Returns default icon name for a filter. This is an offline method. Can be called before authorization. Can be called synchronously |
Fields
|
Instances
data SetChatTitle Source #
Parameter of Function setChatTitle
Constructors
SetChatTitle | Changes the chat title. Supported only for basic groups, supergroups and channels. Requires can_change_info rights. The title will not be changed until the request to the server has been completed |
Instances
data SetChatPhoto Source #
Parameter of Function setChatPhoto
Constructors
SetChatPhoto | Changes the photo of a chat. Supported only for basic groups, supergroups and channels. Requires can_change_info rights. The photo will not be changed before request to the server has been completed |
Instances
data SetChatPermissions Source #
Parameter of Function setChatPermissions
Constructors
SetChatPermissions | Changes the chat members permissions. Supported only for basic groups and supergroups. Requires can_restrict_members administrator right |
Fields
|
Instances
data SetChatDraftMessage Source #
Parameter of Function setChatDraftMessage
Constructors
SetChatDraftMessage | Changes the draft message in a chat |
Fields
|
Instances
data SetChatNotificationSettings Source #
Parameter of Function setChatNotificationSettings
Constructors
SetChatNotificationSettings | Changes the notification settings of a chat. Notification settings of a chat with the current user (Saved Messages) can't be changed |
Fields
|
Instances
data ToggleChatIsMarkedAsUnread Source #
Parameter of Function toggleChatIsMarkedAsUnread
Constructors
ToggleChatIsMarkedAsUnread | Changes the marked as unread state of a chat |
Fields
|
Instances
data ToggleChatDefaultDisableNotification Source #
Parameter of Function toggleChatDefaultDisableNotification
Constructors
ToggleChatDefaultDisableNotification | Changes the value of the default disable_notification parameter, used when a message is sent to a chat |
Fields
|
Instances
data SetChatClientData Source #
Parameter of Function setChatClientData
Constructors
SetChatClientData | Changes client data associated with a chat |
Fields
|
Instances
data SetChatDescription Source #
Parameter of Function setChatDescription
Constructors
SetChatDescription | Changes information about a chat. Available for basic groups, supergroups, and channels. Requires can_change_info rights |
Fields
|
Instances
data SetChatDiscussionGroup Source #
Parameter of Function setChatDiscussionGroup
Constructors
SetChatDiscussionGroup | Changes the discussion group of a channel chat; requires can_change_info rights in the channel if it is specified |
Fields
|
Instances
data SetChatLocation Source #
Parameter of Function setChatLocation
Constructors
SetChatLocation | Changes the location of a chat. Available only for some location-based supergroups, use supergroupFullInfo.can_set_location to check whether the method is allowed to use |
Fields
|
Instances
data SetChatSlowModeDelay Source #
Parameter of Function setChatSlowModeDelay
Constructors
SetChatSlowModeDelay | Changes the slow mode delay of a chat. Available only for supergroups; requires can_restrict_members rights |
Fields
|
Instances
data PinChatMessage Source #
Parameter of Function pinChatMessage
Constructors
PinChatMessage | Pins a message in a chat; requires can_pin_messages rights |
Instances
data UnpinChatMessage Source #
Parameter of Function unpinChatMessage
Constructors
UnpinChatMessage | Removes the pinned message from a chat; requires can_pin_messages rights in the group or channel |
Instances
Parameter of Function joinChat
Constructors
JoinChat | Adds current user as a new member to a chat. Private and secret chats can't be joined using this method |
Parameter of Function leaveChat
Constructors
LeaveChat | Removes current user from chat members. Private and secret chats can't be left using this method |
data AddChatMember Source #
Parameter of Function addChatMember
Constructors
AddChatMember | Adds a new member to a chat. Members can't be added to private or secret chats. Members will not be added until the chat state has been synchronized with the server |
Instances
data AddChatMembers Source #
Parameter of Function addChatMembers
Constructors
AddChatMembers | Adds multiple new members to a chat. Currently this option is only available for supergroups and channels. This option can't be used to join a chat. Members can't be added to a channel if it has more than 200 members. Members will not be added until the chat state has been synchronized with the server |
Instances
data SetChatMemberStatus Source #
Parameter of Function setChatMemberStatus
Constructors
SetChatMemberStatus | Changes the status of a chat member, needs appropriate privileges. This function is currently not suitable for adding new members to the chat and transferring chat ownership; instead, use addChatMember or transferChatOwnership. The chat member status will not be changed until it has been synchronized with the server |
Instances
data CanTransferOwnership Source #
Parameter of Function canTransferOwnership
Constructors
CanTransferOwnership | Checks whether the current session can be used to transfer a chat ownership to another user |
Instances
data TransferChatOwnership Source #
Parameter of Function transferChatOwnership
Constructors
TransferChatOwnership | Changes the owner of a chat. The current user must be a current owner of the chat. Use the method canTransferOwnership to check whether the ownership can be transferred from the current session. Available only for supergroups and channel chats |
Instances
data GetChatMember Source #
Parameter of Function getChatMember
Constructors
GetChatMember | Returns information about a single member of a chat |
Instances
data SearchChatMembers Source #
Parameter of Function searchChatMembers
Constructors
SearchChatMembers | Searches for a specified query in the first name, last name and username of the members of a specified chat. Requires administrator rights in channels |
Instances
data GetChatAdministrators Source #
Parameter of Function getChatAdministrators
Constructors
GetChatAdministrators | Returns a list of administrators of the chat with their custom titles |
Instances
data ClearAllDraftMessages Source #
Parameter of Function clearAllDraftMessages
Constructors
ClearAllDraftMessages | Clears draft messages in all chats |
Fields
|
Instances
data GetChatNotificationSettingsExceptions Source #
Parameter of Function getChatNotificationSettingsExceptions
Constructors
GetChatNotificationSettingsExceptions | Returns list of chats with non-default notification settings |
Fields
|
Instances
data GetScopeNotificationSettings Source #
Parameter of Function getScopeNotificationSettings
Constructors
GetScopeNotificationSettings | Returns the notification settings for chats of a given type |
Fields
|
Instances
data SetScopeNotificationSettings Source #
Parameter of Function setScopeNotificationSettings
Constructors
SetScopeNotificationSettings | Changes notification settings for chats of a given type |
Fields
|
Instances
data ResetAllNotificationSettings Source #
Parameter of Function resetAllNotificationSettings
Constructors
ResetAllNotificationSettings | Resets all notification settings to their default values. By default, all chats are unmuted, the sound is set to "default" and message previews are shown |
Instances
data ToggleChatIsPinned Source #
Parameter of Function toggleChatIsPinned
Constructors
ToggleChatIsPinned | Changes the pinned state of a chat. You can pin up to GetOption("pinned_chat_count_max")GetOption("pinned_archived_chat_count_max") non-secret chats and the same number of secret chats in the mainarhive chat list |
Instances
data SetPinnedChats Source #
Parameter of Function setPinnedChats
Constructors
SetPinnedChats | Changes the order of pinned chats |
Instances
data DownloadFile Source #
Parameter of Function downloadFile
Constructors
DownloadFile | Downloads a file from the cloud. Download progress and completion of the download will be notified through updateFile updates |
Fields
|
Instances
data GetFileDownloadedPrefixSize Source #
Parameter of Function getFileDownloadedPrefixSize
Constructors
GetFileDownloadedPrefixSize | Returns file downloaded prefix size from a given offset |
Instances
data CancelDownloadFile Source #
Parameter of Function cancelDownloadFile
Constructors
CancelDownloadFile | Stops the downloading of a file. If a file has already been downloaded, does nothing |
Fields
|
Instances
data UploadFile Source #
Parameter of Function uploadFile
Constructors
UploadFile | Asynchronously uploads a file to the cloud without sending it in a message. updateFile will be used to notify about upload progress and successful completion of the upload. The file will not have a persistent remote identifier until it will be sent in a message |
Instances
data CancelUploadFile Source #
Parameter of Function cancelUploadFile
Constructors
CancelUploadFile | Stops the uploading of a file. Supported only for files uploaded by using uploadFile. For other files the behavior is undefined |
Instances
data WriteGeneratedFilePart Source #
Parameter of Function writeGeneratedFilePart
Constructors
WriteGeneratedFilePart | Writes a part of a generated file. This method is intended to be used only if the client has no direct access to TDLib's file system, because it is usually slower than a direct write to the destination file |
Fields
|
Instances
data SetFileGenerationProgress Source #
Parameter of Function setFileGenerationProgress
Constructors
SetFileGenerationProgress | Informs TDLib on a file generation progress |
Fields
|
Instances
data FinishFileGeneration Source #
Parameter of Function finishFileGeneration
Constructors
FinishFileGeneration | Finishes the file generation |
Fields
|
Instances
data ReadFilePart Source #
Parameter of Function readFilePart
Constructors
ReadFilePart | Reads a part of a file from the TDLib file cache and returns read bytes. This method is intended to be used only if the client has no direct access to TDLib's file system, because it is usually slower than a direct read from the file |
Fields
|
Instances
data DeleteFile Source #
Parameter of Function deleteFile
Constructors
DeleteFile | Deletes a file from the TDLib file cache |
Instances
Eq DeleteFile Source # | |
Defined in TDLib.Generated.FunArgs | |
Show DeleteFile Source # | |
Defined in TDLib.Generated.FunArgs Methods showsPrec :: Int -> DeleteFile -> ShowS # show :: DeleteFile -> String # showList :: [DeleteFile] -> ShowS # | |
Generic DeleteFile Source # | |
Defined in TDLib.Generated.FunArgs Associated Types type Rep DeleteFile :: Type -> Type # | |
ToJSON DeleteFile Source # | |
Defined in TDLib.Generated.FunArgs Methods toJSON :: DeleteFile -> Value # toEncoding :: DeleteFile -> Encoding # toJSONList :: [DeleteFile] -> Value # toEncodingList :: [DeleteFile] -> Encoding # | |
FromJSON DeleteFile Source # | |
Defined in TDLib.Generated.FunArgs | |
type Rep DeleteFile Source # | |
Defined in TDLib.Generated.FunArgs type Rep DeleteFile = D1 ('MetaData "DeleteFile" "TDLib.Generated.FunArgs" "tdlib-types-0.4.0-inplace" 'False) (C1 ('MetaCons "DeleteFile" 'PrefixI 'True) (S1 ('MetaSel ('Just "fileId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32))) |
data GenerateChatInviteLink Source #
Parameter of Function generateChatInviteLink
Constructors
GenerateChatInviteLink | Generates a new invite link for a chat; the previously generated link is revoked. Available for basic groups, supergroups, and channels. Requires administrator privileges and can_invite_users right |
Instances
data CheckChatInviteLink Source #
Parameter of Function checkChatInviteLink
Constructors
CheckChatInviteLink | Checks the validity of an invite link for a chat and returns information about the corresponding chat |
Fields
|
Instances
data JoinChatByInviteLink Source #
Parameter of Function joinChatByInviteLink
Constructors
JoinChatByInviteLink | Uses an invite link to add the current user to the chat if possible. The new member will not be added until the chat state has been synchronized with the server |
Fields
|
Instances
data CreateCall Source #
Parameter of Function createCall
Constructors
CreateCall | Creates a new call |
Fields
|
Instances
data AcceptCall Source #
Parameter of Function acceptCall
Constructors
AcceptCall | Accepts an incoming call |
Fields
|
Instances
data DiscardCall Source #
Parameter of Function discardCall
Constructors
DiscardCall | Discards a call |
Fields
|
Instances
data SendCallRating Source #
Parameter of Function sendCallRating
Constructors
SendCallRating | Sends a call rating |
Instances
data SendCallDebugInformation Source #
Parameter of Function sendCallDebugInformation
Constructors
SendCallDebugInformation | Sends debug information for a call |
Fields
|
Instances
Parameter of Function blockUser
data UnblockUser Source #
Parameter of Function unblockUser
Constructors
UnblockUser | Removes a user from the blacklist |
Instances
Eq UnblockUser Source # | |
Defined in TDLib.Generated.FunArgs | |
Show UnblockUser Source # | |
Defined in TDLib.Generated.FunArgs Methods showsPrec :: Int -> UnblockUser -> ShowS # show :: UnblockUser -> String # showList :: [UnblockUser] -> ShowS # | |
Generic UnblockUser Source # | |
Defined in TDLib.Generated.FunArgs Associated Types type Rep UnblockUser :: Type -> Type # | |
ToJSON UnblockUser Source # | |
Defined in TDLib.Generated.FunArgs Methods toJSON :: UnblockUser -> Value # toEncoding :: UnblockUser -> Encoding # toJSONList :: [UnblockUser] -> Value # toEncodingList :: [UnblockUser] -> Encoding # | |
FromJSON UnblockUser Source # | |
Defined in TDLib.Generated.FunArgs | |
type Rep UnblockUser Source # | |
Defined in TDLib.Generated.FunArgs type Rep UnblockUser = D1 ('MetaData "UnblockUser" "TDLib.Generated.FunArgs" "tdlib-types-0.4.0-inplace" 'False) (C1 ('MetaCons "UnblockUser" 'PrefixI 'True) (S1 ('MetaSel ('Just "userId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32))) |
data GetBlockedUsers Source #
Parameter of Function getBlockedUsers
Constructors
GetBlockedUsers | Returns users that were blocked by the current user |
Instances
data AddContact Source #
Parameter of Function addContact
Constructors
AddContact | Adds a user to the contact list or edits an existing contact by their user identifier |
Fields
|
Instances
data ImportContacts Source #
Parameter of Function importContacts
Constructors
ImportContacts | Adds new contacts or edits existing contacts by their phone numbers; contacts' user identifiers are ignored |
Instances
data GetContacts Source #
Parameter of Function getContacts
Constructors
GetContacts | Returns all user contacts |
Instances
Eq GetContacts Source # | |
Defined in TDLib.Generated.FunArgs | |
Show GetContacts Source # | |
Defined in TDLib.Generated.FunArgs Methods showsPrec :: Int -> GetContacts -> ShowS # show :: GetContacts -> String # showList :: [GetContacts] -> ShowS # | |
Generic GetContacts Source # | |
Defined in TDLib.Generated.FunArgs Associated Types type Rep GetContacts :: Type -> Type # | |
ToJSON GetContacts Source # | |
Defined in TDLib.Generated.FunArgs Methods toJSON :: GetContacts -> Value # toEncoding :: GetContacts -> Encoding # toJSONList :: [GetContacts] -> Value # toEncodingList :: [GetContacts] -> Encoding # | |
FromJSON GetContacts Source # | |
Defined in TDLib.Generated.FunArgs | |
type Rep GetContacts Source # | |
data SearchContacts Source #
Parameter of Function searchContacts
Constructors
SearchContacts | Searches for the specified query in the first names, last names and usernames of the known user contacts |
Instances
data RemoveContacts Source #
Parameter of Function removeContacts
Constructors
RemoveContacts | Removes users from the contact list |
Instances
data GetImportedContactCount Source #
Parameter of Function getImportedContactCount
Constructors
GetImportedContactCount | Returns the total number of imported contacts |
Instances
data ChangeImportedContacts Source #
Parameter of Function changeImportedContacts
Constructors
ChangeImportedContacts | Changes imported contacts using the list of current user contacts saved on the device. Imports newly added contacts and, if at least the file database is enabled, deletes recently deleted contacts. |
Instances
data ClearImportedContacts Source #
Parameter of Function clearImportedContacts
Constructors
ClearImportedContacts | Clears all imported contacts, contact list remains unchanged |
Instances
data SharePhoneNumber Source #
Parameter of Function sharePhoneNumber
Constructors
SharePhoneNumber | Shares the phone number of the current user with a mutual contact. Supposed to be called when the user clicks on chatActionBarSharePhoneNumber |
Instances
data GetUserProfilePhotos Source #
Parameter of Function getUserProfilePhotos
Constructors
GetUserProfilePhotos | Returns the profile photos of a user. The result of this query may be outdated: some photos might have been deleted already |
Instances
data GetStickers Source #
Parameter of Function getStickers
Constructors
GetStickers | Returns stickers from the installed sticker sets that correspond to a given emoji. If the emoji is not empty, favorite and recently used stickers may also be returned |
Instances
data SearchStickers Source #
Parameter of Function searchStickers
Constructors
SearchStickers | Searches for stickers from public sticker sets that correspond to a given emoji |
Instances
data GetInstalledStickerSets Source #
Parameter of Function getInstalledStickerSets
Constructors
GetInstalledStickerSets | Returns a list of installed sticker sets |
Instances
data GetArchivedStickerSets Source #
Parameter of Function getArchivedStickerSets
Constructors
GetArchivedStickerSets | Returns a list of archived sticker sets |
Instances
data GetTrendingStickerSets Source #
Parameter of Function getTrendingStickerSets
Constructors
GetTrendingStickerSets | Returns a list of trending sticker sets. For the optimal performance the number of returned sticker sets is chosen by the library |
Instances
data GetAttachedStickerSets Source #
Parameter of Function getAttachedStickerSets
Constructors
GetAttachedStickerSets | Returns a list of sticker sets attached to a file. Currently only photos and videos can have attached sticker sets |
Instances
data GetStickerSet Source #
Parameter of Function getStickerSet
Constructors
GetStickerSet | Returns information about a sticker set by its identifier |
Instances
data SearchStickerSet Source #
Parameter of Function searchStickerSet
Constructors
SearchStickerSet | Searches for a sticker set by its name |
Instances
data SearchInstalledStickerSets Source #
Parameter of Function searchInstalledStickerSets
Constructors
SearchInstalledStickerSets | Searches for installed sticker sets by looking for specified query in their title and name |
Instances
data SearchStickerSets Source #
Parameter of Function searchStickerSets
Constructors
SearchStickerSets | Searches for ordinary sticker sets by looking for specified query in their title and name. Excludes installed sticker sets from the results |
Instances
data ChangeStickerSet Source #
Parameter of Function changeStickerSet
Constructors
ChangeStickerSet | Installsuninstalls or activatesarchives a sticker set |
Fields
|
Instances
data ViewTrendingStickerSets Source #
Parameter of Function viewTrendingStickerSets
Constructors
ViewTrendingStickerSets | Informs the server that some trending sticker sets have been viewed by the user |
Fields
|
Instances
data ReorderInstalledStickerSets Source #
Parameter of Function reorderInstalledStickerSets
Constructors
ReorderInstalledStickerSets | Changes the order of installed sticker sets |
Fields
|
Instances
data GetRecentStickers Source #
Parameter of Function getRecentStickers
Constructors
GetRecentStickers | Returns a list of recently used stickers |
Fields
|
Instances
data AddRecentSticker Source #
Parameter of Function addRecentSticker
Constructors
AddRecentSticker | Manually adds a new sticker to the list of recently used stickers. The new sticker is added to the top of the list. If the sticker was already in the list, it is removed from the list first. Only stickers belonging to a sticker set can be added to this list |
Fields
|
Instances
data RemoveRecentSticker Source #
Parameter of Function removeRecentSticker
Constructors
RemoveRecentSticker | Removes a sticker from the list of recently used stickers |
Fields
|
Instances
data ClearRecentStickers Source #
Parameter of Function clearRecentStickers
Constructors
ClearRecentStickers | Clears the list of recently used stickers |
Fields
|
Instances
data GetFavoriteStickers Source #
Parameter of Function getFavoriteStickers
Constructors
GetFavoriteStickers | Returns favorite stickers |
Instances
data AddFavoriteSticker Source #
Parameter of Function addFavoriteSticker
Constructors
AddFavoriteSticker | Adds a new sticker to the list of favorite stickers. The new sticker is added to the top of the list. If the sticker was already in the list, it is removed from the list first. Only stickers belonging to a sticker set can be added to this list |
Instances
data RemoveFavoriteSticker Source #
Parameter of Function removeFavoriteSticker
Constructors
RemoveFavoriteSticker | Removes a sticker from the list of favorite stickers |
Instances
data GetStickerEmojis Source #
Parameter of Function getStickerEmojis
Constructors
GetStickerEmojis | Returns emoji corresponding to a sticker. The list is only for informational purposes, because a sticker is always sent with a fixed emoji from the corresponding Sticker object |
Instances
data SearchEmojis Source #
Parameter of Function searchEmojis
Constructors
SearchEmojis | Searches for emojis by keywords. Supported only if the file database is enabled |
Fields
|
Instances
data GetEmojiSuggestionsUrl Source #
Parameter of Function getEmojiSuggestionsUrl
Constructors
GetEmojiSuggestionsUrl | Returns an HTTP URL which can be used to automatically log in to the translation platform and suggest new emoji replacements. The URL will be valid for 30 seconds after generation |
Fields
|
Instances
data GetSavedAnimations Source #
Parameter of Function getSavedAnimations
Constructors
GetSavedAnimations | Returns saved animations |
Instances
data AddSavedAnimation Source #
Parameter of Function addSavedAnimation
Constructors
AddSavedAnimation | Manually adds a new animation to the list of saved animations. The new animation is added to the beginning of the list. If the animation was already in the list, it is removed first. Only non-secret video animations with MIME type "video/mp4" can be added to the list |
Instances
data RemoveSavedAnimation Source #
Parameter of Function removeSavedAnimation
Constructors
RemoveSavedAnimation | Removes an animation from the list of saved animations |
Instances
data GetRecentInlineBots Source #
Parameter of Function getRecentInlineBots
Constructors
GetRecentInlineBots | Returns up to 20 recently used inline bots in the order of their last usage |
Instances
data SearchHashtags Source #
Parameter of Function searchHashtags
Constructors
SearchHashtags | Searches for recently used hashtags by their prefix |
Instances
data RemoveRecentHashtag Source #
Parameter of Function removeRecentHashtag
Constructors
RemoveRecentHashtag | Removes a hashtag from the list of recently used hashtags |
Instances
data GetWebPagePreview Source #
Parameter of Function getWebPagePreview
Constructors
GetWebPagePreview | Returns a web page preview by the text of the message. Do not call this function too often. Returns a 404 error if the web page has no preview |
Fields
|
Instances
data GetWebPageInstantView Source #
Parameter of Function getWebPageInstantView
Constructors
GetWebPageInstantView | Returns an instant view version of a web page if available. Returns a 404 error if the web page has no instant view page |
Instances
data SetProfilePhoto Source #
Parameter of Function setProfilePhoto
Constructors
SetProfilePhoto | Uploads a new profile photo for the current user. If something changes, updateUser will be sent |
Instances
data DeleteProfilePhoto Source #
Parameter of Function deleteProfilePhoto
Constructors
DeleteProfilePhoto | Deletes a profile photo. If something changes, updateUser will be sent |
Fields
|
Instances
Parameter of Function setName
Constructors
SetName | Changes the first and last name of the current user. If something changes, updateUser will be sent |
Instances
Eq SetName Source # | |
Show SetName Source # | |
Generic SetName Source # | |
ToJSON SetName Source # | |
Defined in TDLib.Generated.FunArgs | |
FromJSON SetName Source # | |
type Rep SetName Source # | |
Defined in TDLib.Generated.FunArgs type Rep SetName = D1 ('MetaData "SetName" "TDLib.Generated.FunArgs" "tdlib-types-0.4.0-inplace" 'False) (C1 ('MetaCons "SetName" 'PrefixI 'True) (S1 ('MetaSel ('Just "firstName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "lastName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T))) |
Parameter of Function setBio
Constructors
SetBio | Changes the bio of the current user |
data SetUsername Source #
Parameter of Function setUsername
Constructors
SetUsername | Changes the username of the current user. If something changes, updateUser will be sent |
Instances
Eq SetUsername Source # | |
Defined in TDLib.Generated.FunArgs | |
Show SetUsername Source # | |
Defined in TDLib.Generated.FunArgs Methods showsPrec :: Int -> SetUsername -> ShowS # show :: SetUsername -> String # showList :: [SetUsername] -> ShowS # | |
Generic SetUsername Source # | |
Defined in TDLib.Generated.FunArgs Associated Types type Rep SetUsername :: Type -> Type # | |
ToJSON SetUsername Source # | |
Defined in TDLib.Generated.FunArgs Methods toJSON :: SetUsername -> Value # toEncoding :: SetUsername -> Encoding # toJSONList :: [SetUsername] -> Value # toEncodingList :: [SetUsername] -> Encoding # | |
FromJSON SetUsername Source # | |
Defined in TDLib.Generated.FunArgs | |
type Rep SetUsername Source # | |
Defined in TDLib.Generated.FunArgs type Rep SetUsername = D1 ('MetaData "SetUsername" "TDLib.Generated.FunArgs" "tdlib-types-0.4.0-inplace" 'False) (C1 ('MetaCons "SetUsername" 'PrefixI 'True) (S1 ('MetaSel ('Just "username") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T))) |
data SetLocation Source #
Parameter of Function setLocation
Constructors
SetLocation | Changes the location of the current user. Needs to be called if GetOption("is_location_visible") is true and location changes for more than 1 kilometer |
Instances
Eq SetLocation Source # | |
Defined in TDLib.Generated.FunArgs | |
Show SetLocation Source # | |
Defined in TDLib.Generated.FunArgs Methods showsPrec :: Int -> SetLocation -> ShowS # show :: SetLocation -> String # showList :: [SetLocation] -> ShowS # | |
Generic SetLocation Source # | |
Defined in TDLib.Generated.FunArgs Associated Types type Rep SetLocation :: Type -> Type # | |
ToJSON SetLocation Source # | |
Defined in TDLib.Generated.FunArgs Methods toJSON :: SetLocation -> Value # toEncoding :: SetLocation -> Encoding # toJSONList :: [SetLocation] -> Value # toEncodingList :: [SetLocation] -> Encoding # | |
FromJSON SetLocation Source # | |
Defined in TDLib.Generated.FunArgs | |
type Rep SetLocation Source # | |
Defined in TDLib.Generated.FunArgs type Rep SetLocation = D1 ('MetaData "SetLocation" "TDLib.Generated.FunArgs" "tdlib-types-0.4.0-inplace" 'False) (C1 ('MetaCons "SetLocation" 'PrefixI 'True) (S1 ('MetaSel ('Just "location") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Location))) |
data ChangePhoneNumber Source #
Parameter of Function changePhoneNumber
Constructors
ChangePhoneNumber | Changes the phone number of the user and sends an authentication code to the user's new phone number. On success, returns information about the sent code |
Fields
|
Instances
data ResendChangePhoneNumberCode Source #
Parameter of Function resendChangePhoneNumberCode
Constructors
ResendChangePhoneNumberCode | Re-sends the authentication code sent to confirm a new phone number for the user. Works only if the previously received authenticationCodeInfo next_code_type was not null |
Instances
data CheckChangePhoneNumberCode Source #
Parameter of Function checkChangePhoneNumberCode
Constructors
CheckChangePhoneNumberCode | Checks the authentication code sent to confirm a new phone number of the user |
Instances
data SetCommands Source #
Parameter of Function setCommands
Constructors
SetCommands | Sets the list of commands supported by the bot; for bots only |
Fields
|
Instances
Eq SetCommands Source # | |
Defined in TDLib.Generated.FunArgs | |
Show SetCommands Source # | |
Defined in TDLib.Generated.FunArgs Methods showsPrec :: Int -> SetCommands -> ShowS # show :: SetCommands -> String # showList :: [SetCommands] -> ShowS # | |
Generic SetCommands Source # | |
Defined in TDLib.Generated.FunArgs Associated Types type Rep SetCommands :: Type -> Type # | |
ToJSON SetCommands Source # | |
Defined in TDLib.Generated.FunArgs Methods toJSON :: SetCommands -> Value # toEncoding :: SetCommands -> Encoding # toJSONList :: [SetCommands] -> Value # toEncodingList :: [SetCommands] -> Encoding # | |
FromJSON SetCommands Source # | |
Defined in TDLib.Generated.FunArgs | |
type Rep SetCommands Source # | |
Defined in TDLib.Generated.FunArgs type Rep SetCommands = D1 ('MetaData "SetCommands" "TDLib.Generated.FunArgs" "tdlib-types-0.4.0-inplace" 'False) (C1 ('MetaCons "SetCommands" 'PrefixI 'True) (S1 ('MetaSel ('Just "commands") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [BotCommand]))) |
data GetActiveSessions Source #
Parameter of Function getActiveSessions
Constructors
GetActiveSessions | Returns all active sessions of the current user |
Instances
data TerminateSession Source #
Parameter of Function terminateSession
Constructors
TerminateSession | Terminates a session of the current user |
Instances
data TerminateAllOtherSessions Source #
Parameter of Function terminateAllOtherSessions
Constructors
TerminateAllOtherSessions | Terminates all other sessions of the current user |
Instances
data GetConnectedWebsites Source #
Parameter of Function getConnectedWebsites
Constructors
GetConnectedWebsites | Returns all website where the current user used Telegram to log in |
Instances
data DisconnectWebsite Source #
Parameter of Function disconnectWebsite
Constructors
DisconnectWebsite | Disconnects website from the current user's Telegram account |
Instances
data DisconnectAllWebsites Source #
Parameter of Function disconnectAllWebsites
Constructors
DisconnectAllWebsites | Disconnects all websites from the current user's Telegram account |
Instances
data SetSupergroupUsername Source #
Parameter of Function setSupergroupUsername
Constructors
SetSupergroupUsername | Changes the username of a supergroup or channel, requires owner privileges in the supergroup or channel |
Fields
|
Instances
data SetSupergroupStickerSet Source #
Parameter of Function setSupergroupStickerSet
Constructors
SetSupergroupStickerSet | Changes the sticker set of a supergroup; requires can_change_info rights |
Fields
|
Instances
data ToggleSupergroupSignMessages Source #
Parameter of Function toggleSupergroupSignMessages
Constructors
ToggleSupergroupSignMessages | Toggles sender signatures messages sent in a channel; requires can_change_info rights |
Fields
|
Instances
data ToggleSupergroupIsAllHistoryAvailable Source #
Parameter of Function toggleSupergroupIsAllHistoryAvailable
Constructors
ToggleSupergroupIsAllHistoryAvailable | Toggles whether the message history of a supergroup is available to new members; requires can_change_info rights |
Fields
|
Instances
data ReportSupergroupSpam Source #
Parameter of Function reportSupergroupSpam
Constructors
ReportSupergroupSpam | Reports some messages from a user in a supergroup as spam; requires administrator rights in the supergroup |
Fields
|
Instances
data GetSupergroupMembers Source #
Parameter of Function getSupergroupMembers
Constructors
GetSupergroupMembers | Returns information about members or banned users in a supergroup or channel. Can be used only if SupergroupFullInfo.can_get_members == true; additionally, administrator privileges may be required for some filters |
Fields
|
Instances
data DeleteSupergroup Source #
Parameter of Function deleteSupergroup
Constructors
DeleteSupergroup | Deletes a supergroup or channel along with all messages in the corresponding chat. This will release the supergroup or channel username and remove all members; requires owner privileges in the supergroup or channel. Chats with more than 1000 members can't be deleted using this method |
Fields
|
Instances
data CloseSecretChat Source #
Parameter of Function closeSecretChat
Constructors
CloseSecretChat | Closes a secret chat, effectively transferring its state to secretChatStateClosed |
Fields
|
Instances
data GetChatEventLog Source #
Parameter of Function getChatEventLog
Constructors
GetChatEventLog | Returns a list of service actions taken by chat members and administrators in the last 48 hours. Available only for supergroups and channels. Requires administrator rights. Returns results in reverse chronological order (i. e., in order of decreasing event_id) |
Fields
|
Instances
data GetPaymentForm Source #
Parameter of Function getPaymentForm
Constructors
GetPaymentForm | Returns an invoice payment form. This method should be called when the user presses inlineKeyboardButtonBuy |
Instances
data ValidateOrderInfo Source #
Parameter of Function validateOrderInfo
Constructors
ValidateOrderInfo | Validates the order information provided by a user and returns the available shipping options for a flexible invoice |
Instances
data SendPaymentForm Source #
Parameter of Function sendPaymentForm
Constructors
SendPaymentForm | Sends a filled-out payment form to the bot for final verification |
Fields
|
Instances
data GetPaymentReceipt Source #
Parameter of Function getPaymentReceipt
Constructors
GetPaymentReceipt | Returns information about a successful payment |
Instances
data GetSavedOrderInfo Source #
Parameter of Function getSavedOrderInfo
Constructors
GetSavedOrderInfo | Returns saved order info, if any |
Instances
data DeleteSavedOrderInfo Source #
Parameter of Function deleteSavedOrderInfo
Constructors
DeleteSavedOrderInfo | Deletes saved order info |
Instances
data DeleteSavedCredentials Source #
Parameter of Function deleteSavedCredentials
Constructors
DeleteSavedCredentials | Deletes saved credentials for all payment provider bots |
Instances
data GetSupportUser Source #
Parameter of Function getSupportUser
Constructors
GetSupportUser | Returns a user that can be contacted to get support |
Instances
data GetBackgrounds Source #
Parameter of Function getBackgrounds
Constructors
GetBackgrounds | Returns backgrounds installed by the user |
Fields
|
Instances
data GetBackgroundUrl Source #
Parameter of Function getBackgroundUrl
Constructors
GetBackgroundUrl | Constructs a persistent HTTP URL for a background |
Fields
|
Instances
data SearchBackground Source #
Parameter of Function searchBackground
Constructors
SearchBackground | Searches for a background by its name |
Instances
data SetBackground Source #
Parameter of Function setBackground
Constructors
SetBackground | Changes the background selected by the user; adds background to the list of installed backgrounds |
Fields
|
Instances
data RemoveBackground Source #
Parameter of Function removeBackground
Constructors
RemoveBackground | Removes background from the list of installed backgrounds |
Fields
|
Instances
data ResetBackgrounds Source #
Parameter of Function resetBackgrounds
Constructors
ResetBackgrounds | Resets list of installed backgrounds to its default value |
Instances
data GetLocalizationTargetInfo Source #
Parameter of Function getLocalizationTargetInfo
Constructors
GetLocalizationTargetInfo | Returns information about the current localization target. This is an offline request if only_local is true. Can be called before authorization |
Instances
data GetLanguagePackInfo Source #
Parameter of Function getLanguagePackInfo
Constructors
GetLanguagePackInfo | Returns information about a language pack. Returned language pack identifier may be different from a provided one. Can be called before authorization |
Fields
|
Instances
data GetLanguagePackStrings Source #
Parameter of Function getLanguagePackStrings
Constructors
GetLanguagePackStrings | Returns strings from a language pack in the current localization target by their keys. Can be called before authorization |
Fields
|
Instances
data SynchronizeLanguagePack Source #
Parameter of Function synchronizeLanguagePack
Constructors
SynchronizeLanguagePack | Fetches the latest versions of all strings from a language pack in the current localization target from the server. This method doesn't need to be called explicitly for the current used/base language packs. Can be called before authorization |
Fields
|
Instances
data AddCustomServerLanguagePack Source #
Parameter of Function addCustomServerLanguagePack
Constructors
AddCustomServerLanguagePack | Adds a custom server language pack to the list of installed language packs in current localization target. Can be called before authorization |
Fields
|
Instances
data SetCustomLanguagePack Source #
Parameter of Function setCustomLanguagePack
Constructors
SetCustomLanguagePack | Adds or changes a custom local language pack to the current localization target |
Fields
|
Instances
data EditCustomLanguagePackInfo Source #
Parameter of Function editCustomLanguagePackInfo
Constructors
EditCustomLanguagePackInfo | Edits information about a custom local language pack in the current localization target. Can be called before authorization |
Fields
|
Instances
data SetCustomLanguagePackString Source #
Parameter of Function setCustomLanguagePackString
Constructors
SetCustomLanguagePackString | Adds, edits or deletes a string in a custom local language pack. Can be called before authorization |
Fields
|
Instances
data DeleteLanguagePack Source #
Parameter of Function deleteLanguagePack
Constructors
DeleteLanguagePack | Deletes all information about a language pack in the current localization target. The language pack which is currently in use (including base language pack) or is being synchronized can't be deleted. Can be called before authorization |
Fields
|
Instances
data RegisterDevice Source #
Parameter of Function registerDevice
Constructors
RegisterDevice | Registers the currently used device for receiving push notifications. Returns a globally unique identifier of the push notification subscription |
Fields
|
Instances
data ProcessPushNotification Source #
Parameter of Function processPushNotification
Constructors
ProcessPushNotification | Handles a push notification. Returns error with code 406 if the push notification is not supported and connection to the server is required to fetch new data. Can be called before authorization |
Instances
data GetPushReceiverId Source #
Parameter of Function getPushReceiverId
Constructors
GetPushReceiverId | Returns a globally unique push notification subscription identifier for identification of an account, which has received a push notification. This is an offline method. Can be called before authorization. Can be called synchronously |
Instances
data GetRecentlyVisitedTMeUrls Source #
Parameter of Function getRecentlyVisitedTMeUrls
Constructors
GetRecentlyVisitedTMeUrls | Returns t.me URLs recently visited by a newly registered user |
Instances
data SetUserPrivacySettingRules Source #
Parameter of Function setUserPrivacySettingRules
Constructors
SetUserPrivacySettingRules | Changes user privacy settings |
Fields
|
Instances
data GetUserPrivacySettingRules Source #
Parameter of Function getUserPrivacySettingRules
Constructors
GetUserPrivacySettingRules | Returns the current privacy settings |
Fields
|
Instances
Parameter of Function getOption
Constructors
GetOption | Returns the value of an option by its name. (Check the list of available options on https://core.telegram.org/tdlib/options.) Can be called before authorization |
Parameter of Function setOption
Constructors
SetOption | Sets the value of an option. (Check the list of available options on https://core.telegram.org/tdlib/options.) Only writable options can be set. Can be called before authorization |
Fields
|
Instances
Eq SetOption Source # | |
Show SetOption Source # | |
Generic SetOption Source # | |
ToJSON SetOption Source # | |
Defined in TDLib.Generated.FunArgs | |
FromJSON SetOption Source # | |
type Rep SetOption Source # | |
Defined in TDLib.Generated.FunArgs type Rep SetOption = D1 ('MetaData "SetOption" "TDLib.Generated.FunArgs" "tdlib-types-0.4.0-inplace" 'False) (C1 ('MetaCons "SetOption" 'PrefixI 'True) (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 OptionValue))) |
data SetAccountTtl Source #
Parameter of Function setAccountTtl
Constructors
SetAccountTtl | Changes the period of inactivity after which the account of the current user will automatically be deleted |
Fields
|
Instances
data GetAccountTtl Source #
Parameter of Function getAccountTtl
Constructors
GetAccountTtl | Returns the period of inactivity after which the account of the current user will automatically be deleted |
Instances
Eq GetAccountTtl Source # | |
Defined in TDLib.Generated.FunArgs Methods (==) :: GetAccountTtl -> GetAccountTtl -> Bool # (/=) :: GetAccountTtl -> GetAccountTtl -> Bool # | |
Show GetAccountTtl Source # | |
Defined in TDLib.Generated.FunArgs Methods showsPrec :: Int -> GetAccountTtl -> ShowS # show :: GetAccountTtl -> String # showList :: [GetAccountTtl] -> ShowS # | |
Generic GetAccountTtl Source # | |
Defined in TDLib.Generated.FunArgs Associated Types type Rep GetAccountTtl :: Type -> Type # | |
ToJSON GetAccountTtl Source # | |
Defined in TDLib.Generated.FunArgs Methods toJSON :: GetAccountTtl -> Value # toEncoding :: GetAccountTtl -> Encoding # toJSONList :: [GetAccountTtl] -> Value # toEncodingList :: [GetAccountTtl] -> Encoding # | |
FromJSON GetAccountTtl Source # | |
Defined in TDLib.Generated.FunArgs Methods parseJSON :: Value -> Parser GetAccountTtl # parseJSONList :: Value -> Parser [GetAccountTtl] # | |
type Rep GetAccountTtl Source # | |
data DeleteAccount Source #
Parameter of Function deleteAccount
Constructors
DeleteAccount | Deletes the account of the current user, deleting all information associated with the user from the server. The phone number of the account can be used to create a new account. Can be called before authorization when the current authorization state is authorizationStateWaitPassword |
Instances
data RemoveChatActionBar Source #
Parameter of Function removeChatActionBar
Constructors
RemoveChatActionBar | Removes a chat action bar without any other action |
Instances
data ReportChat Source #
Parameter of Function reportChat
Constructors
ReportChat | Reports a chat to the Telegram moderators. A chat can be reported only from the chat action bar, or if this is a private chats with a bot, a private chat with a user sharing their location, a supergroup, or a channel, since other chats can't be checked by moderators |
Fields
|
Instances
data GetChatStatisticsUrl Source #
Parameter of Function getChatStatisticsUrl
Constructors
GetChatStatisticsUrl | Returns an HTTP URL with the chat statistics. Currently this method of getting the statistics is disabled and can be deleted in the future |
Instances
data GetChatStatistics Source #
Parameter of Function getChatStatistics
Constructors
GetChatStatistics | Returns detailed statistics about a chat. Currently this method can be used only for channels. Requires administrator rights in the channel |
Instances
data GetChatStatisticsGraph Source #
Parameter of Function getChatStatisticsGraph
Constructors
GetChatStatisticsGraph | Loads asynchronous or zoomed in chat statistics graph |
Instances
data GetStorageStatistics Source #
Parameter of Function getStorageStatistics
Constructors
GetStorageStatistics | Returns storage usage statistics. Can be called before authorization |
Instances
data GetStorageStatisticsFast Source #
Parameter of Function getStorageStatisticsFast
Constructors
GetStorageStatisticsFast | Quickly returns approximate storage usage statistics. Can be called before authorization |
Instances
data GetDatabaseStatistics Source #
Parameter of Function getDatabaseStatistics
Constructors
GetDatabaseStatistics | Returns database statistics |
Instances
data OptimizeStorage Source #
Parameter of Function optimizeStorage
Constructors
OptimizeStorage | Optimizes storage usage, i.e. deletes some files and returns new storage usage statistics. Secret thumbnails can't be deleted |
Fields
|
Instances
data SetNetworkType Source #
Parameter of Function setNetworkType
Constructors
SetNetworkType | Sets the current network type. Can be called before authorization. Calling this method forces all network connections to reopen, mitigating the delay in switching between different networks, so it should be called whenever the network is changed, even if the network type remains the same. |
Fields
|
Instances
data GetNetworkStatistics Source #
Parameter of Function getNetworkStatistics
Constructors
GetNetworkStatistics | Returns network data usage statistics. Can be called before authorization |
Fields
|
Instances
data AddNetworkStatistics Source #
Parameter of Function addNetworkStatistics
Constructors
AddNetworkStatistics | Adds the specified data to data usage statistics. Can be called before authorization |
Fields
|
Instances
data ResetNetworkStatistics Source #
Parameter of Function resetNetworkStatistics
Constructors
ResetNetworkStatistics | Resets all network data usage statistics to zero. Can be called before authorization |
Instances
data GetAutoDownloadSettingsPresets Source #
Parameter of Function getAutoDownloadSettingsPresets
Constructors
GetAutoDownloadSettingsPresets | Returns auto-download settings presets for the current user |
Instances
Eq GetAutoDownloadSettingsPresets Source # | |
Defined in TDLib.Generated.FunArgs | |
Show GetAutoDownloadSettingsPresets Source # | |
Defined in TDLib.Generated.FunArgs Methods showsPrec :: Int -> GetAutoDownloadSettingsPresets -> ShowS # show :: GetAutoDownloadSettingsPresets -> String # showList :: [GetAutoDownloadSettingsPresets] -> ShowS # | |
Generic GetAutoDownloadSettingsPresets Source # | |
Defined in TDLib.Generated.FunArgs Associated Types type Rep GetAutoDownloadSettingsPresets :: Type -> Type # | |
ToJSON GetAutoDownloadSettingsPresets Source # | |
Defined in TDLib.Generated.FunArgs | |
FromJSON GetAutoDownloadSettingsPresets Source # | |
Defined in TDLib.Generated.FunArgs Methods parseJSON :: Value -> Parser GetAutoDownloadSettingsPresets # parseJSONList :: Value -> Parser [GetAutoDownloadSettingsPresets] # | |
type Rep GetAutoDownloadSettingsPresets Source # | |
data SetAutoDownloadSettings Source #
Parameter of Function setAutoDownloadSettings
Constructors
SetAutoDownloadSettings | Sets auto-download settings |
Fields
|
Instances
data GetBankCardInfo Source #
Parameter of Function getBankCardInfo
Constructors
GetBankCardInfo | Returns information about a bank card |
Fields
|
Instances
data GetPassportElement Source #
Parameter of Function getPassportElement
Constructors
GetPassportElement | Returns one of the available Telegram Passport elements |
Fields
|
Instances
data GetAllPassportElements Source #
Parameter of Function getAllPassportElements
Constructors
GetAllPassportElements | Returns all available Telegram Passport elements |
Instances
data SetPassportElement Source #
Parameter of Function setPassportElement
Constructors
SetPassportElement | Adds an element to the user's Telegram Passport. May return an error with a message PHONE_VERIFICATION_NEEDED or EMAIL_VERIFICATION_NEEDED if the chosen phone number or the chosen email address must be verified first |
Fields
|
Instances
data DeletePassportElement Source #
Parameter of Function deletePassportElement
Constructors
DeletePassportElement | Deletes a Telegram Passport element |
Fields
|
Instances
data SetPassportElementErrors Source #
Parameter of Function setPassportElementErrors
Constructors
SetPassportElementErrors | Informs the user that some of the elements in their Telegram Passport contain errors; for bots only. The user will not be able to resend the elements, until the errors are fixed |
Fields
|
Instances
data GetPreferredCountryLanguage Source #
Parameter of Function getPreferredCountryLanguage
Constructors
GetPreferredCountryLanguage | Returns an IETF language tag of the language preferred in the country, which should be used to fill native fields in Telegram Passport personal details. Returns a 404 error if unknown |
Fields
|
Instances
data SendPhoneNumberVerificationCode Source #
Parameter of Function sendPhoneNumberVerificationCode
Constructors
SendPhoneNumberVerificationCode | Sends a code to verify a phone number to be added to a user's Telegram Passport |
Fields
|
Instances
data ResendPhoneNumberVerificationCode Source #
Parameter of Function resendPhoneNumberVerificationCode
Constructors
ResendPhoneNumberVerificationCode | Re-sends the code to verify a phone number to be added to a user's Telegram Passport |
Instances
Eq ResendPhoneNumberVerificationCode Source # | |
Defined in TDLib.Generated.FunArgs | |
Show ResendPhoneNumberVerificationCode Source # | |
Defined in TDLib.Generated.FunArgs Methods showsPrec :: Int -> ResendPhoneNumberVerificationCode -> ShowS # | |
Generic ResendPhoneNumberVerificationCode Source # | |
Defined in TDLib.Generated.FunArgs Associated Types type Rep ResendPhoneNumberVerificationCode :: Type -> Type # | |
ToJSON ResendPhoneNumberVerificationCode Source # | |
Defined in TDLib.Generated.FunArgs | |
FromJSON ResendPhoneNumberVerificationCode Source # | |
Defined in TDLib.Generated.FunArgs Methods parseJSON :: Value -> Parser ResendPhoneNumberVerificationCode # parseJSONList :: Value -> Parser [ResendPhoneNumberVerificationCode] # | |
type Rep ResendPhoneNumberVerificationCode Source # | |
data CheckPhoneNumberVerificationCode Source #
Parameter of Function checkPhoneNumberVerificationCode
Constructors
CheckPhoneNumberVerificationCode | Checks the phone number verification code for Telegram Passport |
Instances
data SendEmailAddressVerificationCode Source #
Parameter of Function sendEmailAddressVerificationCode
Constructors
SendEmailAddressVerificationCode | Sends a code to verify an email address to be added to a user's Telegram Passport |
Fields
|
Instances
data ResendEmailAddressVerificationCode Source #
Parameter of Function resendEmailAddressVerificationCode
Constructors
ResendEmailAddressVerificationCode | Re-sends the code to verify an email address to be added to a user's Telegram Passport |
Instances
Eq ResendEmailAddressVerificationCode Source # | |
Defined in TDLib.Generated.FunArgs | |
Show ResendEmailAddressVerificationCode Source # | |
Defined in TDLib.Generated.FunArgs Methods showsPrec :: Int -> ResendEmailAddressVerificationCode -> ShowS # | |
Generic ResendEmailAddressVerificationCode Source # | |
Defined in TDLib.Generated.FunArgs Associated Types type Rep ResendEmailAddressVerificationCode :: Type -> Type # | |
ToJSON ResendEmailAddressVerificationCode Source # | |
Defined in TDLib.Generated.FunArgs | |
FromJSON ResendEmailAddressVerificationCode Source # | |
Defined in TDLib.Generated.FunArgs Methods parseJSON :: Value -> Parser ResendEmailAddressVerificationCode # parseJSONList :: Value -> Parser [ResendEmailAddressVerificationCode] # | |
type Rep ResendEmailAddressVerificationCode Source # | |
data CheckEmailAddressVerificationCode Source #
Parameter of Function checkEmailAddressVerificationCode
Constructors
CheckEmailAddressVerificationCode | Checks the email address verification code for Telegram Passport |
Instances
data GetPassportAuthorizationForm Source #
Parameter of Function getPassportAuthorizationForm
Constructors
GetPassportAuthorizationForm | Returns a Telegram Passport authorization form for sharing data with a service |
Instances
data GetPassportAuthorizationFormAvailableElements Source #
Parameter of Function getPassportAuthorizationFormAvailableElements
Constructors
GetPassportAuthorizationFormAvailableElements | Returns already available Telegram Passport elements suitable for completing a Telegram Passport authorization form. Result can be received only once for each authorization form |
Fields
|
Instances
data SendPassportAuthorizationForm Source #
Parameter of Function sendPassportAuthorizationForm
Constructors
SendPassportAuthorizationForm | Sends a Telegram Passport authorization form, effectively sharing data with the service. This method must be called after getPassportAuthorizationFormAvailableElements if some previously available elements need to be used |
Fields
|
Instances
data SendPhoneNumberConfirmationCode Source #
Parameter of Function sendPhoneNumberConfirmationCode
Constructors
SendPhoneNumberConfirmationCode | Sends phone number confirmation code. Should be called when user presses "https://t.me/confirmphone?phone=*******&hash=**********" or "tg://confirmphone?phone=*******&hash=**********" link |
Fields
|
Instances
data ResendPhoneNumberConfirmationCode Source #
Parameter of Function resendPhoneNumberConfirmationCode
Constructors
ResendPhoneNumberConfirmationCode | Resends phone number confirmation code |
Instances
Eq ResendPhoneNumberConfirmationCode Source # | |
Defined in TDLib.Generated.FunArgs | |
Show ResendPhoneNumberConfirmationCode Source # | |
Defined in TDLib.Generated.FunArgs Methods showsPrec :: Int -> ResendPhoneNumberConfirmationCode -> ShowS # | |
Generic ResendPhoneNumberConfirmationCode Source # | |
Defined in TDLib.Generated.FunArgs Associated Types type Rep ResendPhoneNumberConfirmationCode :: Type -> Type # | |
ToJSON ResendPhoneNumberConfirmationCode Source # | |
Defined in TDLib.Generated.FunArgs | |
FromJSON ResendPhoneNumberConfirmationCode Source # | |
Defined in TDLib.Generated.FunArgs Methods parseJSON :: Value -> Parser ResendPhoneNumberConfirmationCode # parseJSONList :: Value -> Parser [ResendPhoneNumberConfirmationCode] # | |
type Rep ResendPhoneNumberConfirmationCode Source # | |
data CheckPhoneNumberConfirmationCode Source #
Parameter of Function checkPhoneNumberConfirmationCode
Constructors
CheckPhoneNumberConfirmationCode | Checks phone number confirmation code |
Instances
data SetBotUpdatesStatus Source #
Parameter of Function setBotUpdatesStatus
Constructors
SetBotUpdatesStatus | Informs the server about the number of pending bot updates if they haven't been processed for a long time; for bots only |
Fields
|
Instances
data UploadStickerFile Source #
Parameter of Function uploadStickerFile
Constructors
UploadStickerFile | Uploads a PNG image with a sticker; for bots only; returns the uploaded file |
Fields
|
Instances
data CreateNewStickerSet Source #
Parameter of Function createNewStickerSet
Constructors
CreateNewStickerSet | Creates a new sticker set; for bots only. Returns the newly created sticker set |
Fields
|
Instances
data AddStickerToSet Source #
Parameter of Function addStickerToSet
Constructors
AddStickerToSet | Adds a new sticker to a set; for bots only. Returns the sticker set |
Instances
data SetStickerSetThumbnail Source #
Parameter of Function setStickerSetThumbnail
Constructors
SetStickerSetThumbnail | Sets a sticker set thumbnail; for bots only. Returns the sticker set |
Instances
data SetStickerPositionInSet Source #
Parameter of Function setStickerPositionInSet
Constructors
SetStickerPositionInSet | Changes the position of a sticker in the set to which it belongs; for bots only. The sticker set must have been created by the bot |
Instances
data RemoveStickerFromSet Source #
Parameter of Function removeStickerFromSet
Constructors
RemoveStickerFromSet | Removes a sticker from the set to which it belongs; for bots only. The sticker set must have been created by the bot |
Instances
data GetMapThumbnailFile Source #
Parameter of Function getMapThumbnailFile
Constructors
GetMapThumbnailFile | Returns information about a file with a map thumbnail in PNG format. Only map thumbnail files with size less than 1MB can be downloaded |
Fields
|
Instances
data AcceptTermsOfService Source #
Parameter of Function acceptTermsOfService
Constructors
AcceptTermsOfService | Accepts Telegram terms of services |
Fields
|
Instances
data SendCustomRequest Source #
Parameter of Function sendCustomRequest
Constructors
SendCustomRequest | Sends a custom request; for bots only |
Fields
|
Instances
data AnswerCustomQuery Source #
Parameter of Function answerCustomQuery
Constructors
AnswerCustomQuery | Answers a custom query; for bots only |
Fields
|
Instances
Parameter of Function setAlarm
Constructors
SetAlarm | Succeeds after a specified amount of time has passed. Can be called before authorization. Can be called before initialization |
data GetCountryCode Source #
Parameter of Function getCountryCode
Constructors
GetCountryCode | Uses current user IP address to find their country. Returns two-letter ISO 3166-1 alpha-2 country code. Can be called before authorization |
Instances
data GetInviteText Source #
Parameter of Function getInviteText
Constructors
GetInviteText | Returns the default text for invitation messages to be used as a placeholder when the current user invites friends to Telegram |
Instances
Eq GetInviteText Source # | |
Defined in TDLib.Generated.FunArgs Methods (==) :: GetInviteText -> GetInviteText -> Bool # (/=) :: GetInviteText -> GetInviteText -> Bool # | |
Show GetInviteText Source # | |
Defined in TDLib.Generated.FunArgs Methods showsPrec :: Int -> GetInviteText -> ShowS # show :: GetInviteText -> String # showList :: [GetInviteText] -> ShowS # | |
Generic GetInviteText Source # | |
Defined in TDLib.Generated.FunArgs Associated Types type Rep GetInviteText :: Type -> Type # | |
ToJSON GetInviteText Source # | |
Defined in TDLib.Generated.FunArgs Methods toJSON :: GetInviteText -> Value # toEncoding :: GetInviteText -> Encoding # toJSONList :: [GetInviteText] -> Value # toEncodingList :: [GetInviteText] -> Encoding # | |
FromJSON GetInviteText Source # | |
Defined in TDLib.Generated.FunArgs Methods parseJSON :: Value -> Parser GetInviteText # parseJSONList :: Value -> Parser [GetInviteText] # | |
type Rep GetInviteText Source # | |
data GetDeepLinkInfo Source #
Parameter of Function getDeepLinkInfo
Constructors
GetDeepLinkInfo | Returns information about a tg:/ deep link. Use "tg:/need_update_for_some_feature" or "tg:some_unsupported_feature" for testing. Returns a 404 error for unknown links. Can be called before authorization |
Instances
data GetApplicationConfig Source #
Parameter of Function getApplicationConfig
Constructors
GetApplicationConfig | Returns application config, provided by the server. Can be called before authorization |
Instances
data SaveApplicationLogEvent Source #
Parameter of Function saveApplicationLogEvent
Constructors
SaveApplicationLogEvent | Saves application log event on the server. Can be called before authorization |
Instances
Parameter of Function addProxy
Constructors
AddProxy | Adds a proxy server for network requests. Can be called before authorization |
Instances
Eq AddProxy Source # | |
Show AddProxy Source # | |
Generic AddProxy Source # | |
ToJSON AddProxy Source # | |
Defined in TDLib.Generated.FunArgs | |
FromJSON AddProxy Source # | |
type Rep AddProxy Source # | |
Defined in TDLib.Generated.FunArgs type Rep AddProxy = D1 ('MetaData "AddProxy" "TDLib.Generated.FunArgs" "tdlib-types-0.4.0-inplace" 'False) (C1 ('MetaCons "AddProxy" 'PrefixI 'True) ((S1 ('MetaSel ('Just "server") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "port") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)) :*: (S1 ('MetaSel ('Just "enable") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "type_") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ProxyType)))) |
Parameter of Function editProxy
Constructors
EditProxy | Edits an existing proxy server for network requests. Can be called before authorization |
Instances
Eq EditProxy Source # | |
Show EditProxy Source # | |
Generic EditProxy Source # | |
ToJSON EditProxy Source # | |
Defined in TDLib.Generated.FunArgs | |
FromJSON EditProxy Source # | |
type Rep EditProxy Source # | |
Defined in TDLib.Generated.FunArgs type Rep EditProxy = D1 ('MetaData "EditProxy" "TDLib.Generated.FunArgs" "tdlib-types-0.4.0-inplace" 'False) (C1 ('MetaCons "EditProxy" 'PrefixI 'True) ((S1 ('MetaSel ('Just "proxyId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "server") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)) :*: (S1 ('MetaSel ('Just "port") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: (S1 ('MetaSel ('Just "enable") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "type_") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ProxyType))))) |
data EnableProxy Source #
Parameter of Function enableProxy
Constructors
EnableProxy | Enables a proxy. Only one proxy can be enabled at a time. Can be called before authorization |
Instances
Eq EnableProxy Source # | |
Defined in TDLib.Generated.FunArgs | |
Show EnableProxy Source # | |
Defined in TDLib.Generated.FunArgs Methods showsPrec :: Int -> EnableProxy -> ShowS # show :: EnableProxy -> String # showList :: [EnableProxy] -> ShowS # | |
Generic EnableProxy Source # | |
Defined in TDLib.Generated.FunArgs Associated Types type Rep EnableProxy :: Type -> Type # | |
ToJSON EnableProxy Source # | |
Defined in TDLib.Generated.FunArgs Methods toJSON :: EnableProxy -> Value # toEncoding :: EnableProxy -> Encoding # toJSONList :: [EnableProxy] -> Value # toEncodingList :: [EnableProxy] -> Encoding # | |
FromJSON EnableProxy Source # | |
Defined in TDLib.Generated.FunArgs | |
type Rep EnableProxy Source # | |
Defined in TDLib.Generated.FunArgs type Rep EnableProxy = D1 ('MetaData "EnableProxy" "TDLib.Generated.FunArgs" "tdlib-types-0.4.0-inplace" 'False) (C1 ('MetaCons "EnableProxy" 'PrefixI 'True) (S1 ('MetaSel ('Just "proxyId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32))) |
data DisableProxy Source #
Parameter of Function disableProxy
Constructors
DisableProxy | Disables the currently enabled proxy. Can be called before authorization |
Instances
Eq DisableProxy Source # | |
Defined in TDLib.Generated.FunArgs | |
Show DisableProxy Source # | |
Defined in TDLib.Generated.FunArgs Methods showsPrec :: Int -> DisableProxy -> ShowS # show :: DisableProxy -> String # showList :: [DisableProxy] -> ShowS # | |
Generic DisableProxy Source # | |
Defined in TDLib.Generated.FunArgs Associated Types type Rep DisableProxy :: Type -> Type # | |
ToJSON DisableProxy Source # | |
Defined in TDLib.Generated.FunArgs Methods toJSON :: DisableProxy -> Value # toEncoding :: DisableProxy -> Encoding # toJSONList :: [DisableProxy] -> Value # toEncodingList :: [DisableProxy] -> Encoding # | |
FromJSON DisableProxy Source # | |
Defined in TDLib.Generated.FunArgs | |
type Rep DisableProxy Source # | |
data RemoveProxy Source #
Parameter of Function removeProxy
Constructors
RemoveProxy | Removes a proxy server. Can be called before authorization |
Instances
Eq RemoveProxy Source # | |
Defined in TDLib.Generated.FunArgs | |
Show RemoveProxy Source # | |
Defined in TDLib.Generated.FunArgs Methods showsPrec :: Int -> RemoveProxy -> ShowS # show :: RemoveProxy -> String # showList :: [RemoveProxy] -> ShowS # | |
Generic RemoveProxy Source # | |
Defined in TDLib.Generated.FunArgs Associated Types type Rep RemoveProxy :: Type -> Type # | |
ToJSON RemoveProxy Source # | |
Defined in TDLib.Generated.FunArgs Methods toJSON :: RemoveProxy -> Value # toEncoding :: RemoveProxy -> Encoding # toJSONList :: [RemoveProxy] -> Value # toEncodingList :: [RemoveProxy] -> Encoding # | |
FromJSON RemoveProxy Source # | |
Defined in TDLib.Generated.FunArgs | |
type Rep RemoveProxy Source # | |
Defined in TDLib.Generated.FunArgs type Rep RemoveProxy = D1 ('MetaData "RemoveProxy" "TDLib.Generated.FunArgs" "tdlib-types-0.4.0-inplace" 'False) (C1 ('MetaCons "RemoveProxy" 'PrefixI 'True) (S1 ('MetaSel ('Just "proxyId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32))) |
data GetProxies Source #
Parameter of Function getProxies
Constructors
GetProxies | Returns list of proxies that are currently set up. Can be called before authorization |
Instances
Eq GetProxies Source # | |
Defined in TDLib.Generated.FunArgs | |
Show GetProxies Source # | |
Defined in TDLib.Generated.FunArgs Methods showsPrec :: Int -> GetProxies -> ShowS # show :: GetProxies -> String # showList :: [GetProxies] -> ShowS # | |
Generic GetProxies Source # | |
Defined in TDLib.Generated.FunArgs Associated Types type Rep GetProxies :: Type -> Type # | |
ToJSON GetProxies Source # | |
Defined in TDLib.Generated.FunArgs Methods toJSON :: GetProxies -> Value # toEncoding :: GetProxies -> Encoding # toJSONList :: [GetProxies] -> Value # toEncodingList :: [GetProxies] -> Encoding # | |
FromJSON GetProxies Source # | |
Defined in TDLib.Generated.FunArgs | |
type Rep GetProxies Source # | |
data GetProxyLink Source #
Parameter of Function getProxyLink
Constructors
GetProxyLink | Returns an HTTPS link, which can be used to add a proxy. Available only for SOCKS5 and MTProto proxies. Can be called before authorization |
Instances
Eq GetProxyLink Source # | |
Defined in TDLib.Generated.FunArgs | |
Show GetProxyLink Source # | |
Defined in TDLib.Generated.FunArgs Methods showsPrec :: Int -> GetProxyLink -> ShowS # show :: GetProxyLink -> String # showList :: [GetProxyLink] -> ShowS # | |
Generic GetProxyLink Source # | |
Defined in TDLib.Generated.FunArgs Associated Types type Rep GetProxyLink :: Type -> Type # | |
ToJSON GetProxyLink Source # | |
Defined in TDLib.Generated.FunArgs Methods toJSON :: GetProxyLink -> Value # toEncoding :: GetProxyLink -> Encoding # toJSONList :: [GetProxyLink] -> Value # toEncodingList :: [GetProxyLink] -> Encoding # | |
FromJSON GetProxyLink Source # | |
Defined in TDLib.Generated.FunArgs | |
type Rep GetProxyLink Source # | |
Defined in TDLib.Generated.FunArgs type Rep GetProxyLink = D1 ('MetaData "GetProxyLink" "TDLib.Generated.FunArgs" "tdlib-types-0.4.0-inplace" 'False) (C1 ('MetaCons "GetProxyLink" 'PrefixI 'True) (S1 ('MetaSel ('Just "proxyId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32))) |
Parameter of Function pingProxy
Constructors
PingProxy | Computes time needed to receive a response from a Telegram server through a proxy. Can be called before authorization |
data SetLogStream Source #
Parameter of Function setLogStream
Constructors
SetLogStream | Sets new log stream for internal logging of TDLib. This is an offline method. Can be called before authorization. Can be called synchronously |
Instances
Eq SetLogStream Source # | |
Defined in TDLib.Generated.FunArgs | |
Show SetLogStream Source # | |
Defined in TDLib.Generated.FunArgs Methods showsPrec :: Int -> SetLogStream -> ShowS # show :: SetLogStream -> String # showList :: [SetLogStream] -> ShowS # | |
Generic SetLogStream Source # | |
Defined in TDLib.Generated.FunArgs Associated Types type Rep SetLogStream :: Type -> Type # | |
ToJSON SetLogStream Source # | |
Defined in TDLib.Generated.FunArgs Methods toJSON :: SetLogStream -> Value # toEncoding :: SetLogStream -> Encoding # toJSONList :: [SetLogStream] -> Value # toEncodingList :: [SetLogStream] -> Encoding # | |
FromJSON SetLogStream Source # | |
Defined in TDLib.Generated.FunArgs | |
type Rep SetLogStream Source # | |
Defined in TDLib.Generated.FunArgs type Rep SetLogStream = D1 ('MetaData "SetLogStream" "TDLib.Generated.FunArgs" "tdlib-types-0.4.0-inplace" 'False) (C1 ('MetaCons "SetLogStream" 'PrefixI 'True) (S1 ('MetaSel ('Just "logStream") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 LogStream))) |
data GetLogStream Source #
Parameter of Function getLogStream
Constructors
GetLogStream | Returns information about currently used log stream for internal logging of TDLib. This is an offline method. Can be called before authorization. Can be called synchronously |
Instances
Eq GetLogStream Source # | |
Defined in TDLib.Generated.FunArgs | |
Show GetLogStream Source # | |
Defined in TDLib.Generated.FunArgs Methods showsPrec :: Int -> GetLogStream -> ShowS # show :: GetLogStream -> String # showList :: [GetLogStream] -> ShowS # | |
Generic GetLogStream Source # | |
Defined in TDLib.Generated.FunArgs Associated Types type Rep GetLogStream :: Type -> Type # | |
ToJSON GetLogStream Source # | |
Defined in TDLib.Generated.FunArgs Methods toJSON :: GetLogStream -> Value # toEncoding :: GetLogStream -> Encoding # toJSONList :: [GetLogStream] -> Value # toEncodingList :: [GetLogStream] -> Encoding # | |
FromJSON GetLogStream Source # | |
Defined in TDLib.Generated.FunArgs | |
type Rep GetLogStream Source # | |
data SetLogVerbosityLevel Source #
Parameter of Function setLogVerbosityLevel
Constructors
SetLogVerbosityLevel | Sets the verbosity level of the internal logging of TDLib. This is an offline method. Can be called before authorization. Can be called synchronously |
Fields
|
Instances
data GetLogVerbosityLevel Source #
Parameter of Function getLogVerbosityLevel
Constructors
GetLogVerbosityLevel | Returns current verbosity level of the internal logging of TDLib. This is an offline method. Can be called before authorization. Can be called synchronously |
Instances
data GetLogTags Source #
Parameter of Function getLogTags
Constructors
GetLogTags | Returns list of available TDLib internal log tags, for example, ["actor", "binlog", "connections", "notifications", "proxy"]. This is an offline method. Can be called before authorization. Can be called synchronously |
Instances
Eq GetLogTags Source # | |
Defined in TDLib.Generated.FunArgs | |
Show GetLogTags Source # | |
Defined in TDLib.Generated.FunArgs Methods showsPrec :: Int -> GetLogTags -> ShowS # show :: GetLogTags -> String # showList :: [GetLogTags] -> ShowS # | |
Generic GetLogTags Source # | |
Defined in TDLib.Generated.FunArgs Associated Types type Rep GetLogTags :: Type -> Type # | |
ToJSON GetLogTags Source # | |
Defined in TDLib.Generated.FunArgs Methods toJSON :: GetLogTags -> Value # toEncoding :: GetLogTags -> Encoding # toJSONList :: [GetLogTags] -> Value # toEncodingList :: [GetLogTags] -> Encoding # | |
FromJSON GetLogTags Source # | |
Defined in TDLib.Generated.FunArgs | |
type Rep GetLogTags Source # | |
data SetLogTagVerbosityLevel Source #
Parameter of Function setLogTagVerbosityLevel
Constructors
SetLogTagVerbosityLevel | Sets the verbosity level for a specified TDLib internal log tag. This is an offline method. Can be called before authorization. Can be called synchronously |
Fields
|
Instances
data GetLogTagVerbosityLevel Source #
Parameter of Function getLogTagVerbosityLevel
Constructors
GetLogTagVerbosityLevel | Returns current verbosity level for a specified TDLib internal log tag. This is an offline method. Can be called before authorization. Can be called synchronously |
Instances
data AddLogMessage Source #
Parameter of Function addLogMessage
Constructors
AddLogMessage | Adds a message to TDLib internal log. This is an offline method. Can be called before authorization. Can be called synchronously |
Fields
|
Instances
data TestCallEmpty Source #
Parameter of Function testCallEmpty
Constructors
TestCallEmpty | Does nothing; for testing only. This is an offline method. Can be called before authorization |
Instances
Eq TestCallEmpty Source # | |
Defined in TDLib.Generated.FunArgs Methods (==) :: TestCallEmpty -> TestCallEmpty -> Bool # (/=) :: TestCallEmpty -> TestCallEmpty -> Bool # | |
Show TestCallEmpty Source # | |
Defined in TDLib.Generated.FunArgs Methods showsPrec :: Int -> TestCallEmpty -> ShowS # show :: TestCallEmpty -> String # showList :: [TestCallEmpty] -> ShowS # | |
Generic TestCallEmpty Source # | |
Defined in TDLib.Generated.FunArgs Associated Types type Rep TestCallEmpty :: Type -> Type # | |
ToJSON TestCallEmpty Source # | |
Defined in TDLib.Generated.FunArgs Methods toJSON :: TestCallEmpty -> Value # toEncoding :: TestCallEmpty -> Encoding # toJSONList :: [TestCallEmpty] -> Value # toEncodingList :: [TestCallEmpty] -> Encoding # | |
FromJSON TestCallEmpty Source # | |
Defined in TDLib.Generated.FunArgs Methods parseJSON :: Value -> Parser TestCallEmpty # parseJSONList :: Value -> Parser [TestCallEmpty] # | |
type Rep TestCallEmpty Source # | |
data TestCallString Source #
Parameter of Function testCallString
Constructors
TestCallString | Returns the received string; for testing only. This is an offline method. Can be called before authorization |
Instances
data TestCallBytes Source #
Parameter of Function testCallBytes
Constructors
TestCallBytes | Returns the received bytes; for testing only. This is an offline method. Can be called before authorization |
Fields
|
Instances
data TestCallVectorInt Source #
Parameter of Function testCallVectorInt
Constructors
TestCallVectorInt | Returns the received vector of numbers; for testing only. This is an offline method. Can be called before authorization |
Instances
data TestCallVectorIntObject Source #
Parameter of Function testCallVectorIntObject
Constructors
TestCallVectorIntObject | Returns the received vector of objects containing a number; for testing only. This is an offline method. Can be called before authorization |
Instances
data TestCallVectorString Source #
Parameter of Function testCallVectorString
Constructors
TestCallVectorString | Returns the received vector of strings; for testing only. This is an offline method. Can be called before authorization |
Instances
data TestCallVectorStringObject Source #
Parameter of Function testCallVectorStringObject
Constructors
TestCallVectorStringObject | Returns the received vector of objects containing a string; for testing only. This is an offline method. Can be called before authorization |
Fields
|
Instances
data TestSquareInt Source #
Parameter of Function testSquareInt
Constructors
TestSquareInt | Returns the squared received number; for testing only. This is an offline method. Can be called before authorization |
Instances
data TestNetwork Source #
Parameter of Function testNetwork
Constructors
TestNetwork | Sends a simple network request to the Telegram servers; for testing only. Can be called before authorization |
Instances
Eq TestNetwork Source # | |
Defined in TDLib.Generated.FunArgs | |
Show TestNetwork Source # | |
Defined in TDLib.Generated.FunArgs Methods showsPrec :: Int -> TestNetwork -> ShowS # show :: TestNetwork -> String # showList :: [TestNetwork] -> ShowS # | |
Generic TestNetwork Source # | |
Defined in TDLib.Generated.FunArgs Associated Types type Rep TestNetwork :: Type -> Type # | |
ToJSON TestNetwork Source # | |
Defined in TDLib.Generated.FunArgs Methods toJSON :: TestNetwork -> Value # toEncoding :: TestNetwork -> Encoding # toJSONList :: [TestNetwork] -> Value # toEncodingList :: [TestNetwork] -> Encoding # | |
FromJSON TestNetwork Source # | |
Defined in TDLib.Generated.FunArgs | |
type Rep TestNetwork Source # | |
Parameter of Function testProxy
Constructors
TestProxy | Sends a simple network request to the Telegram servers via proxy; for testing only. Can be called before authorization |
Instances
Eq TestProxy Source # | |
Show TestProxy Source # | |
Generic TestProxy Source # | |
ToJSON TestProxy Source # | |
Defined in TDLib.Generated.FunArgs | |
FromJSON TestProxy Source # | |
type Rep TestProxy Source # | |
Defined in TDLib.Generated.FunArgs type Rep TestProxy = D1 ('MetaData "TestProxy" "TDLib.Generated.FunArgs" "tdlib-types-0.4.0-inplace" 'False) (C1 ('MetaCons "TestProxy" 'PrefixI 'True) ((S1 ('MetaSel ('Just "server") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "port") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)) :*: (S1 ('MetaSel ('Just "type_") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ProxyType) :*: (S1 ('MetaSel ('Just "dcId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "timeout") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double))))) |
data TestGetDifference Source #
Parameter of Function testGetDifference
Constructors
TestGetDifference | Forces an updates.getDifference call to the Telegram servers; for testing only |
Instances
data TestUseUpdate Source #
Parameter of Function testUseUpdate
Constructors
TestUseUpdate | Does nothing and ensures that the Update object is used; for testing only. This is an offline method. Can be called before authorization |
Instances
Eq TestUseUpdate Source # | |
Defined in TDLib.Generated.FunArgs Methods (==) :: TestUseUpdate -> TestUseUpdate -> Bool # (/=) :: TestUseUpdate -> TestUseUpdate -> Bool # | |
Show TestUseUpdate Source # | |
Defined in TDLib.Generated.FunArgs Methods showsPrec :: Int -> TestUseUpdate -> ShowS # show :: TestUseUpdate -> String # showList :: [TestUseUpdate] -> ShowS # | |
Generic TestUseUpdate Source # | |
Defined in TDLib.Generated.FunArgs Associated Types type Rep TestUseUpdate :: Type -> Type # | |
ToJSON TestUseUpdate Source # | |
Defined in TDLib.Generated.FunArgs Methods toJSON :: TestUseUpdate -> Value # toEncoding :: TestUseUpdate -> Encoding # toJSONList :: [TestUseUpdate] -> Value # toEncodingList :: [TestUseUpdate] -> Encoding # | |
FromJSON TestUseUpdate Source # | |
Defined in TDLib.Generated.FunArgs Methods parseJSON :: Value -> Parser TestUseUpdate # parseJSONList :: Value -> Parser [TestUseUpdate] # | |
type Rep TestUseUpdate Source # | |
data TestReturnError Source #
Parameter of Function testReturnError
Constructors
TestReturnError | Returns the specified error and ensures that the Error object is used; for testing only. This is an offline method. Can be called before authorization. Can be called synchronously |