Classes | Typedefs | Functions
td_api.h File Reference

Description

Contains declarations of all functions and types which represent a public TDLib interface.

Go to the source code of this file.

Classes

class  Object
 
class  Function
 
class  accountTtl
 
class  address
 
class  animation
 
class  animations
 
class  audio
 
class  authenticationCodeInfo
 
class  AuthenticationCodeType
 
class  authenticationCodeTypeTelegramMessage
 
class  authenticationCodeTypeSms
 
class  authenticationCodeTypeCall
 
class  authenticationCodeTypeFlashCall
 
class  AuthorizationState
 
class  authorizationStateWaitTdlibParameters
 
class  authorizationStateWaitEncryptionKey
 
class  authorizationStateWaitPhoneNumber
 
class  authorizationStateWaitCode
 
class  authorizationStateWaitPassword
 
class  authorizationStateReady
 
class  authorizationStateLoggingOut
 
class  authorizationStateClosing
 
class  authorizationStateClosed
 
class  basicGroup
 
class  basicGroupFullInfo
 
class  botCommand
 
class  botInfo
 
class  call
 
class  callConnection
 
class  CallDiscardReason
 
class  callDiscardReasonEmpty
 
class  callDiscardReasonMissed
 
class  callDiscardReasonDeclined
 
class  callDiscardReasonDisconnected
 
class  callDiscardReasonHungUp
 
class  callId
 
class  callProtocol
 
class  CallState
 
class  callStatePending
 
class  callStateExchangingKeys
 
class  callStateReady
 
class  callStateHangingUp
 
class  callStateDiscarded
 
class  callStateError
 
class  callbackQueryAnswer
 
class  CallbackQueryPayload
 
class  callbackQueryPayloadData
 
class  callbackQueryPayloadGame
 
class  chat
 
class  ChatAction
 
class  chatActionTyping
 
class  chatActionRecordingVideo
 
class  chatActionUploadingVideo
 
class  chatActionRecordingVoiceNote
 
class  chatActionUploadingVoiceNote
 
class  chatActionUploadingPhoto
 
class  chatActionUploadingDocument
 
class  chatActionChoosingLocation
 
class  chatActionChoosingContact
 
class  chatActionStartPlayingGame
 
class  chatActionRecordingVideoNote
 
class  chatActionUploadingVideoNote
 
class  chatActionCancel
 
class  chatEvent
 
class  ChatEventAction
 
class  chatEventMessageEdited
 
class  chatEventMessageDeleted
 
class  chatEventMessagePinned
 
class  chatEventMessageUnpinned
 
class  chatEventMemberJoined
 
class  chatEventMemberLeft
 
class  chatEventMemberInvited
 
class  chatEventMemberPromoted
 
class  chatEventMemberRestricted
 
class  chatEventTitleChanged
 
class  chatEventDescriptionChanged
 
class  chatEventUsernameChanged
 
class  chatEventPhotoChanged
 
class  chatEventInvitesToggled
 
class  chatEventSignMessagesToggled
 
class  chatEventStickerSetChanged
 
class  chatEventIsAllHistoryAvailableToggled
 
class  chatEventLogFilters
 
class  chatEvents
 
class  chatInviteLink
 
class  chatInviteLinkInfo
 
class  chatMember
 
class  ChatMemberStatus
 
class  chatMemberStatusCreator
 
class  chatMemberStatusAdministrator
 
class  chatMemberStatusMember
 
class  chatMemberStatusRestricted
 
class  chatMemberStatusLeft
 
class  chatMemberStatusBanned
 
class  chatMembers
 
class  ChatMembersFilter
 
class  chatMembersFilterAdministrators
 
class  chatMembersFilterMembers
 
class  chatMembersFilterRestricted
 
class  chatMembersFilterBanned
 
class  chatMembersFilterBots
 
class  chatNotificationSettings
 
class  chatPhoto
 
class  ChatReportReason
 
class  chatReportReasonSpam
 
class  chatReportReasonViolence
 
class  chatReportReasonPornography
 
class  chatReportReasonCopyright
 
class  chatReportReasonCustom
 
class  chatReportSpamState
 
class  ChatType
 
class  chatTypePrivate
 
class  chatTypeBasicGroup
 
class  chatTypeSupergroup
 
class  chatTypeSecret
 
class  chats
 
class  CheckChatUsernameResult
 
class  checkChatUsernameResultOk
 
class  checkChatUsernameResultUsernameInvalid
 
class  checkChatUsernameResultUsernameOccupied
 
class  checkChatUsernameResultPublicChatsTooMuch
 
class  checkChatUsernameResultPublicGroupsUnavailable
 
class  connectedWebsite
 
class  connectedWebsites
 
class  ConnectionState
 
class  connectionStateWaitingForNetwork
 
class  connectionStateConnectingToProxy
 
class  connectionStateConnecting
 
class  connectionStateUpdating
 
class  connectionStateReady
 
class  contact
 
class  count
 
class  customRequestResult
 
class  date
 
class  datedFile
 
class  deepLinkInfo
 
class  DeviceToken
 
class  deviceTokenGoogleCloudMessaging
 
class  deviceTokenApplePush
 
class  deviceTokenApplePushVoIP
 
class  deviceTokenWindowsPush
 
class  deviceTokenMicrosoftPush
 
class  deviceTokenMicrosoftPushVoIP
 
class  deviceTokenWebPush
 
class  deviceTokenSimplePush
 
class  deviceTokenUbuntuPush
 
class  deviceTokenBlackBerryPush
 
class  deviceTokenTizenPush
 
class  document
 
class  draftMessage
 
class  emailAddressAuthenticationCodeInfo
 
class  encryptedCredentials
 
class  encryptedPassportElement
 
class  error
 
class  file
 
class  FileType
 
class  fileTypeNone
 
class  fileTypeAnimation
 
class  fileTypeAudio
 
class  fileTypeDocument
 
class  fileTypePhoto
 
class  fileTypeProfilePhoto
 
class  fileTypeSecret
 
class  fileTypeSecretThumbnail
 
class  fileTypeSecure
 
class  fileTypeSticker
 
class  fileTypeThumbnail
 
class  fileTypeUnknown
 
class  fileTypeVideo
 
class  fileTypeVideoNote
 
class  fileTypeVoiceNote
 
class  fileTypeWallpaper
 
class  formattedText
 
class  foundMessages
 
class  game
 
class  gameHighScore
 
class  gameHighScores
 
class  hashtags
 
class  identityDocument
 
class  importedContacts
 
class  inlineKeyboardButton
 
class  InlineKeyboardButtonType
 
class  inlineKeyboardButtonTypeUrl
 
class  inlineKeyboardButtonTypeCallback
 
class  inlineKeyboardButtonTypeCallbackGame
 
class  inlineKeyboardButtonTypeSwitchInline
 
class  inlineKeyboardButtonTypeBuy
 
class  InlineQueryResult
 
class  inlineQueryResultArticle
 
class  inlineQueryResultContact
 
class  inlineQueryResultLocation
 
class  inlineQueryResultVenue
 
class  inlineQueryResultGame
 
class  inlineQueryResultAnimation
 
class  inlineQueryResultAudio
 
class  inlineQueryResultDocument
 
class  inlineQueryResultPhoto
 
class  inlineQueryResultSticker
 
class  inlineQueryResultVideo
 
class  inlineQueryResultVoiceNote
 
class  inlineQueryResults
 
class  InputCredentials
 
class  inputCredentialsSaved
 
class  inputCredentialsNew
 
class  inputCredentialsAndroidPay
 
class  inputCredentialsApplePay
 
class  InputFile
 
class  inputFileId
 
class  inputFileRemote
 
class  inputFileLocal
 
class  inputFileGenerated
 
class  inputIdentityDocument
 
class  InputInlineQueryResult
 
class  inputInlineQueryResultAnimatedGif
 
class  inputInlineQueryResultAnimatedMpeg4
 
class  inputInlineQueryResultArticle
 
class  inputInlineQueryResultAudio
 
class  inputInlineQueryResultContact
 
class  inputInlineQueryResultDocument
 
class  inputInlineQueryResultGame
 
class  inputInlineQueryResultLocation
 
class  inputInlineQueryResultPhoto
 
class  inputInlineQueryResultSticker
 
class  inputInlineQueryResultVenue
 
class  inputInlineQueryResultVideo
 
class  inputInlineQueryResultVoiceNote
 
class  InputMessageContent
 
class  inputMessageText
 
class  inputMessageAnimation
 
class  inputMessageAudio
 
class  inputMessageDocument
 
class  inputMessagePhoto
 
class  inputMessageSticker
 
class  inputMessageVideo
 
class  inputMessageVideoNote
 
class  inputMessageVoiceNote
 
class  inputMessageLocation
 
class  inputMessageVenue
 
class  inputMessageContact
 
class  inputMessageGame
 
class  inputMessageInvoice
 
class  inputMessageForwarded
 
class  InputPassportElement
 
class  inputPassportElementPersonalDetails
 
class  inputPassportElementPassport
 
class  inputPassportElementDriverLicense
 
class  inputPassportElementIdentityCard
 
class  inputPassportElementInternalPassport
 
class  inputPassportElementAddress
 
class  inputPassportElementUtilityBill
 
class  inputPassportElementBankStatement
 
class  inputPassportElementRentalAgreement
 
class  inputPassportElementPassportRegistration
 
class  inputPassportElementTemporaryRegistration
 
class  inputPassportElementPhoneNumber
 
class  inputPassportElementEmailAddress
 
class  inputPassportElementError
 
class  InputPassportElementErrorSource
 
class  inputPassportElementErrorSourceUnspecified
 
class  inputPassportElementErrorSourceDataField
 
class  inputPassportElementErrorSourceFrontSide
 
class  inputPassportElementErrorSourceReverseSide
 
class  inputPassportElementErrorSourceSelfie
 
class  inputPassportElementErrorSourceTranslationFile
 
class  inputPassportElementErrorSourceTranslationFiles
 
class  inputPassportElementErrorSourceFile
 
class  inputPassportElementErrorSourceFiles
 
class  inputPersonalDocument
 
class  inputSticker
 
class  inputThumbnail
 
class  invoice
 
class  keyboardButton
 
class  KeyboardButtonType
 
class  keyboardButtonTypeText
 
class  keyboardButtonTypeRequestPhoneNumber
 
class  keyboardButtonTypeRequestLocation
 
class  labeledPricePart
 
class  languagePackInfo
 
class  languagePackString
 
class  LanguagePackStringValue
 
class  languagePackStringValueOrdinary
 
class  languagePackStringValuePluralized
 
class  languagePackStringValueDeleted
 
class  languagePackStrings
 
class  LinkState
 
class  linkStateNone
 
class  linkStateKnowsPhoneNumber
 
class  linkStateIsContact
 
class  localFile
 
class  localizationTargetInfo
 
class  location
 
class  MaskPoint
 
class  maskPointForehead
 
class  maskPointEyes
 
class  maskPointMouth
 
class  maskPointChin
 
class  maskPosition
 
class  message
 
class  MessageContent
 
class  messageText
 
class  messageAnimation
 
class  messageAudio
 
class  messageDocument
 
class  messagePhoto
 
class  messageExpiredPhoto
 
class  messageSticker
 
class  messageVideo
 
class  messageExpiredVideo
 
class  messageVideoNote
 
class  messageVoiceNote
 
class  messageLocation
 
class  messageVenue
 
class  messageContact
 
class  messageGame
 
class  messageInvoice
 
class  messageCall
 
class  messageBasicGroupChatCreate
 
class  messageSupergroupChatCreate
 
class  messageChatChangeTitle
 
class  messageChatChangePhoto
 
class  messageChatDeletePhoto
 
class  messageChatAddMembers
 
class  messageChatJoinByLink
 
class  messageChatDeleteMember
 
class  messageChatUpgradeTo
 
class  messageChatUpgradeFrom
 
class  messagePinMessage
 
class  messageScreenshotTaken
 
class  messageChatSetTtl
 
class  messageCustomServiceAction
 
class  messageGameScore
 
class  messagePaymentSuccessful
 
class  messagePaymentSuccessfulBot
 
class  messageContactRegistered
 
class  messageWebsiteConnected
 
class  messagePassportDataSent
 
class  messagePassportDataReceived
 
class  messageUnsupported
 
class  MessageForwardInfo
 
class  messageForwardedFromUser
 
class  messageForwardedPost
 
class  MessageSendingState
 
class  messageSendingStatePending
 
class  messageSendingStateFailed
 
class  messages
 
class  networkStatistics
 
class  NetworkStatisticsEntry
 
class  networkStatisticsEntryFile
 
class  networkStatisticsEntryCall
 
class  NetworkType
 
class  networkTypeNone
 
class  networkTypeMobile
 
class  networkTypeMobileRoaming
 
class  networkTypeWiFi
 
class  networkTypeOther
 
class  NotificationSettingsScope
 
class  notificationSettingsScopePrivateChats
 
class  notificationSettingsScopeGroupChats
 
class  ok
 
class  OptionValue
 
class  optionValueBoolean
 
class  optionValueEmpty
 
class  optionValueInteger
 
class  optionValueString
 
class  orderInfo
 
class  PageBlock
 
class  pageBlockTitle
 
class  pageBlockSubtitle
 
class  pageBlockAuthorDate
 
class  pageBlockHeader
 
class  pageBlockSubheader
 
class  pageBlockParagraph
 
class  pageBlockPreformatted
 
class  pageBlockFooter
 
class  pageBlockDivider
 
class  pageBlockAnchor
 
class  pageBlockList
 
class  pageBlockBlockQuote
 
class  pageBlockPullQuote
 
class  pageBlockAnimation
 
class  pageBlockAudio
 
class  pageBlockPhoto
 
class  pageBlockVideo
 
class  pageBlockCover
 
class  pageBlockEmbedded
 
class  pageBlockEmbeddedPost
 
class  pageBlockCollage
 
class  pageBlockSlideshow
 
class  pageBlockChatLink
 
class  passportAuthorizationForm
 
class  PassportElement
 
class  passportElementPersonalDetails
 
class  passportElementPassport
 
class  passportElementDriverLicense
 
class  passportElementIdentityCard
 
class  passportElementInternalPassport
 
class  passportElementAddress
 
class  passportElementUtilityBill
 
class  passportElementBankStatement
 
class  passportElementRentalAgreement
 
class  passportElementPassportRegistration
 
class  passportElementTemporaryRegistration
 
class  passportElementPhoneNumber
 
class  passportElementEmailAddress
 
class  passportElementError
 
class  PassportElementErrorSource
 
class  passportElementErrorSourceUnspecified
 
class  passportElementErrorSourceDataField
 
class  passportElementErrorSourceFrontSide
 
class  passportElementErrorSourceReverseSide
 
class  passportElementErrorSourceSelfie
 
class  passportElementErrorSourceTranslationFile
 
class  passportElementErrorSourceTranslationFiles
 
class  passportElementErrorSourceFile
 
class  passportElementErrorSourceFiles
 
class  PassportElementType
 
class  passportElementTypePersonalDetails
 
class  passportElementTypePassport
 
class  passportElementTypeDriverLicense
 
class  passportElementTypeIdentityCard
 
class  passportElementTypeInternalPassport
 
class  passportElementTypeAddress
 
class  passportElementTypeUtilityBill
 
class  passportElementTypeBankStatement
 
class  passportElementTypeRentalAgreement
 
class  passportElementTypePassportRegistration
 
class  passportElementTypeTemporaryRegistration
 
class  passportElementTypePhoneNumber
 
class  passportElementTypeEmailAddress
 
class  passportElements
 
class  passportRequiredElement
 
class  passportSuitableElement
 
class  passwordState
 
class  paymentForm
 
class  paymentReceipt
 
class  paymentResult
 
class  paymentsProviderStripe
 
class  personalDetails
 
class  personalDocument
 
class  photo
 
class  photoSize
 
class  profilePhoto
 
class  proxies
 
class  proxy
 
class  ProxyType
 
class  proxyTypeSocks5
 
class  proxyTypeHttp
 
class  proxyTypeMtproto
 
class  publicMessageLink
 
class  recoveryEmailAddress
 
class  remoteFile
 
class  ReplyMarkup
 
class  replyMarkupRemoveKeyboard
 
class  replyMarkupForceReply
 
class  replyMarkupShowKeyboard
 
class  replyMarkupInlineKeyboard
 
class  RichText
 
class  richTextPlain
 
class  richTextBold
 
class  richTextItalic
 
class  richTextUnderline
 
class  richTextStrikethrough
 
class  richTextFixed
 
class  richTextUrl
 
class  richTextEmailAddress
 
class  richTexts
 
class  savedCredentials
 
class  scopeNotificationSettings
 
class  SearchMessagesFilter
 
class  searchMessagesFilterEmpty
 
class  searchMessagesFilterAnimation
 
class  searchMessagesFilterAudio
 
class  searchMessagesFilterDocument
 
class  searchMessagesFilterPhoto
 
class  searchMessagesFilterVideo
 
class  searchMessagesFilterVoiceNote
 
class  searchMessagesFilterPhotoAndVideo
 
class  searchMessagesFilterUrl
 
class  searchMessagesFilterChatPhoto
 
class  searchMessagesFilterCall
 
class  searchMessagesFilterMissedCall
 
class  searchMessagesFilterVideoNote
 
class  searchMessagesFilterVoiceAndVideoNote
 
class  searchMessagesFilterMention
 
class  searchMessagesFilterUnreadMention
 
class  seconds
 
class  secretChat
 
class  SecretChatState
 
class  secretChatStatePending
 
class  secretChatStateReady
 
class  secretChatStateClosed
 
class  session
 
class  sessions
 
class  shippingOption
 
class  sticker
 
class  stickerEmojis
 
class  stickerSet
 
class  stickerSetInfo
 
class  stickerSets
 
class  stickers
 
class  storageStatistics
 
class  storageStatisticsByChat
 
class  storageStatisticsByFileType
 
class  storageStatisticsFast
 
class  supergroup
 
class  supergroupFullInfo
 
class  SupergroupMembersFilter
 
class  supergroupMembersFilterRecent
 
class  supergroupMembersFilterAdministrators
 
class  supergroupMembersFilterSearch
 
class  supergroupMembersFilterRestricted
 
class  supergroupMembersFilterBanned
 
class  supergroupMembersFilterBots
 
class  tMeUrl
 
class  TMeUrlType
 
class  tMeUrlTypeUser
 
class  tMeUrlTypeSupergroup
 
class  tMeUrlTypeChatInvite
 
class  tMeUrlTypeStickerSet
 
class  tMeUrls
 
class  tdlibParameters
 
class  temporaryPasswordState
 
class  termsOfService
 
class  testBytes
 
class  testInt
 
class  testString
 
class  testVectorInt
 
class  testVectorIntObject
 
class  testVectorString
 
class  testVectorStringObject
 
class  text
 
class  textEntities
 
class  textEntity
 
class  TextEntityType
 
class  textEntityTypeMention
 
class  textEntityTypeHashtag
 
class  textEntityTypeCashtag
 
class  textEntityTypeBotCommand
 
class  textEntityTypeUrl
 
class  textEntityTypeEmailAddress
 
class  textEntityTypeBold
 
class  textEntityTypeItalic
 
class  textEntityTypeCode
 
class  textEntityTypePre
 
class  textEntityTypePreCode
 
class  textEntityTypeTextUrl
 
class  textEntityTypeMentionName
 
class  textEntityTypePhoneNumber
 
class  TextParseMode
 
class  textParseModeMarkdown
 
class  textParseModeHTML
 
class  TopChatCategory
 
class  topChatCategoryUsers
 
class  topChatCategoryBots
 
class  topChatCategoryGroups
 
class  topChatCategoryChannels
 
class  topChatCategoryInlineBots
 
class  topChatCategoryCalls
 
class  Update
 
class  updateAuthorizationState
 
class  updateNewMessage
 
class  updateMessageSendAcknowledged
 
class  updateMessageSendSucceeded
 
class  updateMessageSendFailed
 
class  updateMessageContent
 
class  updateMessageEdited
 
class  updateMessageViews
 
class  updateMessageContentOpened
 
class  updateMessageMentionRead
 
class  updateNewChat
 
class  updateChatTitle
 
class  updateChatPhoto
 
class  updateChatLastMessage
 
class  updateChatOrder
 
class  updateChatIsPinned
 
class  updateChatIsMarkedAsUnread
 
class  updateChatIsSponsored
 
class  updateChatDefaultDisableNotification
 
class  updateChatReadInbox
 
class  updateChatReadOutbox
 
class  updateChatUnreadMentionCount
 
class  updateChatNotificationSettings
 
class  updateScopeNotificationSettings
 
class  updateChatReplyMarkup
 
class  updateChatDraftMessage
 
class  updateDeleteMessages
 
class  updateUserChatAction
 
class  updateUserStatus
 
class  updateUser
 
class  updateBasicGroup
 
class  updateSupergroup
 
class  updateSecretChat
 
class  updateUserFullInfo
 
class  updateBasicGroupFullInfo
 
class  updateSupergroupFullInfo
 
class  updateServiceNotification
 
class  updateFile
 
class  updateFileGenerationStart
 
class  updateFileGenerationStop
 
class  updateCall
 
class  updateUserPrivacySettingRules
 
class  updateUnreadMessageCount
 
class  updateUnreadChatCount
 
class  updateOption
 
class  updateInstalledStickerSets
 
class  updateTrendingStickerSets
 
class  updateRecentStickers
 
class  updateFavoriteStickers
 
class  updateSavedAnimations
 
class  updateLanguagePackStrings
 
class  updateConnectionState
 
class  updateTermsOfService
 
class  updateNewInlineQuery
 
class  updateNewChosenInlineResult
 
class  updateNewCallbackQuery
 
class  updateNewInlineCallbackQuery
 
class  updateNewShippingQuery
 
class  updateNewPreCheckoutQuery
 
class  updateNewCustomEvent
 
class  updateNewCustomQuery
 
class  user
 
class  userFullInfo
 
class  UserPrivacySetting
 
class  userPrivacySettingShowStatus
 
class  userPrivacySettingAllowChatInvites
 
class  userPrivacySettingAllowCalls
 
class  UserPrivacySettingRule
 
class  userPrivacySettingRuleAllowAll
 
class  userPrivacySettingRuleAllowContacts
 
class  userPrivacySettingRuleAllowUsers
 
class  userPrivacySettingRuleRestrictAll
 
class  userPrivacySettingRuleRestrictContacts
 
class  userPrivacySettingRuleRestrictUsers
 
class  userPrivacySettingRules
 
class  userProfilePhotos
 
class  UserStatus
 
class  userStatusEmpty
 
class  userStatusOnline
 
class  userStatusOffline
 
class  userStatusRecently
 
class  userStatusLastWeek
 
class  userStatusLastMonth
 
class  UserType
 
class  userTypeRegular
 
class  userTypeDeleted
 
class  userTypeBot
 
class  userTypeUnknown
 
class  users
 
class  validatedOrderInfo
 
class  venue
 
class  video
 
class  videoNote
 
class  voiceNote
 
class  wallpaper
 
class  wallpapers
 
class  webPage
 
class  webPageInstantView
 
class  acceptCall
 
class  acceptTermsOfService
 
class  addChatMember
 
class  addChatMembers
 
class  addFavoriteSticker
 
class  addLocalMessage
 
class  addNetworkStatistics
 
class  addProxy
 
class  addRecentSticker
 
class  addRecentlyFoundChat
 
class  addSavedAnimation
 
class  addStickerToSet
 
class  answerCallbackQuery
 
class  answerCustomQuery
 
class  answerInlineQuery
 
class  answerPreCheckoutQuery
 
class  answerShippingQuery
 
class  blockUser
 
class  cancelDownloadFile
 
class  cancelUploadFile
 
class  changeChatReportSpamState
 
class  changeImportedContacts
 
class  changePhoneNumber
 
class  changeStickerSet
 
class  checkAuthenticationBotToken
 
class  checkAuthenticationCode
 
class  checkAuthenticationPassword
 
class  checkChangePhoneNumberCode
 
class  checkChatInviteLink
 
class  checkChatUsername
 
class  checkDatabaseEncryptionKey
 
class  checkEmailAddressVerificationCode
 
class  checkPhoneNumberConfirmationCode
 
class  checkPhoneNumberVerificationCode
 
class  cleanFileName
 
class  clearAllDraftMessages
 
class  clearImportedContacts
 
class  clearRecentStickers
 
class  clearRecentlyFoundChats
 
class  close
 
class  closeChat
 
class  closeSecretChat
 
class  createBasicGroupChat
 
class  createCall
 
class  createNewBasicGroupChat
 
class  createNewSecretChat
 
class  createNewStickerSet
 
class  createNewSupergroupChat
 
class  createPrivateChat
 
class  createSecretChat
 
class  createSupergroupChat
 
class  createTemporaryPassword
 
class  deleteAccount
 
class  deleteChatHistory
 
class  deleteChatMessagesFromUser
 
class  deleteChatReplyMarkup
 
class  deleteFile
 
class  deleteLanguagePack
 
class  deleteMessages
 
class  deletePassportElement
 
class  deleteProfilePhoto
 
class  deleteSavedCredentials
 
class  deleteSavedOrderInfo
 
class  deleteSupergroup
 
class  destroy
 
class  disableProxy
 
class  discardCall
 
class  disconnectAllWebsites
 
class  disconnectWebsite
 
class  downloadFile
 
class  editCustomLanguagePackInfo
 
class  editInlineMessageCaption
 
class  editInlineMessageLiveLocation
 
class  editInlineMessageMedia
 
class  editInlineMessageReplyMarkup
 
class  editInlineMessageText
 
class  editMessageCaption
 
class  editMessageLiveLocation
 
class  editMessageMedia
 
class  editMessageReplyMarkup
 
class  editMessageText
 
class  editProxy
 
class  enableProxy
 
class  finishFileGeneration
 
class  forwardMessages
 
class  generateChatInviteLink
 
class  getAccountTtl
 
class  getActiveLiveLocationMessages
 
class  getActiveSessions
 
class  getAllPassportElements
 
class  getArchivedStickerSets
 
class  getAttachedStickerSets
 
class  getAuthorizationState
 
class  getBasicGroup
 
class  getBasicGroupFullInfo
 
class  getBlockedUsers
 
class  getCallbackQueryAnswer
 
class  getChat
 
class  getChatAdministrators
 
class  getChatEventLog
 
class  getChatHistory
 
class  getChatMember
 
class  getChatMessageByDate
 
class  getChatMessageCount
 
class  getChatPinnedMessage
 
class  getChatReportSpamState
 
class  getChats
 
class  getConnectedWebsites
 
class  getContacts
 
class  getCountryCode
 
class  getCreatedPublicChats
 
class  getDeepLinkInfo
 
class  getFavoriteStickers
 
class  getFile
 
class  getFileExtension
 
class  getFileMimeType
 
class  getGameHighScores
 
class  getGroupsInCommon
 
class  getImportedContactCount
 
class  getInlineGameHighScores
 
class  getInlineQueryResults
 
class  getInstalledStickerSets
 
class  getInviteText
 
class  getLanguagePackString
 
class  getLanguagePackStrings
 
class  getLocalizationTargetInfo
 
class  getMapThumbnailFile
 
class  getMe
 
class  getMessage
 
class  getMessages
 
class  getNetworkStatistics
 
class  getOption
 
class  getPassportAuthorizationForm
 
class  getPassportElement
 
class  getPasswordState
 
class  getPaymentForm
 
class  getPaymentReceipt
 
class  getPreferredCountryLanguage
 
class  getProxies
 
class  getProxyLink
 
class  getPublicMessageLink
 
class  getRecentInlineBots
 
class  getRecentStickers
 
class  getRecentlyVisitedTMeUrls
 
class  getRecoveryEmailAddress
 
class  getRemoteFile
 
class  getRepliedMessage
 
class  getSavedAnimations
 
class  getSavedOrderInfo
 
class  getScopeNotificationSettings
 
class  getSecretChat
 
class  getStickerEmojis
 
class  getStickerSet
 
class  getStickers
 
class  getStorageStatistics
 
class  getStorageStatisticsFast
 
class  getSupergroup
 
class  getSupergroupFullInfo
 
class  getSupergroupMembers
 
class  getSupportUser
 
class  getTemporaryPasswordState
 
class  getTextEntities
 
class  getTopChats
 
class  getTrendingStickerSets
 
class  getUser
 
class  getUserFullInfo
 
class  getUserPrivacySettingRules
 
class  getUserProfilePhotos
 
class  getWallpapers
 
class  getWebPageInstantView
 
class  getWebPagePreview
 
class  importContacts
 
class  joinChat
 
class  joinChatByInviteLink
 
class  leaveChat
 
class  logOut
 
class  openChat
 
class  openMessageContent
 
class  optimizeStorage
 
class  parseTextEntities
 
class  pinSupergroupMessage
 
class  pingProxy
 
class  processDcUpdate
 
class  readAllChatMentions
 
class  recoverAuthenticationPassword
 
class  recoverPassword
 
class  registerDevice
 
class  removeContacts
 
class  removeFavoriteSticker
 
class  removeProxy
 
class  removeRecentHashtag
 
class  removeRecentSticker
 
class  removeRecentlyFoundChat
 
class  removeSavedAnimation
 
class  removeStickerFromSet
 
class  removeTopChat
 
class  reorderInstalledStickerSets
 
class  reportChat
 
class  reportSupergroupSpam
 
class  requestAuthenticationPasswordRecovery
 
class  requestPasswordRecovery
 
class  resendAuthenticationCode
 
class  resendChangePhoneNumberCode
 
class  resendEmailAddressVerificationCode
 
class  resendPhoneNumberConfirmationCode
 
class  resendPhoneNumberVerificationCode
 
class  resetAllNotificationSettings
 
class  resetNetworkStatistics
 
class  searchCallMessages
 
class  searchChatMembers
 
class  searchChatMessages
 
class  searchChatRecentLocationMessages
 
class  searchChats
 
class  searchChatsOnServer
 
class  searchContacts
 
class  searchHashtags
 
class  searchInstalledStickerSets
 
class  searchMessages
 
class  searchPublicChat
 
class  searchPublicChats
 
class  searchSecretMessages
 
class  searchStickerSet
 
class  searchStickerSets
 
class  searchStickers
 
class  sendBotStartMessage
 
class  sendCallDebugInformation
 
class  sendCallRating
 
class  sendChatAction
 
class  sendChatScreenshotTakenNotification
 
class  sendChatSetTtlMessage
 
class  sendCustomRequest
 
class  sendEmailAddressVerificationCode
 
class  sendInlineQueryResultMessage
 
class  sendMessage
 
class  sendMessageAlbum
 
class  sendPassportAuthorizationForm
 
class  sendPaymentForm
 
class  sendPhoneNumberConfirmationCode
 
class  sendPhoneNumberVerificationCode
 
class  setAccountTtl
 
class  setAlarm
 
class  setAuthenticationPhoneNumber
 
class  setBio
 
class  setBotUpdatesStatus
 
class  setChatClientData
 
class  setChatDraftMessage
 
class  setChatMemberStatus
 
class  setChatNotificationSettings
 
class  setChatPhoto
 
class  setChatTitle
 
class  setCustomLanguagePack
 
class  setCustomLanguagePackString
 
class  setDatabaseEncryptionKey
 
class  setFileGenerationProgress
 
class  setGameScore
 
class  setInlineGameScore
 
class  setName
 
class  setNetworkType
 
class  setOption
 
class  setPassportElement
 
class  setPassportElementErrors
 
class  setPassword
 
class  setPinnedChats
 
class  setProfilePhoto
 
class  setRecoveryEmailAddress
 
class  setScopeNotificationSettings
 
class  setStickerPositionInSet
 
class  setSupergroupDescription
 
class  setSupergroupStickerSet
 
class  setSupergroupUsername
 
class  setTdlibParameters
 
class  setUserPrivacySettingRules
 
class  setUsername
 
class  terminateAllOtherSessions
 
class  terminateSession
 
class  testCallBytes
 
class  testCallEmpty
 
class  testCallString
 
class  testCallVectorInt
 
class  testCallVectorIntObject
 
class  testCallVectorString
 
class  testCallVectorStringObject
 
class  testGetDifference
 
class  testNetwork
 
class  testSquareInt
 
class  testUseError
 
class  testUseUpdate
 
class  toggleBasicGroupAdministrators
 
class  toggleChatDefaultDisableNotification
 
class  toggleChatIsMarkedAsUnread
 
class  toggleChatIsPinned
 
class  toggleSupergroupInvites
 
class  toggleSupergroupIsAllHistoryAvailable
 
class  toggleSupergroupSignMessages
 
class  unblockUser
 
class  unpinSupergroupMessage
 
class  upgradeBasicGroupChatToSupergroupChat
 
class  uploadFile
 
class  uploadStickerFile
 
class  validateOrderInfo
 
class  viewMessages
 
class  viewTrendingStickerSets
 

Typedefs

using BaseObject = ::td::TlObject
 
template<class Type >
using object_ptr = ::td::tl_object_ptr< Type >
 

Functions

template<class Type , class... Args>
object_ptr< Type > make_object (Args &&... args)
 
template<class ToType , class FromType >
object_ptr< ToType > move_object_as (FromType &&from)
 
std::string to_string (const BaseObject &value)
 
template<class T >
std::string to_string (const object_ptr< T > &value)
 

Typedef Documentation

◆ BaseObject

using BaseObject = ::td::TlObject

This class is a base class for all TDLib API classes and functions.

◆ object_ptr

using object_ptr = ::td::tl_object_ptr<Type>

A smart wrapper to store a pointer to a TDLib API object. Can be treated as an analogue of std::unique_ptr.

Function Documentation

◆ make_object()

object_ptr<Type> td::td_api::make_object ( Args &&...  args)

A function to create a dynamically allocated TDLib API object. Can be treated as an analogue of std::make_unique. Usage example:

auto get_authorization_state_request = td::td_api::make_object<td::td_api::getAuthorizationState>();
auto message_text = td::td_api::make_object<td::td_api::formattedText>("Hello, world!!!",
std::vector<td::td_api::object_ptr<td::td_api::textEntities>>());
auto send_message_request = td::td_api::make_object<td::td_api::sendMessage>(chat_id, 0, false, false, nullptr,
td::td_api::make_object<td::td_api::inputMessageText>(std::move(message_text), false, true));
Template Parameters
TypeType of an object to construct.
Parameters
[in]argsArguments to pass to the object constructor.
Returns
Wrapped pointer to the created object.

◆ move_object_as()

object_ptr<ToType> td::td_api::move_object_as ( FromType &&  from)

A function to cast a wrapped in td::td_api::object_ptr TDLib API object to its subclass or superclass. Casting an object to an incorrect type will lead to undefined bejaviour. Usage example:

switch (call_state->get_id()) {
auto state = td::td_api::move_object_as<td::td_api::callStatePending>(call_state);
// use state
break;
}
// no additional fields, no casting is needed
break;
}
auto state = td::td_api::move_object_as<td::td_api::callStateReady>(call_state);
// use state
break;
}
// no additional fields, no casting is needed
break;
}
auto state = td::td_api::move_object_as<td::td_api::callStateDiscarded>(call_state);
// use state
break;
}
auto state = td::td_api::move_object_as<td::td_api::callStateError>(call_state);
// use state
break;
}
default:
assert(false);
}
Template Parameters
ToTypeType of a TDLib API object to move to.
FromTypeType of a TDLib API object to move from, this is auto-deduced.
Parameters
[in]fromWrapped in td::td_api::object_ptr pointer to a TDLib API object.

◆ to_string() [1/2]

std::string td::td_api::to_string ( const BaseObject value)

Returns a string representation of the TDLib API object.

Parameters
[in]valueThe object.
Returns
Object string representation.

◆ to_string() [2/2]

std::string td::td_api::to_string ( const object_ptr< T > &  value)

Returns a string representation of the TDLib API object.

Template Parameters
TObject type, auto-deduced.
Parameters
[in]valueThe object.
Returns
Object string representation.