| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
TDLib.Generated.Types
Description
TD API data types generated by tdlib-gen
Synopsis
- type I53 = Int
- type I32 = Int
- type T = Text
- data Error = Error {}
- data Ok = Ok {
- data TdlibParameters = TdlibParameters {
- use_test_dc_1 :: Bool
- database_directory_1 :: T
- files_directory_1 :: T
- use_file_database_1 :: Bool
- use_chat_info_database_1 :: Bool
- use_message_database_1 :: Bool
- use_secret_chats_1 :: Bool
- api_id_1 :: I32
- api_hash_1 :: T
- system_language_code_1 :: T
- device_model_1 :: T
- system_version_1 :: T
- application_version_1 :: T
- enable_storage_optimizer_1 :: Bool
- ignore_file_names_1 :: Bool
- data AuthenticationCodeType
- data AuthenticationCodeInfo = AuthenticationCodeInfo {}
- data EmailAddressAuthenticationCodeInfo = EmailAddressAuthenticationCodeInfo {}
- data TextEntity = TextEntity {}
- data TextEntities = TextEntities {
- entities_1 :: [] TextEntity
- data FormattedText = FormattedText {
- text_1 :: T
- entities_1 :: [] TextEntity
- data TermsOfService = TermsOfService {}
- data AuthorizationState
- = AuthorizationStateWaitTdlibParameters {
- | AuthorizationStateWaitEncryptionKey { }
- | AuthorizationStateWaitPhoneNumber {
- | AuthorizationStateWaitCode { }
- | AuthorizationStateWaitOtherDeviceConfirmation { }
- | AuthorizationStateWaitRegistration { }
- | AuthorizationStateWaitPassword { }
- | AuthorizationStateReady {
- | AuthorizationStateLoggingOut {
- | AuthorizationStateClosing {
- | AuthorizationStateClosed {
- = AuthorizationStateWaitTdlibParameters {
- data PasswordState = PasswordState {}
- data RecoveryEmailAddress = RecoveryEmailAddress {}
- data TemporaryPasswordState = TemporaryPasswordState {
- has_password_1 :: Bool
- valid_for_1 :: I32
- data LocalFile = LocalFile {}
- data RemoteFile = RemoteFile {}
- data File = File {
- id_1 :: I32
- size_1 :: I32
- expected_size_1 :: I32
- local_1 :: LocalFile
- remote_1 :: RemoteFile
- data InputFile
- = InputFileId { }
- | InputFileRemote { }
- | InputFileLocal { }
- | InputFileGenerated {
- original_path_4 :: T
- conversion_4 :: T
- expected_size_4 :: I32
- data PhotoSize = PhotoSize {}
- data Minithumbnail = Minithumbnail {}
- data MaskPoint
- = MaskPointForehead {
- | MaskPointEyes {
- | MaskPointMouth {
- | MaskPointChin {
- = MaskPointForehead {
- data MaskPosition = MaskPosition {}
- data PollOption = PollOption {
- text_1 :: T
- voter_count_1 :: I32
- vote_percentage_1 :: I32
- is_chosen_1 :: Bool
- is_being_chosen_1 :: Bool
- data PollType
- = PollTypeRegular { }
- | PollTypeQuiz { }
- data Animation = Animation {
- duration_1 :: I32
- width_1 :: I32
- height_1 :: I32
- file_name_1 :: T
- mime_type_1 :: T
- minithumbnail_1 :: Minithumbnail
- thumbnail_1 :: PhotoSize
- animation_1 :: File
- data Audio = Audio {}
- data Document = Document {}
- data Photo = Photo {}
- data Sticker = Sticker {
- set_id_1 :: I64
- width_1 :: I32
- height_1 :: I32
- emoji_1 :: T
- is_animated_1 :: Bool
- is_mask_1 :: Bool
- mask_position_1 :: MaskPosition
- thumbnail_1 :: PhotoSize
- sticker_1 :: File
- data Video = Video {
- duration_1 :: I32
- width_1 :: I32
- height_1 :: I32
- file_name_1 :: T
- mime_type_1 :: T
- has_stickers_1 :: Bool
- supports_streaming_1 :: Bool
- minithumbnail_1 :: Minithumbnail
- thumbnail_1 :: PhotoSize
- video_1 :: File
- data VideoNote = VideoNote {}
- data VoiceNote = VoiceNote {
- duration_1 :: I32
- waveform_1 :: ByteString64
- mime_type_1 :: T
- voice_1 :: File
- data Contact = Contact {
- phone_number_1 :: T
- first_name_1 :: T
- last_name_1 :: T
- vcard_1 :: T
- user_id_1 :: I32
- data Location = Location {}
- data Venue = Venue {}
- data Game = Game {
- id_1 :: I64
- short_name_1 :: T
- title_1 :: T
- text_1 :: FormattedText
- description_1 :: T
- photo_1 :: Photo
- animation_1 :: Animation
- data Poll = Poll {
- id_1 :: I64
- question_1 :: T
- options_1 :: [] PollOption
- total_voter_count_1 :: I32
- recent_voter_user_ids_1 :: [] I32
- is_anonymous_1 :: Bool
- type_1 :: PollType
- open_period_1 :: I32
- close_date_1 :: I32
- is_closed_1 :: Bool
- data ProfilePhoto = ProfilePhoto {}
- data ChatPhoto = ChatPhoto {}
- data UserType
- = UserTypeRegular {
- | UserTypeDeleted {
- | UserTypeBot { }
- | UserTypeUnknown {
- = UserTypeRegular {
- data BotCommand = BotCommand {
- command_1 :: T
- description_1 :: T
- data BotInfo = BotInfo {
- description_1 :: T
- commands_1 :: [] BotCommand
- data ChatLocation = ChatLocation {
- location_1 :: Location
- address_1 :: T
- data User = User {
- id_1 :: I32
- first_name_1 :: T
- last_name_1 :: T
- username_1 :: T
- phone_number_1 :: T
- status_1 :: UserStatus
- profile_photo_1 :: ProfilePhoto
- is_contact_1 :: Bool
- is_mutual_contact_1 :: Bool
- is_verified_1 :: Bool
- is_support_1 :: Bool
- restriction_reason_1 :: T
- is_scam_1 :: Bool
- have_access_1 :: Bool
- type_1 :: UserType
- language_code_1 :: T
- data UserFullInfo = UserFullInfo {}
- data UserProfilePhoto = UserProfilePhoto {}
- data UserProfilePhotos = UserProfilePhotos {
- total_count_1 :: I32
- photos_1 :: [] UserProfilePhoto
- data Users = Users {
- total_count_1 :: I32
- user_ids_1 :: [] I32
- data ChatAdministrator = ChatAdministrator {
- user_id_1 :: I32
- custom_title_1 :: T
- is_owner_1 :: Bool
- data ChatAdministrators = ChatAdministrators {}
- data ChatPermissions = ChatPermissions {}
- data ChatMemberStatus
- = ChatMemberStatusCreator {
- custom_title_1 :: T
- is_member_1 :: Bool
- | ChatMemberStatusAdministrator { }
- | ChatMemberStatusMember {
- | ChatMemberStatusRestricted { }
- | ChatMemberStatusLeft {
- | ChatMemberStatusBanned { }
- = ChatMemberStatusCreator {
- data ChatMember = ChatMember {}
- data ChatMembers = ChatMembers {
- total_count_1 :: I32
- members_1 :: [] ChatMember
- data ChatMembersFilter
- data SupergroupMembersFilter
- data BasicGroup = BasicGroup {}
- data BasicGroupFullInfo = BasicGroupFullInfo {
- description_1 :: T
- creator_user_id_1 :: I32
- members_1 :: [] ChatMember
- invite_link_1 :: T
- data Supergroup = Supergroup {}
- data SupergroupFullInfo = SupergroupFullInfo {
- description_1 :: T
- member_count_1 :: I32
- administrator_count_1 :: I32
- restricted_count_1 :: I32
- banned_count_1 :: I32
- linked_chat_id_1 :: I53
- slow_mode_delay_1 :: I32
- slow_mode_delay_expires_in_1 :: Double
- can_get_members_1 :: Bool
- can_set_username_1 :: Bool
- can_set_sticker_set_1 :: Bool
- can_set_location_1 :: Bool
- can_view_statistics_1 :: Bool
- is_all_history_available_1 :: Bool
- sticker_set_id_1 :: I64
- location_1 :: ChatLocation
- invite_link_1 :: T
- upgraded_from_basic_group_id_1 :: I32
- upgraded_from_max_message_id_1 :: I53
- data SecretChatState
- = SecretChatStatePending {
- | SecretChatStateReady {
- | SecretChatStateClosed {
- = SecretChatStatePending {
- data SecretChat = SecretChat {
- id_1 :: I32
- user_id_1 :: I32
- state_1 :: SecretChatState
- is_outbound_1 :: Bool
- ttl_1 :: I32
- key_hash_1 :: ByteString64
- layer_1 :: I32
- data MessageForwardOrigin
- = MessageForwardOriginUser { }
- | MessageForwardOriginHiddenUser {
- sender_name_2 :: T
- | MessageForwardOriginChannel {
- chat_id_3 :: I53
- message_id_3 :: I53
- author_signature_3 :: T
- data MessageForwardInfo = MessageForwardInfo {}
- data MessageSendingState
- data Message = Message {
- id_1 :: I53
- sender_user_id_1 :: I32
- chat_id_1 :: I53
- sending_state_1 :: MessageSendingState
- scheduling_state_1 :: MessageSchedulingState
- is_outgoing_1 :: Bool
- can_be_edited_1 :: Bool
- can_be_forwarded_1 :: Bool
- can_be_deleted_only_for_self_1 :: Bool
- can_be_deleted_for_all_users_1 :: Bool
- is_channel_post_1 :: Bool
- contains_unread_mention_1 :: Bool
- date_1 :: I32
- edit_date_1 :: I32
- forward_info_1 :: MessageForwardInfo
- reply_to_message_id_1 :: I53
- ttl_1 :: I32
- ttl_expires_in_1 :: Double
- via_bot_user_id_1 :: I32
- author_signature_1 :: T
- views_1 :: I32
- media_album_id_1 :: I64
- restriction_reason_1 :: T
- content_1 :: MessageContent
- reply_markup_1 :: ReplyMarkup
- data Messages = Messages {
- total_count_1 :: I32
- messages_1 :: [] Message
- data FoundMessages = FoundMessages {
- messages_1 :: [] Message
- next_from_search_id_1 :: I64
- data NotificationSettingsScope
- data ChatNotificationSettings = ChatNotificationSettings {
- use_default_mute_for_1 :: Bool
- mute_for_1 :: I32
- use_default_sound_1 :: Bool
- sound_1 :: T
- use_default_show_preview_1 :: Bool
- show_preview_1 :: Bool
- use_default_disable_pinned_message_notifications_1 :: Bool
- disable_pinned_message_notifications_1 :: Bool
- use_default_disable_mention_notifications_1 :: Bool
- disable_mention_notifications_1 :: Bool
- data ScopeNotificationSettings = ScopeNotificationSettings {}
- data DraftMessage = DraftMessage {}
- data ChatType
- = ChatTypePrivate { }
- | ChatTypeBasicGroup { }
- | ChatTypeSupergroup { }
- | ChatTypeSecret {
- secret_chat_id_4 :: I32
- user_id_4 :: I32
- data ChatList
- = ChatListMain {
- | ChatListArchive {
- = ChatListMain {
- data ChatSource
- data Chat = Chat {
- id_1 :: I53
- type_1 :: ChatType
- chat_list_1 :: ChatList
- title_1 :: T
- photo_1 :: ChatPhoto
- permissions_1 :: ChatPermissions
- last_message_1 :: Message
- order_1 :: I64
- source_1 :: ChatSource
- is_pinned_1 :: Bool
- is_marked_as_unread_1 :: Bool
- has_scheduled_messages_1 :: Bool
- can_be_deleted_only_for_self_1 :: Bool
- can_be_deleted_for_all_users_1 :: Bool
- can_be_reported_1 :: Bool
- default_disable_notification_1 :: Bool
- unread_count_1 :: I32
- last_read_inbox_message_id_1 :: I53
- last_read_outbox_message_id_1 :: I53
- unread_mention_count_1 :: I32
- notification_settings_1 :: ChatNotificationSettings
- action_bar_1 :: ChatActionBar
- pinned_message_id_1 :: I53
- reply_markup_message_id_1 :: I53
- draft_message_1 :: DraftMessage
- client_data_1 :: T
- data Chats = Chats {
- chat_ids_1 :: [] I53
- data ChatNearby = ChatNearby {
- chat_id_1 :: I53
- distance_1 :: I32
- data ChatsNearby = ChatsNearby {
- users_nearby_1 :: [] ChatNearby
- supergroups_nearby_1 :: [] ChatNearby
- data ChatInviteLink = ChatInviteLink {
- invite_link_1 :: T
- data ChatInviteLinkInfo = ChatInviteLinkInfo {
- chat_id_1 :: I53
- type_1 :: ChatType
- title_1 :: T
- photo_1 :: ChatPhoto
- member_count_1 :: I32
- member_user_ids_1 :: [] I32
- is_public_1 :: Bool
- data PublicChatType
- data ChatActionBar
- data KeyboardButtonType
- data KeyboardButton = KeyboardButton {
- text_1 :: T
- type_1 :: KeyboardButtonType
- data InlineKeyboardButtonType
- data InlineKeyboardButton = InlineKeyboardButton {}
- data ReplyMarkup
- = ReplyMarkupRemoveKeyboard { }
- | ReplyMarkupForceReply { }
- | ReplyMarkupShowKeyboard {
- rows_3 :: [] ([] KeyboardButton)
- resize_keyboard_3 :: Bool
- one_time_3 :: Bool
- is_personal_3 :: Bool
- | ReplyMarkupInlineKeyboard {
- rows_4 :: [] ([] InlineKeyboardButton)
- data LoginUrlInfo
- = LoginUrlInfoOpen {
- url_1 :: T
- skip_confirm_1 :: Bool
- | LoginUrlInfoRequestConfirmation {
- url_2 :: T
- domain_2 :: T
- bot_user_id_2 :: I32
- request_write_access_2 :: Bool
- = LoginUrlInfoOpen {
- data RichText
- = RichTextPlain { }
- | RichTextBold { }
- | RichTextItalic { }
- | RichTextUnderline { }
- | RichTextStrikethrough { }
- | RichTextFixed { }
- | RichTextUrl { }
- | RichTextEmailAddress {
- text_8 :: RichText
- email_address_8 :: T
- | RichTextSubscript { }
- | RichTextSuperscript { }
- | RichTextMarked { }
- | RichTextPhoneNumber {
- text_12 :: RichText
- phone_number_12 :: T
- | RichTextIcon { }
- | RichTextReference { }
- | RichTextAnchor { }
- | RichTextAnchorLink { }
- | RichTexts { }
- data PageBlockCaption = PageBlockCaption {}
- data PageBlockListItem = PageBlockListItem {
- label_1 :: T
- page_blocks_1 :: [] PageBlock
- data PageBlockHorizontalAlignment
- data PageBlockVerticalAlignment
- data PageBlockTableCell = PageBlockTableCell {}
- data PageBlockRelatedArticle = PageBlockRelatedArticle {}
- data PageBlock
- = PageBlockTitle { }
- | PageBlockSubtitle { }
- | PageBlockAuthorDate { }
- | PageBlockHeader { }
- | PageBlockSubheader { }
- | PageBlockKicker { }
- | PageBlockParagraph { }
- | PageBlockPreformatted {
- text_8 :: RichText
- language_8 :: T
- | PageBlockFooter { }
- | PageBlockDivider {
- | PageBlockAnchor { }
- | PageBlockList {
- items_12 :: [] PageBlockListItem
- | PageBlockBlockQuote { }
- | PageBlockPullQuote { }
- | PageBlockAnimation { }
- | PageBlockAudio { }
- | PageBlockPhoto {
- photo_17 :: Photo
- caption_17 :: PageBlockCaption
- url_17 :: T
- | PageBlockVideo { }
- | PageBlockVoiceNote { }
- | PageBlockCover { }
- | PageBlockEmbedded {
- url_21 :: T
- html_21 :: T
- poster_photo_21 :: Photo
- width_21 :: I32
- height_21 :: I32
- caption_21 :: PageBlockCaption
- is_full_width_21 :: Bool
- allow_scrolling_21 :: Bool
- | PageBlockEmbeddedPost {
- url_22 :: T
- author_22 :: T
- author_photo_22 :: Photo
- date_22 :: I32
- page_blocks_22 :: [] PageBlock
- caption_22 :: PageBlockCaption
- | PageBlockCollage { }
- | PageBlockSlideshow { }
- | PageBlockChatLink { }
- | PageBlockTable {
- caption_26 :: RichText
- cells_26 :: [] ([] PageBlockTableCell)
- is_bordered_26 :: Bool
- is_striped_26 :: Bool
- | PageBlockDetails {
- header_27 :: RichText
- page_blocks_27 :: [] PageBlock
- is_open_27 :: Bool
- | PageBlockRelatedArticles { }
- | PageBlockMap {
- location_29 :: Location
- zoom_29 :: I32
- width_29 :: I32
- height_29 :: I32
- caption_29 :: PageBlockCaption
- data WebPageInstantView = WebPageInstantView {
- page_blocks_1 :: [] PageBlock
- view_count_1 :: I32
- version_1 :: I32
- is_rtl_1 :: Bool
- is_full_1 :: Bool
- data WebPage = WebPage {
- url_1 :: T
- display_url_1 :: T
- type_1 :: T
- site_name_1 :: T
- title_1 :: T
- description_1 :: FormattedText
- photo_1 :: Photo
- embed_url_1 :: T
- embed_type_1 :: T
- embed_width_1 :: I32
- embed_height_1 :: I32
- duration_1 :: I32
- author_1 :: T
- animation_1 :: Animation
- audio_1 :: Audio
- document_1 :: Document
- sticker_1 :: Sticker
- video_1 :: Video
- video_note_1 :: VideoNote
- voice_note_1 :: VoiceNote
- instant_view_version_1 :: I32
- data BankCardActionOpenUrl = BankCardActionOpenUrl {}
- data BankCardInfo = BankCardInfo {
- title_1 :: T
- actions_1 :: [] BankCardActionOpenUrl
- data Address = Address {
- country_code_1 :: T
- state_1 :: T
- city_1 :: T
- street_line1_1 :: T
- street_line2_1 :: T
- postal_code_1 :: T
- data LabeledPricePart = LabeledPricePart {}
- data Invoice = Invoice {}
- data OrderInfo = OrderInfo {
- name_1 :: T
- phone_number_1 :: T
- email_address_1 :: T
- shipping_address_1 :: Address
- data ShippingOption = ShippingOption {
- id_1 :: T
- title_1 :: T
- price_parts_1 :: [] LabeledPricePart
- data SavedCredentials = SavedCredentials {}
- data InputCredentials
- = InputCredentialsSaved { }
- | InputCredentialsNew {
- data_2 :: T
- allow_save_2 :: Bool
- | InputCredentialsAndroidPay { }
- | InputCredentialsApplePay { }
- data PaymentsProviderStripe = PaymentsProviderStripe {}
- data PaymentForm = PaymentForm {}
- data ValidatedOrderInfo = ValidatedOrderInfo {}
- data PaymentResult = PaymentResult {
- success_1 :: Bool
- verification_url_1 :: T
- data PaymentReceipt = PaymentReceipt {}
- data DatedFile = DatedFile {}
- data PassportElementType
- = PassportElementTypePersonalDetails {
- | PassportElementTypePassport {
- | PassportElementTypeDriverLicense {
- | PassportElementTypeIdentityCard {
- | PassportElementTypeInternalPassport {
- | PassportElementTypeAddress {
- | PassportElementTypeUtilityBill {
- | PassportElementTypeBankStatement {
- | PassportElementTypeRentalAgreement {
- | PassportElementTypePassportRegistration {
- | PassportElementTypeTemporaryRegistration {
- | PassportElementTypePhoneNumber {
- | PassportElementTypeEmailAddress {
- = PassportElementTypePersonalDetails {
- data Date = Date {}
- data PersonalDetails = PersonalDetails {}
- data IdentityDocument = IdentityDocument {}
- data InputIdentityDocument = InputIdentityDocument {}
- data PersonalDocument = PersonalDocument {
- files_1 :: [] DatedFile
- translation_1 :: [] DatedFile
- data InputPersonalDocument = InputPersonalDocument {
- files_1 :: [] InputFile
- translation_1 :: [] InputFile
- data PassportElement
- = PassportElementPersonalDetails { }
- | PassportElementPassport { }
- | PassportElementDriverLicense { }
- | PassportElementIdentityCard { }
- | PassportElementInternalPassport { }
- | PassportElementAddress { }
- | PassportElementUtilityBill { }
- | PassportElementBankStatement { }
- | PassportElementRentalAgreement { }
- | PassportElementPassportRegistration { }
- | PassportElementTemporaryRegistration { }
- | PassportElementPhoneNumber {
- phone_number_12 :: T
- | PassportElementEmailAddress { }
- data InputPassportElement
- = InputPassportElementPersonalDetails { }
- | InputPassportElementPassport { }
- | InputPassportElementDriverLicense { }
- | InputPassportElementIdentityCard { }
- | InputPassportElementInternalPassport { }
- | InputPassportElementAddress { }
- | InputPassportElementUtilityBill { }
- | InputPassportElementBankStatement { }
- | InputPassportElementRentalAgreement { }
- | InputPassportElementPassportRegistration { }
- | InputPassportElementTemporaryRegistration { }
- | InputPassportElementPhoneNumber {
- phone_number_12 :: T
- | InputPassportElementEmailAddress { }
- data PassportElements = PassportElements {
- elements_1 :: [] PassportElement
- data PassportElementErrorSource
- = PassportElementErrorSourceUnspecified {
- | PassportElementErrorSourceDataField {
- field_name_2 :: T
- | PassportElementErrorSourceFrontSide {
- | PassportElementErrorSourceReverseSide {
- | PassportElementErrorSourceSelfie {
- | PassportElementErrorSourceTranslationFile {
- file_index_6 :: I32
- | PassportElementErrorSourceTranslationFiles {
- | PassportElementErrorSourceFile {
- file_index_8 :: I32
- | PassportElementErrorSourceFiles {
- = PassportElementErrorSourceUnspecified {
- data PassportElementError = PassportElementError {}
- data PassportSuitableElement = PassportSuitableElement {}
- data PassportRequiredElement = PassportRequiredElement {}
- data PassportAuthorizationForm = PassportAuthorizationForm {}
- data PassportElementsWithErrors = PassportElementsWithErrors {
- elements_1 :: [] PassportElement
- errors_1 :: [] PassportElementError
- data EncryptedCredentials = EncryptedCredentials {}
- data EncryptedPassportElement = EncryptedPassportElement {
- type_1 :: PassportElementType
- data_1 :: ByteString64
- front_side_1 :: DatedFile
- reverse_side_1 :: DatedFile
- selfie_1 :: DatedFile
- translation_1 :: [] DatedFile
- files_1 :: [] DatedFile
- value_1 :: T
- hash_1 :: T
- data InputPassportElementErrorSource
- = InputPassportElementErrorSourceUnspecified { }
- | InputPassportElementErrorSourceDataField { }
- | InputPassportElementErrorSourceFrontSide { }
- | InputPassportElementErrorSourceReverseSide { }
- | InputPassportElementErrorSourceSelfie { }
- | InputPassportElementErrorSourceTranslationFile { }
- | InputPassportElementErrorSourceTranslationFiles {
- file_hashes_7 :: [] ByteString64
- | InputPassportElementErrorSourceFile { }
- | InputPassportElementErrorSourceFiles {
- file_hashes_9 :: [] ByteString64
- data InputPassportElementError = InputPassportElementError {}
- data MessageContent
- = MessageText { }
- | MessageAnimation { }
- | MessageAudio { }
- | MessageDocument { }
- | MessagePhoto { }
- | MessageExpiredPhoto {
- | MessageSticker { }
- | MessageVideo { }
- | MessageExpiredVideo {
- | MessageVideoNote { }
- | MessageVoiceNote { }
- | MessageLocation { }
- | MessageVenue { }
- | MessageContact { }
- | MessageDice { }
- | MessageGame { }
- | MessagePoll { }
- | MessageInvoice { }
- | MessageCall { }
- | MessageBasicGroupChatCreate {
- title_20 :: T
- member_user_ids_20 :: [] I32
- | MessageSupergroupChatCreate { }
- | MessageChatChangeTitle { }
- | MessageChatChangePhoto { }
- | MessageChatDeletePhoto {
- | MessageChatAddMembers {
- member_user_ids_25 :: [] I32
- | MessageChatJoinByLink {
- | MessageChatDeleteMember {
- user_id_27 :: I32
- | MessageChatUpgradeTo { }
- | MessageChatUpgradeFrom {
- title_29 :: T
- basic_group_id_29 :: I32
- | MessagePinMessage {
- message_id_30 :: I53
- | MessageScreenshotTaken {
- | MessageChatSetTtl { }
- | MessageCustomServiceAction { }
- | MessageGameScore {
- game_message_id_34 :: I53
- game_id_34 :: I64
- score_34 :: I32
- | MessagePaymentSuccessful { }
- | MessagePaymentSuccessfulBot { }
- | MessageContactRegistered {
- | MessageWebsiteConnected {
- domain_name_38 :: T
- | MessagePassportDataSent {
- types_39 :: [] PassportElementType
- | MessagePassportDataReceived { }
- | MessageUnsupported {
- data TextEntityType
- = TextEntityTypeMention {
- | TextEntityTypeHashtag {
- | TextEntityTypeCashtag {
- | TextEntityTypeBotCommand {
- | TextEntityTypeUrl {
- | TextEntityTypeEmailAddress {
- | TextEntityTypePhoneNumber {
- | TextEntityTypeBankCardNumber {
- | TextEntityTypeBold {
- | TextEntityTypeItalic {
- | TextEntityTypeUnderline {
- | TextEntityTypeStrikethrough {
- | TextEntityTypeCode {
- | TextEntityTypePre {
- | TextEntityTypePreCode {
- language_15 :: T
- | TextEntityTypeTextUrl { }
- | TextEntityTypeMentionName {
- user_id_17 :: I32
- = TextEntityTypeMention {
- data InputThumbnail = InputThumbnail {}
- data MessageSchedulingState
- data SendMessageOptions = SendMessageOptions {}
- data InputMessageContent
- = InputMessageText { }
- | InputMessageAnimation { }
- | InputMessageAudio { }
- | InputMessageDocument { }
- | InputMessagePhoto {
- photo_5 :: InputFile
- thumbnail_5 :: InputThumbnail
- added_sticker_file_ids_5 :: [] I32
- width_5 :: I32
- height_5 :: I32
- caption_5 :: FormattedText
- ttl_5 :: I32
- | InputMessageSticker {
- sticker_6 :: InputFile
- thumbnail_6 :: InputThumbnail
- width_6 :: I32
- height_6 :: I32
- | InputMessageVideo {
- video_7 :: InputFile
- thumbnail_7 :: InputThumbnail
- added_sticker_file_ids_7 :: [] I32
- duration_7 :: I32
- width_7 :: I32
- height_7 :: I32
- supports_streaming_7 :: Bool
- caption_7 :: FormattedText
- ttl_7 :: I32
- | InputMessageVideoNote { }
- | InputMessageVoiceNote { }
- | InputMessageLocation { }
- | InputMessageVenue { }
- | InputMessageContact { }
- | InputMessageDice {
- emoji_13 :: T
- clear_draft_13 :: Bool
- | InputMessageGame { }
- | InputMessageInvoice { }
- | InputMessagePoll {
- question_16 :: T
- options_16 :: [] T
- is_anonymous_16 :: Bool
- type_16 :: PollType
- open_period_16 :: I32
- close_date_16 :: I32
- is_closed_16 :: Bool
- | InputMessageForwarded { }
- data SearchMessagesFilter
- = SearchMessagesFilterEmpty {
- | SearchMessagesFilterAnimation {
- | SearchMessagesFilterAudio {
- | SearchMessagesFilterDocument {
- | SearchMessagesFilterPhoto {
- | SearchMessagesFilterVideo {
- | SearchMessagesFilterVoiceNote {
- | SearchMessagesFilterPhotoAndVideo {
- | SearchMessagesFilterUrl {
- | SearchMessagesFilterChatPhoto {
- | SearchMessagesFilterCall {
- | SearchMessagesFilterMissedCall {
- | SearchMessagesFilterVideoNote {
- | SearchMessagesFilterVoiceAndVideoNote {
- | SearchMessagesFilterMention {
- | SearchMessagesFilterUnreadMention {
- | SearchMessagesFilterFailedToSend {
- = SearchMessagesFilterEmpty {
- data ChatAction
- = ChatActionTyping {
- | ChatActionRecordingVideo {
- | ChatActionUploadingVideo {
- progress_3 :: I32
- | ChatActionRecordingVoiceNote {
- | ChatActionUploadingVoiceNote {
- progress_5 :: I32
- | ChatActionUploadingPhoto {
- progress_6 :: I32
- | ChatActionUploadingDocument {
- progress_7 :: I32
- | ChatActionChoosingLocation {
- | ChatActionChoosingContact {
- | ChatActionStartPlayingGame {
- | ChatActionRecordingVideoNote {
- | ChatActionUploadingVideoNote {
- progress_12 :: I32
- | ChatActionCancel {
- = ChatActionTyping {
- data UserStatus
- = UserStatusEmpty {
- | UserStatusOnline { }
- | UserStatusOffline {
- was_online_3 :: I32
- | UserStatusRecently {
- | UserStatusLastWeek {
- | UserStatusLastMonth {
- = UserStatusEmpty {
- data Stickers = Stickers {
- stickers_1 :: [] Sticker
- data Emojis = Emojis {}
- data StickerSet = StickerSet {
- id_1 :: I64
- title_1 :: T
- name_1 :: T
- thumbnail_1 :: PhotoSize
- is_installed_1 :: Bool
- is_archived_1 :: Bool
- is_official_1 :: Bool
- is_animated_1 :: Bool
- is_masks_1 :: Bool
- is_viewed_1 :: Bool
- stickers_1 :: [] Sticker
- emojis_1 :: [] Emojis
- data StickerSetInfo = StickerSetInfo {
- id_1 :: I64
- title_1 :: T
- name_1 :: T
- thumbnail_1 :: PhotoSize
- is_installed_1 :: Bool
- is_archived_1 :: Bool
- is_official_1 :: Bool
- is_animated_1 :: Bool
- is_masks_1 :: Bool
- is_viewed_1 :: Bool
- size_1 :: I32
- covers_1 :: [] Sticker
- data StickerSets = StickerSets {
- total_count_1 :: I32
- sets_1 :: [] StickerSetInfo
- data CallDiscardReason
- data CallProtocol = CallProtocol {
- udp_p2p_1 :: Bool
- udp_reflector_1 :: Bool
- min_layer_1 :: I32
- max_layer_1 :: I32
- library_versions_1 :: [] T
- data CallConnection = CallConnection {
- id_1 :: I64
- ip_1 :: T
- ipv6_1 :: T
- port_1 :: I32
- peer_tag_1 :: ByteString64
- data CallId = CallId {}
- data CallState
- = CallStatePending { }
- | CallStateExchangingKeys {
- | CallStateReady {
- protocol_3 :: CallProtocol
- connections_3 :: [] CallConnection
- config_3 :: T
- encryption_key_3 :: ByteString64
- emojis_3 :: [] T
- allow_p2p_3 :: Bool
- | CallStateHangingUp {
- | CallStateDiscarded { }
- | CallStateError { }
- data CallProblem
- = CallProblemEcho {
- | CallProblemNoise {
- | CallProblemInterruptions {
- | CallProblemDistortedSpeech {
- | CallProblemSilentLocal {
- | CallProblemSilentRemote {
- | CallProblemDropped {
- = CallProblemEcho {
- data Call = Call {}
- data PhoneNumberAuthenticationSettings = PhoneNumberAuthenticationSettings {}
- data Animations = Animations {
- animations_1 :: [] Animation
- data ImportedContacts = ImportedContacts {
- user_ids_1 :: [] I32
- importer_count_1 :: [] I32
- data HttpUrl = HttpUrl {}
- data InputInlineQueryResult
- = InputInlineQueryResultAnimation { }
- | InputInlineQueryResultArticle { }
- | InputInlineQueryResultAudio { }
- | InputInlineQueryResultContact { }
- | InputInlineQueryResultDocument { }
- | InputInlineQueryResultGame {
- id_6 :: T
- game_short_name_6 :: T
- reply_markup_6 :: ReplyMarkup
- | InputInlineQueryResultLocation { }
- | InputInlineQueryResultPhoto { }
- | InputInlineQueryResultSticker { }
- | InputInlineQueryResultVenue { }
- | InputInlineQueryResultVideo { }
- | InputInlineQueryResultVoiceNote { }
- data InlineQueryResult
- = InlineQueryResultArticle {
- id_1 :: T
- url_1 :: T
- hide_url_1 :: Bool
- title_1 :: T
- description_1 :: T
- thumbnail_1 :: PhotoSize
- | InlineQueryResultContact { }
- | InlineQueryResultLocation {
- id_3 :: T
- location_3 :: Location
- title_3 :: T
- thumbnail_3 :: PhotoSize
- | InlineQueryResultVenue { }
- | InlineQueryResultGame { }
- | InlineQueryResultAnimation { }
- | InlineQueryResultAudio { }
- | InlineQueryResultDocument {
- id_8 :: T
- document_8 :: Document
- title_8 :: T
- description_8 :: T
- | InlineQueryResultPhoto { }
- | InlineQueryResultSticker {
- id_10 :: T
- sticker_10 :: Sticker
- | InlineQueryResultVideo { }
- | InlineQueryResultVoiceNote { }
- = InlineQueryResultArticle {
- data InlineQueryResults = InlineQueryResults {}
- data CallbackQueryPayload
- = CallbackQueryPayloadData { }
- | CallbackQueryPayloadGame { }
- data CallbackQueryAnswer = CallbackQueryAnswer {}
- data CustomRequestResult = CustomRequestResult {}
- data GameHighScore = GameHighScore {}
- data GameHighScores = GameHighScores {
- scores_1 :: [] GameHighScore
- data ChatEventAction
- = ChatEventMessageEdited { }
- | ChatEventMessageDeleted { }
- | ChatEventPollStopped { }
- | ChatEventMessagePinned { }
- | ChatEventMessageUnpinned {
- | ChatEventMemberJoined {
- | ChatEventMemberLeft {
- | ChatEventMemberInvited { }
- | ChatEventMemberPromoted { }
- | ChatEventMemberRestricted { }
- | ChatEventTitleChanged {
- old_title_11 :: T
- new_title_11 :: T
- | ChatEventPermissionsChanged { }
- | ChatEventDescriptionChanged { }
- | ChatEventUsernameChanged {
- old_username_14 :: T
- new_username_14 :: T
- | ChatEventPhotoChanged { }
- | ChatEventInvitesToggled { }
- | ChatEventLinkedChatChanged { }
- | ChatEventSlowModeDelayChanged { }
- | ChatEventSignMessagesToggled { }
- | ChatEventStickerSetChanged { }
- | ChatEventLocationChanged { }
- | ChatEventIsAllHistoryAvailableToggled { }
- data ChatEvent = ChatEvent {}
- data ChatEvents = ChatEvents {}
- data ChatEventLogFilters = ChatEventLogFilters {}
- data LanguagePackStringValue
- = LanguagePackStringValueOrdinary { }
- | LanguagePackStringValuePluralized {
- zero_value_2 :: T
- one_value_2 :: T
- two_value_2 :: T
- few_value_2 :: T
- many_value_2 :: T
- other_value_2 :: T
- | LanguagePackStringValueDeleted {
- data LanguagePackString = LanguagePackString {}
- data LanguagePackStrings = LanguagePackStrings {
- strings_1 :: [] LanguagePackString
- data LanguagePackInfo = LanguagePackInfo {}
- data LocalizationTargetInfo = LocalizationTargetInfo {}
- data DeviceToken
- = DeviceTokenFirebaseCloudMessaging { }
- | DeviceTokenApplePush { }
- | DeviceTokenApplePushVoIP {
- device_token_3 :: T
- is_app_sandbox_3 :: Bool
- encrypt_3 :: Bool
- | DeviceTokenWindowsPush {
- access_token_4 :: T
- | DeviceTokenMicrosoftPush {
- channel_uri_5 :: T
- | DeviceTokenMicrosoftPushVoIP {
- channel_uri_6 :: T
- | DeviceTokenWebPush {
- endpoint_7 :: T
- p256dh_base64url_7 :: T
- auth_base64url_7 :: T
- | DeviceTokenSimplePush {
- endpoint_8 :: T
- | DeviceTokenUbuntuPush { }
- | DeviceTokenBlackBerryPush { }
- | DeviceTokenTizenPush { }
- data PushReceiverId = PushReceiverId {}
- data BackgroundFill
- = BackgroundFillSolid { }
- | BackgroundFillGradient { }
- data BackgroundType
- = BackgroundTypeWallpaper {
- is_blurred_1 :: Bool
- is_moving_1 :: Bool
- | BackgroundTypePattern { }
- | BackgroundTypeFill { }
- = BackgroundTypeWallpaper {
- data Background = Background {
- id_1 :: I64
- is_default_1 :: Bool
- is_dark_1 :: Bool
- name_1 :: T
- document_1 :: Document
- type_1 :: BackgroundType
- data Backgrounds = Backgrounds {
- backgrounds_1 :: [] Background
- data InputBackground
- = InputBackgroundLocal { }
- | InputBackgroundRemote { }
- data Hashtags = Hashtags {
- hashtags_1 :: [] T
- data CanTransferOwnershipResult
- data CheckChatUsernameResult
- data PushMessageContent
- = PushMessageContentHidden {
- is_pinned_1 :: Bool
- | PushMessageContentAnimation {
- animation_2 :: Animation
- caption_2 :: T
- is_pinned_2 :: Bool
- | PushMessageContentAudio {
- audio_3 :: Audio
- is_pinned_3 :: Bool
- | PushMessageContentContact {
- name_4 :: T
- is_pinned_4 :: Bool
- | PushMessageContentContactRegistered {
- | PushMessageContentDocument { }
- | PushMessageContentGame {
- title_7 :: T
- is_pinned_7 :: Bool
- | PushMessageContentGameScore { }
- | PushMessageContentInvoice {
- price_9 :: T
- is_pinned_9 :: Bool
- | PushMessageContentLocation {
- is_live_10 :: Bool
- is_pinned_10 :: Bool
- | PushMessageContentPhoto {
- photo_11 :: Photo
- caption_11 :: T
- is_secret_11 :: Bool
- is_pinned_11 :: Bool
- | PushMessageContentPoll {
- question_12 :: T
- is_regular_12 :: Bool
- is_pinned_12 :: Bool
- | PushMessageContentScreenshotTaken {
- | PushMessageContentSticker {
- sticker_14 :: Sticker
- emoji_14 :: T
- is_pinned_14 :: Bool
- | PushMessageContentText {
- text_15 :: T
- is_pinned_15 :: Bool
- | PushMessageContentVideo {
- video_16 :: Video
- caption_16 :: T
- is_secret_16 :: Bool
- is_pinned_16 :: Bool
- | PushMessageContentVideoNote { }
- | PushMessageContentVoiceNote { }
- | PushMessageContentBasicGroupChatCreate {
- | PushMessageContentChatAddMembers { }
- | PushMessageContentChatChangePhoto {
- | PushMessageContentChatChangeTitle { }
- | PushMessageContentChatDeleteMember { }
- | PushMessageContentChatJoinByLink {
- | PushMessageContentMessageForwards { }
- | PushMessageContentMediaAlbum { }
- = PushMessageContentHidden {
- data NotificationType
- data NotificationGroupType
- data Notification = Notification {
- id_1 :: I32
- date_1 :: I32
- is_silent_1 :: Bool
- type_1 :: NotificationType
- data NotificationGroup = NotificationGroup {
- id_1 :: I32
- type_1 :: NotificationGroupType
- chat_id_1 :: I53
- total_count_1 :: I32
- notifications_1 :: [] Notification
- data OptionValue
- = OptionValueBoolean { }
- | OptionValueEmpty {
- | OptionValueInteger { }
- | OptionValueString { }
- data JsonObjectMember = JsonObjectMember {}
- data JsonValue
- = JsonValueNull {
- | JsonValueBoolean { }
- | JsonValueNumber { }
- | JsonValueString { }
- | JsonValueArray { }
- | JsonValueObject {
- members_6 :: [] JsonObjectMember
- = JsonValueNull {
- data UserPrivacySettingRule
- = UserPrivacySettingRuleAllowAll {
- | UserPrivacySettingRuleAllowContacts {
- | UserPrivacySettingRuleAllowUsers {
- user_ids_3 :: [] I32
- | UserPrivacySettingRuleAllowChatMembers {
- chat_ids_4 :: [] I53
- | UserPrivacySettingRuleRestrictAll {
- | UserPrivacySettingRuleRestrictContacts {
- | UserPrivacySettingRuleRestrictUsers {
- user_ids_7 :: [] I32
- | UserPrivacySettingRuleRestrictChatMembers {
- chat_ids_8 :: [] I53
- = UserPrivacySettingRuleAllowAll {
- data UserPrivacySettingRules = UserPrivacySettingRules {}
- data UserPrivacySetting
- = UserPrivacySettingShowStatus {
- | UserPrivacySettingShowProfilePhoto {
- | UserPrivacySettingShowLinkInForwardedMessages {
- | UserPrivacySettingShowPhoneNumber {
- | UserPrivacySettingAllowChatInvites {
- | UserPrivacySettingAllowCalls {
- | UserPrivacySettingAllowPeerToPeerCalls {
- | UserPrivacySettingAllowFindingByPhoneNumber {
- = UserPrivacySettingShowStatus {
- data AccountTtl = AccountTtl {}
- data Session = Session {
- id_1 :: I64
- is_current_1 :: Bool
- is_password_pending_1 :: Bool
- api_id_1 :: I32
- application_name_1 :: T
- application_version_1 :: T
- is_official_application_1 :: Bool
- device_model_1 :: T
- platform_1 :: T
- system_version_1 :: T
- log_in_date_1 :: I32
- last_active_date_1 :: I32
- ip_1 :: T
- country_1 :: T
- region_1 :: T
- data Sessions = Sessions {
- sessions_1 :: [] Session
- data ConnectedWebsite = ConnectedWebsite {
- id_1 :: I64
- domain_name_1 :: T
- bot_user_id_1 :: I32
- browser_1 :: T
- platform_1 :: T
- log_in_date_1 :: I32
- last_active_date_1 :: I32
- ip_1 :: T
- location_1 :: T
- data ConnectedWebsites = ConnectedWebsites {
- websites_1 :: [] ConnectedWebsite
- data ChatReportReason
- data PublicMessageLink = PublicMessageLink {}
- data MessageLinkInfo = MessageLinkInfo {
- is_public_1 :: Bool
- chat_id_1 :: I53
- message_1 :: Message
- for_album_1 :: Bool
- data FilePart = FilePart {}
- data FileType
- = FileTypeNone {
- | FileTypeAnimation {
- | FileTypeAudio {
- | FileTypeDocument {
- | FileTypePhoto {
- | FileTypeProfilePhoto {
- | FileTypeSecret {
- | FileTypeSecretThumbnail {
- | FileTypeSecure {
- | FileTypeSticker {
- | FileTypeThumbnail {
- | FileTypeUnknown {
- | FileTypeVideo {
- | FileTypeVideoNote {
- | FileTypeVoiceNote {
- | FileTypeWallpaper {
- = FileTypeNone {
- data StorageStatisticsByFileType = StorageStatisticsByFileType {}
- data StorageStatisticsByChat = StorageStatisticsByChat {
- chat_id_1 :: I53
- size_1 :: I53
- count_1 :: I32
- by_file_type_1 :: [] StorageStatisticsByFileType
- data StorageStatistics = StorageStatistics {}
- data StorageStatisticsFast = StorageStatisticsFast {}
- data DatabaseStatistics = DatabaseStatistics {
- statistics_1 :: T
- data NetworkType
- = NetworkTypeNone {
- | NetworkTypeMobile {
- | NetworkTypeMobileRoaming {
- | NetworkTypeWiFi {
- | NetworkTypeOther {
- = NetworkTypeNone {
- data NetworkStatisticsEntry
- data NetworkStatistics = NetworkStatistics {}
- data AutoDownloadSettings = AutoDownloadSettings {}
- data AutoDownloadSettingsPresets = AutoDownloadSettingsPresets {}
- data ConnectionState
- data TopChatCategory
- = TopChatCategoryUsers {
- | TopChatCategoryBots {
- | TopChatCategoryGroups {
- | TopChatCategoryChannels {
- | TopChatCategoryInlineBots {
- | TopChatCategoryCalls {
- | TopChatCategoryForwardChats {
- = TopChatCategoryUsers {
- data TMeUrlType
- = TMeUrlTypeUser { }
- | TMeUrlTypeSupergroup { }
- | TMeUrlTypeChatInvite { }
- | TMeUrlTypeStickerSet { }
- data TMeUrl = TMeUrl {
- url_1 :: T
- type_1 :: TMeUrlType
- data TMeUrls = TMeUrls {}
- data Count = Count {}
- data Text = Text {}
- data Seconds = Seconds {}
- data DeepLinkInfo = DeepLinkInfo {}
- data TextParseMode
- = TextParseModeMarkdown { }
- | TextParseModeHTML {
- data ProxyType
- = ProxyTypeSocks5 {
- username_1 :: T
- password_1 :: T
- | ProxyTypeHttp {
- username_2 :: T
- password_2 :: T
- http_only_2 :: Bool
- | ProxyTypeMtproto { }
- = ProxyTypeSocks5 {
- data Proxy = Proxy {}
- data Proxies = Proxies {}
- data InputSticker
- = InputStickerStatic { }
- | InputStickerAnimated { }
- data DateRange = DateRange {
- start_date_1 :: I32
- end_date_1 :: I32
- data StatisticsValue = StatisticsValue {}
- data StatisticsGraph
- = StatisticsGraphData {
- json_data_1 :: T
- zoom_token_1 :: T
- | StatisticsGraphAsync { }
- | StatisticsGraphError {
- error_message_3 :: T
- = StatisticsGraphData {
- data ChatStatisticsMessageInteractionCounters = ChatStatisticsMessageInteractionCounters {
- message_id_1 :: I53
- view_count_1 :: I32
- forward_count_1 :: I32
- data ChatStatistics = ChatStatistics {
- period_1 :: DateRange
- member_count_1 :: StatisticsValue
- mean_view_count_1 :: StatisticsValue
- mean_share_count_1 :: StatisticsValue
- enabled_notifications_percentage_1 :: Double
- member_count_graph_1 :: StatisticsGraph
- join_graph_1 :: StatisticsGraph
- mute_graph_1 :: StatisticsGraph
- view_count_by_hour_graph_1 :: StatisticsGraph
- view_count_by_source_graph_1 :: StatisticsGraph
- join_by_source_graph_1 :: StatisticsGraph
- language_graph_1 :: StatisticsGraph
- message_interaction_graph_1 :: StatisticsGraph
- instant_view_interaction_graph_1 :: StatisticsGraph
- recent_message_interactions_1 :: [] ChatStatisticsMessageInteractionCounters
- data Update
- = UpdateAuthorizationState { }
- | UpdateNewMessage { }
- | UpdateMessageSendAcknowledged {
- chat_id_3 :: I53
- message_id_3 :: I53
- | UpdateMessageSendSucceeded { }
- | UpdateMessageSendFailed { }
- | UpdateMessageContent { }
- | UpdateMessageEdited { }
- | UpdateMessageViews { }
- | UpdateMessageContentOpened {
- chat_id_9 :: I53
- message_id_9 :: I53
- | UpdateMessageMentionRead { }
- | UpdateMessageLiveLocationViewed {
- chat_id_11 :: I53
- message_id_11 :: I53
- | UpdateNewChat { }
- | UpdateChatChatList { }
- | UpdateChatTitle {
- chat_id_14 :: I53
- title_14 :: T
- | UpdateChatPhoto {
- chat_id_15 :: I53
- photo_15 :: ChatPhoto
- | UpdateChatPermissions { }
- | UpdateChatLastMessage {
- chat_id_17 :: I53
- last_message_17 :: Message
- order_17 :: I64
- | UpdateChatOrder {
- chat_id_18 :: I53
- order_18 :: I64
- | UpdateChatIsPinned {
- chat_id_19 :: I53
- is_pinned_19 :: Bool
- order_19 :: I64
- | UpdateChatIsMarkedAsUnread { }
- | UpdateChatSource {
- chat_id_21 :: I53
- source_21 :: ChatSource
- order_21 :: I64
- | UpdateChatHasScheduledMessages { }
- | UpdateChatDefaultDisableNotification { }
- | UpdateChatReadInbox { }
- | UpdateChatReadOutbox { }
- | UpdateChatUnreadMentionCount { }
- | UpdateChatNotificationSettings { }
- | UpdateScopeNotificationSettings { }
- | UpdateChatActionBar { }
- | UpdateChatPinnedMessage { }
- | UpdateChatReplyMarkup { }
- | UpdateChatDraftMessage { }
- | UpdateChatOnlineMemberCount { }
- | UpdateNotification { }
- | UpdateNotificationGroup { }
- | UpdateActiveNotifications {
- groups_36 :: [] NotificationGroup
- | UpdateHavePendingNotifications { }
- | UpdateDeleteMessages {
- chat_id_38 :: I53
- message_ids_38 :: [] I53
- is_permanent_38 :: Bool
- from_cache_38 :: Bool
- | UpdateUserChatAction {
- chat_id_39 :: I53
- user_id_39 :: I32
- action_39 :: ChatAction
- | UpdateUserStatus {
- user_id_40 :: I32
- status_40 :: UserStatus
- | UpdateUser { }
- | UpdateBasicGroup { }
- | UpdateSupergroup { }
- | UpdateSecretChat { }
- | UpdateUserFullInfo { }
- | UpdateBasicGroupFullInfo { }
- | UpdateSupergroupFullInfo { }
- | UpdateServiceNotification {
- type_48 :: T
- content_48 :: MessageContent
- | UpdateFile { }
- | UpdateFileGenerationStart { }
- | UpdateFileGenerationStop { }
- | UpdateCall { }
- | UpdateUserPrivacySettingRules { }
- | UpdateUnreadMessageCount { }
- | UpdateUnreadChatCount { }
- | UpdateOption {
- name_56 :: T
- value_56 :: OptionValue
- | UpdateStickerSet { }
- | UpdateInstalledStickerSets {
- is_masks_58 :: Bool
- sticker_set_ids_58 :: [] I64
- | UpdateTrendingStickerSets { }
- | UpdateRecentStickers {
- is_attached_60 :: Bool
- sticker_ids_60 :: [] I32
- | UpdateFavoriteStickers {
- sticker_ids_61 :: [] I32
- | UpdateSavedAnimations {
- animation_ids_62 :: [] I32
- | UpdateSelectedBackground { }
- | UpdateLanguagePackStrings { }
- | UpdateConnectionState { }
- | UpdateTermsOfService { }
- | UpdateUsersNearby {
- users_nearby_67 :: [] ChatNearby
- | UpdateDiceEmojis { }
- | UpdateNewInlineQuery {
- id_69 :: I64
- sender_user_id_69 :: I32
- user_location_69 :: Location
- query_69 :: T
- offset_69 :: T
- | UpdateNewChosenInlineResult { }
- | UpdateNewCallbackQuery { }
- | UpdateNewInlineCallbackQuery { }
- | UpdateNewShippingQuery { }
- | UpdateNewPreCheckoutQuery { }
- | UpdateNewCustomEvent { }
- | UpdateNewCustomQuery { }
- | UpdatePoll { }
- | UpdatePollAnswer {
- poll_id_78 :: I64
- user_id_78 :: I32
- option_ids_78 :: [] I32
- data Updates = Updates {}
- data LogStream
- = LogStreamDefault {
- | LogStreamFile {
- path_2 :: T
- max_file_size_2 :: I53
- | LogStreamEmpty {
- = LogStreamDefault {
- data LogVerbosityLevel = LogVerbosityLevel {}
- data LogTags = LogTags {}
- data TestInt = TestInt {}
- data TestString = TestString {}
- data TestBytes = TestBytes {}
- data TestVectorInt = TestVectorInt {}
- data TestVectorIntObject = TestVectorIntObject {}
- data TestVectorString = TestVectorString {}
- data TestVectorStringObject = TestVectorStringObject {
- value_1 :: [] TestString
Documentation
Constructors
| Error | An object of this type can be returned on every function call, in case of an error |
Instances
| Eq Error Source # | |
| Show Error Source # | |
| Generic Error Source # | |
| ToJSON Error Source # | |
Defined in TDLib.Generated.Types | |
| FromJSON Error Source # | |
| type Rep Error Source # | |
Defined in TDLib.Generated.Types type Rep Error = D1 ('MetaData "Error" "TDLib.Generated.Types" "tdlib-types-0.2.0-inplace" 'False) (C1 ('MetaCons "Error" 'PrefixI 'True) (S1 ('MetaSel ('Just "code_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "message_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T))) | |
Constructors
| Ok | An object of this type is returned on a successful function call for certain functions |
data TdlibParameters Source #
Constructors
| TdlibParameters | Contains parameters for TDLib initialization |
Fields
| |
Instances
data AuthenticationCodeType Source #
Provides information about the method by which an authentication code is delivered to the user
Constructors
| AuthenticationCodeTypeTelegramMessage | An authentication code is delivered via a private Telegram message, which can be viewed in another client |
| AuthenticationCodeTypeSms | An authentication code is delivered via an SMS message to the specified phone number |
| AuthenticationCodeTypeCall | An authentication code is delivered via a phone call to the specified phone number |
| AuthenticationCodeTypeFlashCall | An authentication code is delivered by an immediately cancelled call to the specified phone number. The number from which the call was made is the code |
Instances
data AuthenticationCodeInfo Source #
Constructors
| AuthenticationCodeInfo | Information about the authentication code that was sent |
Fields
| |
Instances
data EmailAddressAuthenticationCodeInfo Source #
Constructors
| EmailAddressAuthenticationCodeInfo | Information about the email address authentication code that was sent |
Fields
| |
Instances
data TextEntity Source #
Constructors
| TextEntity | Represents a part of the text that needs to be formatted in some unusual way |
Instances
data TextEntities Source #
Constructors
| TextEntities | Contains a list of text entities |
Fields
| |
Instances
| Eq TextEntities Source # | |
Defined in TDLib.Generated.Types | |
| Show TextEntities Source # | |
Defined in TDLib.Generated.Types Methods showsPrec :: Int -> TextEntities -> ShowS # show :: TextEntities -> String # showList :: [TextEntities] -> ShowS # | |
| Generic TextEntities Source # | |
Defined in TDLib.Generated.Types Associated Types type Rep TextEntities :: Type -> Type # | |
| ToJSON TextEntities Source # | |
Defined in TDLib.Generated.Types Methods toJSON :: TextEntities -> Value # toEncoding :: TextEntities -> Encoding # toJSONList :: [TextEntities] -> Value # toEncodingList :: [TextEntities] -> Encoding # | |
| FromJSON TextEntities Source # | |
Defined in TDLib.Generated.Types | |
| type Rep TextEntities Source # | |
Defined in TDLib.Generated.Types type Rep TextEntities = D1 ('MetaData "TextEntities" "TDLib.Generated.Types" "tdlib-types-0.2.0-inplace" 'False) (C1 ('MetaCons "TextEntities" 'PrefixI 'True) (S1 ('MetaSel ('Just "entities_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [TextEntity]))) | |
data FormattedText Source #
Constructors
| FormattedText | A text with some entities |
Fields
| |
Instances
data TermsOfService Source #
Constructors
| TermsOfService | Contains Telegram terms of service |
Fields
| |
Instances
data AuthorizationState Source #
Represents the current authorization state of the client
Constructors
| AuthorizationStateWaitTdlibParameters | TDLib needs TdlibParameters for initialization |
| AuthorizationStateWaitEncryptionKey | TDLib needs an encryption key to decrypt the local database |
Fields
| |
| AuthorizationStateWaitPhoneNumber | TDLib needs the user's phone number to authorize. Call |
| AuthorizationStateWaitCode | TDLib needs the user's authentication code to authorize |
Fields
| |
| AuthorizationStateWaitOtherDeviceConfirmation | The user needs to confirm authorization on another logged in device by scanning a QR code with the provided link |
| AuthorizationStateWaitRegistration | The user is unregistered and need to accept terms of service and enter their first name and last name to finish registration |
Fields
| |
| AuthorizationStateWaitPassword | The user has been authorized, but needs to enter a password to start using the application |
Fields
| |
| AuthorizationStateReady | The user has been successfully authorized. TDLib is now ready to answer queries |
| AuthorizationStateLoggingOut | The user is currently logging out |
| AuthorizationStateClosing | TDLib is closing, all subsequent queries will be answered with the error 500. Note that closing TDLib can take a while. All resources will be freed only after authorizationStateClosed has been received |
| AuthorizationStateClosed | TDLib client is in its final state. All databases are closed and all resources are released. No other updates will be received after this. All queries will be responded to |
Instances
data PasswordState Source #
Constructors
| PasswordState | Represents the current state of 2-step verification |
Fields
| |
Instances
data RecoveryEmailAddress Source #
Constructors
| RecoveryEmailAddress | Contains information about the current recovery email address |
Fields
| |
Instances
data TemporaryPasswordState Source #
Constructors
| TemporaryPasswordState | Returns information about the availability of a temporary password, which can be used for payments |
Fields
| |
Instances
Constructors
| LocalFile | Represents a local file |
Fields
| |
Instances
data RemoteFile Source #
Constructors
| RemoteFile | Represents a remote file |
Fields
| |
Instances
Constructors
| File | Represents a file |
Fields
| |
Instances
| Eq File Source # | |
| Show File Source # | |
| Generic File Source # | |
| ToJSON File Source # | |
Defined in TDLib.Generated.Types | |
| FromJSON File Source # | |
| type Rep File Source # | |
Defined in TDLib.Generated.Types type Rep File = D1 ('MetaData "File" "TDLib.Generated.Types" "tdlib-types-0.2.0-inplace" 'False) (C1 ('MetaCons "File" 'PrefixI 'True) ((S1 ('MetaSel ('Just "id_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "size_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)) :*: (S1 ('MetaSel ('Just "expected_size_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: (S1 ('MetaSel ('Just "local_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 LocalFile) :*: S1 ('MetaSel ('Just "remote_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RemoteFile))))) | |
Points to a file
Constructors
| InputFileId | A file defined by its unique ID |
| InputFileRemote | A file defined by its remote ID. The remote ID is guaranteed to be usable only if the corresponding file is still accessible to the user and known to TDLib. |
| InputFileLocal | A file defined by a local path |
| InputFileGenerated | A file generated by the client |
Fields
| |
Instances
Constructors
| PhotoSize | Photo description |
Instances
| Eq PhotoSize Source # | |
| Show PhotoSize Source # | |
| Generic PhotoSize Source # | |
| ToJSON PhotoSize Source # | |
Defined in TDLib.Generated.Types | |
| FromJSON PhotoSize Source # | |
| type Rep PhotoSize Source # | |
Defined in TDLib.Generated.Types type Rep PhotoSize = D1 ('MetaData "PhotoSize" "TDLib.Generated.Types" "tdlib-types-0.2.0-inplace" 'False) (C1 ('MetaCons "PhotoSize" 'PrefixI 'True) ((S1 ('MetaSel ('Just "type_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "photo_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 File)) :*: (S1 ('MetaSel ('Just "width_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "height_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)))) | |
data Minithumbnail Source #
Constructors
| Minithumbnail | Thumbnail image of a very poor quality and low resolution |
Instances
Part of the face, relative to which a mask should be placed
Constructors
| MaskPointForehead | A mask should be placed relatively to the forehead |
| MaskPointEyes | A mask should be placed relatively to the eyes |
| MaskPointMouth | A mask should be placed relatively to the mouth |
| MaskPointChin | A mask should be placed relatively to the chin |
Instances
| Eq MaskPoint Source # | |
| Show MaskPoint Source # | |
| Generic MaskPoint Source # | |
| ToJSON MaskPoint Source # | |
Defined in TDLib.Generated.Types | |
| FromJSON MaskPoint Source # | |
| type Rep MaskPoint Source # | |
Defined in TDLib.Generated.Types type Rep MaskPoint = D1 ('MetaData "MaskPoint" "TDLib.Generated.Types" "tdlib-types-0.2.0-inplace" 'False) ((C1 ('MetaCons "MaskPointForehead" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MaskPointEyes" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "MaskPointMouth" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MaskPointChin" 'PrefixI 'False) (U1 :: Type -> Type))) | |
data MaskPosition Source #
Constructors
| MaskPosition | Position on a photo where a mask should be placed |
Fields
| |
Instances
data PollOption Source #
Constructors
| PollOption | Describes one answer option of a poll |
Fields
| |
Instances
Describes the type of a poll
Constructors
| PollTypeRegular | A regular poll |
Fields
| |
| PollTypeQuiz | A poll in quiz mode, which has exactly one correct answer option and can be answered only once |
Fields
| |
Instances
| Eq PollType Source # | |
| Show PollType Source # | |
| Generic PollType Source # | |
| ToJSON PollType Source # | |
Defined in TDLib.Generated.Types | |
| FromJSON PollType Source # | |
| type Rep PollType Source # | |
Defined in TDLib.Generated.Types type Rep PollType = D1 ('MetaData "PollType" "TDLib.Generated.Types" "tdlib-types-0.2.0-inplace" 'False) (C1 ('MetaCons "PollTypeRegular" 'PrefixI 'True) (S1 ('MetaSel ('Just "allow_multiple_answers_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)) :+: C1 ('MetaCons "PollTypeQuiz" 'PrefixI 'True) (S1 ('MetaSel ('Just "correct_option_id_2") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "explanation_2") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FormattedText))) | |
Constructors
| Animation | Describes an animation file. The animation must be encoded in GIF or MPEG4 format |
Fields
| |
Instances
Constructors
| Audio | Describes an audio file. Audio is usually in MP3 or M4A format |
Fields
| |
Instances
Constructors
| Document | Describes a document of any type |
Fields
| |
Instances
| Eq Document Source # | |
| Show Document Source # | |
| Generic Document Source # | |
| ToJSON Document Source # | |
Defined in TDLib.Generated.Types | |
| FromJSON Document Source # | |
| type Rep Document Source # | |
Defined in TDLib.Generated.Types type Rep Document = D1 ('MetaData "Document" "TDLib.Generated.Types" "tdlib-types-0.2.0-inplace" 'False) (C1 ('MetaCons "Document" 'PrefixI 'True) ((S1 ('MetaSel ('Just "file_name_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "mime_type_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)) :*: (S1 ('MetaSel ('Just "minithumbnail_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Minithumbnail) :*: (S1 ('MetaSel ('Just "thumbnail_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PhotoSize) :*: S1 ('MetaSel ('Just "document_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 File))))) | |
Constructors
| Photo | Describes a photo |
Fields
| |
Instances
| Eq Photo Source # | |
| Show Photo Source # | |
| Generic Photo Source # | |
| ToJSON Photo Source # | |
Defined in TDLib.Generated.Types | |
| FromJSON Photo Source # | |
| type Rep Photo Source # | |
Defined in TDLib.Generated.Types type Rep Photo = D1 ('MetaData "Photo" "TDLib.Generated.Types" "tdlib-types-0.2.0-inplace" 'False) (C1 ('MetaCons "Photo" 'PrefixI 'True) (S1 ('MetaSel ('Just "has_stickers_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "minithumbnail_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Minithumbnail) :*: S1 ('MetaSel ('Just "sizes_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [PhotoSize])))) | |
Constructors
| Sticker | Describes a sticker |
Fields
| |
Instances
Constructors
| Video | Describes a video file |
Fields
| |
Instances
Constructors
| VideoNote | Describes a video note. The video must be equal in width and height, cropped to a circle, and stored in MPEG4 format |
Fields
| |
Instances
| Eq VideoNote Source # | |
| Show VideoNote Source # | |
| Generic VideoNote Source # | |
| ToJSON VideoNote Source # | |
Defined in TDLib.Generated.Types | |
| FromJSON VideoNote Source # | |
| type Rep VideoNote Source # | |
Defined in TDLib.Generated.Types type Rep VideoNote = D1 ('MetaData "VideoNote" "TDLib.Generated.Types" "tdlib-types-0.2.0-inplace" 'False) (C1 ('MetaCons "VideoNote" 'PrefixI 'True) ((S1 ('MetaSel ('Just "duration_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "length_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)) :*: (S1 ('MetaSel ('Just "minithumbnail_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Minithumbnail) :*: (S1 ('MetaSel ('Just "thumbnail_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PhotoSize) :*: S1 ('MetaSel ('Just "video_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 File))))) | |
Constructors
| VoiceNote | Describes a voice note. The voice note must be encoded with the Opus codec, and stored inside an OGG container. Voice notes can have only a single audio channel |
Fields
| |
Instances
| Eq VoiceNote Source # | |
| Show VoiceNote Source # | |
| Generic VoiceNote Source # | |
| ToJSON VoiceNote Source # | |
Defined in TDLib.Generated.Types | |
| FromJSON VoiceNote Source # | |
| type Rep VoiceNote Source # | |
Defined in TDLib.Generated.Types type Rep VoiceNote = D1 ('MetaData "VoiceNote" "TDLib.Generated.Types" "tdlib-types-0.2.0-inplace" 'False) (C1 ('MetaCons "VoiceNote" 'PrefixI 'True) ((S1 ('MetaSel ('Just "duration_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "waveform_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString64)) :*: (S1 ('MetaSel ('Just "mime_type_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "voice_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 File)))) | |
Constructors
| Contact | Describes a user contact |
Fields
| |
Instances
| Eq Contact Source # | |
| Show Contact Source # | |
| Generic Contact Source # | |
| ToJSON Contact Source # | |
Defined in TDLib.Generated.Types | |
| FromJSON Contact Source # | |
| type Rep Contact Source # | |
Defined in TDLib.Generated.Types type Rep Contact = D1 ('MetaData "Contact" "TDLib.Generated.Types" "tdlib-types-0.2.0-inplace" 'False) (C1 ('MetaCons "Contact" 'PrefixI 'True) ((S1 ('MetaSel ('Just "phone_number_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "first_name_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)) :*: (S1 ('MetaSel ('Just "last_name_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: (S1 ('MetaSel ('Just "vcard_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "user_id_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32))))) | |
Constructors
| Location | Describes a location on planet Earth |
Fields
| |
Instances
| Eq Location Source # | |
| Show Location Source # | |
| Generic Location Source # | |
| ToJSON Location Source # | |
Defined in TDLib.Generated.Types | |
| FromJSON Location Source # | |
| type Rep Location Source # | |
Defined in TDLib.Generated.Types type Rep Location = D1 ('MetaData "Location" "TDLib.Generated.Types" "tdlib-types-0.2.0-inplace" 'False) (C1 ('MetaCons "Location" 'PrefixI 'True) (S1 ('MetaSel ('Just "latitude_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double) :*: S1 ('MetaSel ('Just "longitude_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double))) | |
Constructors
| Venue | Describes a venue |
Fields
| |
Instances
| Eq Venue Source # | |
| Show Venue Source # | |
| Generic Venue Source # | |
| ToJSON Venue Source # | |
Defined in TDLib.Generated.Types | |
| FromJSON Venue Source # | |
| type Rep Venue Source # | |
Defined in TDLib.Generated.Types type Rep Venue = D1 ('MetaData "Venue" "TDLib.Generated.Types" "tdlib-types-0.2.0-inplace" 'False) (C1 ('MetaCons "Venue" 'PrefixI 'True) ((S1 ('MetaSel ('Just "location_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Location) :*: (S1 ('MetaSel ('Just "title_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "address_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T))) :*: (S1 ('MetaSel ('Just "provider_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: (S1 ('MetaSel ('Just "id_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "type_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T))))) | |
Constructors
| Game | Describes a game |
Fields
| |
Instances
Constructors
| Poll | Describes a poll |
Fields
| |
Instances
data ProfilePhoto Source #
Constructors
| ProfilePhoto | Describes a user profile photo |
Fields
| |
Instances
Constructors
| ChatPhoto | Describes the photo of a chat |
Instances
| Eq ChatPhoto Source # | |
| Show ChatPhoto Source # | |
| Generic ChatPhoto Source # | |
| ToJSON ChatPhoto Source # | |
Defined in TDLib.Generated.Types | |
| FromJSON ChatPhoto Source # | |
| type Rep ChatPhoto Source # | |
Defined in TDLib.Generated.Types type Rep ChatPhoto = D1 ('MetaData "ChatPhoto" "TDLib.Generated.Types" "tdlib-types-0.2.0-inplace" 'False) (C1 ('MetaCons "ChatPhoto" 'PrefixI 'True) (S1 ('MetaSel ('Just "small_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 File) :*: S1 ('MetaSel ('Just "big_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 File))) | |
Represents the type of a user. The following types are possible: regular users, deleted users and bots
Constructors
| UserTypeRegular | A regular user |
| UserTypeDeleted | A deleted user or deleted bot. No information on the user besides the user identifier is available. It is not possible to perform any active actions on this type of user |
| UserTypeBot | A bot (see https://core.telegram.org/bots) |
Fields
| |
| UserTypeUnknown | No information on the user besides the user identifier is available, yet this user has not been deleted. This object is extremely rare and must be handled like a deleted user. It is not possible to perform any actions on users of this type |
Instances
data BotCommand Source #
Constructors
| BotCommand | Represents a command supported by a bot |
Fields
| |
Instances
Constructors
| BotInfo | Provides information about a bot and its supported commands |
Fields
| |
Instances
| Eq BotInfo Source # | |
| Show BotInfo Source # | |
| Generic BotInfo Source # | |
| ToJSON BotInfo Source # | |
Defined in TDLib.Generated.Types | |
| FromJSON BotInfo Source # | |
| type Rep BotInfo Source # | |
Defined in TDLib.Generated.Types type Rep BotInfo = D1 ('MetaData "BotInfo" "TDLib.Generated.Types" "tdlib-types-0.2.0-inplace" 'False) (C1 ('MetaCons "BotInfo" 'PrefixI 'True) (S1 ('MetaSel ('Just "description_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "commands_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [BotCommand]))) | |
data ChatLocation Source #
Constructors
| ChatLocation | Represents a location to which a chat is connected |
Fields
| |
Instances
Constructors
| User | Represents a user |
Fields
| |
Instances
data UserFullInfo Source #
Constructors
| UserFullInfo | Contains full information about a user (except the full list of profile photos) |
Fields
| |
Instances
data UserProfilePhoto Source #
Constructors
| UserProfilePhoto | Contains full information about a user profile photo |
Instances
data UserProfilePhotos Source #
Constructors
| UserProfilePhotos | Contains part of the list of user photos |
Fields
| |
Instances
Constructors
| Users | Represents a list of users |
Fields
| |
Instances
| Eq Users Source # | |
| Show Users Source # | |
| Generic Users Source # | |
| ToJSON Users Source # | |
Defined in TDLib.Generated.Types | |
| FromJSON Users Source # | |
| type Rep Users Source # | |
Defined in TDLib.Generated.Types type Rep Users = D1 ('MetaData "Users" "TDLib.Generated.Types" "tdlib-types-0.2.0-inplace" 'False) (C1 ('MetaCons "Users" 'PrefixI 'True) (S1 ('MetaSel ('Just "total_count_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "user_ids_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [I32]))) | |
data ChatAdministrator Source #
Constructors
| ChatAdministrator | Contains information about a chat administrator |
Fields
| |
Instances
data ChatAdministrators Source #
Constructors
| ChatAdministrators | Represents a list of chat administrators |
Fields
| |
Instances
data ChatPermissions Source #
Constructors
| ChatPermissions | Describes actions that a user is allowed to take in a chat |
Fields
| |
Instances
data ChatMemberStatus Source #
Provides information about the status of a member in a chat
Constructors
| ChatMemberStatusCreator | The user is the owner of a chat and has all the administrator privileges |
Fields
| |
| ChatMemberStatusAdministrator | The user is a member of a chat and has some additional privileges. In basic groups, administrators can edit and delete messages sent by others, add new members, and ban unprivileged members. In supergroups and channels, there are more detailed options for administrator privileges |
Fields
| |
| ChatMemberStatusMember | The user is a member of a chat, without any additional privileges or restrictions |
| ChatMemberStatusRestricted | The user is under certain restrictions in the chat. Not supported in basic groups and channels |
Fields
| |
| ChatMemberStatusLeft | The user is not a chat member |
| ChatMemberStatusBanned | The user was banned (and hence is not a member of the chat). Implies the user can't return to the chat or view messages |
Fields
| |
Instances
data ChatMember Source #
Constructors
| ChatMember | A user with information about joining/leaving a chat |
Fields
| |
Instances
data ChatMembers Source #
Constructors
| ChatMembers | Contains a list of chat members |
Fields
| |
Instances
data ChatMembersFilter Source #
Specifies the kind of chat members to return in searchChatMembers
Constructors
| ChatMembersFilterContacts | Returns contacts of the user |
| ChatMembersFilterAdministrators | Returns the owner and administrators |
| ChatMembersFilterMembers | Returns all chat members, including restricted chat members |
| ChatMembersFilterRestricted | Returns users under certain restrictions in the chat; can be used only by administrators in a supergroup |
| ChatMembersFilterBanned | Returns users banned from the chat; can be used only by administrators in a supergroup or in a channel |
| ChatMembersFilterBots | Returns bot members of the chat |
Instances
data SupergroupMembersFilter Source #
Specifies the kind of chat members to return in getSupergroupMembers
Constructors
| SupergroupMembersFilterRecent | Returns recently active users in reverse chronological order |
| SupergroupMembersFilterContacts | Returns contacts of the user, which are members of the supergroup or channel |
| SupergroupMembersFilterAdministrators | Returns the owner and administrators |
| SupergroupMembersFilterSearch | Used to search for supergroup or channel members via a (string) query |
| SupergroupMembersFilterRestricted | Returns restricted supergroup members; can be used only by administrators |
| SupergroupMembersFilterBanned | Returns users banned from the supergroup or channel; can be used only by administrators |
| SupergroupMembersFilterBots | Returns bot members of the supergroup or channel |
Instances
data BasicGroup Source #
Constructors
| BasicGroup | Represents a basic group of 0-200 users (must be upgraded to a supergroup to accommodate more than 200 users) |
Fields
| |
Instances
data BasicGroupFullInfo Source #
Constructors
| BasicGroupFullInfo | Contains full information about a basic group |
Fields
| |
Instances
data Supergroup Source #
Constructors
| Supergroup | Represents a supergroup or channel with zero or more members (subscribers in the case of channels). From the point of view of the system, a channel is a special kind of a supergroup: only administrators can post and see the list of members, and posts from all administrators use the name and photo of the channel instead of individual names and profile photos. Unlike supergroups, channels can have an unlimited number of subscribers |
Fields
| |
Instances
data SupergroupFullInfo Source #
Constructors
| SupergroupFullInfo | Contains full information about a supergroup or channel |
Fields
| |
Instances
data SecretChatState Source #
Describes the current secret chat state
Constructors
| SecretChatStatePending | The secret chat is not yet created; waiting for the other user to get online |
| SecretChatStateReady | The secret chat is ready to use |
| SecretChatStateClosed | The secret chat is closed |
Instances
data SecretChat Source #
Constructors
| SecretChat | Represents a secret chat |
Fields
| |
Instances
data MessageForwardOrigin Source #
Contains information about the origin of a forwarded message
Constructors
| MessageForwardOriginUser | The message was originally written by a known user |
Fields
| |
| MessageForwardOriginHiddenUser | The message was originally written by a user, which is hidden by their privacy settings |
Fields
| |
| MessageForwardOriginChannel | The message was originally a post in a channel |
Fields
| |
Instances
data MessageForwardInfo Source #
Constructors
| MessageForwardInfo | Contains information about a forwarded message |
Fields
| |
Instances
data MessageSendingState Source #
Contains information about the sending state of the message
Constructors
| MessageSendingStatePending | The message is being sent now, but has not yet been delivered to the server |
| MessageSendingStateFailed | The message failed to be sent |
Fields
| |
Instances
Constructors
| Message | Describes a message |
Fields
| |
Instances
Constructors
| Messages | Contains a list of messages |
Fields
| |
Instances
| Eq Messages Source # | |
| Show Messages Source # | |
| Generic Messages Source # | |
| ToJSON Messages Source # | |
Defined in TDLib.Generated.Types | |
| FromJSON Messages Source # | |
| type Rep Messages Source # | |
Defined in TDLib.Generated.Types type Rep Messages = D1 ('MetaData "Messages" "TDLib.Generated.Types" "tdlib-types-0.2.0-inplace" 'False) (C1 ('MetaCons "Messages" 'PrefixI 'True) (S1 ('MetaSel ('Just "total_count_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "messages_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Message]))) | |
data FoundMessages Source #
Constructors
| FoundMessages | Contains a list of messages found by a search |
Fields
| |
Instances
data NotificationSettingsScope Source #
Describes the types of chats to which notification settings are applied
Constructors
| NotificationSettingsScopePrivateChats | Notification settings applied to all private and secret chats when the corresponding chat setting has a default value |
| NotificationSettingsScopeGroupChats | Notification settings applied to all basic groups and supergroups when the corresponding chat setting has a default value |
| NotificationSettingsScopeChannelChats | Notification settings applied to all channels when the corresponding chat setting has a default value |
Instances
data ChatNotificationSettings Source #
Constructors
| ChatNotificationSettings | Contains information about notification settings for a chat |
Fields
| |
Instances
data ScopeNotificationSettings Source #
Constructors
| ScopeNotificationSettings | Contains information about notification settings for several chats |
Fields
| |
Instances
data DraftMessage Source #
Constructors
| DraftMessage | Contains information about a message draft |
Fields
| |
Instances
Describes the type of a chat
Constructors
| ChatTypePrivate | An ordinary chat with a user |
| ChatTypeBasicGroup | A basic group (i.e., a chat with 0-200 other users) |
Fields
| |
| ChatTypeSupergroup | A supergroup (i.e. a chat with up to GetOption("supergroup_max_size") other users), or channel (with unlimited members) |
Fields
| |
| ChatTypeSecret | A secret chat with a user |
Fields
| |
Instances
Describes a list of chats
Constructors
| ChatListMain | A main list of chats |
| ChatListArchive | A list of chats usually located at the top of the main chat list. Unmuted chats are automatically moved from the Archive to the Main chat list when a new message arrives |
data ChatSource Source #
Describes a reason why the chat is shown in a chat list
Constructors
| ChatSourceMtprotoProxy | The chat is sponsored by the user's MTProxy server |
| ChatSourcePublicServiceAnnouncement | The chat contains a public service announcement |
Instances
Constructors
| Chat | A chat. (Can be a private chat, basic group, supergroup, or secret chat) |
Fields
| |
Instances
Constructors
| Chats | Represents a list of chats |
Fields
| |
data ChatNearby Source #
Constructors
| ChatNearby | Describes a chat located nearby |
Fields
| |
Instances
data ChatsNearby Source #
Constructors
| ChatsNearby | Represents a list of chats located nearby |
Fields
| |
Instances
data ChatInviteLink Source #
Constructors
| ChatInviteLink | Contains a chat invite link |
Fields
| |
Instances
data ChatInviteLinkInfo Source #
Constructors
| ChatInviteLinkInfo | Contains information about a chat invite link |
Fields
| |
Instances
data PublicChatType Source #
Describes a type of public chats
Constructors
| PublicChatTypeHasUsername | The chat is public, because it has username |
| PublicChatTypeIsLocationBased | The chat is public, because it is a location-based supergroup |
Instances
data ChatActionBar Source #
Describes actions which should be possible to do through a chat action bar
Constructors
| ChatActionBarReportSpam | The chat can be reported as spam using the method reportChat with the reason chatReportReasonSpam |
| ChatActionBarReportUnrelatedLocation | The chat is a location-based supergroup, which can be reported as having unrelated location using the method reportChat with the reason chatReportReasonUnrelatedLocation |
| ChatActionBarReportAddBlock | The chat is a private or secret chat, which can be reported using the method reportChat, or the other user can be added to the contact list using the method addContact, or the other user can be blocked using the method blockUser |
| ChatActionBarAddContact | The chat is a private or secret chat and the other user can be added to the contact list using the method addContact |
| ChatActionBarSharePhoneNumber | The chat is a private or secret chat with a mutual contact and the user's phone number can be shared with the other user using the method sharePhoneNumber |
Instances
data KeyboardButtonType Source #
Describes a keyboard button type
Constructors
| KeyboardButtonTypeText | A simple button, with text that should be sent when the button is pressed |
| KeyboardButtonTypeRequestPhoneNumber | A button that sends the user's phone number when pressed; available only in private chats |
| KeyboardButtonTypeRequestLocation | A button that sends the user's location when pressed; available only in private chats |
| KeyboardButtonTypeRequestPoll | A button that allows the user to create and send a poll when pressed; available only in private chats |
Fields
| |
Instances
data KeyboardButton Source #
Constructors
| KeyboardButton | Represents a single button in a bot keyboard |
Fields
| |
Instances
data InlineKeyboardButtonType Source #
Describes the type of an inline keyboard button
Constructors
| InlineKeyboardButtonTypeUrl | A button that opens a specified URL |
| InlineKeyboardButtonTypeLoginUrl | A button that opens a specified URL and automatically logs in in current user if they allowed to do that |
| InlineKeyboardButtonTypeCallback | A button that sends a special callback query to a bot |
Fields
| |
| InlineKeyboardButtonTypeCallbackGame | A button with a game that sends a special callback query to a bot. This button must be in the first column and row of the keyboard and can be attached only to a message with content of the type messageGame |
| InlineKeyboardButtonTypeSwitchInline | A button that forces an inline query to the bot to be inserted in the input field |
Fields
| |
| InlineKeyboardButtonTypeBuy | A button to buy something. This button must be in the first column and row of the keyboard and can be attached only to a message with content of the type messageInvoice |
Instances
data InlineKeyboardButton Source #
Constructors
| InlineKeyboardButton | Represents a single button in an inline keyboard |
Fields
| |
Instances
data ReplyMarkup Source #
Contains a description of a custom keyboard and actions that can be done with it to quickly reply to bots
Constructors
| ReplyMarkupRemoveKeyboard | Instructs clients to remove the keyboard once this message has been received. This kind of keyboard can't be received in an incoming message; instead, UpdateChatReplyMarkup with message_id == 0 will be sent |
Fields
| |
| ReplyMarkupForceReply | Instructs clients to force a reply to this message |
Fields
| |
| ReplyMarkupShowKeyboard | Contains a custom keyboard layout to quickly reply to bots |
Fields
| |
| ReplyMarkupInlineKeyboard | Contains an inline keyboard layout |
Fields
| |
Instances
data LoginUrlInfo Source #
Contains information about an inline button of type inlineKeyboardButtonTypeLoginUrl
Constructors
| LoginUrlInfoOpen | An HTTP url needs to be open |
Fields
| |
| LoginUrlInfoRequestConfirmation | An authorization confirmation dialog needs to be shown to the user |
Fields
| |
Instances
Describes a text object inside an instant-view web page
Constructors
| RichTextPlain | A plain text |
| RichTextBold | A bold rich text |
| RichTextItalic | An italicized rich text |
| RichTextUnderline | An underlined rich text |
| RichTextStrikethrough | A strikethrough rich text |
| RichTextFixed | A fixed-width rich text |
| RichTextUrl | A rich text URL link |
| RichTextEmailAddress | A rich text email link |
Fields
| |
| RichTextSubscript | A subscript rich text |
| RichTextSuperscript | A superscript rich text |
| RichTextMarked | A marked rich text |
| RichTextPhoneNumber | A rich text phone number |
Fields
| |
| RichTextIcon | A small image inside the text |
| RichTextReference | A rich text reference of a text on the same web page |
| RichTextAnchor | An anchor |
| RichTextAnchorLink | A link to an anchor on the same web page |
| RichTexts | A concatenation of rich texts |
Instances
data PageBlockCaption Source #
Constructors
| PageBlockCaption | Contains a caption of an instant view web page block, consisting of a text and a trailing credit |
Instances
data PageBlockListItem Source #
Constructors
| PageBlockListItem | Describes an item of a list page block |
Fields
| |
Instances
data PageBlockHorizontalAlignment Source #
Describes a horizontal alignment of a table cell content
Constructors
| PageBlockHorizontalAlignmentLeft | The content should be left-aligned |
| PageBlockHorizontalAlignmentCenter | The content should be center-aligned |
| PageBlockHorizontalAlignmentRight | The content should be right-aligned |
Instances
data PageBlockVerticalAlignment Source #
Describes a Vertical alignment of a table cell content
Constructors
| PageBlockVerticalAlignmentTop | The content should be top-aligned |
| PageBlockVerticalAlignmentMiddle | The content should be middle-aligned |
| PageBlockVerticalAlignmentBottom | The content should be bottom-aligned |
Instances
data PageBlockTableCell Source #
Constructors
| PageBlockTableCell | Represents a cell of a table |
Fields
| |
Instances
data PageBlockRelatedArticle Source #
Constructors
| PageBlockRelatedArticle | Contains information about a related article |
Fields
| |
Instances
Describes a block of an instant view web page
Constructors
| PageBlockTitle | The title of a page |
| PageBlockSubtitle | The subtitle of a page |
Fields
| |
| PageBlockAuthorDate | The author and publishing date of a page |
Fields
| |
| PageBlockHeader | A header |
| PageBlockSubheader | A subheader |
Fields
| |
| PageBlockKicker | A kicker |
| PageBlockParagraph | A text paragraph |
| PageBlockPreformatted | A preformatted text paragraph |
Fields
| |
| PageBlockFooter | The footer of a page |
| PageBlockDivider | An empty block separating a page |
| PageBlockAnchor | An invisible anchor on a page, which can be used in a URL to open the page from the specified anchor |
| PageBlockList | A list of data blocks |
Fields
| |
| PageBlockBlockQuote | A block quote |
| PageBlockPullQuote | A pull quote |
| PageBlockAnimation | An animation |
Fields
| |
| PageBlockAudio | An audio file |
Fields
| |
| PageBlockPhoto | A photo |
Fields
| |
| PageBlockVideo | A video |
Fields
| |
| PageBlockVoiceNote | A voice note |
Fields
| |
| PageBlockCover | A page cover |
| PageBlockEmbedded | An embedded web page |
Fields
| |
| PageBlockEmbeddedPost | An embedded post |
Fields
| |
| PageBlockCollage | A collage |
Fields
| |
| PageBlockSlideshow | A slideshow |
Fields
| |
| PageBlockChatLink | A link to a chat |
| PageBlockTable | A table |
Fields
| |
| PageBlockDetails | A collapsible block |
Fields
| |
| PageBlockRelatedArticles | Related articles |
Fields
| |
| PageBlockMap | A map |
Fields
| |
Instances
data WebPageInstantView Source #
Constructors
| WebPageInstantView | Describes an instant view page for a web page |
Fields
| |
Instances
Constructors
| WebPage | Describes a web page preview |
Fields
| |
Instances
data BankCardActionOpenUrl Source #
Constructors
| BankCardActionOpenUrl | Describes an action associated with a bank card number |
Instances
data BankCardInfo Source #
Constructors
| BankCardInfo | Information about a bank card |
Fields
| |
Instances
Constructors
| Address | Describes an address |
Fields
| |
Instances
| Eq Address Source # | |
| Show Address Source # | |
| Generic Address Source # | |
| ToJSON Address Source # | |
Defined in TDLib.Generated.Types | |
| FromJSON Address Source # | |
| type Rep Address Source # | |
Defined in TDLib.Generated.Types type Rep Address = D1 ('MetaData "Address" "TDLib.Generated.Types" "tdlib-types-0.2.0-inplace" 'False) (C1 ('MetaCons "Address" 'PrefixI 'True) ((S1 ('MetaSel ('Just "country_code_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: (S1 ('MetaSel ('Just "state_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "city_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T))) :*: (S1 ('MetaSel ('Just "street_line1_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: (S1 ('MetaSel ('Just "street_line2_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "postal_code_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T))))) | |
data LabeledPricePart Source #
Constructors
| LabeledPricePart | Portion of the price of a product (e.g., "delivery cost", "tax amount") |
Instances
Constructors
| Invoice | Product invoice |
Fields
| |
Instances
Constructors
| OrderInfo | Order information |
Fields
| |
Instances
| Eq OrderInfo Source # | |
| Show OrderInfo Source # | |
| Generic OrderInfo Source # | |
| ToJSON OrderInfo Source # | |
Defined in TDLib.Generated.Types | |
| FromJSON OrderInfo Source # | |
| type Rep OrderInfo Source # | |
Defined in TDLib.Generated.Types type Rep OrderInfo = D1 ('MetaData "OrderInfo" "TDLib.Generated.Types" "tdlib-types-0.2.0-inplace" 'False) (C1 ('MetaCons "OrderInfo" 'PrefixI 'True) ((S1 ('MetaSel ('Just "name_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "phone_number_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T)) :*: (S1 ('MetaSel ('Just "email_address_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "shipping_address_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Address)))) | |
data ShippingOption Source #
Constructors
| ShippingOption | One shipping option |
Fields
| |
Instances
data SavedCredentials Source #
Constructors
| SavedCredentials | Contains information about saved card credentials |
Instances
data InputCredentials Source #
Contains information about the payment method chosen by the user
Constructors
| InputCredentialsSaved | Applies if a user chooses some previously saved payment credentials. To use their previously saved credentials, the user must have a valid temporary password |
Fields
| |
| InputCredentialsNew | Applies if a user enters new credentials on a payment provider website |
Fields
| |
| InputCredentialsAndroidPay | Applies if a user enters new credentials using Android Pay |
| InputCredentialsApplePay | Applies if a user enters new credentials using Apple Pay |
Instances
data PaymentsProviderStripe Source #
Constructors
| PaymentsProviderStripe | Stripe payment provider |
Fields
| |
Instances
data PaymentForm Source #
Constructors
| PaymentForm | Contains information about an invoice payment form |
Fields
| |
Instances
data ValidatedOrderInfo Source #
Constructors
| ValidatedOrderInfo | Contains a temporary identifier of validated order information, which is stored for one hour. Also contains the available shipping options |
Fields
| |
Instances
data PaymentResult Source #
Constructors
| PaymentResult | Contains the result of a payment request |
Fields
| |
Instances
data PaymentReceipt Source #
Constructors
| PaymentReceipt | Contains information about a successful payment |
Fields
| |
Instances
Constructors
| DatedFile | File with the date it was uploaded |
Instances
| Eq DatedFile Source # | |
| Show DatedFile Source # | |
| Generic DatedFile Source # | |
| ToJSON DatedFile Source # | |
Defined in TDLib.Generated.Types | |
| FromJSON DatedFile Source # | |
| type Rep DatedFile Source # | |
Defined in TDLib.Generated.Types type Rep DatedFile = D1 ('MetaData "DatedFile" "TDLib.Generated.Types" "tdlib-types-0.2.0-inplace" 'False) (C1 ('MetaCons "DatedFile" 'PrefixI 'True) (S1 ('MetaSel ('Just "file_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 File) :*: S1 ('MetaSel ('Just "date_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32))) | |
data PassportElementType Source #
Contains the type of a Telegram Passport element
Constructors
| PassportElementTypePersonalDetails | A Telegram Passport element containing the user's personal details |
| PassportElementTypePassport | A Telegram Passport element containing the user's passport |
| PassportElementTypeDriverLicense | A Telegram Passport element containing the user's driver license |
| PassportElementTypeIdentityCard | A Telegram Passport element containing the user's identity card |
| PassportElementTypeInternalPassport | A Telegram Passport element containing the user's internal passport |
| PassportElementTypeAddress | A Telegram Passport element containing the user's address |
| PassportElementTypeUtilityBill | A Telegram Passport element containing the user's utility bill |
| PassportElementTypeBankStatement | A Telegram Passport element containing the user's bank statement |
| PassportElementTypeRentalAgreement | A Telegram Passport element containing the user's rental agreement |
| PassportElementTypePassportRegistration | A Telegram Passport element containing the registration page of the user's passport |
| PassportElementTypeTemporaryRegistration | A Telegram Passport element containing the user's temporary registration |
| PassportElementTypePhoneNumber | A Telegram Passport element containing the user's phone number |
| PassportElementTypeEmailAddress | A Telegram Passport element containing the user's email address |
Instances
Constructors
| Date | Represents a date according to the Gregorian calendar |
Instances
| Eq Date Source # | |
| Show Date Source # | |
| Generic Date Source # | |
| ToJSON Date Source # | |
Defined in TDLib.Generated.Types | |
| FromJSON Date Source # | |
| type Rep Date Source # | |
Defined in TDLib.Generated.Types type Rep Date = D1 ('MetaData "Date" "TDLib.Generated.Types" "tdlib-types-0.2.0-inplace" 'False) (C1 ('MetaCons "Date" 'PrefixI 'True) (S1 ('MetaSel ('Just "day_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: (S1 ('MetaSel ('Just "month_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "year_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)))) | |
data PersonalDetails Source #
Constructors
| PersonalDetails | Contains the user's personal details |
Fields
| |
Instances
data IdentityDocument Source #
Constructors
| IdentityDocument | An identity document |
Fields
| |
Instances
data InputIdentityDocument Source #
Constructors
| InputIdentityDocument | An identity document to be saved to Telegram Passport |
Fields
| |
Instances
data PersonalDocument Source #
Constructors
| PersonalDocument | A personal document, containing some information about a user |
Fields
| |
Instances
data InputPersonalDocument Source #
Constructors
| InputPersonalDocument | A personal document to be saved to Telegram Passport |
Fields
| |
Instances
data PassportElement Source #
Contains information about a Telegram Passport element
Constructors
| PassportElementPersonalDetails | A Telegram Passport element containing the user's personal details |
Fields
| |
| PassportElementPassport | A Telegram Passport element containing the user's passport |
Fields
| |
| PassportElementDriverLicense | A Telegram Passport element containing the user's driver license |
Fields
| |
| PassportElementIdentityCard | A Telegram Passport element containing the user's identity card |
Fields
| |
| PassportElementInternalPassport | A Telegram Passport element containing the user's internal passport |
Fields
| |
| PassportElementAddress | A Telegram Passport element containing the user's address |
| PassportElementUtilityBill | A Telegram Passport element containing the user's utility bill |
Fields
| |
| PassportElementBankStatement | A Telegram Passport element containing the user's bank statement |
Fields
| |
| PassportElementRentalAgreement | A Telegram Passport element containing the user's rental agreement |
Fields
| |
| PassportElementPassportRegistration | A Telegram Passport element containing the user's passport registration pages |
Fields
| |
| PassportElementTemporaryRegistration | A Telegram Passport element containing the user's temporary registration |
Fields
| |
| PassportElementPhoneNumber | A Telegram Passport element containing the user's phone number |
Fields
| |
| PassportElementEmailAddress | A Telegram Passport element containing the user's email address |
Fields
| |
Instances
data InputPassportElement Source #
Contains information about a Telegram Passport element to be saved
Constructors
| InputPassportElementPersonalDetails | A Telegram Passport element to be saved containing the user's personal details |
Fields
| |
| InputPassportElementPassport | A Telegram Passport element to be saved containing the user's passport |
Fields
| |
| InputPassportElementDriverLicense | A Telegram Passport element to be saved containing the user's driver license |
Fields
| |
| InputPassportElementIdentityCard | A Telegram Passport element to be saved containing the user's identity card |
Fields
| |
| InputPassportElementInternalPassport | A Telegram Passport element to be saved containing the user's internal passport |
Fields
| |
| InputPassportElementAddress | A Telegram Passport element to be saved containing the user's address |
| InputPassportElementUtilityBill | A Telegram Passport element to be saved containing the user's utility bill |
Fields
| |
| InputPassportElementBankStatement | A Telegram Passport element to be saved containing the user's bank statement |
Fields
| |
| InputPassportElementRentalAgreement | A Telegram Passport element to be saved containing the user's rental agreement |
Fields
| |
| InputPassportElementPassportRegistration | A Telegram Passport element to be saved containing the user's passport registration |
Fields
| |
| InputPassportElementTemporaryRegistration | A Telegram Passport element to be saved containing the user's temporary registration |
Fields
| |
| InputPassportElementPhoneNumber | A Telegram Passport element to be saved containing the user's phone number |
Fields
| |
| InputPassportElementEmailAddress | A Telegram Passport element to be saved containing the user's email address |
Fields
| |
Instances
data PassportElements Source #
Constructors
| PassportElements | Contains information about saved Telegram Passport elements |
Fields
| |
Instances
data PassportElementErrorSource Source #
Contains the description of an error in a Telegram Passport element
Constructors
| PassportElementErrorSourceUnspecified | The element contains an error in an unspecified place. The error will be considered resolved when new data is added |
| PassportElementErrorSourceDataField | One of the data fields contains an error. The error will be considered resolved when the value of the field changes |
Fields
| |
| PassportElementErrorSourceFrontSide | The front side of the document contains an error. The error will be considered resolved when the file with the front side changes |
| PassportElementErrorSourceReverseSide | The reverse side of the document contains an error. The error will be considered resolved when the file with the reverse side changes |
| PassportElementErrorSourceSelfie | The selfie with the document contains an error. The error will be considered resolved when the file with the selfie changes |
| PassportElementErrorSourceTranslationFile | One of files with the translation of the document contains an error. The error will be considered resolved when the file changes |
Fields
| |
| PassportElementErrorSourceTranslationFiles | The translation of the document contains an error. The error will be considered resolved when the list of translation files changes |
| PassportElementErrorSourceFile | The file contains an error. The error will be considered resolved when the file changes |
Fields
| |
| PassportElementErrorSourceFiles | The list of attached files contains an error. The error will be considered resolved when the list of files changes |
Instances
data PassportElementError Source #
Constructors
| PassportElementError | Contains the description of an error in a Telegram Passport element |
Fields
| |
Instances
data PassportSuitableElement Source #
Constructors
| PassportSuitableElement | Contains information about a Telegram Passport element that was requested by a service |
Fields
| |
Instances
data PassportRequiredElement Source #
Constructors
| PassportRequiredElement | Contains a description of the required Telegram Passport element that was requested by a service |
Fields
| |
Instances
data PassportAuthorizationForm Source #
Constructors
| PassportAuthorizationForm | Contains information about a Telegram Passport authorization form that was requested |
Fields
| |
Instances
data PassportElementsWithErrors Source #
Constructors
| PassportElementsWithErrors | Contains information about a Telegram Passport elements and corresponding errors |
Fields
| |
Instances
data EncryptedCredentials Source #
Constructors
| EncryptedCredentials | Contains encrypted Telegram Passport data credentials |
Fields
| |
Instances
data EncryptedPassportElement Source #
Constructors
| EncryptedPassportElement | Contains information about an encrypted Telegram Passport element; for bots only |
Fields
| |
Instances
data InputPassportElementErrorSource Source #
Contains the description of an error in a Telegram Passport element; for bots only
Constructors
| InputPassportElementErrorSourceUnspecified | The element contains an error in an unspecified place. The error will be considered resolved when new data is added |
Fields
| |
| InputPassportElementErrorSourceDataField | A data field contains an error. The error is considered resolved when the field's value changes |
Fields
| |
| InputPassportElementErrorSourceFrontSide | The front side of the document contains an error. The error is considered resolved when the file with the front side of the document changes |
Fields
| |
| InputPassportElementErrorSourceReverseSide | The reverse side of the document contains an error. The error is considered resolved when the file with the reverse side of the document changes |
Fields
| |
| InputPassportElementErrorSourceSelfie | The selfie contains an error. The error is considered resolved when the file with the selfie changes |
Fields
| |
| InputPassportElementErrorSourceTranslationFile | One of the files containing the translation of the document contains an error. The error is considered resolved when the file with the translation changes |
Fields
| |
| InputPassportElementErrorSourceTranslationFiles | The translation of the document contains an error. The error is considered resolved when the list of files changes |
Fields
| |
| InputPassportElementErrorSourceFile | The file contains an error. The error is considered resolved when the file changes |
Fields
| |
| InputPassportElementErrorSourceFiles | The list of attached files contains an error. The error is considered resolved when the file list changes |
Fields
| |
Instances
data InputPassportElementError Source #
Constructors
| InputPassportElementError | Contains the description of an error in a Telegram Passport element; for bots only |
Fields
| |
Instances
data MessageContent Source #
Contains the content of a message
Constructors
| MessageText | A text message |
Fields
| |
| MessageAnimation | An animation message (GIF-style). |
Fields
| |
| MessageAudio | An audio message |
Fields
| |
| MessageDocument | A document message (general file) |
Fields
| |
| MessagePhoto | A photo message |
Fields
| |
| MessageExpiredPhoto | An expired photo message (self-destructed after TTL has elapsed) |
| MessageSticker | A sticker message |
| MessageVideo | A video message |
Fields
| |
| MessageExpiredVideo | An expired video message (self-destructed after TTL has elapsed) |
| MessageVideoNote | A video note message |
Fields
| |
| MessageVoiceNote | A voice note message |
Fields
| |
| MessageLocation | A message with a location |
Fields
| |
| MessageVenue | A message with information about a venue |
| MessageContact | A message with a user contact |
Fields
| |
| MessageDice | A dice message. The dice value is randomly generated by the server |
Fields
| |
| MessageGame | A message with a game |
| MessagePoll | A message with a poll |
| MessageInvoice | A message with an invoice from a bot |
Fields
| |
| MessageCall | A message with information about an ended call |
Fields
| |
| MessageBasicGroupChatCreate | A newly created basic group |
Fields
| |
| MessageSupergroupChatCreate | A newly created supergroup or channel |
| MessageChatChangeTitle | An updated chat title |
| MessageChatChangePhoto | An updated chat photo |
| MessageChatDeletePhoto | A deleted chat photo |
| MessageChatAddMembers | New chat members were added |
Fields
| |
| MessageChatJoinByLink | A new member joined the chat by invite link |
| MessageChatDeleteMember | A chat member was deleted |
Fields
| |
| MessageChatUpgradeTo | A basic group was upgraded to a supergroup and was deactivated as the result |
Fields
| |
| MessageChatUpgradeFrom | A supergroup has been created from a basic group |
Fields
| |
| MessagePinMessage | A message has been pinned |
Fields
| |
| MessageScreenshotTaken | A screenshot of a message in the chat has been taken |
| MessageChatSetTtl | The TTL (Time To Live) setting messages in a secret chat has been changed |
| MessageCustomServiceAction | A non-standard action has happened in the chat |
| MessageGameScore | A new high score was achieved in a game |
Fields
| |
| MessagePaymentSuccessful | A payment has been completed |
Fields
| |
| MessagePaymentSuccessfulBot | A payment has been completed; for bots only |
Fields
| |
| MessageContactRegistered | A contact has registered with Telegram |
| MessageWebsiteConnected | The current user has connected a website by logging in using Telegram Login Widget on it |
Fields
| |
| MessagePassportDataSent | Telegram Passport data has been sent |
Fields
| |
| MessagePassportDataReceived | Telegram Passport data has been received; for bots only |
Fields
| |
| MessageUnsupported | Message content that is not supported by the client |
Instances
data TextEntityType Source #
Represents a part of the text which must be formatted differently
Constructors
| TextEntityTypeMention | A mention of a user by their username |
| TextEntityTypeHashtag | A hashtag text, beginning with "#" |
| TextEntityTypeCashtag | A cashtag text, beginning with "$" and consisting of capital english letters (i.e. "$USD") |
| TextEntityTypeBotCommand | A bot command, beginning with "/". This shouldn't be highlighted if there are no bots in the chat |
| TextEntityTypeUrl | An HTTP URL |
| TextEntityTypeEmailAddress | An email address |
| TextEntityTypePhoneNumber | A phone number |
| TextEntityTypeBankCardNumber | A bank card number. The getBankCardInfo method can be used to get information about the bank card |
| TextEntityTypeBold | A bold text |
| TextEntityTypeItalic | An italic text |
| TextEntityTypeUnderline | An underlined text |
| TextEntityTypeStrikethrough | A strikethrough text |
| TextEntityTypeCode | Text that must be formatted as if inside a code HTML tag |
| TextEntityTypePre | Text that must be formatted as if inside a pre HTML tag |
| TextEntityTypePreCode | Text that must be formatted as if inside pre, and code HTML tags |
Fields
| |
| TextEntityTypeTextUrl | A text description shown instead of a raw URL |
| TextEntityTypeMentionName | A text shows instead of a raw mention of the user (e.g., when the user has no username) |
Fields
| |
Instances
data InputThumbnail Source #
Constructors
| InputThumbnail | A thumbnail to be sent along with a file; should be in JPEG or WEBP format for stickers, and less than 200 KB in size |
Instances
data MessageSchedulingState Source #
Contains information about the time when a scheduled message will be sent
Constructors
| MessageSchedulingStateSendAtDate | The message will be sent at the specified date |
Fields
| |
| MessageSchedulingStateSendWhenOnline | The message will be sent when the peer will be online. Applicable to private chats only and when the exact online status of the peer is known |
Instances
data SendMessageOptions Source #
Constructors
| SendMessageOptions | Options to be used when a message is send |
Fields
| |
Instances
data InputMessageContent Source #
The content of a message to send
Constructors
| InputMessageText | A text message |
Fields
| |
| InputMessageAnimation | An animation message (GIF-style). |
Fields
| |
| InputMessageAudio | An audio message |
Fields
| |
| InputMessageDocument | A document message (general file) |
Fields
| |
| InputMessagePhoto | A photo message |
Fields
| |
| InputMessageSticker | A sticker message |
Fields
| |
| InputMessageVideo | A video message |
Fields
| |
| InputMessageVideoNote | A video note message |
Fields
| |
| InputMessageVoiceNote | A voice note message |
Fields
| |
| InputMessageLocation | A message with a location |
Fields
| |
| InputMessageVenue | A message with information about a venue |
| InputMessageContact | A message containing a user contact |
Fields
| |
| InputMessageDice | A dice message |
Fields
| |
| InputMessageGame | A message with a game; not supported for channels or secret chats |
Fields
| |
| InputMessageInvoice | A message with an invoice; can be used only by bots and only in private chats |
Fields
| |
| InputMessagePoll | A message with a poll. Polls can't be sent to secret chats. Polls can be sent only to a private chat with a bot |
Fields
| |
| InputMessageForwarded | A forwarded message |
Fields
| |
Instances
data SearchMessagesFilter Source #
Represents a filter for message search results
Constructors
| SearchMessagesFilterEmpty | Returns all found messages, no filter is applied |
| SearchMessagesFilterAnimation | Returns only animation messages |
| SearchMessagesFilterAudio | Returns only audio messages |
| SearchMessagesFilterDocument | Returns only document messages |
| SearchMessagesFilterPhoto | Returns only photo messages |
| SearchMessagesFilterVideo | Returns only video messages |
| SearchMessagesFilterVoiceNote | Returns only voice note messages |
| SearchMessagesFilterPhotoAndVideo | Returns only photo and video messages |
| SearchMessagesFilterUrl | Returns only messages containing URLs |
| SearchMessagesFilterChatPhoto | Returns only messages containing chat photos |
| SearchMessagesFilterCall | Returns only call messages |
| SearchMessagesFilterMissedCall | Returns only incoming call messages with missed/declined discard reasons |
| SearchMessagesFilterVideoNote | Returns only video note messages |
| SearchMessagesFilterVoiceAndVideoNote | Returns only voice and video note messages |
| SearchMessagesFilterMention | Returns only messages with mentions of the current user, or messages that are replies to their messages |
| SearchMessagesFilterUnreadMention | Returns only messages with unread mentions of the current user, or messages that are replies to their messages. When using this filter the results can't be additionally filtered by a query or by the sending user |
| SearchMessagesFilterFailedToSend | Returns only failed to send messages. This filter can be used only if the message database is used |
Instances
data ChatAction Source #
Describes the different types of activity in a chat
Constructors
| ChatActionTyping | The user is typing a message |
| ChatActionRecordingVideo | The user is recording a video |
| ChatActionUploadingVideo | The user is uploading a video |
Fields
| |
| ChatActionRecordingVoiceNote | The user is recording a voice note |
| ChatActionUploadingVoiceNote | The user is uploading a voice note |
Fields
| |
| ChatActionUploadingPhoto | The user is uploading a photo |
Fields
| |
| ChatActionUploadingDocument | The user is uploading a document |
Fields
| |
| ChatActionChoosingLocation | The user is picking a location or venue to send |
| ChatActionChoosingContact | The user is picking a contact to send |
| ChatActionStartPlayingGame | The user has started to play a game |
| ChatActionRecordingVideoNote | The user is recording a video note |
| ChatActionUploadingVideoNote | The user is uploading a video note |
Fields
| |
| ChatActionCancel | The user has cancelled the previous action |
Instances
data UserStatus Source #
Describes the last time the user was online
Constructors
| UserStatusEmpty | The user status was never changed |
| UserStatusOnline | The user is online |
| UserStatusOffline | The user is offline |
Fields
| |
| UserStatusRecently | The user was online recently |
| UserStatusLastWeek | The user is offline, but was online last week |
| UserStatusLastMonth | The user is offline, but was online last month |
Instances
Constructors
| Stickers | Represents a list of stickers |
Fields
| |
data StickerSet Source #
Constructors
| StickerSet | Represents a sticker set |
Fields
| |
Instances
data StickerSetInfo Source #
Constructors
| StickerSetInfo | Represents short information about a sticker set |
Fields
| |
Instances
data StickerSets Source #
Constructors
| StickerSets | Represents a list of sticker sets |
Fields
| |
Instances
data CallDiscardReason Source #
Describes the reason why a call was discarded
Constructors
| CallDiscardReasonEmpty | The call wasn't discarded, or the reason is unknown |
| CallDiscardReasonMissed | The call was ended before the conversation started. It was cancelled by the caller or missed by the other party |
| CallDiscardReasonDeclined | The call was ended before the conversation started. It was declined by the other party |
| CallDiscardReasonDisconnected | The call was ended during the conversation because the users were disconnected |
| CallDiscardReasonHungUp | The call was ended because one of the parties hung up |
Instances
data CallProtocol Source #
Constructors
| CallProtocol | Specifies the supported call protocols |
Fields
| |
Instances
data CallConnection Source #
Constructors
| CallConnection | Describes the address of UDP reflectors |
Fields
| |
Instances
Describes the current call state
Constructors
| CallStatePending | The call is pending, waiting to be accepted by a user |
Fields
| |
| CallStateExchangingKeys | The call has been answered and encryption keys are being exchanged |
| CallStateReady | The call is ready to use |
Fields
| |
| CallStateHangingUp | The call is hanging up after discardCall has been called |
| CallStateDiscarded | The call has ended successfully |
Fields
| |
| CallStateError | The call has ended with an error |
Instances
data CallProblem Source #
Describes the exact type of a problem with a call
Constructors
| CallProblemEcho | The user heard their own voice |
| CallProblemNoise | The user heard background noise |
| CallProblemInterruptions | The other side kept disappearing |
| CallProblemDistortedSpeech | The speech was distorted |
| CallProblemSilentLocal | The user couldn't hear the other side |
| CallProblemSilentRemote | The other side couldn't hear the user |
| CallProblemDropped | The call ended unexpectedly |
Instances
Constructors
| Call | Describes a call |
Instances
| Eq Call Source # | |
| Show Call Source # | |
| Generic Call Source # | |
| ToJSON Call Source # | |
Defined in TDLib.Generated.Types | |
| FromJSON Call Source # | |
| type Rep Call Source # | |
Defined in TDLib.Generated.Types type Rep Call = D1 ('MetaData "Call" "TDLib.Generated.Types" "tdlib-types-0.2.0-inplace" 'False) (C1 ('MetaCons "Call" 'PrefixI 'True) ((S1 ('MetaSel ('Just "id_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "user_id_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)) :*: (S1 ('MetaSel ('Just "is_outgoing_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "state_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CallState)))) | |
data PhoneNumberAuthenticationSettings Source #
Constructors
| PhoneNumberAuthenticationSettings | Contains settings for the authentication of the user's phone number |
Fields
| |
Instances
data Animations Source #
Constructors
| Animations | Represents a list of animations |
Fields
| |
Instances
| Eq Animations Source # | |
Defined in TDLib.Generated.Types | |
| Show Animations Source # | |
Defined in TDLib.Generated.Types Methods showsPrec :: Int -> Animations -> ShowS # show :: Animations -> String # showList :: [Animations] -> ShowS # | |
| Generic Animations Source # | |
Defined in TDLib.Generated.Types Associated Types type Rep Animations :: Type -> Type # | |
| ToJSON Animations Source # | |
Defined in TDLib.Generated.Types Methods toJSON :: Animations -> Value # toEncoding :: Animations -> Encoding # toJSONList :: [Animations] -> Value # toEncodingList :: [Animations] -> Encoding # | |
| FromJSON Animations Source # | |
Defined in TDLib.Generated.Types | |
| type Rep Animations Source # | |
Defined in TDLib.Generated.Types type Rep Animations = D1 ('MetaData "Animations" "TDLib.Generated.Types" "tdlib-types-0.2.0-inplace" 'False) (C1 ('MetaCons "Animations" 'PrefixI 'True) (S1 ('MetaSel ('Just "animations_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Animation]))) | |
data ImportedContacts Source #
Constructors
| ImportedContacts | Represents the result of an ImportContacts request |
Fields
| |
Instances
data InputInlineQueryResult Source #
Represents a single result of an inline query; for bots only
Constructors
| InputInlineQueryResultAnimation | Represents a link to an animated GIF or an animated (i.e. without sound) H.264/MPEG-4 AVC video |
Fields
| |
| InputInlineQueryResultArticle | Represents a link to an article or web page |
Fields
| |
| InputInlineQueryResultAudio | Represents a link to an MP3 audio file |
Fields
| |
| InputInlineQueryResultContact | Represents a user contact |
Fields
| |
| InputInlineQueryResultDocument | Represents a link to a file |
Fields
| |
| InputInlineQueryResultGame | Represents a game |
Fields
| |
| InputInlineQueryResultLocation | Represents a point on the map |
Fields
| |
| InputInlineQueryResultPhoto | Represents link to a JPEG image |
Fields
| |
| InputInlineQueryResultSticker | Represents a link to a WEBP or TGS sticker |
Fields
| |
| InputInlineQueryResultVenue | Represents information about a venue |
Fields
| |
| InputInlineQueryResultVideo | Represents a link to a page containing an embedded video player or a video file |
Fields
| |
| InputInlineQueryResultVoiceNote | Represents a link to an opus-encoded audio file within an OGG container, single channel audio |
Fields
| |
Instances
data InlineQueryResult Source #
Represents a single result of an inline query
Constructors
| InlineQueryResultArticle | Represents a link to an article or web page |
Fields
| |
| InlineQueryResultContact | Represents a user contact |
| InlineQueryResultLocation | Represents a point on the map |
Fields
| |
| InlineQueryResultVenue | Represents information about a venue |
| InlineQueryResultGame | Represents information about a game |
| InlineQueryResultAnimation | Represents an animation file |
| InlineQueryResultAudio | Represents an audio file |
| InlineQueryResultDocument | Represents a document |
Fields
| |
| InlineQueryResultPhoto | Represents a photo |
| InlineQueryResultSticker | Represents a sticker |
Fields
| |
| InlineQueryResultVideo | Represents a video |
| InlineQueryResultVoiceNote | Represents a voice note |
Instances
data InlineQueryResults Source #
Constructors
| InlineQueryResults | Represents the results of the inline query. Use sendInlineQueryResultMessage to send the result of the query |
Fields
| |
Instances
data CallbackQueryPayload Source #
Represents a payload of a callback query
Constructors
| CallbackQueryPayloadData | The payload from a general callback button |
Fields
| |
| CallbackQueryPayloadGame | The payload from a game callback button |
Fields
| |
Instances
data CallbackQueryAnswer Source #
Constructors
| CallbackQueryAnswer | Contains a bot's answer to a callback query |
Instances
data CustomRequestResult Source #
Constructors
| CustomRequestResult | Contains the result of a custom request |
Instances
data GameHighScore Source #
Constructors
| GameHighScore | Contains one row of the game high score table |
Instances
data GameHighScores Source #
Constructors
| GameHighScores | Contains a list of game high scores |
Fields
| |
Instances
data ChatEventAction Source #
Represents a chat event
Constructors
| ChatEventMessageEdited | A message was edited |
Fields
| |
| ChatEventMessageDeleted | A message was deleted |
| ChatEventPollStopped | A poll in a message was stopped |
| ChatEventMessagePinned | A message was pinned |
| ChatEventMessageUnpinned | A message was unpinned |
| ChatEventMemberJoined | A new member joined the chat |
| ChatEventMemberLeft | A member left the chat |
| ChatEventMemberInvited | A new chat member was invited |
Fields
| |
| ChatEventMemberPromoted | A chat member has gained/lost administrator status, or the list of their administrator privileges has changed |
Fields
| |
| ChatEventMemberRestricted | A chat member was restrictedunrestricted or bannedunbanned, or the list of their restrictions has changed |
Fields
| |
| ChatEventTitleChanged | The chat title was changed |
Fields
| |
| ChatEventPermissionsChanged | The chat permissions was changed |
Fields
| |
| ChatEventDescriptionChanged | The chat description was changed |
Fields
| |
| ChatEventUsernameChanged | The chat username was changed |
Fields
| |
| ChatEventPhotoChanged | The chat photo was changed |
Fields
| |
| ChatEventInvitesToggled | The can_invite_users permission of a supergroup chat was toggled |
Fields
| |
| ChatEventLinkedChatChanged | The linked chat of a supergroup was changed |
Fields
| |
| ChatEventSlowModeDelayChanged | The slow_mode_delay setting of a supergroup was changed |
Fields
| |
| ChatEventSignMessagesToggled | The sign_messages setting of a channel was toggled |
Fields
| |
| ChatEventStickerSetChanged | The supergroup sticker set was changed |
Fields
| |
| ChatEventLocationChanged | The supergroup location was changed |
Fields
| |
| ChatEventIsAllHistoryAvailableToggled | The is_all_history_available setting of a supergroup was toggled |
Fields
| |
Instances
Constructors
| ChatEvent | Represents a chat event |
Instances
| Eq ChatEvent Source # | |
| Show ChatEvent Source # | |
| Generic ChatEvent Source # | |
| ToJSON ChatEvent Source # | |
Defined in TDLib.Generated.Types | |
| FromJSON ChatEvent Source # | |
| type Rep ChatEvent Source # | |
Defined in TDLib.Generated.Types type Rep ChatEvent = D1 ('MetaData "ChatEvent" "TDLib.Generated.Types" "tdlib-types-0.2.0-inplace" 'False) (C1 ('MetaCons "ChatEvent" 'PrefixI 'True) ((S1 ('MetaSel ('Just "id_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I64) :*: S1 ('MetaSel ('Just "date_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32)) :*: (S1 ('MetaSel ('Just "user_id_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "action_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ChatEventAction)))) | |
data ChatEvents Source #
Constructors
| ChatEvents | Contains a list of chat events |
Instances
| Eq ChatEvents Source # | |
Defined in TDLib.Generated.Types | |
| Show ChatEvents Source # | |
Defined in TDLib.Generated.Types Methods showsPrec :: Int -> ChatEvents -> ShowS # show :: ChatEvents -> String # showList :: [ChatEvents] -> ShowS # | |
| Generic ChatEvents Source # | |
Defined in TDLib.Generated.Types Associated Types type Rep ChatEvents :: Type -> Type # | |
| ToJSON ChatEvents Source # | |
Defined in TDLib.Generated.Types Methods toJSON :: ChatEvents -> Value # toEncoding :: ChatEvents -> Encoding # toJSONList :: [ChatEvents] -> Value # toEncodingList :: [ChatEvents] -> Encoding # | |
| FromJSON ChatEvents Source # | |
Defined in TDLib.Generated.Types | |
| type Rep ChatEvents Source # | |
Defined in TDLib.Generated.Types type Rep ChatEvents = D1 ('MetaData "ChatEvents" "TDLib.Generated.Types" "tdlib-types-0.2.0-inplace" 'False) (C1 ('MetaCons "ChatEvents" 'PrefixI 'True) (S1 ('MetaSel ('Just "events_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [ChatEvent]))) | |
data ChatEventLogFilters Source #
Constructors
| ChatEventLogFilters | Represents a set of filters used to obtain a chat event log |
Fields
| |
Instances
data LanguagePackStringValue Source #
Represents the value of a string in a language pack
Constructors
| LanguagePackStringValueOrdinary | An ordinary language pack string |
| LanguagePackStringValuePluralized | A language pack string which has different forms based on the number of some object it mentions. See https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html for more info |
Fields
| |
| LanguagePackStringValueDeleted | A deleted language pack string, the value should be taken from the built-in english language pack |
Instances
data LanguagePackString Source #
Constructors
| LanguagePackString | Represents one language pack string |
Fields
| |
Instances
data LanguagePackStrings Source #
Constructors
| LanguagePackStrings | Contains a list of language pack strings |
Fields
| |
Instances
data LanguagePackInfo Source #
Constructors
| LanguagePackInfo | Contains information about a language pack |
Fields
| |
Instances
data LocalizationTargetInfo Source #
Constructors
| LocalizationTargetInfo | Contains information about the current localization target |
Fields
| |
Instances
data DeviceToken Source #
Represents a data needed to subscribe for push notifications through registerDevice method. To use specific push notification service, you must specify the correct application platform and upload valid server authentication data at https://my.telegram.org
Constructors
| DeviceTokenFirebaseCloudMessaging | A token for Firebase Cloud Messaging |
| DeviceTokenApplePush | A token for Apple Push Notification service |
Fields
| |
| DeviceTokenApplePushVoIP | A token for Apple Push Notification service VoIP notifications |
Fields
| |
| DeviceTokenWindowsPush | A token for Windows Push Notification Services |
Fields
| |
| DeviceTokenMicrosoftPush | A token for Microsoft Push Notification Service |
Fields
| |
| DeviceTokenMicrosoftPushVoIP | A token for Microsoft Push Notification Service VoIP channel |
Fields
| |
| DeviceTokenWebPush | A token for web Push API |
Fields
| |
| DeviceTokenSimplePush | A token for Simple Push API for Firefox OS |
Fields
| |
| DeviceTokenUbuntuPush | A token for Ubuntu Push Client service |
| DeviceTokenBlackBerryPush | A token for BlackBerry Push Service |
| DeviceTokenTizenPush | A token for Tizen Push Service |
Instances
data PushReceiverId Source #
Constructors
| PushReceiverId | Contains a globally unique push receiver identifier, which can be used to identify which account has received a push notification |
Instances
data BackgroundFill Source #
Describes a fill of a background
Constructors
| BackgroundFillSolid | Describes a solid fill of a background |
| BackgroundFillGradient | Describes a gradient fill of a background |
Fields
| |
Instances
data BackgroundType Source #
Describes the type of a background
Constructors
| BackgroundTypeWallpaper | A wallpaper in JPEG format |
Fields
| |
| BackgroundTypePattern | A PNG or TGV (gzipped subset of SVG with MIME type "application/x-tgwallpattern") pattern to be combined with the background fill chosen by the user |
Fields
| |
| BackgroundTypeFill | A filled background |
Fields
| |
Instances
data Background Source #
Constructors
| Background | Describes a chat background |
Fields
| |
Instances
data Backgrounds Source #
Constructors
| Backgrounds | Contains a list of backgrounds |
Fields
| |
Instances
| Eq Backgrounds Source # | |
Defined in TDLib.Generated.Types | |
| Show Backgrounds Source # | |
Defined in TDLib.Generated.Types Methods showsPrec :: Int -> Backgrounds -> ShowS # show :: Backgrounds -> String # showList :: [Backgrounds] -> ShowS # | |
| Generic Backgrounds Source # | |
Defined in TDLib.Generated.Types Associated Types type Rep Backgrounds :: Type -> Type # | |
| ToJSON Backgrounds Source # | |
Defined in TDLib.Generated.Types Methods toJSON :: Backgrounds -> Value # toEncoding :: Backgrounds -> Encoding # toJSONList :: [Backgrounds] -> Value # toEncodingList :: [Backgrounds] -> Encoding # | |
| FromJSON Backgrounds Source # | |
Defined in TDLib.Generated.Types | |
| type Rep Backgrounds Source # | |
Defined in TDLib.Generated.Types type Rep Backgrounds = D1 ('MetaData "Backgrounds" "TDLib.Generated.Types" "tdlib-types-0.2.0-inplace" 'False) (C1 ('MetaCons "Backgrounds" 'PrefixI 'True) (S1 ('MetaSel ('Just "backgrounds_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Background]))) | |
data InputBackground Source #
Contains information about background to set
Constructors
| InputBackgroundLocal | A background from a local file |
Fields
| |
| InputBackgroundRemote | A background from the server |
Fields
| |
Instances
Constructors
| Hashtags | Contains a list of hashtags |
Fields
| |
Instances
data CanTransferOwnershipResult Source #
Represents result of checking whether the current session can be used to transfer a chat ownership to another user
Constructors
| CanTransferOwnershipResultOk | The session can be used |
| CanTransferOwnershipResultPasswordNeeded | The 2-step verification needs to be enabled first |
| CanTransferOwnershipResultPasswordTooFresh | The 2-step verification was enabled recently, user needs to wait |
Fields
| |
| CanTransferOwnershipResultSessionTooFresh | The session was created recently, user needs to wait |
Fields
| |
Instances
data CheckChatUsernameResult Source #
Represents result of checking whether a username can be set for a chat
Constructors
| CheckChatUsernameResultOk | The username can be set |
| CheckChatUsernameResultUsernameInvalid | The username is invalid |
| CheckChatUsernameResultUsernameOccupied | The username is occupied |
| CheckChatUsernameResultPublicChatsTooMuch | The user has too much chats with username, one of them should be made private first |
| CheckChatUsernameResultPublicGroupsUnavailable | The user can't be a member of a public supergroup |
Instances
data PushMessageContent Source #
Contains content of a push message notification
Constructors
| PushMessageContentHidden | A general message with hidden content |
Fields
| |
| PushMessageContentAnimation | An animation message (GIF-style). |
Fields
| |
| PushMessageContentAudio | An audio message |
Fields
| |
| PushMessageContentContact | A message with a user contact |
Fields
| |
| PushMessageContentContactRegistered | A contact has registered with Telegram |
| PushMessageContentDocument | A document message (a general file) |
Fields
| |
| PushMessageContentGame | A message with a game |
Fields
| |
| PushMessageContentGameScore | A new high score was achieved in a game |
| PushMessageContentInvoice | A message with an invoice from a bot |
Fields
| |
| PushMessageContentLocation | A message with a location |
Fields
| |
| PushMessageContentPhoto | A photo message |
Fields
| |
| PushMessageContentPoll | A message with a poll |
Fields
| |
| PushMessageContentScreenshotTaken | A screenshot of a message in the chat has been taken |
| PushMessageContentSticker | A message with a sticker |
Fields
| |
| PushMessageContentText | A text message |
Fields
| |
| PushMessageContentVideo | A video message |
Fields
| |
| PushMessageContentVideoNote | A video note message |
Fields
| |
| PushMessageContentVoiceNote | A voice note message |
Fields
| |
| PushMessageContentBasicGroupChatCreate | A newly created basic group |
| PushMessageContentChatAddMembers | New chat members were invited to a group |
Fields
| |
| PushMessageContentChatChangePhoto | A chat photo was edited |
| PushMessageContentChatChangeTitle | A chat title was edited |
| PushMessageContentChatDeleteMember | A chat member was deleted |
Fields
| |
| PushMessageContentChatJoinByLink | A new member joined the chat by invite link |
| PushMessageContentMessageForwards | A forwarded messages |
Fields
| |
| PushMessageContentMediaAlbum | A media album |
Fields
| |
Instances
data NotificationType Source #
Contains detailed information about a notification
Constructors
| NotificationTypeNewMessage | New message was received |
| NotificationTypeNewSecretChat | New secret chat was created |
| NotificationTypeNewCall | New call was received |
| NotificationTypeNewPushMessage | New message was received through a push notification |
Fields
| |
Instances
data NotificationGroupType Source #
Describes the type of notifications in a notification group
Constructors
| NotificationGroupTypeMessages | A group containing notifications of type notificationTypeNewMessage and notificationTypeNewPushMessage with ordinary unread messages |
| NotificationGroupTypeMentions | A group containing notifications of type notificationTypeNewMessage and notificationTypeNewPushMessage with unread mentions of the current user, replies to their messages, or a pinned message |
| NotificationGroupTypeSecretChat | A group containing a notification of type notificationTypeNewSecretChat |
| NotificationGroupTypeCalls | A group containing notifications of type notificationTypeNewCall |
Instances
data Notification Source #
Constructors
| Notification | Contains information about a notification |
Fields
| |
Instances
data NotificationGroup Source #
Constructors
| NotificationGroup | Describes a group of notifications |
Fields
| |
Instances
data OptionValue Source #
Represents the value of an option
Constructors
| OptionValueBoolean | Represents a boolean option |
| OptionValueEmpty | Represents an unknown option or an option which has a default value |
| OptionValueInteger | Represents an integer option |
| OptionValueString | Represents a string option |
Instances
data JsonObjectMember Source #
Constructors
| JsonObjectMember | Represents one member of a JSON object |
Instances
Represents a JSON value
Constructors
| JsonValueNull | Represents a null JSON value |
| JsonValueBoolean | Represents a boolean JSON value |
| JsonValueNumber | Represents a numeric JSON value |
| JsonValueString | Represents a string JSON value |
| JsonValueArray | Represents a JSON array |
| JsonValueObject | Represents a JSON object |
Fields
| |
Instances
data UserPrivacySettingRule Source #
Represents a single rule for managing privacy settings
Constructors
| UserPrivacySettingRuleAllowAll | A rule to allow all users to do something |
| UserPrivacySettingRuleAllowContacts | A rule to allow all of a user's contacts to do something |
| UserPrivacySettingRuleAllowUsers | A rule to allow certain specified users to do something |
Fields
| |
| UserPrivacySettingRuleAllowChatMembers | A rule to allow all members of certain specified basic groups and supergroups to doing something |
Fields
| |
| UserPrivacySettingRuleRestrictAll | A rule to restrict all users from doing something |
| UserPrivacySettingRuleRestrictContacts | A rule to restrict all contacts of a user from doing something |
| UserPrivacySettingRuleRestrictUsers | A rule to restrict all specified users from doing something |
Fields
| |
| UserPrivacySettingRuleRestrictChatMembers | A rule to restrict all members of specified basic groups and supergroups from doing something |
Fields
| |
Instances
data UserPrivacySettingRules Source #
Constructors
| UserPrivacySettingRules | A list of privacy rules. Rules are matched in the specified order. The first matched rule defines the privacy setting for a given user. If no rule matches, the action is not allowed |
Fields
| |
Instances
data UserPrivacySetting Source #
Describes available user privacy settings
Constructors
| UserPrivacySettingShowStatus | A privacy setting for managing whether the user's online status is visible |
| UserPrivacySettingShowProfilePhoto | A privacy setting for managing whether the user's profile photo is visible |
| UserPrivacySettingShowLinkInForwardedMessages | A privacy setting for managing whether a link to the user's account is included in forwarded messages |
| UserPrivacySettingShowPhoneNumber | A privacy setting for managing whether the user's phone number is visible |
| UserPrivacySettingAllowChatInvites | A privacy setting for managing whether the user can be invited to chats |
| UserPrivacySettingAllowCalls | A privacy setting for managing whether the user can be called |
| UserPrivacySettingAllowPeerToPeerCalls | A privacy setting for managing whether peer-to-peer connections can be used for calls |
| UserPrivacySettingAllowFindingByPhoneNumber | A privacy setting for managing whether the user can be found by their phone number. Checked only if the phone number is not known to the other user. Can be set only to "Allow contacts" or "Allow all" |
Instances
data AccountTtl Source #
Constructors
| AccountTtl | Contains information about the period of inactivity after which the current user's account will automatically be deleted |
Instances
| Eq AccountTtl Source # | |
Defined in TDLib.Generated.Types | |
| Show AccountTtl Source # | |
Defined in TDLib.Generated.Types Methods showsPrec :: Int -> AccountTtl -> ShowS # show :: AccountTtl -> String # showList :: [AccountTtl] -> ShowS # | |
| Generic AccountTtl Source # | |
Defined in TDLib.Generated.Types Associated Types type Rep AccountTtl :: Type -> Type # | |
| ToJSON AccountTtl Source # | |
Defined in TDLib.Generated.Types Methods toJSON :: AccountTtl -> Value # toEncoding :: AccountTtl -> Encoding # toJSONList :: [AccountTtl] -> Value # toEncodingList :: [AccountTtl] -> Encoding # | |
| FromJSON AccountTtl Source # | |
Defined in TDLib.Generated.Types | |
| type Rep AccountTtl Source # | |
Defined in TDLib.Generated.Types type Rep AccountTtl = D1 ('MetaData "AccountTtl" "TDLib.Generated.Types" "tdlib-types-0.2.0-inplace" 'False) (C1 ('MetaCons "AccountTtl" 'PrefixI 'True) (S1 ('MetaSel ('Just "days_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32))) | |
Constructors
| Session | Contains information about one session in a Telegram application used by the current user. Sessions should be shown to the user in the returned order |
Fields
| |
Instances
Constructors
| Sessions | Contains a list of sessions |
Fields
| |
data ConnectedWebsite Source #
Constructors
| ConnectedWebsite | Contains information about one website the current user is logged in with Telegram |
Fields
| |
Instances
data ConnectedWebsites Source #
Constructors
| ConnectedWebsites | Contains a list of websites the current user is logged in with Telegram |
Fields
| |
Instances
data ChatReportReason Source #
Describes the reason why a chat is reported
Constructors
| ChatReportReasonSpam | The chat contains spam messages |
| ChatReportReasonViolence | The chat promotes violence |
| ChatReportReasonPornography | The chat contains pornographic messages |
| ChatReportReasonChildAbuse | The chat has child abuse related content |
| ChatReportReasonCopyright | The chat contains copyrighted content |
| ChatReportReasonUnrelatedLocation | The location-based chat is unrelated to its stated location |
| ChatReportReasonCustom | A custom reason provided by the user |
Instances
data PublicMessageLink Source #
Constructors
| PublicMessageLink | Contains a public HTTPS link to a message in a supergroup or channel with a username |
Instances
data MessageLinkInfo Source #
Constructors
| MessageLinkInfo | Contains information about a link to a message in a chat |
Fields
| |
Instances
Constructors
| FilePart | Contains a part of a file |
Fields
| |
Instances
| Eq FilePart Source # | |
| Show FilePart Source # | |
| Generic FilePart Source # | |
| ToJSON FilePart Source # | |
Defined in TDLib.Generated.Types | |
| FromJSON FilePart Source # | |
| type Rep FilePart Source # | |
Defined in TDLib.Generated.Types type Rep FilePart = D1 ('MetaData "FilePart" "TDLib.Generated.Types" "tdlib-types-0.2.0-inplace" 'False) (C1 ('MetaCons "FilePart" 'PrefixI 'True) (S1 ('MetaSel ('Just "data_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString64))) | |
Represents the type of a file
Constructors
| FileTypeNone | The data is not a file |
| FileTypeAnimation | The file is an animation |
| FileTypeAudio | The file is an audio file |
| FileTypeDocument | The file is a document |
| FileTypePhoto | The file is a photo |
| FileTypeProfilePhoto | The file is a profile photo |
| FileTypeSecret | The file was sent to a secret chat (the file type is not known to the server) |
| FileTypeSecretThumbnail | The file is a thumbnail of a file from a secret chat |
| FileTypeSecure | The file is a file from Secure storage used for storing Telegram Passport files |
| FileTypeSticker | The file is a sticker |
| FileTypeThumbnail | The file is a thumbnail of another file |
| FileTypeUnknown | The file type is not yet known |
| FileTypeVideo | The file is a video |
| FileTypeVideoNote | The file is a video note |
| FileTypeVoiceNote | The file is a voice note |
| FileTypeWallpaper | The file is a wallpaper or a background pattern |
Instances
| Eq FileType Source # | |
| Show FileType Source # | |
| Generic FileType Source # | |
| ToJSON FileType Source # | |
Defined in TDLib.Generated.Types | |
| FromJSON FileType Source # | |
| type Rep FileType Source # | |
Defined in TDLib.Generated.Types type Rep FileType = D1 ('MetaData "FileType" "TDLib.Generated.Types" "tdlib-types-0.2.0-inplace" 'False) ((((C1 ('MetaCons "FileTypeNone" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "FileTypeAnimation" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "FileTypeAudio" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "FileTypeDocument" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "FileTypePhoto" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "FileTypeProfilePhoto" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "FileTypeSecret" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "FileTypeSecretThumbnail" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: (((C1 ('MetaCons "FileTypeSecure" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "FileTypeSticker" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "FileTypeThumbnail" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "FileTypeUnknown" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "FileTypeVideo" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "FileTypeVideoNote" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "FileTypeVoiceNote" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "FileTypeWallpaper" 'PrefixI 'False) (U1 :: Type -> Type))))) | |
data StorageStatisticsByFileType Source #
Constructors
| StorageStatisticsByFileType | Contains the storage usage statistics for a specific file type |
Instances
data StorageStatisticsByChat Source #
Constructors
| StorageStatisticsByChat | Contains the storage usage statistics for a specific chat |
Fields
| |
Instances
data StorageStatistics Source #
Constructors
| StorageStatistics | Contains the exact storage usage statistics split by chats and file type |
Instances
data StorageStatisticsFast Source #
Constructors
| StorageStatisticsFast | Contains approximate storage usage statistics, excluding files of unknown file type |
Fields
| |
Instances
data DatabaseStatistics Source #
Constructors
| DatabaseStatistics | Contains database statistics |
Fields
| |
Instances
data NetworkType Source #
Represents the type of a network
Constructors
| NetworkTypeNone | The network is not available |
| NetworkTypeMobile | A mobile network |
| NetworkTypeMobileRoaming | A mobile roaming network |
| NetworkTypeWiFi | A Wi-Fi network |
| NetworkTypeOther | A different network type (e.g., Ethernet network) |
Instances
data NetworkStatisticsEntry Source #
Contains statistics about network usage
Constructors
| NetworkStatisticsEntryFile | Contains information about the total amount of data that was used to send and receive files |
Fields
| |
| NetworkStatisticsEntryCall | Contains information about the total amount of data that was used for calls |
Fields
| |
Instances
data NetworkStatistics Source #
Constructors
| NetworkStatistics | A full list of available network statistic entries |
Fields
| |
Instances
data AutoDownloadSettings Source #
Constructors
| AutoDownloadSettings | Contains auto-download settings |
Fields
| |
Instances
data AutoDownloadSettingsPresets Source #
Constructors
| AutoDownloadSettingsPresets | Contains auto-download settings presets for the user |
Fields
| |
Instances
data ConnectionState Source #
Describes the current state of the connection to Telegram servers
Constructors
| ConnectionStateWaitingForNetwork | Currently waiting for the network to become available. Use setNetworkType to change the available network type |
| ConnectionStateConnectingToProxy | Currently establishing a connection with a proxy server |
| ConnectionStateConnecting | Currently establishing a connection to the Telegram servers |
| ConnectionStateUpdating | Downloading data received while the client was offline |
| ConnectionStateReady | There is a working connection to the Telegram servers |
Instances
data TopChatCategory Source #
Represents the categories of chats for which a list of frequently used chats can be retrieved
Constructors
| TopChatCategoryUsers | A category containing frequently used private chats with non-bot users |
| TopChatCategoryBots | A category containing frequently used private chats with bot users |
| TopChatCategoryGroups | A category containing frequently used basic groups and supergroups |
| TopChatCategoryChannels | A category containing frequently used channels |
| TopChatCategoryInlineBots | A category containing frequently used chats with inline bots sorted by their usage in inline mode |
| TopChatCategoryCalls | A category containing frequently used chats used for calls |
| TopChatCategoryForwardChats | A category containing frequently used chats used to forward messages |
Instances
data TMeUrlType Source #
Describes the type of a URL linking to an internal Telegram entity
Constructors
| TMeUrlTypeUser | A URL linking to a user |
| TMeUrlTypeSupergroup | A URL linking to a public supergroup or channel |
Fields
| |
| TMeUrlTypeChatInvite | A chat invite link |
Fields
| |
| TMeUrlTypeStickerSet | A URL linking to a sticker set |
Fields
| |
Instances
Constructors
| TMeUrl | Represents a URL linking to an internal Telegram entity |
Fields
| |
Instances
| Eq TMeUrl Source # | |
| Show TMeUrl Source # | |
| Generic TMeUrl Source # | |
| ToJSON TMeUrl Source # | |
Defined in TDLib.Generated.Types | |
| FromJSON TMeUrl Source # | |
| type Rep TMeUrl Source # | |
Defined in TDLib.Generated.Types type Rep TMeUrl = D1 ('MetaData "TMeUrl" "TDLib.Generated.Types" "tdlib-types-0.2.0-inplace" 'False) (C1 ('MetaCons "TMeUrl" 'PrefixI 'True) (S1 ('MetaSel ('Just "url_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "type_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TMeUrlType))) | |
Constructors
| Seconds | Contains a value representing a number of seconds |
data DeepLinkInfo Source #
Constructors
| DeepLinkInfo | Contains information about a tg:// deep link |
Fields
| |
Instances
data TextParseMode Source #
Describes the way the text should be parsed for TextEntities
Constructors
| TextParseModeMarkdown | The text uses Markdown-style formatting |
Fields
| |
| TextParseModeHTML | The text uses HTML-style formatting. The same as Telegram Bot API HTML parse mode |
Instances
Describes the type of a proxy server
Constructors
| ProxyTypeSocks5 | A SOCKS5 proxy server |
Fields
| |
| ProxyTypeHttp | A HTTP transparent proxy server |
Fields
| |
| ProxyTypeMtproto | An MTProto proxy server |
Instances
Constructors
| Proxy | Contains information about a proxy server |
Fields | |
Instances
| Eq Proxy Source # | |
| Show Proxy Source # | |
| Generic Proxy Source # | |
| ToJSON Proxy Source # | |
Defined in TDLib.Generated.Types | |
| FromJSON Proxy Source # | |
| type Rep Proxy Source # | |
Defined in TDLib.Generated.Types type Rep Proxy = D1 ('MetaData "Proxy" "TDLib.Generated.Types" "tdlib-types-0.2.0-inplace" 'False) (C1 ('MetaCons "Proxy" 'PrefixI 'True) ((S1 ('MetaSel ('Just "id_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: (S1 ('MetaSel ('Just "server_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "port_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32))) :*: (S1 ('MetaSel ('Just "last_used_date_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: (S1 ('MetaSel ('Just "is_enabled_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "type_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ProxyType))))) | |
Constructors
| Proxies | Represents a list of proxy servers |
data InputSticker Source #
Describes a sticker that needs to be added to a sticker set
Constructors
| InputStickerStatic | A static sticker in PNG format, which will be converted to WEBP server-side |
Fields
| |
| InputStickerAnimated | An animated sticker in TGS format |
Fields
| |
Instances
Constructors
| DateRange | Represents a date range |
Fields
| |
Instances
| Eq DateRange Source # | |
| Show DateRange Source # | |
| Generic DateRange Source # | |
| ToJSON DateRange Source # | |
Defined in TDLib.Generated.Types | |
| FromJSON DateRange Source # | |
| type Rep DateRange Source # | |
Defined in TDLib.Generated.Types type Rep DateRange = D1 ('MetaData "DateRange" "TDLib.Generated.Types" "tdlib-types-0.2.0-inplace" 'False) (C1 ('MetaCons "DateRange" 'PrefixI 'True) (S1 ('MetaSel ('Just "start_date_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32) :*: S1 ('MetaSel ('Just "end_date_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I32))) | |
data StatisticsValue Source #
Constructors
| StatisticsValue | A statistics value |
Fields
| |
Instances
data StatisticsGraph Source #
Describes a statistics graph
Constructors
| StatisticsGraphData | A graph data |
Fields
| |
| StatisticsGraphAsync | The graph data to be asynchronously loaded through getChatStatisticsGraph |
| StatisticsGraphError | An error message to be shown to the user instead of the graph |
Fields
| |
Instances
data ChatStatisticsMessageInteractionCounters Source #
Constructors
| ChatStatisticsMessageInteractionCounters | Contains statistics about interactions with a message |
Fields
| |
Instances
data ChatStatistics Source #
Constructors
| ChatStatistics | A detailed statistics about a chat |
Fields
| |
Instances
Contains notifications about data changes
Constructors
| UpdateAuthorizationState | The user authorization state has changed |
Fields
| |
| UpdateNewMessage | A new message was received; can also be an outgoing message |
| UpdateMessageSendAcknowledged | A request to send a message has reached the Telegram server. This doesn't mean that the message will be sent successfully or even that the send message request will be processed. This update will be sent only if the option "use_quick_ack" is set to true. This update may be sent multiple times for the same message |
Fields
| |
| UpdateMessageSendSucceeded | A message has been successfully sent |
Fields
| |
| UpdateMessageSendFailed | A message failed to send. Be aware that some messages being sent can be irrecoverably deleted, in which case updateDeleteMessages will be received instead of this update |
Fields
| |
| UpdateMessageContent | The message content has changed |
Fields
| |
| UpdateMessageEdited | A message was edited. Changes in the message content will come in a separate updateMessageContent |
Fields
| |
| UpdateMessageViews | The view count of the message has changed |
| UpdateMessageContentOpened | The message content was opened. Updates voice note messages to "listened", video note messages to "viewed" and starts the TTL timer for self-destructing messages |
Fields
| |
| UpdateMessageMentionRead | A message with an unread mention was read |
Fields
| |
| UpdateMessageLiveLocationViewed | A message with a live location was viewed. When the update is received, the client is supposed to update the live location |
Fields
| |
| UpdateNewChat | A new chat has been loaded/created. This update is guaranteed to come before the chat identifier is returned to the client. The chat field changes will be reported through separate updates |
| UpdateChatChatList | The list to which the chat belongs was changed. This update is guaranteed to be sent only when chat.order == 0 and the current or the new chat list is null |
Fields
| |
| UpdateChatTitle | The title of a chat was changed |
Fields
| |
| UpdateChatPhoto | A chat photo was changed |
Fields
| |
| UpdateChatPermissions | Chat permissions was changed |
Fields
| |
| UpdateChatLastMessage | The last message of a chat was changed. If last_message is null, then the last message in the chat became unknown. Some new unknown messages might be added to the chat in this case |
Fields
| |
| UpdateChatOrder | The order of the chat in the chat list has changed. Instead of this update updateChatLastMessage, updateChatIsPinned, updateChatDraftMessage, or updateChatSource might be sent |
Fields
| |
| UpdateChatIsPinned | A chat was pinned or unpinned |
Fields
| |
| UpdateChatIsMarkedAsUnread | A chat was marked as unread or was read |
Fields
| |
| UpdateChatSource | A chat's source in the chat list has changed |
Fields
| |
| UpdateChatHasScheduledMessages | A chat's has_scheduled_messages field has changed |
Fields
| |
| UpdateChatDefaultDisableNotification | The value of the default disable_notification parameter, used when a message is sent to the chat, was changed |
Fields
| |
| UpdateChatReadInbox | Incoming messages were read or number of unread messages has been changed |
Fields
| |
| UpdateChatReadOutbox | Outgoing messages were read |
Fields
| |
| UpdateChatUnreadMentionCount | The chat unread_mention_count has changed |
Fields
| |
| UpdateChatNotificationSettings | Notification settings for a chat were changed |
Fields
| |
| UpdateScopeNotificationSettings | Notification settings for some type of chats were updated |
Fields
| |
| UpdateChatActionBar | The chat action bar was changed |
Fields
| |
| UpdateChatPinnedMessage | The chat pinned message was changed |
Fields
| |
| UpdateChatReplyMarkup | The default chat reply markup was changed. Can occur because new messages with reply markup were received or because an old reply markup was hidden by the user |
Fields
| |
| UpdateChatDraftMessage | A chat draft has changed. Be aware that the update may come in the currently opened chat but with old content of the draft. If the user has changed the content of the draft, this update shouldn't be applied |
Fields
| |
| UpdateChatOnlineMemberCount | The number of online group members has changed. This update with non-zero count is sent only for currently opened chats. There is no guarantee that it will be sent just after the count has changed |
Fields
| |
| UpdateNotification | A notification was changed |
Fields
| |
| UpdateNotificationGroup | A list of active notifications in a notification group has changed |
Fields
| |
| UpdateActiveNotifications | Contains active notifications that was shown on previous application launches. This update is sent only if the message database is used. In that case it comes once before any updateNotification and updateNotificationGroup update |
Fields
| |
| UpdateHavePendingNotifications | Describes whether there are some pending notification updates. Can be used to prevent application from killing, while there are some pending notifications |
Fields
| |
| UpdateDeleteMessages | Some messages were deleted |
Fields
| |
| UpdateUserChatAction | User activity in the chat has changed |
Fields
| |
| UpdateUserStatus | The user went online or offline |
Fields
| |
| UpdateUser | Some data of a user has changed. This update is guaranteed to come before the user identifier is returned to the client |
| UpdateBasicGroup | Some data of a basic group has changed. This update is guaranteed to come before the basic group identifier is returned to the client |
Fields
| |
| UpdateSupergroup | Some data of a supergroup or a channel has changed. This update is guaranteed to come before the supergroup identifier is returned to the client |
Fields
| |
| UpdateSecretChat | Some data of a secret chat has changed. This update is guaranteed to come before the secret chat identifier is returned to the client |
Fields
| |
| UpdateUserFullInfo | Some data from userFullInfo has been changed |
Fields
| |
| UpdateBasicGroupFullInfo | Some data from basicGroupFullInfo has been changed |
Fields
| |
| UpdateSupergroupFullInfo | Some data from supergroupFullInfo has been changed |
Fields
| |
| UpdateServiceNotification | Service notification from the server. Upon receiving this the client must show a popup with the content of the notification |
Fields
| |
| UpdateFile | Information about a file was updated |
| UpdateFileGenerationStart | The file generation process needs to be started by the client |
Fields
| |
| UpdateFileGenerationStop | File generation is no longer needed |
Fields
| |
| UpdateCall | New call was created or information about a call was updated |
| UpdateUserPrivacySettingRules | Some privacy setting rules have been changed |
Fields
| |
| UpdateUnreadMessageCount | Number of unread messages in a chat list has changed. This update is sent only if the message database is used |
Fields
| |
| UpdateUnreadChatCount | Number of unread chats, i.e. with unread messages or marked as unread, has changed. This update is sent only if the message database is used |
Fields
| |
| UpdateOption | An option changed its value |
Fields
| |
| UpdateStickerSet | A sticker set has changed |
Fields
| |
| UpdateInstalledStickerSets | The list of installed sticker sets was updated |
Fields
| |
| UpdateTrendingStickerSets | The list of trending sticker sets was updated or some of them were viewed |
Fields
| |
| UpdateRecentStickers | The list of recently used stickers was updated |
Fields
| |
| UpdateFavoriteStickers | The list of favorite stickers was updated |
Fields
| |
| UpdateSavedAnimations | The list of saved animations was updated |
Fields
| |
| UpdateSelectedBackground | The selected background has changed |
Fields
| |
| UpdateLanguagePackStrings | Some language pack strings have been updated |
Fields
| |
| UpdateConnectionState | The connection state has changed |
Fields
| |
| UpdateTermsOfService | New terms of service must be accepted by the user. If the terms of service are declined, then the deleteAccount method should be called with the reason "Decline ToS update" |
Fields
| |
| UpdateUsersNearby | The list of users nearby has changed. The update is sent only 60 seconds after a successful searchChatsNearby request |
Fields
| |
| UpdateDiceEmojis | The list of supported dice emojis has changed |
| UpdateNewInlineQuery | A new incoming inline query; for bots only |
Fields
| |
| UpdateNewChosenInlineResult | The user has chosen a result of an inline query; for bots only |
Fields
| |
| UpdateNewCallbackQuery | A new incoming callback query; for bots only |
Fields
| |
| UpdateNewInlineCallbackQuery | A new incoming callback query from a message sent via a bot; for bots only |
Fields
| |
| UpdateNewShippingQuery | A new incoming shipping query; for bots only. Only for invoices with flexible price |
Fields
| |
| UpdateNewPreCheckoutQuery | A new incoming pre-checkout query; for bots only. Contains full information about a checkout |
Fields
| |
| UpdateNewCustomEvent | A new incoming event; for bots only |
| UpdateNewCustomQuery | A new incoming query; for bots only |
| UpdatePoll | A poll was updated; for bots only |
| UpdatePollAnswer | A user changed the answer to a poll; for bots only |
Fields
| |
Instances
Describes a stream to which TDLib internal log is written
Constructors
| LogStreamDefault | The log is written to stderr or an OS specific log |
| LogStreamFile | The log is written to a file |
Fields
| |
| LogStreamEmpty | The log is written nowhere |
Instances
| Eq LogStream Source # | |
| Show LogStream Source # | |
| Generic LogStream Source # | |
| ToJSON LogStream Source # | |
Defined in TDLib.Generated.Types | |
| FromJSON LogStream Source # | |
| type Rep LogStream Source # | |
Defined in TDLib.Generated.Types type Rep LogStream = D1 ('MetaData "LogStream" "TDLib.Generated.Types" "tdlib-types-0.2.0-inplace" 'False) (C1 ('MetaCons "LogStreamDefault" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "LogStreamFile" 'PrefixI 'True) (S1 ('MetaSel ('Just "path_2") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T) :*: S1 ('MetaSel ('Just "max_file_size_2") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 I53)) :+: C1 ('MetaCons "LogStreamEmpty" 'PrefixI 'False) (U1 :: Type -> Type))) | |
data LogVerbosityLevel Source #
Constructors
| LogVerbosityLevel | Contains a TDLib internal log verbosity level |
Fields
| |
Instances
Constructors
| LogTags | Contains a list of available TDLib internal log tags |
data TestString Source #
Constructors
| TestString | A simple object containing a string; for testing only |
Instances
| Eq TestString Source # | |
Defined in TDLib.Generated.Types | |
| Show TestString Source # | |
Defined in TDLib.Generated.Types Methods showsPrec :: Int -> TestString -> ShowS # show :: TestString -> String # showList :: [TestString] -> ShowS # | |
| Generic TestString Source # | |
Defined in TDLib.Generated.Types Associated Types type Rep TestString :: Type -> Type # | |
| ToJSON TestString Source # | |
Defined in TDLib.Generated.Types Methods toJSON :: TestString -> Value # toEncoding :: TestString -> Encoding # toJSONList :: [TestString] -> Value # toEncodingList :: [TestString] -> Encoding # | |
| FromJSON TestString Source # | |
Defined in TDLib.Generated.Types | |
| type Rep TestString Source # | |
Defined in TDLib.Generated.Types type Rep TestString = D1 ('MetaData "TestString" "TDLib.Generated.Types" "tdlib-types-0.2.0-inplace" 'False) (C1 ('MetaCons "TestString" 'PrefixI 'True) (S1 ('MetaSel ('Just "value_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 T))) | |
Constructors
| TestBytes | A simple object containing a sequence of bytes; for testing only |
Fields
| |
Instances
| Eq TestBytes Source # | |
| Show TestBytes Source # | |
| Generic TestBytes Source # | |
| ToJSON TestBytes Source # | |
Defined in TDLib.Generated.Types | |
| FromJSON TestBytes Source # | |
| type Rep TestBytes Source # | |
Defined in TDLib.Generated.Types type Rep TestBytes = D1 ('MetaData "TestBytes" "TDLib.Generated.Types" "tdlib-types-0.2.0-inplace" 'False) (C1 ('MetaCons "TestBytes" 'PrefixI 'True) (S1 ('MetaSel ('Just "value_1") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString64))) | |
data TestVectorInt Source #
Constructors
| TestVectorInt | A simple object containing a vector of numbers; for testing only |
Instances
data TestVectorIntObject Source #
Constructors
| TestVectorIntObject | A simple object containing a vector of objects that hold a number; for testing only |
Instances
data TestVectorString Source #
Constructors
| TestVectorString | A simple object containing a vector of strings; for testing only |
Instances
data TestVectorStringObject Source #
Constructors
| TestVectorStringObject | A simple object containing a vector of objects that hold a string; for testing only |
Fields
| |