From fda70339fa800794e5c58b990f5bcde84fe77a24 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Wed, 2 Nov 2022 10:24:05 +0000 Subject: [PATCH] Update content of files --- data/web/core.telegram.org/tdlib/docs.html | 210 - .../tdlib/docs/td__api_8h.html | 3474 +++++++++++++++++ .../tdlib/docs/td__json__client_8h.html | 502 --- 3 files changed, 3474 insertions(+), 712 deletions(-) delete mode 100644 data/web/core.telegram.org/tdlib/docs.html create mode 100644 data/web/core.telegram.org/tdlib/docs/td__api_8h.html delete mode 100644 data/web/core.telegram.org/tdlib/docs/td__json__client_8h.html diff --git a/data/web/core.telegram.org/tdlib/docs.html b/data/web/core.telegram.org/tdlib/docs.html deleted file mode 100644 index a6dad42d1a..0000000000 --- a/data/web/core.telegram.org/tdlib/docs.html +++ /dev/null @@ -1,210 +0,0 @@ - - - - - - - - -TDLib: TDLib - - - - - - - - - - - - -
-
-
-
- -
-
-
- - - - - - - -
- -
-
- - -
- -
- -
-
-
TDLib
-
-
-

TDLib (Telegram Database library) is a cross-platform library for building Telegram clients. It can be easily used from almost any programming language.

-

Table of Contents

- -

Features

-

TDLib has many advantages. Notably TDLib is:

-
    -
  • Cross-platform: TDLib can be used on Android, iOS, Windows, macOS, Linux, FreeBSD, OpenBSD, NetBSD, illumos, Windows Phone, WebAssembly, watchOS, tvOS, Tizen, Cygwin. It should also work on other *nix systems with or without minimal effort.
  • -
  • Multilanguage: TDLib can be easily used with any programming language that is able to execute C functions. Additionally it already has native Java (using JNI) bindings and .NET (using C++/CLI and C++/CX) bindings.
  • -
  • Easy to use: TDLib takes care of all network implementation details, encryption and local data storage.
  • -
  • High-performance: in the Telegram Bot API, each TDLib instance handles more than 24000 active bots simultaneously.
  • -
  • Well-documented: all TDLib API methods and public interfaces are fully documented.
  • -
  • Consistent: TDLib guarantees that all updates are delivered in the right order.
  • -
  • Reliable: TDLib remains stable on slow and unreliable Internet connections.
  • -
  • Secure: all local data is encrypted using a user-provided encryption key.
  • -
  • Fully-asynchronous: requests to TDLib don't block each other or anything else, responses are sent when they are available.
  • -
-

Examples and documentation

-

See our Getting Started tutorial for a description of basic TDLib concepts.

-

Take a look at our examples.

-

See a TDLib build instructions generator for detailed instructions on how to build TDLib.

-

See description of our JSON, C++, Java and .NET interfaces.

-

See the td_api.tl scheme or the automatically generated HTML documentation for a list of all available TDLib methods and classes.

-

Dependencies

-

TDLib depends on:

-
    -
  • C++14 compatible compiler (Clang 3.4+, GCC 4.9+, MSVC 19.0+ (Visual Studio 2015+), Intel C++ Compiler 17+)
  • -
  • OpenSSL
  • -
  • zlib
  • -
  • gperf (build only)
  • -
  • CMake (3.0.2+, build only)
  • -
  • PHP (optional, for documentation generation)
  • -
-

Building

-

The simplest way to build TDLib is to use our TDLib build instructions generator. You need only to choose your programming language and target operating system to receive complete build instructions.

-

In general, you need to install all TDLib dependencies, enter directory containing TDLib sources and compile them using CMake:

-
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
cmake --build .

To build TDLib on low memory devices you can run SplitSource.php script before compiling main TDLib source code and compile only needed targets:

mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
cmake --build . --target prepare_cross_compiling
cd ..
php SplitSource.php
cd build
cmake --build . --target tdjson
cmake --build . --target tdjson_static
cd ..
php SplitSource.php --undo

In our tests clang 6.0 with libc++ required less than 500 MB of RAM per file and GCC 4.9/6.3 used less than 1 GB of RAM per file.

-

Using in CMake C++ projects

-

For C++ projects that use CMake, the best approach is to build TDLib as part of your project or to install it system-wide.

-

There are several libraries that you could use in your CMake project:

-
    -
  • Td::TdJson, Td::TdJsonStatic — dynamic and static version of a JSON interface. This has a simple C interface, so it can be easily used with any programming language that is able to execute C functions. See td_json_client documentation for more information.
  • -
  • Td::TdStatic — static library with C++ interface for general usage. See ClientManager and Client documentation for more information.
  • -
-

For example, part of your CMakeLists.txt may look like this:

add_subdirectory(td)
target_link_libraries(YourTarget PRIVATE Td::TdStatic)

Or you could install TDLib and then reference it in your CMakeLists.txt like this:

find_package(Td 1.8.0 REQUIRED)
target_link_libraries(YourTarget PRIVATE Td::TdStatic)

See example/cpp/CMakeLists.txt.

-

Using in Java projects

-

TDLib provides native Java interface through JNI. To enable it, specify option -DTD_ENABLE_JNI=ON to CMake.

-

See example/java for example of using TDLib from Java and detailed build and usage instructions.

-

Using in .NET projects

-

TDLib provides native .NET interface through C++/CLI and C++/CX. To enable it, specify option -DTD_ENABLE_DOTNET=ON to CMake. .NET Core supports C++/CLI only since version 3.1 and only on Windows, so if older .NET Core is used or portability is needed, then TDLib JSON interface should be used through P/Invoke instead.

-

See example/csharp for example of using TDLib from C# and detailed build and usage instructions. See example/uwp for example of using TDLib from C# UWP application and detailed build and usage instructions for Visual Studio Extension "TDLib for Universal Windows Platform".

-

When TDLib is built with TD_ENABLE_DOTNET option enabled, C++ documentation is removed from some files. You need to checkout these files to return C++ documentation back:

git checkout td/telegram/Client.h td/telegram/Log.h td/tl/TlObject.h

Using from other programming languages

-

TDLib provides efficient native C++, Java, and .NET interfaces. But for most use cases we suggest to use the JSON interface, which can be easily used with any programming language that is able to execute C functions. See td_json_client documentation for detailed JSON interface description, the td_api.tl scheme or the automatically generated HTML documentation for a list of all available TDLib methods and classes.

-

TDLib JSON interface adheres to semantic versioning and versions with the same major version number are binary and backward compatible, but the underlying TDLib API can be different for different minor and even patch versions. If you need to support different TDLib versions, then you can use a value of the version option to find exact TDLib version to use appropriate API methods.

-

See example/python/tdjson_example.py for an example of such usage.

-

License

-

TDLib is licensed under the terms of the Boost Software License. See LICENSE_1_0.txt for more information.

-
-
- - - - - - - diff --git a/data/web/core.telegram.org/tdlib/docs/td__api_8h.html b/data/web/core.telegram.org/tdlib/docs/td__api_8h.html new file mode 100644 index 0000000000..fe0dbfe185 --- /dev/null +++ b/data/web/core.telegram.org/tdlib/docs/td__api_8h.html @@ -0,0 +1,3474 @@ + + + + + + + + +TDLib: td/generate/auto/td/telegram/td_api.h File Reference + + + + + + + + + + + + +
+
+
+
+ +
+
+
+ + + + + + + + +
+
+ + +
+ +
+ + +
+
+ +
+
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  animatedChatPhoto
 
class  animatedEmoji
 
class  animation
 
class  animations
 
class  audio
 
class  authenticationCodeInfo
 
class  AuthenticationCodeType
 
class  authenticationCodeTypeTelegramMessage
 
class  authenticationCodeTypeSms
 
class  authenticationCodeTypeCall
 
class  authenticationCodeTypeFlashCall
 
class  authenticationCodeTypeMissedCall
 
class  AuthorizationState
 
class  authorizationStateWaitTdlibParameters
 
class  authorizationStateWaitEncryptionKey
 
class  authorizationStateWaitPhoneNumber
 
class  authorizationStateWaitCode
 
class  authorizationStateWaitOtherDeviceConfirmation
 
class  authorizationStateWaitRegistration
 
class  authorizationStateWaitPassword
 
class  authorizationStateReady
 
class  authorizationStateLoggingOut
 
class  authorizationStateClosing
 
class  authorizationStateClosed
 
class  autoDownloadSettings
 
class  autoDownloadSettingsPresets
 
class  background
 
class  BackgroundFill
 
class  backgroundFillSolid
 
class  backgroundFillGradient
 
class  backgroundFillFreeformGradient
 
class  BackgroundType
 
class  backgroundTypeWallpaper
 
class  backgroundTypePattern
 
class  backgroundTypeFill
 
class  backgrounds
 
class  bankCardActionOpenUrl
 
class  bankCardInfo
 
class  basicGroup
 
class  basicGroupFullInfo
 
class  botCommand
 
class  BotCommandScope
 
class  botCommandScopeDefault
 
class  botCommandScopeAllPrivateChats
 
class  botCommandScopeAllGroupChats
 
class  botCommandScopeAllChatAdministrators
 
class  botCommandScopeChat
 
class  botCommandScopeChatAdministrators
 
class  botCommandScopeChatMember
 
class  botCommands
 
class  call
 
class  CallDiscardReason
 
class  callDiscardReasonEmpty
 
class  callDiscardReasonMissed
 
class  callDiscardReasonDeclined
 
class  callDiscardReasonDisconnected
 
class  callDiscardReasonHungUp
 
class  callId
 
class  CallProblem
 
class  callProblemEcho
 
class  callProblemNoise
 
class  callProblemInterruptions
 
class  callProblemDistortedSpeech
 
class  callProblemSilentLocal
 
class  callProblemSilentRemote
 
class  callProblemDropped
 
class  callProblemDistortedVideo
 
class  callProblemPixelatedVideo
 
class  callProtocol
 
class  callServer
 
class  CallServerType
 
class  callServerTypeTelegramReflector
 
class  callServerTypeWebrtc
 
class  CallState
 
class  callStatePending
 
class  callStateExchangingKeys
 
class  callStateReady
 
class  callStateHangingUp
 
class  callStateDiscarded
 
class  callStateError
 
class  callbackQueryAnswer
 
class  CallbackQueryPayload
 
class  callbackQueryPayloadData
 
class  callbackQueryPayloadDataWithPassword
 
class  callbackQueryPayloadGame
 
class  CanTransferOwnershipResult
 
class  canTransferOwnershipResultOk
 
class  canTransferOwnershipResultPasswordNeeded
 
class  canTransferOwnershipResultPasswordTooFresh
 
class  canTransferOwnershipResultSessionTooFresh
 
class  chat
 
class  ChatAction
 
class  chatActionTyping
 
class  chatActionRecordingVideo
 
class  chatActionUploadingVideo
 
class  chatActionRecordingVoiceNote
 
class  chatActionUploadingVoiceNote
 
class  chatActionUploadingPhoto
 
class  chatActionUploadingDocument
 
class  chatActionChoosingSticker
 
class  chatActionChoosingLocation
 
class  chatActionChoosingContact
 
class  chatActionStartPlayingGame
 
class  chatActionRecordingVideoNote
 
class  chatActionUploadingVideoNote
 
class  chatActionWatchingAnimations
 
class  chatActionCancel
 
class  ChatActionBar
 
class  chatActionBarReportSpam
 
class  chatActionBarReportUnrelatedLocation
 
class  chatActionBarInviteMembers
 
class  chatActionBarReportAddBlock
 
class  chatActionBarAddContact
 
class  chatActionBarSharePhoneNumber
 
class  chatActionBarJoinRequest
 
class  chatAdministrator
 
class  chatAdministrators
 
class  chatEvent
 
class  ChatEventAction
 
class  chatEventMessageEdited
 
class  chatEventMessageDeleted
 
class  chatEventPollStopped
 
class  chatEventMessagePinned
 
class  chatEventMessageUnpinned
 
class  chatEventMemberJoined
 
class  chatEventMemberJoinedByInviteLink
 
class  chatEventMemberJoinedByRequest
 
class  chatEventMemberLeft
 
class  chatEventMemberInvited
 
class  chatEventMemberPromoted
 
class  chatEventMemberRestricted
 
class  chatEventTitleChanged
 
class  chatEventPermissionsChanged
 
class  chatEventDescriptionChanged
 
class  chatEventUsernameChanged
 
class  chatEventPhotoChanged
 
class  chatEventInvitesToggled
 
class  chatEventLinkedChatChanged
 
class  chatEventSlowModeDelayChanged
 
class  chatEventMessageTtlChanged
 
class  chatEventSignMessagesToggled
 
class  chatEventHasProtectedContentToggled
 
class  chatEventStickerSetChanged
 
class  chatEventLocationChanged
 
class  chatEventIsAllHistoryAvailableToggled
 
class  chatEventInviteLinkEdited
 
class  chatEventInviteLinkRevoked
 
class  chatEventInviteLinkDeleted
 
class  chatEventVideoChatCreated
 
class  chatEventVideoChatEnded
 
class  chatEventVideoChatParticipantIsMutedToggled
 
class  chatEventVideoChatParticipantVolumeLevelChanged
 
class  chatEventVideoChatMuteNewParticipantsToggled
 
class  chatEventLogFilters
 
class  chatEvents
 
class  chatFilter
 
class  chatFilterInfo
 
class  chatInviteLink
 
class  chatInviteLinkCount
 
class  chatInviteLinkCounts
 
class  chatInviteLinkInfo
 
class  chatInviteLinkMember
 
class  chatInviteLinkMembers
 
class  chatInviteLinks
 
class  chatJoinRequest
 
class  chatJoinRequests
 
class  chatJoinRequestsInfo
 
class  ChatList
 
class  chatListMain
 
class  chatListArchive
 
class  chatListFilter
 
class  chatLists
 
class  chatLocation
 
class  chatMember
 
class  ChatMemberStatus
 
class  chatMemberStatusCreator
 
class  chatMemberStatusAdministrator
 
class  chatMemberStatusMember
 
class  chatMemberStatusRestricted
 
class  chatMemberStatusLeft
 
class  chatMemberStatusBanned
 
class  chatMembers
 
class  ChatMembersFilter
 
class  chatMembersFilterContacts
 
class  chatMembersFilterAdministrators
 
class  chatMembersFilterMembers
 
class  chatMembersFilterMention
 
class  chatMembersFilterRestricted
 
class  chatMembersFilterBanned
 
class  chatMembersFilterBots
 
class  chatNearby
 
class  chatNotificationSettings
 
class  chatPermissions
 
class  chatPhoto
 
class  chatPhotoInfo
 
class  chatPhotos
 
class  chatPosition
 
class  ChatReportReason
 
class  chatReportReasonSpam
 
class  chatReportReasonViolence
 
class  chatReportReasonPornography
 
class  chatReportReasonChildAbuse
 
class  chatReportReasonCopyright
 
class  chatReportReasonUnrelatedLocation
 
class  chatReportReasonFake
 
class  chatReportReasonCustom
 
class  ChatSource
 
class  chatSourceMtprotoProxy
 
class  chatSourcePublicServiceAnnouncement
 
class  ChatStatistics
 
class  chatStatisticsSupergroup
 
class  chatStatisticsChannel
 
class  chatStatisticsAdministratorActionsInfo
 
class  chatStatisticsInviterInfo
 
class  chatStatisticsMessageInteractionInfo
 
class  chatStatisticsMessageSenderInfo
 
class  chatTheme
 
class  ChatType
 
class  chatTypePrivate
 
class  chatTypeBasicGroup
 
class  chatTypeSupergroup
 
class  chatTypeSecret
 
class  chats
 
class  chatsNearby
 
class  CheckChatUsernameResult
 
class  checkChatUsernameResultOk
 
class  checkChatUsernameResultUsernameInvalid
 
class  checkChatUsernameResultUsernameOccupied
 
class  checkChatUsernameResultPublicChatsTooMuch
 
class  checkChatUsernameResultPublicGroupsUnavailable
 
class  CheckStickerSetNameResult
 
class  checkStickerSetNameResultOk
 
class  checkStickerSetNameResultNameInvalid
 
class  checkStickerSetNameResultNameOccupied
 
class  closedVectorPath
 
class  connectedWebsite
 
class  connectedWebsites
 
class  ConnectionState
 
class  connectionStateWaitingForNetwork
 
class  connectionStateConnectingToProxy
 
class  connectionStateConnecting
 
class  connectionStateUpdating
 
class  connectionStateReady
 
class  contact
 
class  count
 
class  countries
 
class  countryInfo
 
class  customRequestResult
 
class  databaseStatistics
 
class  date
 
class  dateRange
 
class  datedFile
 
class  deepLinkInfo
 
class  DeviceToken
 
class  deviceTokenFirebaseCloudMessaging
 
class  deviceTokenApplePush
 
class  deviceTokenApplePushVoIP
 
class  deviceTokenWindowsPush
 
class  deviceTokenMicrosoftPush
 
class  deviceTokenMicrosoftPushVoIP
 
class  deviceTokenWebPush
 
class  deviceTokenSimplePush
 
class  deviceTokenUbuntuPush
 
class  deviceTokenBlackBerryPush
 
class  deviceTokenTizenPush
 
class  DiceStickers
 
class  diceStickersRegular
 
class  diceStickersSlotMachine
 
class  document
 
class  draftMessage
 
class  emailAddressAuthenticationCodeInfo
 
class  emojis
 
class  encryptedCredentials
 
class  encryptedPassportElement
 
class  error
 
class  file
 
class  filePart
 
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  groupCall
 
class  groupCallId
 
class  groupCallParticipant
 
class  groupCallParticipantVideoInfo
 
class  groupCallRecentSpeaker
 
class  GroupCallVideoQuality
 
class  groupCallVideoQualityThumbnail
 
class  groupCallVideoQualityMedium
 
class  groupCallVideoQualityFull
 
class  groupCallVideoSourceGroup
 
class  hashtags
 
class  httpUrl
 
class  identityDocument
 
class  importedContacts
 
class  inlineKeyboardButton
 
class  InlineKeyboardButtonType
 
class  inlineKeyboardButtonTypeUrl
 
class  inlineKeyboardButtonTypeLoginUrl
 
class  inlineKeyboardButtonTypeCallback
 
class  inlineKeyboardButtonTypeCallbackWithPassword
 
class  inlineKeyboardButtonTypeCallbackGame
 
class  inlineKeyboardButtonTypeSwitchInline
 
class  inlineKeyboardButtonTypeBuy
 
class  inlineKeyboardButtonTypeUser
 
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  InputBackground
 
class  inputBackgroundLocal
 
class  inputBackgroundRemote
 
class  InputChatPhoto
 
class  inputChatPhotoPrevious
 
class  inputChatPhotoStatic
 
class  inputChatPhotoAnimation
 
class  InputCredentials
 
class  inputCredentialsSaved
 
class  inputCredentialsNew
 
class  inputCredentialsApplePay
 
class  inputCredentialsGooglePay
 
class  InputFile
 
class  inputFileId
 
class  inputFileRemote
 
class  inputFileLocal
 
class  inputFileGenerated
 
class  inputIdentityDocument
 
class  InputInlineQueryResult
 
class  inputInlineQueryResultAnimation
 
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  inputMessageDice
 
class  inputMessageGame
 
class  inputMessageInvoice
 
class  inputMessagePoll
 
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  inputStickerStatic
 
class  inputStickerAnimated
 
class  inputThumbnail
 
class  InternalLinkType
 
class  internalLinkTypeActiveSessions
 
class  internalLinkTypeAuthenticationCode
 
class  internalLinkTypeBackground
 
class  internalLinkTypeBotStart
 
class  internalLinkTypeBotStartInGroup
 
class  internalLinkTypeChangePhoneNumber
 
class  internalLinkTypeChatInvite
 
class  internalLinkTypeFilterSettings
 
class  internalLinkTypeGame
 
class  internalLinkTypeLanguagePack
 
class  internalLinkTypeMessage
 
class  internalLinkTypeMessageDraft
 
class  internalLinkTypePassportDataRequest
 
class  internalLinkTypePhoneNumberConfirmation
 
class  internalLinkTypeProxy
 
class  internalLinkTypePublicChat
 
class  internalLinkTypeQrCodeAuthentication
 
class  internalLinkTypeSettings
 
class  internalLinkTypeStickerSet
 
class  internalLinkTypeTheme
 
class  internalLinkTypeThemeSettings
 
class  internalLinkTypeUnknownDeepLink
 
class  internalLinkTypeUnsupportedProxy
 
class  internalLinkTypeVideoChat
 
class  invoice
 
class  jsonObjectMember
 
class  JsonValue
 
class  jsonValueNull
 
class  jsonValueBoolean
 
class  jsonValueNumber
 
class  jsonValueString
 
class  jsonValueArray
 
class  jsonValueObject
 
class  keyboardButton
 
class  KeyboardButtonType
 
class  keyboardButtonTypeText
 
class  keyboardButtonTypeRequestPhoneNumber
 
class  keyboardButtonTypeRequestLocation
 
class  keyboardButtonTypeRequestPoll
 
class  labeledPricePart
 
class  languagePackInfo
 
class  languagePackString
 
class  LanguagePackStringValue
 
class  languagePackStringValueOrdinary
 
class  languagePackStringValuePluralized
 
class  languagePackStringValueDeleted
 
class  languagePackStrings
 
class  localFile
 
class  localizationTargetInfo
 
class  location
 
class  LogStream
 
class  logStreamDefault
 
class  logStreamFile
 
class  logStreamEmpty
 
class  logTags
 
class  logVerbosityLevel
 
class  LoginUrlInfo
 
class  loginUrlInfoOpen
 
class  loginUrlInfoRequestConfirmation
 
class  MaskPoint
 
class  maskPointForehead
 
class  maskPointEyes
 
class  maskPointMouth
 
class  maskPointChin
 
class  maskPosition
 
class  message
 
class  messageCalendar
 
class  messageCalendarDay
 
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  messageAnimatedEmoji
 
class  messageDice
 
class  messageGame
 
class  messagePoll
 
class  messageInvoice
 
class  messageCall
 
class  messageVideoChatScheduled
 
class  messageVideoChatStarted
 
class  messageVideoChatEnded
 
class  messageInviteVideoChatParticipants
 
class  messageBasicGroupChatCreate
 
class  messageSupergroupChatCreate
 
class  messageChatChangeTitle
 
class  messageChatChangePhoto
 
class  messageChatDeletePhoto
 
class  messageChatAddMembers
 
class  messageChatJoinByLink
 
class  messageChatJoinByRequest
 
class  messageChatDeleteMember
 
class  messageChatUpgradeTo
 
class  messageChatUpgradeFrom
 
class  messagePinMessage
 
class  messageScreenshotTaken
 
class  messageChatSetTheme
 
class  messageChatSetTtl
 
class  messageCustomServiceAction
 
class  messageGameScore
 
class  messagePaymentSuccessful
 
class  messagePaymentSuccessfulBot
 
class  messageContactRegistered
 
class  messageWebsiteConnected
 
class  messagePassportDataSent
 
class  messagePassportDataReceived
 
class  messageProximityAlertTriggered
 
class  messageUnsupported
 
class  messageCopyOptions
 
class  MessageFileType
 
class  messageFileTypePrivate
 
class  messageFileTypeGroup
 
class  messageFileTypeUnknown
 
class  messageForwardInfo
 
class  MessageForwardOrigin
 
class  messageForwardOriginUser
 
class  messageForwardOriginChat
 
class  messageForwardOriginHiddenUser
 
class  messageForwardOriginChannel
 
class  messageForwardOriginMessageImport
 
class  messageInteractionInfo
 
class  messageLink
 
class  messageLinkInfo
 
class  messagePosition
 
class  messagePositions
 
class  messageReplyInfo
 
class  MessageSchedulingState
 
class  messageSchedulingStateSendAtDate
 
class  messageSchedulingStateSendWhenOnline
 
class  messageSendOptions
 
class  MessageSender
 
class  messageSenderUser
 
class  messageSenderChat
 
class  messageSenders
 
class  MessageSendingState
 
class  messageSendingStatePending
 
class  messageSendingStateFailed
 
class  messageStatistics
 
class  messageThreadInfo
 
class  messages
 
class  minithumbnail
 
class  networkStatistics
 
class  NetworkStatisticsEntry
 
class  networkStatisticsEntryFile
 
class  networkStatisticsEntryCall
 
class  NetworkType
 
class  networkTypeNone
 
class  networkTypeMobile
 
class  networkTypeMobileRoaming
 
class  networkTypeWiFi
 
class  networkTypeOther
 
class  notification
 
class  notificationGroup
 
class  NotificationGroupType
 
class  notificationGroupTypeMessages
 
class  notificationGroupTypeMentions
 
class  notificationGroupTypeSecretChat
 
class  notificationGroupTypeCalls
 
class  NotificationSettingsScope
 
class  notificationSettingsScopePrivateChats
 
class  notificationSettingsScopeGroupChats
 
class  notificationSettingsScopeChannelChats
 
class  NotificationType
 
class  notificationTypeNewMessage
 
class  notificationTypeNewSecretChat
 
class  notificationTypeNewCall
 
class  notificationTypeNewPushMessage
 
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  pageBlockKicker
 
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  pageBlockVoiceNote
 
class  pageBlockCover
 
class  pageBlockEmbedded
 
class  pageBlockEmbeddedPost
 
class  pageBlockCollage
 
class  pageBlockSlideshow
 
class  pageBlockChatLink
 
class  pageBlockTable
 
class  pageBlockDetails
 
class  pageBlockRelatedArticles
 
class  pageBlockMap
 
class  pageBlockCaption
 
class  PageBlockHorizontalAlignment
 
class  pageBlockHorizontalAlignmentLeft
 
class  pageBlockHorizontalAlignmentCenter
 
class  pageBlockHorizontalAlignmentRight
 
class  pageBlockListItem
 
class  pageBlockRelatedArticle
 
class  pageBlockTableCell
 
class  PageBlockVerticalAlignment
 
class  pageBlockVerticalAlignmentTop
 
class  pageBlockVerticalAlignmentMiddle
 
class  pageBlockVerticalAlignmentBottom
 
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  passportElementsWithErrors
 
class  passportRequiredElement
 
class  passportSuitableElement
 
class  passwordState
 
class  paymentForm
 
class  paymentFormTheme
 
class  paymentReceipt
 
class  paymentResult
 
class  paymentsProviderStripe
 
class  personalDetails
 
class  personalDocument
 
class  phoneNumberAuthenticationSettings
 
class  phoneNumberInfo
 
class  photo
 
class  photoSize
 
class  point
 
class  poll
 
class  pollOption
 
class  PollType
 
class  pollTypeRegular
 
class  pollTypeQuiz
 
class  profilePhoto
 
class  proxies
 
class  proxy
 
class  ProxyType
 
class  proxyTypeSocks5
 
class  proxyTypeHttp
 
class  proxyTypeMtproto
 
class  PublicChatType
 
class  publicChatTypeHasUsername
 
class  publicChatTypeIsLocationBased
 
class  PushMessageContent
 
class  pushMessageContentHidden
 
class  pushMessageContentAnimation
 
class  pushMessageContentAudio
 
class  pushMessageContentContact
 
class  pushMessageContentContactRegistered
 
class  pushMessageContentDocument
 
class  pushMessageContentGame
 
class  pushMessageContentGameScore
 
class  pushMessageContentInvoice
 
class  pushMessageContentLocation
 
class  pushMessageContentPhoto
 
class  pushMessageContentPoll
 
class  pushMessageContentScreenshotTaken
 
class  pushMessageContentSticker
 
class  pushMessageContentText
 
class  pushMessageContentVideo
 
class  pushMessageContentVideoNote
 
class  pushMessageContentVoiceNote
 
class  pushMessageContentBasicGroupChatCreate
 
class  pushMessageContentChatAddMembers
 
class  pushMessageContentChatChangePhoto
 
class  pushMessageContentChatChangeTitle
 
class  pushMessageContentChatSetTheme
 
class  pushMessageContentChatDeleteMember
 
class  pushMessageContentChatJoinByLink
 
class  pushMessageContentChatJoinByRequest
 
class  pushMessageContentMessageForwards
 
class  pushMessageContentMediaAlbum
 
class  pushReceiverId
 
class  recommendedChatFilter
 
class  recommendedChatFilters
 
class  recoveryEmailAddress
 
class  remoteFile
 
class  ReplyMarkup
 
class  replyMarkupRemoveKeyboard
 
class  replyMarkupForceReply
 
class  replyMarkupShowKeyboard
 
class  replyMarkupInlineKeyboard
 
class  ResetPasswordResult
 
class  resetPasswordResultOk
 
class  resetPasswordResultPending
 
class  resetPasswordResultDeclined
 
class  RichText
 
class  richTextPlain
 
class  richTextBold
 
class  richTextItalic
 
class  richTextUnderline
 
class  richTextStrikethrough
 
class  richTextFixed
 
class  richTextUrl
 
class  richTextEmailAddress
 
class  richTextSubscript
 
class  richTextSuperscript
 
class  richTextMarked
 
class  richTextPhoneNumber
 
class  richTextIcon
 
class  richTextReference
 
class  richTextAnchor
 
class  richTextAnchorLink
 
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  searchMessagesFilterVideoNote
 
class  searchMessagesFilterVoiceAndVideoNote
 
class  searchMessagesFilterMention
 
class  searchMessagesFilterUnreadMention
 
class  searchMessagesFilterFailedToSend
 
class  searchMessagesFilterPinned
 
class  seconds
 
class  secretChat
 
class  SecretChatState
 
class  secretChatStatePending
 
class  secretChatStateReady
 
class  secretChatStateClosed
 
class  session
 
class  sessions
 
class  shippingOption
 
class  sponsoredMessage
 
class  StatisticalGraph
 
class  statisticalGraphData
 
class  statisticalGraphAsync
 
class  statisticalGraphError
 
class  statisticalValue
 
class  sticker
 
class  stickerSet
 
class  stickerSetInfo
 
class  stickerSets
 
class  stickers
 
class  storageStatistics
 
class  storageStatisticsByChat
 
class  storageStatisticsByFileType
 
class  storageStatisticsFast
 
class  SuggestedAction
 
class  suggestedActionEnableArchiveAndMuteNewChats
 
class  suggestedActionCheckPassword
 
class  suggestedActionCheckPhoneNumber
 
class  suggestedActionViewChecksHint
 
class  suggestedActionConvertToBroadcastGroup
 
class  suggestedActionSetPassword
 
class  supergroup
 
class  supergroupFullInfo
 
class  SupergroupMembersFilter
 
class  supergroupMembersFilterRecent
 
class  supergroupMembersFilterContacts
 
class  supergroupMembersFilterAdministrators
 
class  supergroupMembersFilterSearch
 
class  supergroupMembersFilterRestricted
 
class  supergroupMembersFilterBanned
 
class  supergroupMembersFilterMention
 
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  textEntityTypePhoneNumber
 
class  textEntityTypeBankCardNumber
 
class  textEntityTypeBold
 
class  textEntityTypeItalic
 
class  textEntityTypeUnderline
 
class  textEntityTypeStrikethrough
 
class  textEntityTypeCode
 
class  textEntityTypePre
 
class  textEntityTypePreCode
 
class  textEntityTypeTextUrl
 
class  textEntityTypeMentionName
 
class  textEntityTypeMediaTimestamp
 
class  TextParseMode
 
class  textParseModeMarkdown
 
class  textParseModeHTML
 
class  themeSettings
 
class  thumbnail
 
class  ThumbnailFormat
 
class  thumbnailFormatJpeg
 
class  thumbnailFormatPng
 
class  thumbnailFormatWebp
 
class  thumbnailFormatGif
 
class  thumbnailFormatTgs
 
class  thumbnailFormatMpeg4
 
class  TopChatCategory
 
class  topChatCategoryUsers
 
class  topChatCategoryBots
 
class  topChatCategoryGroups
 
class  topChatCategoryChannels
 
class  topChatCategoryInlineBots
 
class  topChatCategoryCalls
 
class  topChatCategoryForwardChats
 
class  Update
 
class  updateAuthorizationState
 
class  updateNewMessage
 
class  updateMessageSendAcknowledged
 
class  updateMessageSendSucceeded
 
class  updateMessageSendFailed
 
class  updateMessageContent
 
class  updateMessageEdited
 
class  updateMessageIsPinned
 
class  updateMessageInteractionInfo
 
class  updateMessageContentOpened
 
class  updateMessageMentionRead
 
class  updateMessageLiveLocationViewed
 
class  updateNewChat
 
class  updateChatTitle
 
class  updateChatPhoto
 
class  updateChatPermissions
 
class  updateChatLastMessage
 
class  updateChatPosition
 
class  updateChatReadInbox
 
class  updateChatReadOutbox
 
class  updateChatActionBar
 
class  updateChatDraftMessage
 
class  updateChatMessageSender
 
class  updateChatMessageTtl
 
class  updateChatNotificationSettings
 
class  updateChatPendingJoinRequests
 
class  updateChatReplyMarkup
 
class  updateChatTheme
 
class  updateChatUnreadMentionCount
 
class  updateChatVideoChat
 
class  updateChatDefaultDisableNotification
 
class  updateChatHasProtectedContent
 
class  updateChatHasScheduledMessages
 
class  updateChatIsBlocked
 
class  updateChatIsMarkedAsUnread
 
class  updateChatFilters
 
class  updateChatOnlineMemberCount
 
class  updateScopeNotificationSettings
 
class  updateNotification
 
class  updateNotificationGroup
 
class  updateActiveNotifications
 
class  updateHavePendingNotifications
 
class  updateDeleteMessages
 
class  updateChatAction
 
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  updateGroupCall
 
class  updateGroupCallParticipant
 
class  updateNewCallSignalingData
 
class  updateUserPrivacySettingRules
 
class  updateUnreadMessageCount
 
class  updateUnreadChatCount
 
class  updateOption
 
class  updateStickerSet
 
class  updateInstalledStickerSets
 
class  updateTrendingStickerSets
 
class  updateRecentStickers
 
class  updateFavoriteStickers
 
class  updateSavedAnimations
 
class  updateSelectedBackground
 
class  updateChatThemes
 
class  updateLanguagePackStrings
 
class  updateConnectionState
 
class  updateTermsOfService
 
class  updateUsersNearby
 
class  updateDiceEmojis
 
class  updateAnimatedEmojiMessageClicked
 
class  updateAnimationSearchParameters
 
class  updateSuggestedActions
 
class  updateNewInlineQuery
 
class  updateNewChosenInlineResult
 
class  updateNewCallbackQuery
 
class  updateNewInlineCallbackQuery
 
class  updateNewShippingQuery
 
class  updateNewPreCheckoutQuery
 
class  updateNewCustomEvent
 
class  updateNewCustomQuery
 
class  updatePoll
 
class  updatePollAnswer
 
class  updateChatMember
 
class  updateNewChatJoinRequest
 
class  updates
 
class  user
 
class  userFullInfo
 
class  UserPrivacySetting
 
class  userPrivacySettingShowStatus
 
class  userPrivacySettingShowProfilePhoto
 
class  userPrivacySettingShowLinkInForwardedMessages
 
class  userPrivacySettingShowPhoneNumber
 
class  userPrivacySettingAllowChatInvites
 
class  userPrivacySettingAllowCalls
 
class  userPrivacySettingAllowPeerToPeerCalls
 
class  userPrivacySettingAllowFindingByPhoneNumber
 
class  UserPrivacySettingRule
 
class  userPrivacySettingRuleAllowAll
 
class  userPrivacySettingRuleAllowContacts
 
class  userPrivacySettingRuleAllowUsers
 
class  userPrivacySettingRuleAllowChatMembers
 
class  userPrivacySettingRuleRestrictAll
 
class  userPrivacySettingRuleRestrictContacts
 
class  userPrivacySettingRuleRestrictUsers
 
class  userPrivacySettingRuleRestrictChatMembers
 
class  userPrivacySettingRules
 
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  VectorPathCommand
 
class  vectorPathCommandLine
 
class  vectorPathCommandCubicBezierCurve
 
class  venue
 
class  video
 
class  videoChat
 
class  videoNote
 
class  voiceNote
 
class  webPage
 
class  webPageInstantView
 
class  acceptCall
 
class  acceptTermsOfService
 
class  addChatMember
 
class  addChatMembers
 
class  addChatToList
 
class  addContact
 
class  addCustomServerLanguagePack
 
class  addFavoriteSticker
 
class  addLocalMessage
 
class  addLogMessage
 
class  addNetworkStatistics
 
class  addProxy
 
class  addRecentSticker
 
class  addRecentlyFoundChat
 
class  addSavedAnimation
 
class  addStickerToSet
 
class  answerCallbackQuery
 
class  answerCustomQuery
 
class  answerInlineQuery
 
class  answerPreCheckoutQuery
 
class  answerShippingQuery
 
class  banChatMember
 
class  blockMessageSenderFromReplies
 
class  canTransferOwnership
 
class  cancelDownloadFile
 
class  cancelPasswordReset
 
class  cancelUploadFile
 
class  changeImportedContacts
 
class  changePhoneNumber
 
class  changeStickerSet
 
class  checkAuthenticationBotToken
 
class  checkAuthenticationCode
 
class  checkAuthenticationPassword
 
class  checkAuthenticationPasswordRecoveryCode
 
class  checkChangePhoneNumberCode
 
class  checkChatInviteLink
 
class  checkChatUsername
 
class  checkCreatedPublicChatsLimit
 
class  checkDatabaseEncryptionKey
 
class  checkEmailAddressVerificationCode
 
class  checkPasswordRecoveryCode
 
class  checkPhoneNumberConfirmationCode
 
class  checkPhoneNumberVerificationCode
 
class  checkRecoveryEmailAddressCode
 
class  checkStickerSetName
 
class  cleanFileName
 
class  clearAllDraftMessages
 
class  clearImportedContacts
 
class  clearRecentStickers
 
class  clearRecentlyFoundChats
 
class  clickAnimatedEmojiMessage
 
class  close
 
class  closeChat
 
class  closeSecretChat
 
class  confirmQrCodeAuthentication
 
class  createBasicGroupChat
 
class  createCall
 
class  createChatFilter
 
class  createChatInviteLink
 
class  createNewBasicGroupChat
 
class  createNewSecretChat
 
class  createNewStickerSet
 
class  createNewSupergroupChat
 
class  createPrivateChat
 
class  createSecretChat
 
class  createSupergroupChat
 
class  createTemporaryPassword
 
class  createVideoChat
 
class  deleteAccount
 
class  deleteAllCallMessages
 
class  deleteAllRevokedChatInviteLinks
 
class  deleteChat
 
class  deleteChatFilter
 
class  deleteChatHistory
 
class  deleteChatMessagesByDate
 
class  deleteChatMessagesBySender
 
class  deleteChatReplyMarkup
 
class  deleteCommands
 
class  deleteFile
 
class  deleteLanguagePack
 
class  deleteMessages
 
class  deletePassportElement
 
class  deleteProfilePhoto
 
class  deleteRevokedChatInviteLink
 
class  deleteSavedCredentials
 
class  deleteSavedOrderInfo
 
class  destroy
 
class  disableProxy
 
class  discardCall
 
class  disconnectAllWebsites
 
class  disconnectWebsite
 
class  downloadFile
 
class  editChatFilter
 
class  editChatInviteLink
 
class  editCustomLanguagePackInfo
 
class  editInlineMessageCaption
 
class  editInlineMessageLiveLocation
 
class  editInlineMessageMedia
 
class  editInlineMessageReplyMarkup
 
class  editInlineMessageText
 
class  editMessageCaption
 
class  editMessageLiveLocation
 
class  editMessageMedia
 
class  editMessageReplyMarkup
 
class  editMessageSchedulingState
 
class  editMessageText
 
class  editProxy
 
class  enableProxy
 
class  endGroupCall
 
class  endGroupCallRecording
 
class  endGroupCallScreenSharing
 
class  finishFileGeneration
 
class  forwardMessages
 
class  getAccountTtl
 
class  getActiveLiveLocationMessages
 
class  getActiveSessions
 
class  getAllPassportElements
 
class  getAnimatedEmoji
 
class  getApplicationConfig
 
class  getApplicationDownloadLink
 
class  getArchivedStickerSets
 
class  getAttachedStickerSets
 
class  getAuthorizationState
 
class  getAutoDownloadSettingsPresets
 
class  getBackgroundUrl
 
class  getBackgrounds
 
class  getBankCardInfo
 
class  getBasicGroup
 
class  getBasicGroupFullInfo
 
class  getBlockedMessageSenders
 
class  getCallbackQueryAnswer
 
class  getCallbackQueryMessage
 
class  getChat
 
class  getChatAdministrators
 
class  getChatAvailableMessageSenders
 
class  getChatEventLog
 
class  getChatFilter
 
class  getChatFilterDefaultIconName
 
class  getChatHistory
 
class  getChatInviteLink
 
class  getChatInviteLinkCounts
 
class  getChatInviteLinkMembers
 
class  getChatInviteLinks
 
class  getChatJoinRequests
 
class  getChatListsToAddChat
 
class  getChatMember
 
class  getChatMessageByDate
 
class  getChatMessageCalendar
 
class  getChatMessageCount
 
class  getChatNotificationSettingsExceptions
 
class  getChatPinnedMessage
 
class  getChatScheduledMessages
 
class  getChatSparseMessagePositions
 
class  getChatSponsoredMessage
 
class  getChatStatistics
 
class  getChats
 
class  getCommands
 
class  getConnectedWebsites
 
class  getContacts
 
class  getCountries
 
class  getCountryCode
 
class  getCreatedPublicChats
 
class  getCurrentState
 
class  getDatabaseStatistics
 
class  getDeepLinkInfo
 
class  getEmojiSuggestionsUrl
 
class  getExternalLink
 
class  getExternalLinkInfo
 
class  getFavoriteStickers
 
class  getFile
 
class  getFileDownloadedPrefixSize
 
class  getFileExtension
 
class  getFileMimeType
 
class  getGameHighScores
 
class  getGroupCall
 
class  getGroupCallInviteLink
 
class  getGroupCallStreamSegment
 
class  getGroupsInCommon
 
class  getImportedContactCount
 
class  getInactiveSupergroupChats
 
class  getInlineGameHighScores
 
class  getInlineQueryResults
 
class  getInstalledStickerSets
 
class  getInternalLinkType
 
class  getJsonString
 
class  getJsonValue
 
class  getLanguagePackInfo
 
class  getLanguagePackString
 
class  getLanguagePackStrings
 
class  getLocalizationTargetInfo
 
class  getLogStream
 
class  getLogTagVerbosityLevel
 
class  getLogTags
 
class  getLogVerbosityLevel
 
class  getLoginUrl
 
class  getLoginUrlInfo
 
class  getMapThumbnailFile
 
class  getMarkdownText
 
class  getMe
 
class  getMessage
 
class  getMessageEmbeddingCode
 
class  getMessageFileType
 
class  getMessageImportConfirmationText
 
class  getMessageLink
 
class  getMessageLinkInfo
 
class  getMessageLocally
 
class  getMessagePublicForwards
 
class  getMessageStatistics
 
class  getMessageThread
 
class  getMessageThreadHistory
 
class  getMessageViewers
 
class  getMessages
 
class  getNetworkStatistics
 
class  getOption
 
class  getPassportAuthorizationForm
 
class  getPassportAuthorizationFormAvailableElements
 
class  getPassportElement
 
class  getPasswordState
 
class  getPaymentForm
 
class  getPaymentReceipt
 
class  getPhoneNumberInfo
 
class  getPhoneNumberInfoSync
 
class  getPollVoters
 
class  getPreferredCountryLanguage
 
class  getProxies
 
class  getProxyLink
 
class  getPushReceiverId
 
class  getRecentInlineBots
 
class  getRecentStickers
 
class  getRecentlyOpenedChats
 
class  getRecentlyVisitedTMeUrls
 
class  getRecommendedChatFilters
 
class  getRecoveryEmailAddress
 
class  getRemoteFile
 
class  getRepliedMessage
 
class  getSavedAnimations
 
class  getSavedOrderInfo
 
class  getScopeNotificationSettings
 
class  getSecretChat
 
class  getStatisticalGraph
 
class  getStickerEmojis
 
class  getStickerSet
 
class  getStickers
 
class  getStorageStatistics
 
class  getStorageStatisticsFast
 
class  getSuggestedFileName
 
class  getSuggestedStickerSetName
 
class  getSuitableDiscussionChats
 
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  getVideoChatAvailableParticipants
 
class  getWebPageInstantView
 
class  getWebPagePreview
 
class  hideSuggestedAction
 
class  importContacts
 
class  importMessages
 
class  inviteGroupCallParticipants
 
class  joinChat
 
class  joinChatByInviteLink
 
class  joinGroupCall
 
class  leaveChat
 
class  leaveGroupCall
 
class  loadChats
 
class  loadGroupCallParticipants
 
class  logOut
 
class  openChat
 
class  openMessageContent
 
class  optimizeStorage
 
class  parseMarkdown
 
class  parseTextEntities
 
class  pinChatMessage
 
class  pingProxy
 
class  processChatJoinRequest
 
class  processChatJoinRequests
 
class  processPushNotification
 
class  readAllChatMentions
 
class  readFilePart
 
class  recoverAuthenticationPassword
 
class  recoverPassword
 
class  registerDevice
 
class  registerUser
 
class  removeBackground
 
class  removeChatActionBar
 
class  removeContacts
 
class  removeFavoriteSticker
 
class  removeNotification
 
class  removeNotificationGroup
 
class  removeProxy
 
class  removeRecentHashtag
 
class  removeRecentSticker
 
class  removeRecentlyFoundChat
 
class  removeSavedAnimation
 
class  removeStickerFromSet
 
class  removeTopChat
 
class  reorderChatFilters
 
class  reorderInstalledStickerSets
 
class  replacePrimaryChatInviteLink
 
class  reportChat
 
class  reportChatPhoto
 
class  reportSupergroupSpam
 
class  requestAuthenticationPasswordRecovery
 
class  requestPasswordRecovery
 
class  requestQrCodeAuthentication
 
class  resendAuthenticationCode
 
class  resendChangePhoneNumberCode
 
class  resendEmailAddressVerificationCode
 
class  resendMessages
 
class  resendPhoneNumberConfirmationCode
 
class  resendPhoneNumberVerificationCode
 
class  resendRecoveryEmailAddressCode
 
class  resetAllNotificationSettings
 
class  resetBackgrounds
 
class  resetNetworkStatistics
 
class  resetPassword
 
class  revokeChatInviteLink
 
class  revokeGroupCallInviteLink
 
class  saveApplicationLogEvent
 
class  searchBackground
 
class  searchCallMessages
 
class  searchChatMembers
 
class  searchChatMessages
 
class  searchChatRecentLocationMessages
 
class  searchChats
 
class  searchChatsNearby
 
class  searchChatsOnServer
 
class  searchContacts
 
class  searchEmojis
 
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  sendCallSignalingData
 
class  sendChatAction
 
class  sendChatScreenshotTakenNotification
 
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  setAutoDownloadSettings
 
class  setBackground
 
class  setBio
 
class  setBotUpdatesStatus
 
class  setChatClientData
 
class  setChatDescription
 
class  setChatDiscussionGroup
 
class  setChatDraftMessage
 
class  setChatLocation
 
class  setChatMemberStatus
 
class  setChatMessageSender
 
class  setChatMessageTtl
 
class  setChatNotificationSettings
 
class  setChatPermissions
 
class  setChatPhoto
 
class  setChatSlowModeDelay
 
class  setChatTheme
 
class  setChatTitle
 
class  setCommands
 
class  setCustomLanguagePack
 
class  setCustomLanguagePackString
 
class  setDatabaseEncryptionKey
 
class  setFileGenerationProgress
 
class  setGameScore
 
class  setGroupCallParticipantIsSpeaking
 
class  setGroupCallParticipantVolumeLevel
 
class  setGroupCallTitle
 
class  setInactiveSessionTtl
 
class  setInlineGameScore
 
class  setLocation
 
class  setLogStream
 
class  setLogTagVerbosityLevel
 
class  setLogVerbosityLevel
 
class  setName
 
class  setNetworkType
 
class  setOption
 
class  setPassportElement
 
class  setPassportElementErrors
 
class  setPassword
 
class  setPinnedChats
 
class  setPollAnswer
 
class  setProfilePhoto
 
class  setRecoveryEmailAddress
 
class  setScopeNotificationSettings
 
class  setStickerPositionInSet
 
class  setStickerSetThumbnail
 
class  setSupergroupStickerSet
 
class  setSupergroupUsername
 
class  setTdlibParameters
 
class  setUserPrivacySettingRules
 
class  setUsername
 
class  setVideoChatDefaultParticipant
 
class  sharePhoneNumber
 
class  startGroupCallRecording
 
class  startGroupCallScreenSharing
 
class  startScheduledGroupCall
 
class  stopPoll
 
class  synchronizeLanguagePack
 
class  terminateAllOtherSessions
 
class  terminateSession
 
class  testCallBytes
 
class  testCallEmpty
 
class  testCallString
 
class  testCallVectorInt
 
class  testCallVectorIntObject
 
class  testCallVectorString
 
class  testCallVectorStringObject
 
class  testGetDifference
 
class  testNetwork
 
class  testProxy
 
class  testReturnError
 
class  testSquareInt
 
class  testUseUpdate
 
class  toggleChatDefaultDisableNotification
 
class  toggleChatHasProtectedContent
 
class  toggleChatIsMarkedAsUnread
 
class  toggleChatIsPinned
 
class  toggleGroupCallEnabledStartNotification
 
class  toggleGroupCallIsMyVideoEnabled
 
class  toggleGroupCallIsMyVideoPaused
 
class  toggleGroupCallMuteNewParticipants
 
class  toggleGroupCallParticipantIsHandRaised
 
class  toggleGroupCallParticipantIsMuted
 
class  toggleGroupCallScreenSharingIsPaused
 
class  toggleMessageSenderIsBlocked
 
class  toggleSessionCanAcceptCalls
 
class  toggleSessionCanAcceptSecretChats
 
class  toggleSupergroupIsAllHistoryAvailable
 
class  toggleSupergroupIsBroadcastGroup
 
class  toggleSupergroupSignMessages
 
class  transferChatOwnership
 
class  unpinAllChatMessages
 
class  unpinChatMessage
 
class  upgradeBasicGroupChatToSupergroupChat
 
class  uploadFile
 
class  uploadStickerFile
 
class  validateOrderInfo
 
class  viewMessages
 
class  viewTrendingStickerSets
 
class  writeGeneratedFilePart
 
+ + + + + + + + + + + + + + + + + + + +

+Typedefs

using int32 = std::int32_t
 
using int53 = std::int64_t
 
using int64 = std::int64_t
 
using string = std::string
 
using bytes = std::string
 
template<class Type >
using array = std::vector< Type >
 
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)
 
template<class T >
std::string to_string (const std::vector< object_ptr< T >> &values)
 
+

Typedef Documentation

+ +

◆ int32

+ +
+
+ + + + +
using int32 = std::int32_t
+
+

This type is used to store 32-bit signed integers, which can be represented as Number in JSON.

+ +
+
+ +

◆ int53

+ +
+
+ + + + +
using int53 = std::int64_t
+
+

This type is used to store 53-bit signed integers, which can be represented as Number in JSON.

+ +
+
+ +

◆ int64

+ +
+
+ + + + +
using int64 = std::int64_t
+
+

This type is used to store 64-bit signed integers, which can't be represented as Number in JSON and are represented as String instead.

+ +
+
+ +

◆ string

+ +
+
+ + + + +
using string = std::string
+
+

This type is used to store UTF-8 strings.

+ +
+
+ +

◆ bytes

+ +
+
+ + + + +
using bytes = std::string
+
+

This type is used to store arbitrary sequences of bytes. In JSON interface the bytes are base64-encoded.

+ +
+
+ +

◆ array

+ +
+
+ + + + +
using array = std::vector<Type>
+
+

This type is used to store a list of objects of any type and is represented as Array in JSON.

+ +
+
+ +

◆ 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!!!",
auto send_message_request = td::td_api::make_object<td::td_api::sendMessage>(chat_id, 0, 0, nullptr, 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 behaviour. 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/3]

+ +
+
+ + + + + + + + +
std::string td::td_api::to_string (const BaseObjectvalue)
+
+

Returns a string representation of a TDLib API object.

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

◆ to_string() [2/3]

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

Returns a string representation of a TDLib API object.

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

◆ to_string() [3/3]

+ +
+
+ + + + + + + + +
std::string td::td_api::to_string (const std::vector< object_ptr< T >> & values)
+
+

Returns a string representation of a list of TDLib API objects.

Template Parameters
+ + +
TObject type, auto-deduced.
+
+
+
Parameters
+ + +
[in]valuesThe objects.
+
+
+
Returns
Objects string representation.
+ +
+
+
+ + + + + + + diff --git a/data/web/core.telegram.org/tdlib/docs/td__json__client_8h.html b/data/web/core.telegram.org/tdlib/docs/td__json__client_8h.html deleted file mode 100644 index e3c9c656b8..0000000000 --- a/data/web/core.telegram.org/tdlib/docs/td__json__client_8h.html +++ /dev/null @@ -1,502 +0,0 @@ - - - - - - - - -TDLib: td/telegram/td_json_client.h File Reference - - - - - - - - - - - - -
-
-
-
- -
-
-
- - - - - - - - -
-
- - -
- -
- - -
-
- -
-
td_json_client.h File Reference
-
-
-

Description

-

C interface for interaction with TDLib via JSON-serialized objects. Can be used to easily integrate TDLib with any programming language which supports calling C functions and is able to work with JSON.

-

The JSON serialization of TDLib API objects is straightforward: all API objects are represented as JSON objects with the same keys as the API object field names. The object type name is stored in the special field "@type" which is optional in places where type is uniquely determined by the context. Fields of Bool type are stored as Boolean, fields of int32, int53, and double types are stored as Number, fields of int64 and string types are stored as String, fields of bytes type are base64 encoded and then stored as String, fields of array type are stored as Array.

-

The main TDLib interface is asynchronous. To match requests with a corresponding response, the field "@extra" can be added to the request object. The corresponding response will have an "@extra" field with exactly the same value. Each returned object will have an "@client_id" field, containing the identifier of the client for which a response or an update was received.

-

A TDLib client instance can be created through td_create_client_id. Requests can be sent using td_send and the received client identifier. New updates and responses to requests can be received through td_receive from any thread after the first request has been sent to the client instance. This function must not be called simultaneously from two different threads. Also note that all updates and responses to requests must be applied in the order they were received for consistency. Some TDLib requests can be executed synchronously from any thread using td_execute. TDLib client instances are destroyed automatically after they are closed. All TDLib client instances must be closed before application termination to ensure data consistency.

-

General pattern of usage:

int client_id = td_create_client_id();
// share the client_id with other threads, which will be able to send requests via td_send
const double WAIT_TIMEOUT = 10.0; // seconds
while (true) {
const char *result = td_receive(WAIT_TIMEOUT);
if (result) {
// parse the result as a JSON object and process it as an incoming update or the answer to a previously sent request
}
}

Alternatively, you can use old TDLib JSON interface, which will be removed in TDLib 2.0.0.

-

Objects and functions serialization to JSON is the same for both JSON interfaces.

-

The main TDLib interface is asynchronous. To match requests with a corresponding response a field "@extra" can be added to the request object. The corresponding response will have an "@extra" field with exactly the same value.

-

A TDLib client instance can be created through td_json_client_create. Requests then can be sent using td_json_client_send from any thread. New updates and request responses can be received through td_json_client_receive from any thread. This function must not be called simultaneously from two different threads. Also note that all updates and request responses must be applied in the order they were received to ensure consistency. Given this information, it's advisable to call this function from a dedicated thread. Some service TDLib requests can be executed synchronously from any thread by using td_json_client_execute. The TDLib client instance can be destroyed via td_json_client_destroy.

-

General pattern of usage:

void *client = td_json_client_create();
// somehow share the client with other threads, which will be able to send requests via td_json_client_send
const double WAIT_TIMEOUT = 10.0; // seconds
int is_closed = 0; // should be set to 1, when updateAuthorizationState with authorizationStateClosed is received
while (!is_closed) {
const char *result = td_json_client_receive(client, WAIT_TIMEOUT);
if (result) {
// parse the result as JSON object and process it as an incoming update or an answer to a previously sent request
}
}
-

Go to the source code of this file.

- - - - -

-Typedefs

typedef void(* td_log_message_callback_ptr) (int verbosity_level, const char *message)
 
- - - - - - - - - - - - - - - - - - - - - -

-Functions

int td_create_client_id ()
 
void td_send (int client_id, const char *request)
 
const char * td_receive (double timeout)
 
const char * td_execute (const char *request)
 
void td_set_log_message_callback (int max_verbosity_level, td_log_message_callback_ptr callback)
 
void * td_json_client_create ()
 
void td_json_client_send (void *client, const char *request)
 
const char * td_json_client_receive (void *client, double timeout)
 
const char * td_json_client_execute (void *client, const char *request)
 
void td_json_client_destroy (void *client)
 
-

Typedef Documentation

- -

◆ td_log_message_callback_ptr

- -
-
- - - - -
typedef void(* td_log_message_callback_ptr) (int verbosity_level, const char *message)
-
-

A type of callback function that will be called when a message is added to the internal TDLib log.

-
Parameters
- - - -
verbosity_levelLog verbosity level with which the message was added (-1 - 1024). If 0, then TDLib will crash as soon as the callback returns. None of the TDLib methods can be called from the callback.
messageNull-terminated string with the logged message.
-
-
- -
-
-

Function Documentation

- -

◆ td_create_client_id()

- -
-
- - - - - - - -
int td_create_client_id ()
-
-

Returns an opaque identifier of a new TDLib instance. The TDLib instance will not send updates until the first request is sent to it.

Returns
Opaque identifier of a new TDLib instance.
- -
-
- -

◆ td_send()

- -
-
- - - - - - - - - - - - - - - - - - -
void td_send (int client_id,
const char * request 
)
-
-

Sends request to the TDLib client. May be called from any thread.

Parameters
- - - -
[in]client_idTDLib client identifier.
[in]requestJSON-serialized null-terminated request to TDLib.
-
-
- -
-
- -

◆ td_receive()

- -
-
- - - - - - - - -
const char* td_receive (double timeout)
-
-

Receives incoming updates and request responses. Must not be called simultaneously from two different threads. The returned pointer can be used until the next call to td_receive or td_execute, after which it will be deallocated by TDLib.

Parameters
- - -
[in]timeoutThe maximum number of seconds allowed for this function to wait for new data.
-
-
-
Returns
JSON-serialized null-terminated incoming update or request response. May be NULL if the timeout expires.
- -
-
- -

◆ td_execute()

- -
-
- - - - - - - - -
const char* td_execute (const char * request)
-
-

Synchronously executes a TDLib request. A request can be executed synchronously, only if it is documented with "Can be called synchronously". The returned pointer can be used until the next call to td_receive or td_execute, after which it will be deallocated by TDLib.

Parameters
- - -
[in]requestJSON-serialized null-terminated request to TDLib.
-
-
-
Returns
JSON-serialized null-terminated request response.
- -
-
- -

◆ td_set_log_message_callback()

- -
-
- - - - - - - - - - - - - - - - - - -
void td_set_log_message_callback (int max_verbosity_level,
td_log_message_callback_ptr callback 
)
-
-

Sets the callback that will be called when a message is added to the internal TDLib log. None of the TDLib methods can be called from the callback. By default the callback is not set.

-
Parameters
- - - -
[in]max_verbosity_levelThe maximum verbosity level of messages for which the callback will be called.
[in]callbackCallback that will be called when a message is added to the internal TDLib log. Pass nullptr to remove the callback.
-
-
- -
-
- -

◆ td_json_client_create()

- -
-
- - - - - - - -
void* td_json_client_create ()
-
-

Creates a new instance of TDLib.

Returns
Pointer to the created instance of TDLib.
- -
-
- -

◆ td_json_client_send()

- -
-
- - - - - - - - - - - - - - - - - - -
void td_json_client_send (void * client,
const char * request 
)
-
-

Sends request to the TDLib client. May be called from any thread.

Parameters
- - - -
[in]clientThe client.
[in]requestJSON-serialized null-terminated request to TDLib.
-
-
- -
-
- -

◆ td_json_client_receive()

- -
-
- - - - - - - - - - - - - - - - - - -
const char* td_json_client_receive (void * client,
double timeout 
)
-
-

Receives incoming updates and request responses from the TDLib client. May be called from any thread, but must not be called simultaneously from two different threads. Returned pointer will be deallocated by TDLib during next call to td_json_client_receive or td_json_client_execute in the same thread, so it can't be used after that.

Parameters
- - - -
[in]clientThe client.
[in]timeoutThe maximum number of seconds allowed for this function to wait for new data.
-
-
-
Returns
JSON-serialized null-terminated incoming update or request response. May be NULL if the timeout expires.
- -
-
- -

◆ td_json_client_execute()

- -
-
- - - - - - - - - - - - - - - - - - -
const char* td_json_client_execute (void * client,
const char * request 
)
-
-

Synchronously executes TDLib request. May be called from any thread. Only a few requests can be executed synchronously. Returned pointer will be deallocated by TDLib during next call to td_json_client_receive or td_json_client_execute in the same thread, so it can't be used after that.

Parameters
- - - -
[in]clientThe client. Currently ignored for all requests, so NULL can be passed.
[in]requestJSON-serialized null-terminated request to TDLib.
-
-
-
Returns
JSON-serialized null-terminated request response.
- -
-
- -

◆ td_json_client_destroy()

- -
-
- - - - - - - - -
void td_json_client_destroy (void * client)
-
-

Destroys the TDLib client instance. After this is called the client instance must not be used anymore.

Parameters
- - -
[in]clientThe client.
-
-
- -
-
-
- - - - - - -