td library
Classes
-
AcceptCall
-
Accepts an incoming call.
-
AcceptTermsOfService
-
Accepts Telegram terms of services.
-
AccountTtl
-
Contains information about the period of inactivity after which the current user's account will automatically be deleted.
-
ActivateStoryStealthMode
-
Activates stealth mode for stories, which hides all views of stories from the current user in the last "story_stealth_mode_past_period" seconds.
-
AddApplicationChangelog
-
Adds server-provided application changelog as messages to the chat 777000 (Telegram) or as a stories; for official applications only. Returns a 404 error if nothing changed.
-
AddChatFolderByInviteLink
-
Adds a chat folder by an invite link.
-
AddChatMember
-
Adds a new member to a chat. Members can't be added to private or secret chats.
-
AddChatMembers
-
Adds multiple new members to a chat. Currently, this method is only available for supergroups and channels. This method can't be used to join a chat. Members can't be added to a channel if it has more than 200 members.
-
AddChatToList
-
Adds a chat to a chat list. A chat can't be simultaneously in Main and Archive chat lists, so it is automatically removed from another one if needed.
-
AddContact
-
Adds a user to the contact list or edits an existing contact by their user identifier.
-
AddCustomServerLanguagePack
-
Adds a custom server language pack to the list of installed language packs in current localization target. Can be called before authorization.
-
AddedReaction
-
Represents a reaction applied to a message.
-
AddedReactions
-
Represents a list of reactions added to a message.
-
AddFavoriteSticker
-
Adds a new sticker to the list of favorite stickers. The new sticker is added to the top of the list. If the sticker was already in the list, it is removed from the list first..
-
AddFileToDownloads
-
Adds a file from a message to the list of file downloads. Download progress and completion of the download will be notified through updateFile updates..
-
AddLocalMessage
-
Adds a local message to a chat. The message is persistent across application restarts only if the message database is used. Returns the added message.
-
AddLogMessage
-
Adds a message to TDLib internal log. Can be called synchronously.
-
AddMessageReaction
-
Adds a reaction to a message. Use getMessageAvailableReactions to receive the list of available reactions for the message.
-
AddNetworkStatistics
-
Adds the specified data to data usage statistics. Can be called before authorization.
-
AddProxy
-
Adds a proxy server for network requests. Can be called before authorization.
-
AddRecentlyFoundChat
-
Adds a chat to the list of recently found chats. The chat is added to the beginning of the list. If the chat is already in the list, it will be removed from the list first.
-
AddRecentSticker
-
Manually adds a new sticker to the list of recently used stickers. The new sticker is added to the top of the list. If the sticker was already in the list, it is removed from the list first..
-
Address
-
Describes an address.
-
AddSavedAnimation
-
Manually adds a new animation to the list of saved animations. The new animation is added to the beginning of the list. If the animation was already in the list, it is removed first. Only non-secret video animations with MIME type "video/mp4" can be added to the list.
-
AddSavedNotificationSound
-
Adds a new notification sound to the list of saved notification sounds. The new notification sound is added to the top of the list. If it is already in the list, its position isn't changed.
-
AddStickerToSet
-
Adds a new sticker to a set; for bots only.
-
AllowBotToSendMessages
-
Allows the specified bot to send messages to the user.
-
AnimatedChatPhoto
-
Animated variant of a chat photo in MPEG4 format.
-
AnimatedEmoji
-
Describes an animated or custom representation of an emoji.
-
Animation
-
Describes an animation file. The animation must be encoded in GIF or MPEG4 format.
-
Animations
-
Represents a list of animations.
-
AnswerCallbackQuery
-
Sets the result of a callback query; for bots only.
-
AnswerCustomQuery
-
Answers a custom query; for bots only.
-
AnswerInlineQuery
-
Sets the result of an inline query; for bots only.
-
AnswerPreCheckoutQuery
-
Sets the result of a pre-checkout query; for bots only.
-
AnswerShippingQuery
-
Sets the result of a shipping query; for bots only.
-
AnswerWebAppQuery
-
Sets the result of interaction with a Web App and sends corresponding message on behalf of the user to the chat from which the query originated; for bots only.
-
ArchiveChatListSettings
-
Contains settings for automatic moving of chats to and from the Archive chat lists.
-
AssignAppStoreTransaction
-
Informs server about a purchase through App Store. For official applications only.
-
AssignGooglePlayTransaction
-
Informs server about a purchase through Google Play. For official applications only.
-
Represents a bot, which can be added to attachment or side menu.
-
Describes a color to highlight a bot added to attachment menu.
-
Audio
-
Describes an audio file. Audio is usually in MP3 or M4A format.
-
AuthenticationCodeInfo
-
Information about the authentication code that was sent.
-
AuthenticationCodeType
-
Provides information about the method by which an authentication code is delivered to the user.
-
AuthenticationCodeTypeCall
-
An authentication code is delivered via a phone call to the specified phone number.
-
AuthenticationCodeTypeFirebaseAndroid
-
An authentication code is delivered via Firebase Authentication to the official Android application.
-
AuthenticationCodeTypeFirebaseIos
-
An authentication code is delivered via Firebase Authentication to the official iOS application.
-
AuthenticationCodeTypeFlashCall
-
An authentication code is delivered by an immediately canceled call to the specified phone number. The phone number that calls is the code that must be entered automatically.
-
AuthenticationCodeTypeFragment
-
An authentication code is delivered to https://fragment.com. The user must be logged in there via a wallet owning the phone number's NFT.
-
AuthenticationCodeTypeMissedCall
-
An authentication code is delivered by an immediately canceled call to the specified phone number. The last digits of the phone number that calls are the code that must be entered manually by the user.
-
AuthenticationCodeTypeSms
-
An authentication code is delivered via an SMS message to the specified phone number; applications may not receive this type of code.
-
AuthenticationCodeTypeTelegramMessage
-
An authentication code is delivered via a private Telegram message, which can be viewed from another active session.
-
AuthorizationState
-
Represents the current authorization state of the TDLib client.
-
AuthorizationStateClosed
-
TDLib client is in its final state. All databases are closed and all resources are released. No other updates will be received after this. All queries will be responded to.
-
AuthorizationStateClosing
-
TDLib is closing, all subsequent queries will be answered with the error 500. Note that closing TDLib can take a while. All resources will be freed only after authorizationStateClosed has been received.
-
AuthorizationStateLoggingOut
-
The user is currently logging out.
-
AuthorizationStateReady
-
The user has been successfully authorized. TDLib is now ready to answer general requests.
-
AuthorizationStateWaitCode
-
TDLib needs the user's authentication code to authorize. Call checkAuthenticationCode to check the code.
-
AuthorizationStateWaitEmailAddress
-
TDLib needs the user's email address to authorize. Call setAuthenticationEmailAddress to provide the email address, or directly call checkAuthenticationEmailCode with Apple ID/Google ID token if allowed.
-
AuthorizationStateWaitEmailCode
-
TDLib needs the user's authentication code sent to an email address to authorize. Call checkAuthenticationEmailCode to provide the code.
-
AuthorizationStateWaitOtherDeviceConfirmation
-
The user needs to confirm authorization on another logged in device by scanning a QR code with the provided link.
-
AuthorizationStateWaitPassword
-
The user has been authorized, but needs to enter a 2-step verification password to start using the application..
-
AuthorizationStateWaitPhoneNumber
-
TDLib needs the user's phone number to authorize. Call setAuthenticationPhoneNumber to provide the phone number, or use requestQrCodeAuthentication or checkAuthenticationBotToken for other authentication options.
-
AuthorizationStateWaitRegistration
-
The user is unregistered and need to accept terms of service and enter their first name and last name to finish registration. Call registerUser to accept the terms of service and provide the data.
-
AuthorizationStateWaitTdlibParameters
-
Initialization parameters are needed. Call setTdlibParameters to provide them.
-
AutoDownloadSettings
-
Contains auto-download settings.
-
AutoDownloadSettingsPresets
-
Contains auto-download settings presets for the current user.
-
AutosaveSettings
-
Describes autosave settings.
-
AutosaveSettingsException
-
Contains autosave settings for a chat, which overrides default settings for the corresponding scope.
-
AutosaveSettingsScope
-
Describes scope of autosave settings.
-
AutosaveSettingsScopeChannelChats
-
Autosave settings applied to all channel chats without chat-specific settings.
-
AutosaveSettingsScopeChat
-
Autosave settings applied to a chat.
-
AutosaveSettingsScopeGroupChats
-
Autosave settings applied to all basic group and supergroup chats without chat-specific settings.
-
AutosaveSettingsScopePrivateChats
-
Autosave settings applied to all private chats without chat-specific settings.
-
AvailableReaction
-
Represents an available reaction.
-
AvailableReactions
-
Represents a list of reactions that can be added to a message.
-
Background
-
Describes a chat background.
-
BackgroundFill
-
Describes a fill of a background.
-
BackgroundFillFreeformGradient
-
Describes a freeform gradient fill of a background.
-
BackgroundFillGradient
-
Describes a gradient fill of a background.
-
BackgroundFillSolid
-
Describes a solid fill of a background.
-
Backgrounds
-
Contains a list of backgrounds.
-
BackgroundType
-
Describes the type of a background.
-
BackgroundTypeFill
-
A filled background.
-
BackgroundTypePattern
-
A PNG or TGV (gzipped subset of SVG with MIME type "application/x-tgwallpattern") pattern to be combined with the background fill chosen by the user.
-
BackgroundTypeWallpaper
-
A wallpaper in JPEG format.
-
BanChatMember
-
Bans a member in a chat. Members can't be banned in private or secret chats. In supergroups and channels, the user will not be able to return to the group on their own using invite links, etc., unless unbanned first.
-
BankCardActionOpenUrl
-
Describes an action associated with a bank card number.
-
BankCardInfo
-
Information about a bank card.
-
BasicGroup
-
Represents a basic group of 0-200 users (must be upgraded to a supergroup to accommodate more than 200 users).
-
BasicGroupFullInfo
-
Contains full information about a basic group.
-
BlockList
-
Describes a type of a block list.
-
BlockListMain
-
The main block list that disallows writing messages to the current user, receiving their status and photo, viewing of stories, and some other actions.
-
BlockListStories
-
The block list that disallows viewing of stories of the current user.
-
BlockMessageSenderFromReplies
-
Blocks an original sender of a message in the Replies chat.
-
BoostChat
-
Boosts a chat.
-
BotCommand
-
Represents a command supported by a bot.
-
BotCommands
-
Contains a list of bot commands.
-
BotCommandScope
-
Represents the scope to which bot commands are relevant.
-
BotCommandScopeAllChatAdministrators
-
A scope covering all group and supergroup chat administrators.
-
BotCommandScopeAllGroupChats
-
A scope covering all group and supergroup chats.
-
BotCommandScopeAllPrivateChats
-
A scope covering all private chats.
-
BotCommandScopeChat
-
A scope covering all members of a chat.
-
BotCommandScopeChatAdministrators
-
A scope covering all administrators of a chat.
-
BotCommandScopeChatMember
-
A scope covering a member of a chat.
-
BotCommandScopeDefault
-
A scope covering all users.
-
BotInfo
-
Contains information about a bot.
-
Describes a button to be shown instead of bot commands menu button.
-
Call
-
Describes a call.
-
CallbackQueryAnswer
-
Contains a bot's answer to a callback query.
-
CallbackQueryPayload
-
Represents a payload of a callback query.
-
CallbackQueryPayloadData
-
The payload for a general callback button.
-
CallbackQueryPayloadDataWithPassword
-
The payload for a callback button requiring password.
-
CallbackQueryPayloadGame
-
The payload for a game callback button.
-
CallDiscardReason
-
Describes the reason why a call was discarded.
-
CallDiscardReasonDeclined
-
The call was ended before the conversation started. It was declined by the other party.
-
CallDiscardReasonDisconnected
-
The call was ended during the conversation because the users were disconnected.
-
CallDiscardReasonEmpty
-
The call wasn't discarded, or the reason is unknown.
-
CallDiscardReasonHungUp
-
The call was ended because one of the parties hung up.
-
CallDiscardReasonMissed
-
The call was ended before the conversation started. It was canceled by the caller or missed by the other party.
-
CallId
-
Contains the call identifier.
-
CallProblem
-
Describes the exact type of a problem with a call.
-
CallProblemDistortedSpeech
-
The speech was distorted.
-
CallProblemDistortedVideo
-
The video was distorted.
-
CallProblemDropped
-
The call ended unexpectedly.
-
CallProblemEcho
-
The user heard their own voice.
-
CallProblemInterruptions
-
The other side kept disappearing.
-
CallProblemNoise
-
The user heard background noise.
-
CallProblemPixelatedVideo
-
The video was pixelated.
-
CallProblemSilentLocal
-
The user couldn't hear the other side.
-
CallProblemSilentRemote
-
The other side couldn't hear the user.
-
CallProtocol
-
Specifies the supported call protocols.
-
CallServer
-
Describes a server for relaying call data.
-
CallServerType
-
Describes the type of a call server.
-
CallServerTypeTelegramReflector
-
A Telegram call reflector.
-
CallServerTypeWebrtc
-
A WebRTC server.
-
CallState
-
Describes the current call state.
-
CallStateDiscarded
-
The call has ended successfully.
-
CallStateError
-
The call has ended with an error.
-
CallStateExchangingKeys
-
The call has been answered and encryption keys are being exchanged.
-
CallStateHangingUp
-
The call is hanging up after discardCall has been called.
-
CallStatePending
-
The call is pending, waiting to be accepted by a user.
-
CallStateReady
-
The call is ready to use.
-
CanBoostChat
-
Checks whether the current user can boost a chat.
-
CanBoostChatResult
-
Represents result of checking whether the current user can boost the specific chat.
-
CanBoostChatResultAlreadyBoosted
-
The chat is already boosted by the user.
-
CanBoostChatResultInvalidChat
-
The chat can't be boosted.
-
CanBoostChatResultOk
-
The chat can be boosted.
-
CanBoostChatResultPremiumNeeded
-
The user must subscribe to Telegram Premium to be able to boost chats.
-
CanBoostChatResultPremiumSubscriptionNeeded
-
The user must have Telegram Premium subscription instead of a gifted Telegram Premium.
-
CanBoostChatResultWaitNeeded
-
The user must wait the specified time before the boost can be moved to another chat.
-
CanBotSendMessages
-
Checks whether the specified bot can send messages to the user. Returns a 404 error if can't and the access can be granted by call to allowBotToSendMessages.
-
CancelDownloadFile
-
Stops the downloading of a file. If a file has already been downloaded, does nothing.
-
CancelPasswordReset
-
Cancels reset of 2-step verification password. The method can be called if passwordState.pending_reset_date > 0.
-
CancelPreliminaryUploadFile
-
Stops the preliminary uploading of a file. Supported only for files uploaded by using preliminaryUploadFile. For other files the behavior is undefined.
-
CanPurchasePremium
-
Checks whether Telegram Premium purchase is possible. Must be called before in-store Premium purchase.
-
CanSendStory
-
Checks whether the current user can send a story on behalf of a chat; requires can_post_stories rights for channel chats.
-
CanSendStoryResult
-
Represents result of checking whether the current user can send a story in the specific chat.
-
CanSendStoryResultActiveStoryLimitExceeded
-
The limit for the number of active stories exceeded. The user can buy Telegram Premium, delete an active story, or wait for the oldest story to expire.
-
CanSendStoryResultBoostNeeded
-
The channel chat must be boosted first by Telegram Premium subscribers to post more stories. Call getChatBoostStatus to get current boost status of the chat.
-
CanSendStoryResultMonthlyLimitExceeded
-
The monthly limit for the number of posted stories exceeded. The user needs to buy Telegram Premium or wait specified time.
-
CanSendStoryResultOk
-
A story can be sent.
-
CanSendStoryResultPremiumNeeded
-
The user must subscribe to Telegram Premium to be able to post stories.
-
CanSendStoryResultWeeklyLimitExceeded
-
The weekly limit for the number of posted stories exceeded. The user needs to buy Telegram Premium or wait specified time.
-
CanTransferOwnership
-
Checks whether the current session can be used to transfer a chat ownership to another user.
-
CanTransferOwnershipResult
-
Represents result of checking whether the current session can be used to transfer a chat ownership to another user.
-
CanTransferOwnershipResultOk
-
The session can be used.
-
CanTransferOwnershipResultPasswordNeeded
-
The 2-step verification needs to be enabled first.
-
CanTransferOwnershipResultPasswordTooFresh
-
The 2-step verification was enabled recently, user needs to wait.
-
CanTransferOwnershipResultSessionTooFresh
-
The session was created recently, user needs to wait.
-
ChangeImportedContacts
-
Changes imported contacts using the list of contacts saved on the device. Imports newly added contacts and, if at least the file database is enabled, deletes recently deleted contacts..
-
ChangePhoneNumber
-
Changes the phone number of the user and sends an authentication code to the user's new phone number; for official Android and iOS applications only. On success, returns information about the sent code.
-
ChangeStickerSet
-
Installs/uninstalls or activates/archives a sticker set.
-
Chat
-
A chat. (Can be a private chat, basic group, supergroup, or secret chat).
-
ChatAction
-
Describes the different types of activity in a chat.
-
ChatActionBar
-
Describes actions which must be possible to do through a chat action bar.
-
ChatActionBarAddContact
-
The chat is a private or secret chat and the other user can be added to the contact list using the method addContact.
-
ChatActionBarInviteMembers
-
The chat is a recently created group chat to which new members can be invited.
-
ChatActionBarJoinRequest
-
The chat is a private chat with an administrator of a chat to which the user sent join request.
-
ChatActionBarReportAddBlock
-
The chat is a private or secret chat, which can be reported using the method reportChat, or the other user can be blocked using the method setMessageSenderBlockList,.
-
ChatActionBarReportSpam
-
The chat can be reported as spam using the method reportChat with the reason reportReasonSpam. If the chat is a private chat with a user with an emoji status, then a notice about emoji status usage must be shown.
-
ChatActionBarReportUnrelatedLocation
-
The chat is a location-based supergroup, which can be reported as having unrelated location using the method reportChat with the reason reportReasonUnrelatedLocation.
-
ChatActionBarSharePhoneNumber
-
The chat is a private or secret chat with a mutual contact and the user's phone number can be shared with the other user using the method sharePhoneNumber.
-
ChatActionCancel
-
The user has canceled the previous action.
-
ChatActionChoosingContact
-
The user is picking a contact to send.
-
ChatActionChoosingLocation
-
The user is picking a location or venue to send.
-
ChatActionChoosingSticker
-
The user is picking a sticker to send.
-
ChatActionRecordingVideo
-
The user is recording a video.
-
ChatActionRecordingVideoNote
-
The user is recording a video note.
-
ChatActionRecordingVoiceNote
-
The user is recording a voice note.
-
ChatActionStartPlayingGame
-
The user has started to play a game.
-
ChatActionTyping
-
The user is typing a message.
-
ChatActionUploadingDocument
-
The user is uploading a document.
-
ChatActionUploadingPhoto
-
The user is uploading a photo.
-
ChatActionUploadingVideo
-
The user is uploading a video.
-
ChatActionUploadingVideoNote
-
The user is uploading a video note.
-
ChatActionUploadingVoiceNote
-
The user is uploading a voice note.
-
ChatActionWatchingAnimations
-
The user is watching animations sent by the other party by clicking on an animated emoji.
-
ChatActiveStories
-
Describes active stories posted by a chat.
-
ChatAdministrator
-
Contains information about a chat administrator.
-
ChatAdministratorRights
-
Describes rights of the administrator.
-
ChatAdministrators
-
Represents a list of chat administrators.
-
ChatAvailableReactions
-
Describes reactions available in the chat.
-
ChatAvailableReactionsAll
-
All reactions are available in the chat.
-
ChatAvailableReactionsSome
-
Only specific reactions are available in the chat.
-
ChatBackground
-
Describes a background set for a specific chat.
-
ChatBoost
-
Describes a boost of a chat.
-
ChatBoostLink
-
Contains an HTTPS link to boost a chat.
-
ChatBoostLinkInfo
-
Contains information about a link to boost a a chat.
-
ChatBoostStatus
-
Describes current boost status of a chat.
-
ChatEvent
-
Represents a chat event.
-
ChatEventAction
-
Represents a chat event.
-
ChatEventActiveUsernamesChanged
-
The chat active usernames were changed.
-
ChatEventAvailableReactionsChanged
-
The chat available reactions were changed.
-
ChatEventDescriptionChanged
-
The chat description was changed.
-
ChatEventForumTopicCreated
-
A new forum topic was created.
-
ChatEventForumTopicDeleted
-
A forum topic was deleted.
-
ChatEventForumTopicEdited
-
A forum topic was edited.
-
ChatEventForumTopicPinned
-
A pinned forum topic was changed.
-
ChatEventForumTopicToggleIsClosed
-
A forum topic was closed or reopened.
-
ChatEventForumTopicToggleIsHidden
-
The General forum topic was hidden or unhidden.
-
ChatEventHasAggressiveAntiSpamEnabledToggled
-
The has_aggressive_anti_spam_enabled setting of a supergroup was toggled.
-
ChatEventHasProtectedContentToggled
-
The has_protected_content setting of a channel was toggled.
-
ChatEventInviteLinkDeleted
-
A revoked chat invite link was deleted.
-
ChatEventInviteLinkEdited
-
A chat invite link was edited.
-
ChatEventInviteLinkRevoked
-
A chat invite link was revoked.
-
ChatEventInvitesToggled
-
The can_invite_users permission of a supergroup chat was toggled.
-
ChatEventIsAllHistoryAvailableToggled
-
The is_all_history_available setting of a supergroup was toggled.
-
ChatEventIsForumToggled
-
The is_forum setting of a channel was toggled.
-
ChatEventLinkedChatChanged
-
The linked chat of a supergroup was changed.
-
ChatEventLocationChanged
-
The supergroup location was changed.
-
ChatEventLogFilters
-
Represents a set of filters used to obtain a chat event log.
-
ChatEventMemberInvited
-
A new chat member was invited.
-
ChatEventMemberJoined
-
A new member joined the chat.
-
ChatEventMemberJoinedByInviteLink
-
A new member joined the chat via an invite link.
-
ChatEventMemberJoinedByRequest
-
A new member was accepted to the chat by an administrator.
-
ChatEventMemberLeft
-
A member left the chat.
-
ChatEventMemberPromoted
-
A chat member has gained/lost administrator status, or the list of their administrator privileges has changed.
-
ChatEventMemberRestricted
-
A chat member was restricted/unrestricted or banned/unbanned, or the list of their restrictions has changed.
-
ChatEventMessageAutoDeleteTimeChanged
-
The message auto-delete timer was changed.
-
ChatEventMessageDeleted
-
A message was deleted.
-
ChatEventMessageEdited
-
A message was edited.
-
ChatEventMessagePinned
-
A message was pinned.
-
ChatEventMessageUnpinned
-
A message was unpinned.
-
ChatEventPermissionsChanged
-
The chat permissions was changed.
-
ChatEventPhotoChanged
-
The chat photo was changed.
-
ChatEventPollStopped
-
A poll in a message was stopped.
-
ChatEvents
-
Contains a list of chat events.
-
ChatEventSignMessagesToggled
-
The sign_messages setting of a channel was toggled.
-
ChatEventSlowModeDelayChanged
-
The slow_mode_delay setting of a supergroup was changed.
-
ChatEventStickerSetChanged
-
The supergroup sticker set was changed.
-
ChatEventTitleChanged
-
The chat title was changed.
-
ChatEventUsernameChanged
-
The chat editable username was changed.
-
ChatEventVideoChatCreated
-
A video chat was created.
-
ChatEventVideoChatEnded
-
A video chat was ended.
-
ChatEventVideoChatMuteNewParticipantsToggled
-
The mute_new_participants setting of a video chat was toggled.
-
ChatEventVideoChatParticipantIsMutedToggled
-
A video chat participant was muted or unmuted.
-
ChatEventVideoChatParticipantVolumeLevelChanged
-
A video chat participant volume level was changed.
-
ChatFolder
-
Represents a folder for user chats.
-
ChatFolderIcon
-
Represents an icon for a chat folder.
-
ChatFolderInfo
-
Contains basic information about a chat folder.
-
ChatFolderInviteLink
-
Contains a chat folder invite link.
-
ChatFolderInviteLinkInfo
-
Contains information about an invite link to a chat folder.
-
ChatFolderInviteLinks
-
Represents a list of chat folder invite links.
-
ChatInviteLink
-
Contains a chat invite link.
-
ChatInviteLinkCount
-
Describes a chat administrator with a number of active and revoked chat invite links.
-
ChatInviteLinkCounts
-
Contains a list of chat invite link counts.
-
ChatInviteLinkInfo
-
Contains information about a chat invite link.
-
ChatInviteLinkMember
-
Describes a chat member joined a chat via an invite link.
-
ChatInviteLinkMembers
-
Contains a list of chat members joined a chat via an invite link.
-
ChatInviteLinks
-
Contains a list of chat invite links.
-
ChatJoinRequest
-
Describes a user that sent a join request and waits for administrator approval.
-
ChatJoinRequests
-
Contains a list of requests to join a chat.
-
ChatJoinRequestsInfo
-
Contains information about pending join requests for a chat.
-
ChatList
-
Describes a list of chats.
-
ChatListArchive
-
A list of chats usually located at the top of the main chat list. Unmuted chats are automatically moved from the Archive to the Main chat list when a new message arrives.
-
ChatListFolder
-
A list of chats added to a chat folder.
-
ChatListMain
-
A main list of chats.
-
ChatLists
-
Contains a list of chat lists.
-
ChatLocation
-
Represents a location to which a chat is connected.
-
ChatMember
-
Describes a user or a chat as a member of another chat.
-
ChatMembers
-
Contains a list of chat members.
-
ChatMembersFilter
-
Specifies the kind of chat members to return in searchChatMembers.
-
ChatMembersFilterAdministrators
-
Returns the owner and administrators.
-
ChatMembersFilterBanned
-
Returns users banned from the chat; can be used only by administrators in a supergroup or in a channel.
-
ChatMembersFilterBots
-
Returns bot members of the chat.
-
ChatMembersFilterContacts
-
Returns contacts of the user.
-
ChatMembersFilterMembers
-
Returns all chat members, including restricted chat members.
-
ChatMembersFilterMention
-
Returns users which can be mentioned in the chat.
-
ChatMembersFilterRestricted
-
Returns users under certain restrictions in the chat; can be used only by administrators in a supergroup.
-
ChatMemberStatus
-
Provides information about the status of a member in a chat.
-
ChatMemberStatusAdministrator
-
The user is a member of the chat and has some additional privileges. In basic groups, administrators can edit and delete messages sent by others, add new members, ban unprivileged members, and manage video chats..
-
ChatMemberStatusBanned
-
The user or the chat was banned (and hence is not a member of the chat). Implies the user can't return to the chat, view messages, or be used as a participant identifier to join a video chat of the chat.
-
ChatMemberStatusCreator
-
The user is the owner of the chat and has all the administrator privileges.
-
ChatMemberStatusLeft
-
The user or the chat is not a chat member.
-
ChatMemberStatusMember
-
The user is a member of the chat, without any additional privileges or restrictions.
-
ChatMemberStatusRestricted
-
The user is under certain restrictions in the chat. Not supported in basic groups and channels.
-
ChatMessageSender
-
Represents a message sender, which can be used to send messages in a chat.
-
ChatMessageSenders
-
Represents a list of message senders, which can be used to send messages in a chat.
-
ChatNearby
-
Describes a chat located nearby.
-
ChatNotificationSettings
-
Contains information about notification settings for a chat or a forum topic.
-
ChatPermissions
-
Describes actions that a user is allowed to take in a chat.
-
ChatPhoto
-
Describes a chat or user profile photo.
-
ChatPhotoInfo
-
Contains basic information about the photo of a chat.
-
ChatPhotos
-
Contains a list of chat or user profile photos.
-
ChatPhotoSticker
-
Information about the sticker, which was used to create the chat photo. The sticker is shown at the center of the photo and occupies at most 67% of it.
-
ChatPhotoStickerType
-
Describes type of a sticker, which was used to create a chat photo.
-
ChatPhotoStickerTypeCustomEmoji
-
Information about the custom emoji, which was used to create the chat photo.
-
ChatPhotoStickerTypeRegularOrMask
-
Information about the sticker, which was used to create the chat photo.
-
ChatPosition
-
Describes a position of a chat in a chat list.
-
Chats
-
Represents a list of chats.
-
ChatsNearby
-
Represents a list of chats located nearby.
-
ChatSource
-
Describes a reason why an external chat is shown in a chat list.
-
ChatSourceMtprotoProxy
-
The chat is sponsored by the user's MTProxy server.
-
ChatSourcePublicServiceAnnouncement
-
The chat contains a public service announcement.
-
ChatStatistics
-
Contains a detailed statistics about a chat.
-
ChatStatisticsAdministratorActionsInfo
-
Contains statistics about administrator actions done by a user.
-
ChatStatisticsChannel
-
A detailed statistics about a channel chat.
-
ChatStatisticsInviterInfo
-
Contains statistics about number of new members invited by a user.
-
ChatStatisticsMessageInteractionInfo
-
Contains statistics about interactions with a message.
-
ChatStatisticsMessageSenderInfo
-
Contains statistics about messages sent by a user.
-
ChatStatisticsSupergroup
-
A detailed statistics about a supergroup chat.
-
ChatTheme
-
Describes a chat theme.
-
ChatType
-
Describes the type of a chat.
-
ChatTypeBasicGroup
-
A basic group (a chat with 0-200 other users).
-
ChatTypePrivate
-
An ordinary chat with a user.
-
ChatTypeSecret
-
A secret chat with a user.
-
ChatTypeSupergroup
-
A supergroup or channel (with unlimited members).
-
CheckAuthenticationBotToken
-
Checks the authentication token of a bot; to log in as a bot. Works only when the current authorization state is authorizationStateWaitPhoneNumber. Can be used instead of setAuthenticationPhoneNumber and checkAuthenticationCode to log in.
-
CheckAuthenticationCode
-
Checks the authentication code. Works only when the current authorization state is authorizationStateWaitCode.
-
CheckAuthenticationEmailCode
-
Checks the authentication of a email address. Works only when the current authorization state is authorizationStateWaitEmailCode.
-
CheckAuthenticationPassword
-
Checks the 2-step verification password for correctness. Works only when the current authorization state is authorizationStateWaitPassword.
-
CheckAuthenticationPasswordRecoveryCode
-
Checks whether a 2-step verification password recovery code sent to an email address is valid. Works only when the current authorization state is authorizationStateWaitPassword.
-
CheckChangePhoneNumberCode
-
Checks the authentication code sent to confirm a new phone number of the user.
-
CheckChatFolderInviteLink
-
Checks the validity of an invite link for a chat folder and returns information about the corresponding chat folder.
-
CheckChatInviteLink
-
Checks the validity of an invite link for a chat and returns information about the corresponding chat.
-
CheckChatUsername
-
Checks whether a username can be set for a chat.
-
CheckChatUsernameResult
-
Represents result of checking whether a username can be set for a chat.
-
CheckChatUsernameResultOk
-
The username can be set.
-
CheckChatUsernameResultPublicChatsTooMany
-
The user has too many chats with username, one of them must be made private first.
-
CheckChatUsernameResultPublicGroupsUnavailable
-
The user can't be a member of a public supergroup.
-
CheckChatUsernameResultUsernameInvalid
-
The username is invalid.
-
CheckChatUsernameResultUsernameOccupied
-
The username is occupied.
-
CheckChatUsernameResultUsernamePurchasable
-
The username can be purchased at fragment.com.
-
CheckCreatedPublicChatsLimit
-
Checks whether the maximum number of owned public chats has been reached. Returns corresponding error if the limit was reached. The limit can be increased with Telegram Premium.
-
CheckEmailAddressVerificationCode
-
Checks the email address verification code for Telegram Passport.
-
CheckLoginEmailAddressCode
-
Checks the login email address authentication.
-
CheckPasswordRecoveryCode
-
Checks whether a 2-step verification password recovery code sent to an email address is valid.
-
CheckPhoneNumberConfirmationCode
-
Checks phone number confirmation code.
-
CheckPhoneNumberVerificationCode
-
Checks the phone number verification code for Telegram Passport.
-
CheckRecoveryEmailAddressCode
-
Checks the 2-step verification recovery email address verification code.
-
CheckStickerSetName
-
Checks whether a name can be used for a new sticker set.
-
CheckStickerSetNameResult
-
Represents result of checking whether a name can be used for a new sticker set.
-
CheckStickerSetNameResultNameInvalid
-
The name is invalid.
-
CheckStickerSetNameResultNameOccupied
-
The name is occupied.
-
CheckStickerSetNameResultOk
-
The name can be set.
-
CleanFileName
-
Removes potentially dangerous characters from the name of a file. The encoding of the file name is supposed to be UTF-8. Returns an empty string on failure. Can be called synchronously.
-
ClearAllDraftMessages
-
Clears message drafts in all chats.
-
ClearAutosaveSettingsExceptions
-
Clears the list of all autosave settings exceptions. The method is guaranteed to work only after at least one call to getAutosaveSettings.
-
ClearImportedContacts
-
Clears all imported contacts, contact list remains unchanged.
-
ClearRecentEmojiStatuses
-
Clears the list of recently used emoji statuses.
-
ClearRecentlyFoundChats
-
Clears the list of recently found chats.
-
ClearRecentReactions
-
Clears the list of recently used reactions.
-
ClearRecentStickers
-
Clears the list of recently used stickers.
-
ClickAnimatedEmojiMessage
-
Informs TDLib that a message with an animated emoji was clicked by the user. Returns a big animated sticker to be played or a 404 error if usual animation needs to be played.
-
Informs TDLib that the user opened the sponsored chat via the button, the name, the photo, or a mention in the sponsored message.
-
ClickPremiumSubscriptionButton
-
Informs TDLib that the user clicked Premium subscription button on the Premium features screen.
-
Close
-
Closes the TDLib instance. All databases will be flushed to disk and properly closed. After the close completes, updateAuthorizationState with authorizationStateClosed will be sent. Can be called before initialization.
-
CloseChat
-
Informs TDLib that the chat is closed by the user. Many useful activities depend on the chat being opened or closed.
-
ClosedVectorPath
-
Represents a closed vector path. The path begins at the end point of the last command.
-
CloseSecretChat
-
Closes a secret chat, effectively transferring its state to secretChatStateClosed.
-
CloseStory
-
Informs TDLib that a story is closed by the user.
-
CloseWebApp
-
Informs TDLib that a previously opened Web App was closed.
-
ConfirmQrCodeAuthentication
-
Confirms QR code authentication on another device. Returns created session on success.
-
ConfirmSession
-
Confirms an unconfirmed session of the current user from another device.
-
ConnectedWebsite
-
Contains information about one website the current user is logged in with Telegram.
-
ConnectedWebsites
-
Contains a list of websites the current user is logged in with Telegram.
-
ConnectionState
-
Describes the current state of the connection to Telegram servers.
-
ConnectionStateConnecting
-
Currently establishing a connection to the Telegram servers.
-
ConnectionStateConnectingToProxy
-
Currently establishing a connection with a proxy server.
-
ConnectionStateReady
-
There is a working connection to the Telegram servers.
-
ConnectionStateUpdating
-
Downloading data received while the application was offline.
-
ConnectionStateWaitingForNetwork
-
Currently waiting for the network to become available. Use setNetworkType to change the available network type.
-
Contact
-
Describes a user contact.
-
Count
-
Contains a counter.
-
Countries
-
Contains information about countries.
-
CountryInfo
-
Contains information about a country.
-
CreateBasicGroupChat
-
Returns an existing chat corresponding to a known basic group.
-
CreateCall
-
Creates a new call.
-
CreateChatFolder
-
Creates new chat folder. Returns information about the created chat folder. There can be up to getOption("chat_folder_count_max") chat folders, but the limit can be increased with Telegram Premium.
-
CreateChatFolderInviteLink
-
Creates a new invite link for a chat folder. A link can be created for a chat folder if it has only pinned and included chats.
-
CreateChatInviteLink
-
Creates a new invite link for a chat. Available for basic groups, supergroups, and channels. Requires administrator privileges and can_invite_users right in the chat.
-
CreateForumTopic
-
Creates a topic in a forum supergroup chat; requires can_manage_topics rights in the supergroup.
-
CreateInvoiceLink
-
Creates a link for the given invoice; for bots only.
-
CreateNewBasicGroupChat
-
Creates a new basic group and sends a corresponding messageBasicGroupChatCreate. Returns the newly created chat.
-
CreateNewSecretChat
-
Creates a new secret chat. Returns the newly created chat.
-
CreateNewStickerSet
-
Creates a new sticker set. Returns the newly created sticker set.
-
CreateNewSupergroupChat
-
Creates a new supergroup or channel and sends a corresponding messageSupergroupChatCreate. Returns the newly created chat.
-
CreatePrivateChat
-
Returns an existing chat corresponding to a given user.
-
CreateSecretChat
-
Returns an existing chat corresponding to a known secret chat.
-
CreateSupergroupChat
-
Returns an existing chat corresponding to a known supergroup or channel.
-
CreateTemporaryPassword
-
Creates a new temporary password for processing payments.
-
CreateVideoChat
-
Creates a video chat (a group call bound to a chat). Available only for basic groups, supergroups and channels; requires can_manage_video_chats rights.
-
CustomRequestResult
-
Contains the result of a custom request.
-
DatabaseStatistics
-
Contains database statistics.
-
Date
-
Represents a date according to the Gregorian calendar.
-
DatedFile
-
File with the date it was uploaded.
-
DateRange
-
Represents a date range.
-
DeepLinkInfo
-
Contains information about a tg: deep link.
-
DeleteAccount
-
Deletes the account of the current user, deleting all information associated with the user from the server. The phone number of the account can be used to create a new account..
-
DeleteAllCallMessages
-
Deletes all call messages.
-
DeleteAllRevokedChatInviteLinks
-
Deletes all revoked chat invite links created by a given chat administrator. Requires administrator privileges and can_invite_users right in the chat for own links and owner privileges for other links.
-
DeleteChat
-
Deletes a chat along with all messages in the corresponding chat for all chat members. For group chats this will release the usernames and remove all members..
-
DeleteChatFolder
-
Deletes existing chat folder.
-
DeleteChatFolderInviteLink
-
Deletes an invite link for a chat folder.
-
DeleteChatHistory
-
Deletes all messages in the chat. Use chat.can_be_deleted_only_for_self and chat.can_be_deleted_for_all_users fields to find whether and how the method can be applied to the chat.
-
DeleteChatMessagesByDate
-
Deletes all messages between the specified dates in a chat. Supported only for private chats and basic groups. Messages sent in the last 30 seconds will not be deleted.
-
DeleteChatMessagesBySender
-
Deletes all messages sent by the specified message sender in a chat. Supported only for supergroups; requires can_delete_messages administrator privileges.
-
DeleteChatReplyMarkup
-
Deletes the default reply markup from a chat. Must be called after a one-time keyboard or a replyMarkupForceReply reply markup has been used. An updateChatReplyMarkup update will be sent if the reply markup is changed.
-
DeleteCommands
-
Deletes commands supported by the bot for the given user scope and language; for bots only.
-
DeleteFile
-
Deletes a file from the TDLib file cache.
-
DeleteForumTopic
-
Deletes all messages in a forum topic; requires can_delete_messages administrator right in the supergroup unless the user is creator of the topic, the topic has no messages from other users and has at most 11 messages.
-
DeleteLanguagePack
-
Deletes all information about a language pack in the current localization target. The language pack which is currently in use (including base language pack) or is being synchronized can't be deleted..
-
DeleteMessages
-
Deletes messages.
-
DeletePassportElement
-
Deletes a Telegram Passport element.
-
DeleteProfilePhoto
-
Deletes a profile photo.
-
DeleteRevokedChatInviteLink
-
Deletes revoked chat invite links. Requires administrator privileges and can_invite_users right in the chat for own links and owner privileges for other links.
-
DeleteSavedCredentials
-
Deletes saved credentials for all payment provider bots.
-
DeleteSavedOrderInfo
-
Deletes saved order information.
-
DeleteStickerSet
-
Deleted a sticker set; for bots only.
-
DeleteStory
-
Deletes a previously sent story. Can be called only if story.can_be_deleted == true.
-
Destroy
-
Closes the TDLib instance, destroying all local data without a proper logout. The current user session will remain in the list of all active sessions. All local data will be destroyed..
-
DeviceToken
-
Represents a data needed to subscribe for push notifications through registerDevice method..
-
DeviceTokenApplePush
-
A token for Apple Push Notification service.
-
DeviceTokenApplePushVoIP
-
A token for Apple Push Notification service VoIP notifications.
-
DeviceTokenBlackBerryPush
-
A token for BlackBerry Push Service.
-
DeviceTokenFirebaseCloudMessaging
-
A token for Firebase Cloud Messaging.
-
DeviceTokenHuaweiPush
-
A token for HUAWEI Push Service.
-
DeviceTokenMicrosoftPush
-
A token for Microsoft Push Notification Service.
-
DeviceTokenMicrosoftPushVoIP
-
A token for Microsoft Push Notification Service VoIP channel.
-
DeviceTokenSimplePush
-
A token for Simple Push API for Firefox OS.
-
DeviceTokenTizenPush
-
A token for Tizen Push Service.
-
DeviceTokenUbuntuPush
-
A token for Ubuntu Push Client service.
-
DeviceTokenWebPush
-
A token for web Push API.
-
DeviceTokenWindowsPush
-
A token for Windows Push Notification Services.
-
DiceStickers
-
Contains animated stickers which must be used for dice animation rendering.
-
DiceStickersRegular
-
A regular animated sticker.
-
Animated stickers to be combined into a slot machine.
-
DisableAllSupergroupUsernames
-
Disables all active non-editable usernames of a supergroup or channel, requires owner privileges in the supergroup or channel.
-
DisableProxy
-
Disables the currently enabled proxy. Can be called before authorization.
-
DiscardCall
-
Discards a call.
-
DisconnectAllWebsites
-
Disconnects all websites from the current user's Telegram account.
-
DisconnectWebsite
-
Disconnects website from the current user's Telegram account.
-
Document
-
Describes a document of any type.
-
DownloadedFileCounts
-
Contains number of being downloaded and recently downloaded files found.
-
DownloadFile
-
Downloads a file from the cloud. Download progress and completion of the download will be notified through updateFile updates.
-
DraftMessage
-
Contains information about a message draft.
-
EditChatFolder
-
Edits existing chat folder. Returns information about the edited chat folder.
-
EditChatFolderInviteLink
-
Edits an invite link for a chat folder.
-
EditChatInviteLink
-
Edits a non-primary invite link for a chat. Available for basic groups, supergroups, and channels. Requires administrator privileges and can_invite_users right in the chat for own links and owner privileges for other links.
-
EditCustomLanguagePackInfo
-
Edits information about a custom local language pack in the current localization target. Can be called before authorization.
-
EditForumTopic
-
Edits title and icon of a topic in a forum supergroup chat; requires can_manage_topics administrator right in the supergroup unless the user is creator of the topic.
-
EditInlineMessageCaption
-
Edits the caption of an inline message sent via a bot; for bots only.
-
EditInlineMessageLiveLocation
-
Edits the content of a live location in an inline message sent via a bot; for bots only.
-
EditInlineMessageMedia
-
Edits the content of a message with an animation, an audio, a document, a photo or a video in an inline message sent via a bot; for bots only.
-
EditInlineMessageReplyMarkup
-
Edits the reply markup of an inline message sent via a bot; for bots only.
-
EditInlineMessageText
-
Edits the text of an inline text or game message sent via a bot; for bots only.
-
EditMessageCaption
-
Edits the message content caption. Returns the edited message after the edit is completed on the server side.
-
EditMessageLiveLocation
-
Edits the message content of a live location. Messages can be edited for a limited period of time specified in the live location. Returns the edited message after the edit is completed on the server side.
-
EditMessageMedia
-
Edits the content of a message with an animation, an audio, a document, a photo or a video, including message caption. If only the caption needs to be edited, use editMessageCaption instead..
-
EditMessageReplyMarkup
-
Edits the message reply markup; for bots only. Returns the edited message after the edit is completed on the server side.
-
EditMessageSchedulingState
-
Edits the time when a scheduled message will be sent. Scheduling state of all messages in the same album or forwarded together with the message will be also changed.
-
EditMessageText
-
Edits the text of a message (or a text of a game message). Returns the edited message after the edit is completed on the server side.
-
EditProxy
-
Edits an existing proxy server for network requests. Can be called before authorization.
-
EditStory
-
Changes content and caption of a story. Can be called only if story.can_be_edited == true.
-
EmailAddressAuthentication
-
Contains authentication data for a email address.
-
EmailAddressAuthenticationAppleId
-
An authentication token received through Apple ID.
-
EmailAddressAuthenticationCode
-
An authentication code delivered to a user's email address.
-
EmailAddressAuthenticationCodeInfo
-
Information about the email address authentication code that was sent.
-
EmailAddressAuthenticationGoogleId
-
An authentication token received through Google ID.
-
EmailAddressResetState
-
Describes reset state of a email address.
-
EmailAddressResetStateAvailable
-
Email address can be reset after the given period. Call resetAuthenticationEmailAddress to reset it and allow the user to authorize with a code sent to the user's phone number.
-
EmailAddressResetStatePending
-
Email address reset has already been requested. Call resetAuthenticationEmailAddress to check whether immediate reset is possible.
-
EmojiCategories
-
Represents a list of emoji categories.
-
EmojiCategory
-
Contains a list of similar emoji to search for in getStickers and searchStickers.
-
EmojiCategoryType
-
Describes type of an emoji category.
-
EmojiCategoryTypeChatPhoto
-
The category must be used for chat photo emoji selection.
-
EmojiCategoryTypeDefault
-
The category must be used by default.
-
EmojiCategoryTypeEmojiStatus
-
The category must be used for emoji status selection.
-
EmojiReaction
-
Contains information about a emoji reaction.
-
Emojis
-
Represents a list of emoji.
-
EmojiStatus
-
Describes a custom emoji to be shown instead of the Telegram Premium badge.
-
EmojiStatuses
-
Contains a list of custom emoji identifiers, which can be set as emoji statuses.
-
EnableProxy
-
Enables a proxy. Only one proxy can be enabled at a time. Can be called before authorization.
-
EncryptedCredentials
-
Contains encrypted Telegram Passport data credentials.
-
EncryptedPassportElement
-
Contains information about an encrypted Telegram Passport element; for bots only.
-
EndGroupCall
-
Ends a group call. Requires groupCall.can_be_managed.
-
EndGroupCallRecording
-
Ends recording of an active group call. Requires groupCall.can_be_managed group call flag.
-
EndGroupCallScreenSharing
-
Ends screen sharing in a joined group call.
-
Error
-
An object of this type can be returned on every function call, in case of an error.
-
File
-
Represents a file.
-
FileDownload
-
Describes a file added to file download list.
-
FileDownloadedPrefixSize
-
Contains size of downloaded prefix of a file.
-
FilePart
-
Contains a part of a file.
-
FileType
-
Represents the type of a file.
-
FileTypeAnimation
-
The file is an animation.
-
FileTypeAudio
-
The file is an audio file.
-
FileTypeDocument
-
The file is a document.
-
FileTypeNone
-
The data is not a file.
-
FileTypeNotificationSound
-
The file is a notification sound.
-
FileTypePhoto
-
The file is a photo.
-
FileTypePhotoStory
-
The file is a photo published as a story.
-
FileTypeProfilePhoto
-
The file is a profile photo.
-
FileTypeSecret
-
The file was sent to a secret chat (the file type is not known to the server).
-
FileTypeSecretThumbnail
-
The file is a thumbnail of a file from a secret chat.
-
FileTypeSecure
-
The file is a file from Secure storage used for storing Telegram Passport files.
-
FileTypeSticker
-
The file is a sticker.
-
FileTypeThumbnail
-
The file is a thumbnail of another file.
-
FileTypeUnknown
-
The file type is not yet known.
-
FileTypeVideo
-
The file is a video.
-
FileTypeVideoNote
-
The file is a video note.
-
FileTypeVideoStory
-
The file is a video published as a story.
-
FileTypeVoiceNote
-
The file is a voice note.
-
FileTypeWallpaper
-
The file is a wallpaper or a background pattern.
-
FinishFileGeneration
-
Finishes the file generation.
-
FirebaseAuthenticationSettings
-
Contains settings for Firebase Authentication in the official applications.
-
FirebaseAuthenticationSettingsAndroid
-
Settings for Firebase Authentication in the official Android application.
-
FirebaseAuthenticationSettingsIos
-
Settings for Firebase Authentication in the official iOS application.
-
FormattedText
-
A text with some entities.
-
ForumTopic
-
Describes a forum topic.
-
ForumTopicIcon
-
Describes a forum topic icon.
-
ForumTopicInfo
-
Contains basic information about a forum topic.
-
ForumTopics
-
Describes a list of forum topics.
-
ForwardMessages
-
Forwards previously sent messages. Returns the forwarded messages in the same order as the message identifiers passed in message_ids. If a message can't be forwarded, null will be returned instead of the message.
-
FoundChatBoosts
-
Contains a list of boosts applied to a chat.
-
FoundChatMessages
-
Contains a list of messages found by a search in a given chat.
-
FoundFileDownloads
-
Contains a list of downloaded files, found by a search.
-
FoundMessages
-
Contains a list of messages found by a search.
-
FoundPositions
-
Contains 0-based positions of matched objects.
-
FoundWebApp
-
Contains information about a Web App found by its short name.
-
Func
-
-
Game
-
Describes a game. Use getInternalLink with internalLinkTypeGame to share the game.
-
GameHighScore
-
Contains one row of the game high score table.
-
GameHighScores
-
Contains a list of game high scores.
-
GetAccountTtl
-
Returns the period of inactivity after which the account of the current user will automatically be deleted.
-
GetActiveLiveLocationMessages
-
Returns all active live locations that need to be updated by the application. The list is persistent across application restarts only if the message database is used.
-
GetActiveSessions
-
Returns all active sessions of the current user.
-
GetAllPassportElements
-
Returns all available Telegram Passport elements.
-
GetAllStickerEmojis
-
Returns unique emoji that correspond to stickers to be found by the getStickers(sticker_type, query, 1000000, chat_id).
-
GetAnimatedEmoji
-
Returns an animated emoji corresponding to a given emoji. Returns a 404 error if the emoji has no animated emoji.
-
GetApplicationConfig
-
Returns application config, provided by the server. Can be called before authorization.
-
GetApplicationDownloadLink
-
Returns the link for downloading official Telegram application to be used when the current user invites friends to Telegram.
-
GetArchiveChatListSettings
-
Returns settings for automatic moving of chats to and from the Archive chat lists.
-
GetArchivedStickerSets
-
Returns a list of archived sticker sets.
-
GetAttachedStickerSets
-
Returns a list of sticker sets attached to a file, including regular, mask, and emoji sticker sets. Currently, only animations, photos, and videos can have attached sticker sets.
-
Returns information about a bot that can be added to attachment or side menu.
-
GetAuthorizationState
-
Returns the current authorization state; this is an offline request. For informational purposes only. Use updateAuthorizationState instead to maintain the current authorization state. Can be called before initialization.
-
GetAutoDownloadSettingsPresets
-
Returns auto-download settings presets for the current user.
-
GetAutosaveSettings
-
Returns autosave settings for the current user.
-
GetBackgrounds
-
Returns backgrounds installed by the user.
-
GetBackgroundUrl
-
Constructs a persistent HTTP URL for a background.
-
GetBankCardInfo
-
Returns information about a bank card.
-
GetBasicGroup
-
Returns information about a basic group by its identifier. This is an offline request if the current user is not a bot.
-
GetBasicGroupFullInfo
-
Returns full information about a basic group by its identifier.
-
GetBlockedMessageSenders
-
Returns users and chats that were blocked by the current user.
-
GetBotInfoDescription
-
Returns the text shown in the chat with a bot if the chat is empty in the given language. Can be called only if userTypeBot.can_be_edited == true.
-
GetBotInfoShortDescription
-
Returns the text shown on a bot's profile page and sent together with the link when users share the bot in the given language. Can be called only if userTypeBot.can_be_edited == true.
-
GetBotName
-
Returns the name of a bot in the given language. Can be called only if userTypeBot.can_be_edited == true.
-
GetCallbackQueryAnswer
-
Sends a callback query to a bot and returns an answer. Returns an error with code 502 if the bot fails to answer the query before the query timeout expires.
-
GetCallbackQueryMessage
-
Returns information about a message with the callback button that originated a callback query; for bots only.
-
GetChat
-
Returns information about a chat by its identifier; this is an offline request if the current user is not a bot.
-
GetChatActiveStories
-
Returns the list of active stories posted by the given chat.
-
GetChatAdministrators
-
Returns a list of administrators of the chat with their custom titles.
-
GetChatArchivedStories
-
Returns the list of all stories posted by the given chat; requires can_edit_stories rights for channel chats..
-
GetChatAvailableMessageSenders
-
Returns list of message sender identifiers, which can be used to send messages in a chat.
-
GetChatBoostLink
-
Returns an HTTPS link to boost the specified channel chat.
-
GetChatBoostLinkInfo
-
Returns information about a link to boost a chat. Can be called for any internal link of the type internalLinkTypeChatBoost.
-
GetChatBoosts
-
Returns list of boosts applied to a chat. The user must be an administrator in the channel chat to get the list of boosts.
-
GetChatBoostStatus
-
Returns the current boost status for a channel chat.
-
GetChatEventLog
-
Returns a list of service actions taken by chat members and administrators in the last 48 hours. Available only for supergroups and channels. Requires administrator rights. Returns results in reverse chronological order (i.e., in order of decreasing event_id).
-
GetChatFolder
-
Returns information about a chat folder by its identifier.
-
GetChatFolderChatCount
-
Returns approximate number of chats in a being created chat folder. Main and archive chat lists must be fully preloaded for this function to work correctly.
-
GetChatFolderChatsToLeave
-
Returns identifiers of pinned or always included chats from a chat folder, which are suggested to be left when the chat folder is deleted.
-
GetChatFolderDefaultIconName
-
Returns default icon name for a folder. Can be called synchronously.
-
GetChatFolderInviteLinks
-
Returns invite links created by the current user for a shareable chat folder.
-
GetChatFolderNewChats
-
Returns new chats added to a shareable chat folder by its owner. The method must be called at most once in getOption("chat_folder_new_chats_update_period") for the given chat folder.
-
GetChatHistory
-
Returns messages in a chat. The messages are returned in a reverse chronological order (i.e., in order of decreasing message_id)..
-
GetChatInviteLink
-
Returns information about an invite link. Requires administrator privileges and can_invite_users right in the chat to get own links and owner privileges to get other links.
-
GetChatInviteLinkCounts
-
Returns list of chat administrators with number of their invite links. Requires owner privileges in the chat.
-
GetChatInviteLinkMembers
-
Returns chat members joined a chat via an invite link. Requires administrator privileges and can_invite_users right in the chat for own links and owner privileges for other links.
-
GetChatInviteLinks
-
Returns invite links for a chat created by specified administrator. Requires administrator privileges and can_invite_users right in the chat to get own links and owner privileges to get other links.
-
GetChatJoinRequests
-
Returns pending join requests in a chat.
-
GetChatListsToAddChat
-
Returns chat lists to which the chat can be added. This is an offline request.
-
GetChatMember
-
Returns information about a single member of a chat.
-
GetChatMessageByDate
-
Returns the last message sent in a chat no later than the specified date.
-
GetChatMessageCalendar
-
Returns information about the next messages of the specified type in the chat split by days. Returns the results in reverse chronological order. Can return partial result for the last returned day. Behavior of this method depends on the value of the option "utc_time_offset".
-
GetChatMessageCount
-
Returns approximate number of messages of the specified type in the chat.
-
GetChatMessagePosition
-
Returns approximate 1-based position of a message among messages, which can be found by the specified filter in the chat. Cannot be used in secret chats.
-
GetChatNotificationSettingsExceptions
-
Returns list of chats with non-default notification settings for new messages.
-
GetChatPinnedMessage
-
Returns information about a newest pinned message in the chat.
-
GetChatPinnedStories
-
Returns the list of pinned stories posted by the given chat. The stories are returned in a reverse chronological order (i.e., in order of decreasing story_id)..
-
GetChats
-
Returns an ordered list of chats from the beginning of a chat list. For informational purposes only. Use loadChats and updates processing instead to maintain chat lists in a consistent state.
-
GetChatScheduledMessages
-
Returns all scheduled messages in a chat. The messages are returned in a reverse chronological order (i.e., in order of decreasing message_id).
-
GetChatsForChatFolderInviteLink
-
Returns identifiers of chats from a chat folder, suitable for adding to a chat folder invite link.
-
GetChatSparseMessagePositions
-
Returns sparse positions of messages of the specified type in the chat to be used for shared media scroll implementation. Returns the results in reverse chronological order (i.e., in order of decreasing message_id)..
-
Returns sponsored messages to be shown in a chat; for channel chats only.
-
GetChatStatistics
-
Returns detailed statistics about a chat. Currently, this method can be used only for supergroups and channels. Can be used only if supergroupFullInfo.can_get_statistics == true.
-
GetChatsToSendStories
-
Returns channel chats in which the current user has the right to post stories. The chats must be rechecked with canSendStory before actually trying to post a story there.
-
GetCloseFriends
-
Returns all close friends of the current user.
-
GetCommands
-
Returns list of commands supported by the bot for the given user scope and language; for bots only.
-
GetConnectedWebsites
-
Returns all website where the current user used Telegram to log in.
-
GetContacts
-
Returns all contacts of the user.
-
GetCountries
-
Returns information about existing countries. Can be called before authorization.
-
GetCountryCode
-
Uses the current IP address to find the current country. Returns two-letter ISO 3166-1 alpha-2 country code. Can be called before authorization.
-
GetCreatedPublicChats
-
Returns a list of public chats of the specified type, owned by the user.
-
GetCurrentState
-
Returns all updates needed to restore current TDLib state, i.e. all actual updateAuthorizationState/updateUser/updateNewChat and others. This is especially useful if TDLib is run in a separate process. Can be called before initialization.
-
GetCustomEmojiReactionAnimations
-
Returns TGS stickers with generic animations for custom emoji reactions.
-
GetCustomEmojiStickers
-
Returns list of custom emoji stickers by their identifiers. Stickers are returned in arbitrary order. Only found stickers are returned.
-
GetDatabaseStatistics
-
Returns database statistics.
-
GetDeepLinkInfo
-
Returns information about a tg:// deep link. Use "tg://need_update_for_some_feature" or "tg:some_unsupported_feature" for testing. Returns a 404 error for unknown links. Can be called before authorization.
-
GetDefaultChatPhotoCustomEmojiStickers
-
Returns default list of custom emoji stickers for placing on a chat photo.
-
GetDefaultEmojiStatuses
-
Returns default emoji statuses.
-
GetDefaultMessageAutoDeleteTime
-
Returns default message auto-delete time setting for new chats.
-
GetDefaultProfilePhotoCustomEmojiStickers
-
Returns default list of custom emoji stickers for placing on a profile photo.
-
GetEmojiCategories
-
Returns available emojis categories.
-
GetEmojiReaction
-
Returns information about a emoji reaction. Returns a 404 error if the reaction is not found.
-
GetEmojiSuggestionsUrl
-
Returns an HTTP URL which can be used to automatically log in to the translation platform and suggest new emoji replacements. The URL will be valid for 30 seconds after generation.
-
GetExternalLink
-
Returns an HTTP URL which can be used to automatically authorize the current user on a website after clicking an HTTP link. Use the method getExternalLinkInfo to find whether a prior user confirmation is needed.
-
GetExternalLinkInfo
-
Returns information about an action to be done when the current user clicks an external link. Don't use this method for links from secret chats if web page preview is disabled in secret chats.
-
GetFavoriteStickers
-
Returns favorite stickers.
-
GetFile
-
Returns information about a file; this is an offline request.
-
GetFileDownloadedPrefixSize
-
Returns file downloaded prefix size from a given offset, in bytes.
-
GetFileExtension
-
Returns the extension of a file, guessed by its MIME type. Returns an empty string on failure. Can be called synchronously.
-
GetFileMimeType
-
Returns the MIME type of a file, guessed by its extension. Returns an empty string on failure. Can be called synchronously.
-
GetForumTopic
-
Returns information about a forum topic.
-
GetForumTopicDefaultIcons
-
Returns list of custom emojis, which can be used as forum topic icon by all users.
-
GetForumTopicLink
-
Returns an HTTPS link to a topic in a forum chat. This is an offline request.
-
GetForumTopics
-
Returns found forum topics in a forum chat. This is a temporary method for getting information about topic list from the server.
-
GetGameHighScores
-
Returns the high scores for a game and some part of the high score table in the range of the specified user; for bots only.
-
GetGroupCall
-
Returns information about a group call.
-
GetGroupCallInviteLink
-
Returns invite link to a video chat in a public chat.
-
GetGroupCallStreams
-
Returns information about available group call streams.
-
GetGroupCallStreamSegment
-
Returns a file with a segment of a group call stream in a modified OGG format for audio or MPEG-4 format for video.
-
GetGroupsInCommon
-
Returns a list of common group chats with a given user. Chats are sorted by their type and creation date.
-
GetImportedContactCount
-
Returns the total number of imported contacts.
-
GetInactiveSupergroupChats
-
Returns a list of recently inactive supergroups and channels. Can be used when user reaches limit on the number of joined supergroups and channels and receives CHANNELS_TOO_MUCH error. Also, the limit can be increased with Telegram Premium.
-
GetInlineGameHighScores
-
Returns game high scores and some part of the high score table in the range of the specified user; for bots only.
-
GetInlineQueryResults
-
Sends an inline query to a bot and returns its results. Returns an error with code 502 if the bot fails to answer the query before the query timeout expires.
-
GetInstalledStickerSets
-
Returns a list of installed sticker sets.
-
GetInternalLink
-
Returns an HTTPS or a tg: link with the given type. Can be called before authorization.
-
GetInternalLinkType
-
Returns information about the type of an internal link. Returns a 404 error if the link is not internal. Can be called before authorization.
-
GetJsonString
-
Converts a JsonValue object to corresponding JSON-serialized string. Can be called synchronously.
-
GetJsonValue
-
Converts a JSON-serialized string to corresponding JsonValue object. Can be called synchronously.
-
GetLanguagePackInfo
-
Returns information about a language pack. Returned language pack identifier may be different from a provided one. Can be called before authorization.
-
GetLanguagePackString
-
Returns a string stored in the local database from the specified localization target and language pack by its key. Returns a 404 error if the string is not found. Can be called synchronously.
-
GetLanguagePackStrings
-
Returns strings from a language pack in the current localization target by their keys. Can be called before authorization.
-
GetLocalizationTargetInfo
-
Returns information about the current localization target. This is an offline request if only_local is true. Can be called before authorization.
-
GetLoginUrl
-
Returns an HTTP URL which can be used to automatically authorize the user on a website after clicking an inline button of type inlineKeyboardButtonTypeLoginUrl..
-
GetLoginUrlInfo
-
Returns information about a button of type inlineKeyboardButtonTypeLoginUrl. The method needs to be called when the user presses the button.
-
GetLogStream
-
Returns information about currently used log stream for internal logging of TDLib. Can be called synchronously.
-
GetLogTags
-
Returns list of available TDLib internal log tags, for example,
"actor", "binlog", "connections", "notifications", "proxy"
. Can be called synchronously.
-
GetLogTagVerbosityLevel
-
Returns current verbosity level for a specified TDLib internal log tag. Can be called synchronously.
-
GetLogVerbosityLevel
-
Returns current verbosity level of the internal logging of TDLib. Can be called synchronously.
-
GetMapThumbnailFile
-
Returns information about a file with a map thumbnail in PNG format. Only map thumbnail files with size less than 1MB can be downloaded.
-
GetMarkdownText
-
Replaces text entities with Markdown formatting in a human-friendly format. Entities that can't be represented in Markdown unambiguously are kept as is. Can be called synchronously.
-
GetMe
-
Returns the current user.
-
Returns menu button set by the bot for the given user; for bots only.
-
GetMessage
-
Returns information about a message.
-
GetMessageAddedReactions
-
Returns reactions added for a message, along with their sender.
-
GetMessageAvailableReactions
-
Returns reactions, which can be added to a message. The list can change after updateActiveEmojiReactions, updateChatAvailableReactions for the chat, or updateMessageInteractionInfo for the message.
-
GetMessageEmbeddingCode
-
Returns an HTML code for embedding the message. Available only for messages in supergroups and channels with a username.
-
GetMessageFileType
-
Returns information about a file with messages exported from another application.
-
GetMessageImportConfirmationText
-
Returns a confirmation text to be shown to the user before starting message import.
-
GetMessageLink
-
Returns an HTTPS link to a message in a chat. Available only for already sent messages in supergroups and channels, or if message.can_get_media_timestamp_links and a media timestamp link is generated. This is an offline request.
-
GetMessageLinkInfo
-
Returns information about a public or private message link. Can be called for any internal link of the type internalLinkTypeMessage.
-
GetMessageLocally
-
Returns information about a message, if it is available without sending network request. This is an offline request.
-
GetMessagePublicForwards
-
Returns forwarded copies of a channel message to different public channels. For optimal performance, the number of returned messages is chosen by TDLib.
-
GetMessages
-
Returns information about messages. If a message is not found, returns null on the corresponding position of the result.
-
GetMessageStatistics
-
Returns detailed statistics about a message. Can be used only if message.can_get_statistics == true.
-
GetMessageThread
-
Returns information about a message thread. Can be used only if message.can_get_message_thread == true.
-
GetMessageThreadHistory
-
Returns messages in a message thread of a message. Can be used only if message.can_get_message_thread == true. Message thread of a channel message is in the channel's linked supergroup..
-
GetMessageViewers
-
Returns viewers of a recent outgoing message in a basic group or a supergroup chat. For video notes and voice notes only users, opened content of the message, are returned. The method can be called if message.can_get_viewers == true.
-
GetNetworkStatistics
-
Returns network data usage statistics. Can be called before authorization.
-
GetOption
-
Returns the value of an option by its name. (Check the list of available options on https://core.telegram.org/tdlib/options.) Can be called before authorization. Can be called synchronously for options "version" and "commit_hash".
-
GetPassportAuthorizationForm
-
Returns a Telegram Passport authorization form for sharing data with a service.
-
GetPassportAuthorizationFormAvailableElements
-
Returns already available Telegram Passport elements suitable for completing a Telegram Passport authorization form. Result can be received only once for each authorization form.
-
GetPassportElement
-
Returns one of the available Telegram Passport elements.
-
GetPasswordState
-
Returns the current state of 2-step verification.
-
GetPaymentForm
-
Returns an invoice payment form. This method must be called when the user presses inline button of the type inlineKeyboardButtonTypeBuy.
-
GetPaymentReceipt
-
Returns information about a successful payment.
-
GetPhoneNumberInfo
-
Returns information about a phone number by its prefix. Can be called before authorization.
-
GetPhoneNumberInfoSync
-
Returns information about a phone number by its prefix synchronously. getCountries must be called at least once after changing localization to the specified language if properly localized country information is expected. Can be called synchronously.
-
GetPollVoters
-
Returns message senders voted for the specified option in a non-anonymous polls. For optimal performance, the number of returned users is chosen by TDLib.
-
GetPreferredCountryLanguage
-
Returns an IETF language tag of the language preferred in the country, which must be used to fill native fields in Telegram Passport personal details. Returns a 404 error if unknown.
-
GetPremiumFeatures
-
Returns information about features, available to Premium users.
-
GetPremiumLimit
-
Returns information about a limit, increased for Premium users. Returns a 404 error if the limit is unknown.
-
GetPremiumState
-
Returns state of Telegram Premium subscription and promotion videos for Premium features.
-
GetPremiumStickerExamples
-
Returns examples of premium stickers for demonstration purposes.
-
GetPremiumStickers
-
Returns premium stickers from regular sticker sets.
-
GetProxies
-
Returns list of proxies that are currently set up. Can be called before authorization.
-
GetProxyLink
-
Returns an HTTPS link, which can be used to add a proxy. Available only for SOCKS5 and MTProto proxies. Can be called before authorization.
-
GetPushReceiverId
-
Returns a globally unique push notification subscription identifier for identification of an account, which has received a push notification. Can be called synchronously.
-
GetRecentEmojiStatuses
-
Returns recent emoji statuses.
-
GetRecentInlineBots
-
Returns up to 20 recently used inline bots in the order of their last usage.
-
GetRecentlyOpenedChats
-
Returns recently opened chats; this is an offline request. Returns chats in the order of last opening.
-
GetRecentlyVisitedTMeUrls
-
Returns t.me URLs recently visited by a newly registered user.
-
GetRecentStickers
-
Returns a list of recently used stickers.
-
GetRecommendedChatFolders
-
Returns recommended chat folders for the current user.
-
GetRecoveryEmailAddress
-
Returns a 2-step verification recovery email address that was previously set up. This method can be used to verify a password provided by the user.
-
GetRemoteFile
-
Returns information about a file by its remote identifier; this is an offline request. Can be used to register a URL as a file for further uploading, or sending as a message. Even the request succeeds, the file can be used only if it is still accessible to the user..
-
GetRepliedMessage
-
Returns information about a message that is replied by a given message. Also, returns the pinned message, the game message, the invoice message, and the topic creation message for messages.
-
GetSavedAnimations
-
Returns saved animations.
-
GetSavedNotificationSound
-
Returns saved notification sound by its identifier. Returns a 404 error if there is no saved notification sound with the specified identifier.
-
GetSavedNotificationSounds
-
Returns list of saved notification sounds. If a sound isn't in the list, then default sound needs to be used.
-
GetSavedOrderInfo
-
Returns saved order information. Returns a 404 error if there is no saved order information.
-
GetScopeNotificationSettings
-
Returns the notification settings for chats of a given type.
-
GetSecretChat
-
Returns information about a secret chat by its identifier. This is an offline request.
-
GetStatisticalGraph
-
Loads an asynchronous or a zoomed in statistical graph.
-
GetStickerEmojis
-
Returns emoji corresponding to a sticker. The list is only for informational purposes, because a sticker is always sent with a fixed emoji from the corresponding Sticker object.
-
GetStickers
-
Returns stickers from the installed sticker sets that correspond to any of the given emoji or can be found by sticker-specific keywords. If the query is non-empty, then favorite, recently used or trending stickers may also be returned.
-
GetStickerSet
-
Returns information about a sticker set by its identifier.
-
GetStorageStatistics
-
Returns storage usage statistics. Can be called before authorization.
-
GetStorageStatisticsFast
-
Quickly returns approximate storage usage statistics. Can be called before authorization.
-
GetStory
-
Returns a story.
-
GetStoryAvailableReactions
-
Returns reactions, which can be chosen for a story.
-
GetStoryNotificationSettingsExceptions
-
Returns list of chats with non-default notification settings for stories.
-
GetStoryViewers
-
Returns viewers of a story. The method can be called only for stories posted on behalf of the current user.
-
GetSuggestedFileName
-
Returns suggested name for saving a file in a given directory.
-
GetSuggestedStickerSetName
-
Returns a suggested name for a new sticker set with a given title.
-
GetSuitableDiscussionChats
-
Returns a list of basic group and supergroup chats, which can be used as a discussion group for a channel. Returned basic group chats must be first upgraded to supergroups before they can be set as a discussion group..
-
GetSupergroup
-
Returns information about a supergroup or a channel by its identifier. This is an offline request if the current user is not a bot.
-
GetSupergroupFullInfo
-
Returns full information about a supergroup or a channel by its identifier, cached for up to 1 minute.
-
GetSupergroupMembers
-
Returns information about members or banned users in a supergroup or channel. Can be used only if supergroupFullInfo.can_get_members == true; additionally, administrator privileges may be required for some filters.
-
GetSupportName
-
Returns localized name of the Telegram support user; for Telegram support only.
-
GetSupportUser
-
Returns a user that can be contacted to get support.
-
GetTemporaryPasswordState
-
Returns information about the current temporary password.
-
GetTextEntities
-
Returns all entities (mentions, hashtags, cashtags, bot commands, bank card numbers, URLs, and email addresses) found in the text. Can be called synchronously.
-
GetThemedEmojiStatuses
-
Returns up to 8 emoji statuses, which must be shown right after the default Premium Badge in the emoji status list.
-
GetThemeParametersJsonString
-
Converts a themeParameters object to corresponding JSON-serialized string. Can be called synchronously.
-
GetTopChats
-
Returns a list of frequently used chats.
-
GetTrendingStickerSets
-
Returns a list of trending sticker sets. For optimal performance, the number of returned sticker sets is chosen by TDLib.
-
GetUser
-
Returns information about a user by their identifier. This is an offline request if the current user is not a bot.
-
GetUserFullInfo
-
Returns full information about a user by their identifier.
-
GetUserLink
-
Returns an HTTPS link, which can be used to get information about the current user.
-
GetUserPrivacySettingRules
-
Returns the current privacy settings.
-
GetUserProfilePhotos
-
Returns the profile photos of a user. Personal and public photo aren't returned.
-
GetUserSupportInfo
-
Returns support information for the given user; for Telegram support only.
-
GetVideoChatAvailableParticipants
-
Returns list of participant identifiers, on whose behalf a video chat in the chat can be joined.
-
GetVideoChatRtmpUrl
-
Returns RTMP URL for streaming to the chat; requires creator privileges.
-
GetWebAppLinkUrl
-
Returns an HTTPS URL of a Web App to open after a link of the type internalLinkTypeWebApp is clicked.
-
GetWebAppUrl
-
Returns an HTTPS URL of a Web App to open from the side menu, a keyboardButtonTypeWebApp button, an inlineQueryResultsButtonTypeWebApp button, or an internalLinkTypeSideMenuBot link.
-
GetWebPageInstantView
-
Returns an instant view version of a web page if available. Returns a 404 error if the web page has no instant view page.
-
GetWebPagePreview
-
Returns a web page preview by the text of the message. Do not call this function too often. Returns a 404 error if the web page has no preview.
-
GroupCall
-
Describes a group call.
-
GroupCallId
-
Contains the group call identifier.
-
GroupCallParticipant
-
Represents a group call participant.
-
GroupCallParticipantVideoInfo
-
Contains information about a group call participant's video channel.
-
GroupCallRecentSpeaker
-
Describes a recently speaking participant in a group call.
-
GroupCallStream
-
Describes an available stream in a group call.
-
GroupCallStreams
-
Represents a list of group call streams.
-
GroupCallVideoQuality
-
Describes the quality of a group call video.
-
GroupCallVideoQualityFull
-
The best available video quality.
-
GroupCallVideoQualityMedium
-
The medium video quality.
-
GroupCallVideoQualityThumbnail
-
The worst available video quality.
-
GroupCallVideoSourceGroup
-
Describes a group of video synchronization source identifiers.
-
Hashtags
-
Contains a list of hashtags.
-
HideSuggestedAction
-
Hides a suggested action.
-
HttpUrl
-
Contains an HTTP URL.
-
IdentityDocument
-
An identity document.
-
ImportContacts
-
Adds new contacts or edits existing contacts by their phone numbers; contacts' user identifiers are ignored.
-
ImportedContacts
-
Represents the result of an importContacts request.
-
ImportMessages
-
Imports messages exported from another app.
-
InlineKeyboardButton
-
Represents a single button in an inline keyboard.
-
InlineKeyboardButtonType
-
Describes the type of an inline keyboard button.
-
InlineKeyboardButtonTypeBuy
-
A button to buy something. This button must be in the first column and row of the keyboard and can be attached only to a message with content of the type messageInvoice.
-
InlineKeyboardButtonTypeCallback
-
A button that sends a callback query to a bot.
-
InlineKeyboardButtonTypeCallbackGame
-
A button with a game that sends a callback query to a bot. This button must be in the first column and row of the keyboard and can be attached only to a message with content of the type messageGame.
-
InlineKeyboardButtonTypeCallbackWithPassword
-
A button that asks for the 2-step verification password of the current user and then sends a callback query to a bot.
-
InlineKeyboardButtonTypeLoginUrl
-
A button that opens a specified URL and automatically authorize the current user by calling getLoginUrlInfo.
-
InlineKeyboardButtonTypeSwitchInline
-
A button that forces an inline query to the bot to be inserted in the input field.
-
InlineKeyboardButtonTypeUrl
-
A button that opens a specified URL.
-
InlineKeyboardButtonTypeUser
-
A button with a user reference to be handled in the same way as textEntityTypeMentionName entities.
-
InlineKeyboardButtonTypeWebApp
-
A button that opens a Web App by calling openWebApp.
-
InlineQueryResult
-
Represents a single result of an inline query.
-
InlineQueryResultAnimation
-
Represents an animation file.
-
InlineQueryResultArticle
-
Represents a link to an article or web page.
-
InlineQueryResultAudio
-
Represents an audio file.
-
InlineQueryResultContact
-
Represents a user contact.
-
InlineQueryResultDocument
-
Represents a document.
-
InlineQueryResultGame
-
Represents information about a game.
-
InlineQueryResultLocation
-
Represents a point on the map.
-
InlineQueryResultPhoto
-
Represents a photo.
-
InlineQueryResults
-
Represents the results of the inline query. Use sendInlineQueryResultMessage to send the result of the query.
-
InlineQueryResultsButton
-
Represents a button to be shown above inline query results.
-
InlineQueryResultsButtonType
-
Represents a type of a button in results of inline query.
-
InlineQueryResultsButtonTypeStartBot
-
Describes the button that opens a private chat with the bot and sends a start message to the bot with the given parameter.
-
InlineQueryResultsButtonTypeWebApp
-
Describes the button that opens a Web App by calling getWebAppUrl.
-
InlineQueryResultSticker
-
Represents a sticker.
-
InlineQueryResultVenue
-
Represents information about a venue.
-
InlineQueryResultVideo
-
Represents a video.
-
InlineQueryResultVoiceNote
-
Represents a voice note.
-
InputBackground
-
Contains information about background to set.
-
InputBackgroundLocal
-
A background from a local file.
-
InputBackgroundPrevious
-
A background previously set in the chat; for chat backgrounds only.
-
InputBackgroundRemote
-
A background from the server.
-
InputChatPhoto
-
Describes a photo to be set as a user profile or chat photo.
-
InputChatPhotoAnimation
-
An animation in MPEG4 format; must be square, at most 10 seconds long, have width between 160 and 1280 and be at most 2MB in size.
-
InputChatPhotoPrevious
-
A previously used profile photo of the current user.
-
InputChatPhotoStatic
-
A static photo in JPEG format.
-
InputChatPhotoSticker
-
A sticker on a custom background.
-
InputCredentials
-
Contains information about the payment method chosen by the user.
-
InputCredentialsApplePay
-
Applies if a user enters new credentials using Apple Pay.
-
InputCredentialsGooglePay
-
Applies if a user enters new credentials using Google Pay.
-
InputCredentialsNew
-
Applies if a user enters new credentials on a payment provider website.
-
InputCredentialsSaved
-
Applies if a user chooses some previously saved payment credentials. To use their previously saved credentials, the user must have a valid temporary password.
-
InputFile
-
Points to a file.
-
InputFileGenerated
-
A file generated by the application.
-
InputFileId
-
A file defined by its unique identifier.
-
InputFileLocal
-
A file defined by a local path.
-
InputFileRemote
-
A file defined by its remote identifier. The remote identifier is guaranteed to be usable only if the corresponding file is still accessible to the user and known to TDLib..
-
InputIdentityDocument
-
An identity document to be saved to Telegram Passport.
-
InputInlineQueryResult
-
Represents a single result of an inline query; for bots only.
-
InputInlineQueryResultAnimation
-
Represents a link to an animated GIF or an animated (i.e., without sound) H.264/MPEG-4 AVC video.
-
InputInlineQueryResultArticle
-
Represents a link to an article or web page.
-
InputInlineQueryResultAudio
-
Represents a link to an MP3 audio file.
-
InputInlineQueryResultContact
-
Represents a user contact.
-
InputInlineQueryResultDocument
-
Represents a link to a file.
-
InputInlineQueryResultGame
-
Represents a game.
-
InputInlineQueryResultLocation
-
Represents a point on the map.
-
InputInlineQueryResultPhoto
-
Represents link to a JPEG image.
-
InputInlineQueryResultSticker
-
Represents a link to a WEBP, TGS, or WEBM sticker.
-
InputInlineQueryResultVenue
-
Represents information about a venue.
-
InputInlineQueryResultVideo
-
Represents a link to a page containing an embedded video player or a video file.
-
InputInlineQueryResultVoiceNote
-
Represents a link to an opus-encoded audio file within an OGG container, single channel audio.
-
InputInvoice
-
Describes an invoice to process.
-
InputInvoiceMessage
-
An invoice from a message of the type messageInvoice.
-
InputInvoiceName
-
An invoice from a link of the type internalLinkTypeInvoice.
-
InputMessageAnimation
-
An animation message (GIF-style)..
-
InputMessageAudio
-
An audio message.
-
InputMessageContact
-
A message containing a user contact.
-
InputMessageContent
-
The content of a message to send.
-
InputMessageDice
-
A dice message.
-
InputMessageDocument
-
A document message (general file).
-
InputMessageForwarded
-
A forwarded message.
-
InputMessageGame
-
A message with a game; not supported for channels or secret chats.
-
InputMessageInvoice
-
A message with an invoice; can be used only by bots.
-
InputMessageLocation
-
A message with a location.
-
InputMessagePhoto
-
A photo message.
-
InputMessagePoll
-
A message with a poll. Polls can't be sent to secret chats. Polls can be sent only to a private chat with a bot.
-
InputMessageSticker
-
A sticker message.
-
InputMessageStory
-
A message with a forwarded story. Stories can't be sent to secret chats. A story can be forwarded only if story.can_be_forwarded.
-
InputMessageText
-
A text message.
-
InputMessageVenue
-
A message with information about a venue.
-
InputMessageVideo
-
A video message.
-
InputMessageVideoNote
-
A video note message.
-
InputMessageVoiceNote
-
A voice note message.
-
InputPassportElement
-
Contains information about a Telegram Passport element to be saved.
-
InputPassportElementAddress
-
A Telegram Passport element to be saved containing the user's address.
-
InputPassportElementBankStatement
-
A Telegram Passport element to be saved containing the user's bank statement.
-
InputPassportElementDriverLicense
-
A Telegram Passport element to be saved containing the user's driver license.
-
InputPassportElementEmailAddress
-
A Telegram Passport element to be saved containing the user's email address.
-
InputPassportElementError
-
Contains the description of an error in a Telegram Passport element; for bots only.
-
InputPassportElementErrorSource
-
Contains the description of an error in a Telegram Passport element; for bots only.
-
InputPassportElementErrorSourceDataField
-
A data field contains an error. The error is considered resolved when the field's value changes.
-
InputPassportElementErrorSourceFile
-
The file contains an error. The error is considered resolved when the file changes.
-
InputPassportElementErrorSourceFiles
-
The list of attached files contains an error. The error is considered resolved when the file list changes.
-
InputPassportElementErrorSourceFrontSide
-
The front side of the document contains an error. The error is considered resolved when the file with the front side of the document changes.
-
InputPassportElementErrorSourceReverseSide
-
The reverse side of the document contains an error. The error is considered resolved when the file with the reverse side of the document changes.
-
InputPassportElementErrorSourceSelfie
-
The selfie contains an error. The error is considered resolved when the file with the selfie changes.
-
InputPassportElementErrorSourceTranslationFile
-
One of the files containing the translation of the document contains an error. The error is considered resolved when the file with the translation changes.
-
InputPassportElementErrorSourceTranslationFiles
-
The translation of the document contains an error. The error is considered resolved when the list of files changes.
-
InputPassportElementErrorSourceUnspecified
-
The element contains an error in an unspecified place. The error will be considered resolved when new data is added.
-
InputPassportElementIdentityCard
-
A Telegram Passport element to be saved containing the user's identity card.
-
InputPassportElementInternalPassport
-
A Telegram Passport element to be saved containing the user's internal passport.
-
InputPassportElementPassport
-
A Telegram Passport element to be saved containing the user's passport.
-
InputPassportElementPassportRegistration
-
A Telegram Passport element to be saved containing the user's passport registration.
-
InputPassportElementPersonalDetails
-
A Telegram Passport element to be saved containing the user's personal details.
-
InputPassportElementPhoneNumber
-
A Telegram Passport element to be saved containing the user's phone number.
-
InputPassportElementRentalAgreement
-
A Telegram Passport element to be saved containing the user's rental agreement.
-
InputPassportElementTemporaryRegistration
-
A Telegram Passport element to be saved containing the user's temporary registration.
-
InputPassportElementUtilityBill
-
A Telegram Passport element to be saved containing the user's utility bill.
-
InputPersonalDocument
-
A personal document to be saved to Telegram Passport.
-
InputSticker
-
A sticker to be added to a sticker set.
-
InputStoryArea
-
Describes a clickable rectangle area on a story media to be added.
-
InputStoryAreas
-
Contains a list of story areas to be added.
-
InputStoryAreaType
-
Describes type of a clickable rectangle area on a story media to be added.
-
InputStoryAreaTypeFoundVenue
-
An area pointing to a venue found by the bot getOption("venue_search_bot_username").
-
InputStoryAreaTypeLocation
-
An area pointing to a location.
-
InputStoryAreaTypePreviousVenue
-
An area pointing to a venue already added to the story.
-
InputStoryAreaTypeSuggestedReaction
-
An area pointing to a suggested reaction.
-
InputStoryContent
-
The content of a story to send.
-
InputStoryContentPhoto
-
A photo story.
-
InputStoryContentVideo
-
A video story.
-
InputThumbnail
-
A thumbnail to be sent along with a file; must be in JPEG or WEBP format for stickers, and less than 200 KB in size.
-
InternalLinkType
-
Describes an internal https://t.me or tg: link, which must be processed by the application in a special way.
-
InternalLinkTypeActiveSessions
-
The link is a link to the active sessions section of the application. Use getActiveSessions to handle the link.
-
The link is a link to an attachment menu bot to be opened in the specified or a chosen chat. Process given target_chat to open the chat..
-
InternalLinkTypeAuthenticationCode
-
The link contains an authentication code. Call checkAuthenticationCode with the code if the current authorization state is authorizationStateWaitCode.
-
InternalLinkTypeBackground
-
The link is a link to a background. Call searchBackground with the given background name to process the link.
-
InternalLinkTypeBotAddToChannel
-
The link is a link to a Telegram bot, which is supposed to be added to a channel chat as an administrator. Call searchPublicChat with the given bot username and check that the user is a bot,.
-
InternalLinkTypeBotStart
-
The link is a link to a chat with a Telegram bot. Call searchPublicChat with the given bot username, check that the user is a bot, show START button in the chat with the bot,.
-
InternalLinkTypeBotStartInGroup
-
The link is a link to a Telegram bot, which is supposed to be added to a group chat. Call searchPublicChat with the given bot username, check that the user is a bot and can be added to groups,.
-
InternalLinkTypeChangePhoneNumber
-
The link is a link to the change phone number section of the app.
-
InternalLinkTypeChatBoost
-
The link is a link to boost a Telegram chat. Call getChatBoostLinkInfo with the given URL to process the link..
-
InternalLinkTypeChatFolderInvite
-
The link is an invite link to a chat folder. Call checkChatFolderInviteLink with the given invite link to process the link.
-
InternalLinkTypeChatFolderSettings
-
The link is a link to the folder section of the app settings.
-
InternalLinkTypeChatInvite
-
The link is a chat invite link. Call checkChatInviteLink with the given invite link to process the link.
-
InternalLinkTypeDefaultMessageAutoDeleteTimerSettings
-
The link is a link to the default message auto-delete timer settings section of the app settings.
-
InternalLinkTypeEditProfileSettings
-
The link is a link to the edit profile section of the app settings.
-
InternalLinkTypeGame
-
The link is a link to a game. Call searchPublicChat with the given bot username, check that the user is a bot, ask the current user to select a chat to send the game, and then call sendMessage with inputMessageGame.
-
InternalLinkTypeInstantView
-
The link must be opened in an Instant View. Call getWebPageInstantView with the given URL to process the link.
-
InternalLinkTypeInvoice
-
The link is a link to an invoice. Call getPaymentForm with the given invoice name to process the link.
-
InternalLinkTypeLanguagePack
-
The link is a link to a language pack. Call getLanguagePackInfo with the given language pack identifier to process the link.
-
InternalLinkTypeLanguageSettings
-
The link is a link to the language section of the app settings.
-
InternalLinkTypeMessage
-
The link is a link to a Telegram message or a forum topic. Call getMessageLinkInfo with the given URL to process the link.
-
InternalLinkTypeMessageDraft
-
The link contains a message draft text. A share screen needs to be shown to the user, then the chosen chat must be opened and the text is added to the input field.
-
InternalLinkTypePassportDataRequest
-
The link contains a request of Telegram passport data. Call getPassportAuthorizationForm with the given parameters to process the link if the link was received from outside of the application; otherwise, ignore it.
-
InternalLinkTypePhoneNumberConfirmation
-
The link can be used to confirm ownership of a phone number to prevent account deletion. Call sendPhoneNumberConfirmationCode with the given hash and phone number to process the link.
-
InternalLinkTypePremiumFeatures
-
The link is a link to the Premium features screen of the application from which the user can subscribe to Telegram Premium. Call getPremiumFeatures with the given referrer to process the link.
-
InternalLinkTypePrivacyAndSecuritySettings
-
The link is a link to the privacy and security section of the app settings.
-
InternalLinkTypeProxy
-
The link is a link to a proxy. Call addProxy with the given parameters to process the link and add the proxy.
-
InternalLinkTypePublicChat
-
The link is a link to a chat by its username. Call searchPublicChat with the given chat username to process the link.
-
InternalLinkTypeQrCodeAuthentication
-
The link can be used to login the current user on another device, but it must be scanned from QR-code using in-app camera. An alert similar to.
-
InternalLinkTypeRestorePurchases
-
The link forces restore of App Store purchases when opened. For official iOS application only.
-
InternalLinkTypeSettings
-
The link is a link to application settings.
-
The link is a link to a bot, which can be installed to the side menu. Call searchPublicChat with the given bot username, check that the user is a bot and can be added to attachment menu..
-
InternalLinkTypeStickerSet
-
The link is a link to a sticker set. Call searchStickerSet with the given sticker set name to process the link and show the sticker set.
-
InternalLinkTypeStory
-
The link is a link to a story. Call searchPublicChat with the given sender username, then call getStory with the received chat identifier and the given story identifier.
-
InternalLinkTypeTheme
-
The link is a link to a theme. TDLib has no theme support yet.
-
InternalLinkTypeThemeSettings
-
The link is a link to the theme section of the app settings.
-
InternalLinkTypeUnknownDeepLink
-
The link is an unknown tg: link. Call getDeepLinkInfo to process the link.
-
InternalLinkTypeUnsupportedProxy
-
The link is a link to an unsupported proxy. An alert can be shown to the user.
-
InternalLinkTypeUserPhoneNumber
-
The link is a link to a user by its phone number. Call searchUserByPhoneNumber with the given phone number to process the link.
-
InternalLinkTypeUserToken
-
The link is a link to a user by a temporary token. Call searchUserByToken with the given token to process the link.
-
InternalLinkTypeVideoChat
-
The link is a link to a video chat. Call searchPublicChat with the given chat username, and then joinGroupCall with the given invite hash to process the link.
-
InternalLinkTypeWebApp
-
The link is a link to a Web App. Call searchPublicChat with the given bot username, check that the user is a bot, then call searchWebApp with the received bot and the given web_app_short_name..
-
InviteGroupCallParticipants
-
Invites users to an active group call. Sends a service message of type messageInviteVideoChatParticipants for video chats.
-
InviteLinkChatType
-
Describes the type of a chat to which points an invite link.
-
InviteLinkChatTypeBasicGroup
-
The link is an invite link for a basic group.
-
InviteLinkChatTypeChannel
-
The link is an invite link for a channel.
-
InviteLinkChatTypeSupergroup
-
The link is an invite link for a supergroup.
-
Invoice
-
Product invoice.
-
JoinChat
-
Adds the current user as a new member to a chat. Private and secret chats can't be joined using this method. May return an error with a message "INVITE_REQUEST_SENT" if only a join request was created.
-
JoinChatByInviteLink
-
Uses an invite link to add the current user to the chat if possible. May return an error with a message "INVITE_REQUEST_SENT" if only a join request was created.
-
JoinGroupCall
-
Joins an active group call. Returns join response payload for tgcalls.
-
JsonObjectMember
-
Represents one member of a JSON object.
-
JsonValue
-
Represents a JSON value.
-
JsonValueArray
-
Represents a JSON array.
-
JsonValueBoolean
-
Represents a boolean JSON value.
-
JsonValueNull
-
Represents a null JSON value.
-
JsonValueNumber
-
Represents a numeric JSON value.
-
JsonValueObject
-
Represents a JSON object.
-
JsonValueString
-
Represents a string JSON value.
-
KeyboardButton
-
Represents a single button in a bot keyboard.
-
KeyboardButtonType
-
Describes a keyboard button type.
-
KeyboardButtonTypeRequestChat
-
A button that requests a chat to be shared by the current user; available only in private chats. Use the method shareChatWithBot to complete the request.
-
KeyboardButtonTypeRequestLocation
-
A button that sends the user's location when pressed; available only in private chats.
-
KeyboardButtonTypeRequestPhoneNumber
-
A button that sends the user's phone number when pressed; available only in private chats.
-
KeyboardButtonTypeRequestPoll
-
A button that allows the user to create and send a poll when pressed; available only in private chats.
-
KeyboardButtonTypeRequestUser
-
A button that requests a user to be shared by the current user; available only in private chats. Use the method shareUserWithBot to complete the request.
-
KeyboardButtonTypeText
-
A simple button, with text that must be sent when the button is pressed.
-
KeyboardButtonTypeWebApp
-
A button that opens a Web App by calling getWebAppUrl.
-
LabeledPricePart
-
Portion of the price of a product (e.g., "delivery cost", "tax amount").
-
LanguagePackInfo
-
Contains information about a language pack.
-
LanguagePackString
-
Represents one language pack string.
-
LanguagePackStrings
-
Contains a list of language pack strings.
-
LanguagePackStringValue
-
Represents the value of a string in a language pack.
-
LanguagePackStringValueDeleted
-
A deleted language pack string, the value must be taken from the built-in English language pack.
-
LanguagePackStringValueOrdinary
-
An ordinary language pack string.
-
LanguagePackStringValuePluralized
-
A language pack string which has different forms based on the number of some object it mentions. See https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html for more information.
-
LeaveChat
-
Removes the current user from chat members. Private and secret chats can't be left using this method.
-
LeaveGroupCall
-
Leaves a group call.
-
LoadActiveStories
-
Loads more active stories from a story list. The loaded stories will be sent through updates. Active stories are sorted by.
-
LoadChats
-
Loads more chats from a chat list. The loaded chats and their positions in the chat list will be sent through updates. Chats are sorted by the pair (chat.position.order, chat.id) in descending order. Returns a 404 error if all chats have been loaded.
-
LoadGroupCallParticipants
-
Loads more participants of a group call. The loaded participants will be received through updates. Use the field groupCall.loaded_all_participants to check whether all participants have already been loaded.
-
LocalFile
-
Represents a local file.
-
LocalizationTargetInfo
-
Contains information about the current localization target.
-
Location
-
Describes a location on planet Earth.
-
LoginUrlInfo
-
Contains information about an inline button of type inlineKeyboardButtonTypeLoginUrl.
-
LoginUrlInfoOpen
-
An HTTP URL needs to be open.
-
LoginUrlInfoRequestConfirmation
-
An authorization confirmation dialog needs to be shown to the user.
-
LogOut
-
Closes the TDLib instance after a proper logout. Requires an available network connection. All local data will be destroyed. After the logout completes, updateAuthorizationState with authorizationStateClosed will be sent.
-
LogStream
-
Describes a stream to which TDLib internal log is written.
-
LogStreamDefault
-
The log is written to stderr or an OS specific log.
-
LogStreamEmpty
-
The log is written nowhere.
-
LogStreamFile
-
The log is written to a file.
-
LogTags
-
Contains a list of available TDLib internal log tags.
-
LogVerbosityLevel
-
Contains a TDLib internal log verbosity level.
-
MaskPoint
-
Part of the face, relative to which a mask is placed.
-
MaskPointChin
-
The mask is placed relatively to the chin.
-
MaskPointEyes
-
The mask is placed relatively to the eyes.
-
MaskPointForehead
-
The mask is placed relatively to the forehead.
-
MaskPointMouth
-
The mask is placed relatively to the mouth.
-
MaskPosition
-
Position on a photo where a mask is placed.
-
Message
-
Describes a message.
-
MessageAnimatedEmoji
-
A message with an animated emoji.
-
MessageAnimation
-
An animation message (GIF-style)..
-
MessageAudio
-
An audio message.
-
MessageAutoDeleteTime
-
Contains default auto-delete timer setting for new chats.
-
MessageBasicGroupChatCreate
-
A newly created basic group.
-
MessageBotWriteAccessAllowed
-
The user allowed the bot to send messages.
-
MessageCalendar
-
Contains information about found messages, split by days according to the option "utc_time_offset".
-
MessageCalendarDay
-
Contains information about found messages sent on a specific day.
-
MessageCall
-
A message with information about an ended call.
-
MessageChatAddMembers
-
New chat members were added.
-
MessageChatChangePhoto
-
An updated chat photo.
-
MessageChatChangeTitle
-
An updated chat title.
-
MessageChatDeleteMember
-
A chat member was deleted.
-
MessageChatDeletePhoto
-
A deleted chat photo.
-
MessageChatJoinByLink
-
A new member joined the chat via an invite link.
-
MessageChatJoinByRequest
-
A new member was accepted to the chat by an administrator.
-
MessageChatSetBackground
-
A new background was set in the chat.
-
MessageChatSetMessageAutoDeleteTime
-
The auto-delete or self-destruct timer for messages in the chat has been changed.
-
MessageChatSetTheme
-
A theme in the chat has been changed.
-
MessageChatShared
-
The current user shared a chat, which was requested by the bot.
-
MessageChatUpgradeFrom
-
A supergroup has been created from a basic group.
-
MessageChatUpgradeTo
-
A basic group was upgraded to a supergroup and was deactivated as the result.
-
MessageContact
-
A message with a user contact.
-
MessageContactRegistered
-
A contact has registered with Telegram.
-
MessageContent
-
Contains the content of a message.
-
MessageCopyOptions
-
Options to be used when a message content is copied without reference to the original sender. Service messages and messageInvoice can't be copied.
-
MessageCustomServiceAction
-
A non-standard action has happened in the chat.
-
MessageDice
-
A dice message. The dice value is randomly generated by the server.
-
MessageDocument
-
A document message (general file).
-
MessageExpiredPhoto
-
A self-destructed photo message.
-
MessageExpiredVideo
-
A self-destructed video message.
-
MessageExtendedMedia
-
Describes a media, which is attached to an invoice.
-
MessageExtendedMediaPhoto
-
The media is a photo.
-
MessageExtendedMediaPreview
-
The media is hidden until the invoice is paid.
-
MessageExtendedMediaUnsupported
-
The media is unsupported.
-
MessageExtendedMediaVideo
-
The media is a video.
-
MessageFileType
-
Contains information about a file with messages exported from another app.
-
MessageFileTypeGroup
-
The messages was exported from a group chat.
-
MessageFileTypePrivate
-
The messages was exported from a private chat.
-
MessageFileTypeUnknown
-
The messages was exported from a chat of unknown type.
-
MessageForumTopicCreated
-
A forum topic has been created.
-
MessageForumTopicEdited
-
A forum topic has been edited.
-
MessageForumTopicIsClosedToggled
-
A forum topic has been closed or opened.
-
MessageForumTopicIsHiddenToggled
-
A General forum topic has been hidden or unhidden.
-
MessageForwardInfo
-
Contains information about a forwarded message.
-
MessageForwardOrigin
-
Contains information about the origin of a forwarded message.
-
MessageForwardOriginChannel
-
The message was originally a post in a channel.
-
MessageForwardOriginChat
-
The message was originally sent on behalf of a chat.
-
MessageForwardOriginHiddenUser
-
The message was originally sent by a user, which is hidden by their privacy settings.
-
MessageForwardOriginMessageImport
-
The message was imported from an exported message history.
-
MessageForwardOriginUser
-
The message was originally sent by a known user.
-
MessageGame
-
A message with a game.
-
MessageGameScore
-
A new high score was achieved in a game.
-
MessageGiftedPremium
-
Telegram Premium was gifted to the user.
-
MessageInteractionInfo
-
Contains information about interactions with a message.
-
MessageInviteVideoChatParticipants
-
A message with information about an invite to a video chat.
-
MessageInvoice
-
A message with an invoice from a bot. Use getInternalLink with internalLinkTypeBotStart to share the invoice.
-
MessageLink
-
Contains an HTTPS link to a message in a supergroup or channel, or a forum topic.
-
MessageLinkInfo
-
Contains information about a link to a message or a forum topic in a chat.
-
MessageLocation
-
A message with a location.
-
MessagePassportDataReceived
-
Telegram Passport data has been received; for bots only.
-
MessagePassportDataSent
-
Telegram Passport data has been sent to a bot.
-
MessagePaymentSuccessful
-
A payment has been completed.
-
MessagePaymentSuccessfulBot
-
A payment has been completed; for bots only.
-
MessagePhoto
-
A photo message.
-
MessagePinMessage
-
A message has been pinned.
-
MessagePoll
-
A message with a poll.
-
MessagePosition
-
Contains information about a message in a specific position.
-
MessagePositions
-
Contains a list of message positions.
-
MessageProximityAlertTriggered
-
A user in the chat came within proximity alert range.
-
MessageReaction
-
Contains information about a reaction to a message.
-
MessageReplyInfo
-
Contains information about replies to a message.
-
MessageReplyTo
-
Contains information about the message or the story a message is replying to.
-
MessageReplyToMessage
-
Describes a replied message.
-
MessageReplyToStory
-
Describes a replied story.
-
Messages
-
Contains a list of messages.
-
MessageSchedulingState
-
Contains information about the time when a scheduled message will be sent.
-
MessageSchedulingStateSendAtDate
-
The message will be sent at the specified date.
-
MessageSchedulingStateSendWhenOnline
-
The message will be sent when the peer will be online. Applicable to private chats only and when the exact online status of the peer is known.
-
MessageScreenshotTaken
-
A screenshot of a message in the chat has been taken.
-
MessageSelfDestructType
-
Describes when a message will be self-destructed.
-
MessageSelfDestructTypeImmediately
-
The message can be opened only once and will be self-destructed once closed.
-
MessageSelfDestructTypeTimer
-
The message will be self-destructed in the specified time after its content was opened.
-
MessageSender
-
Contains information about the sender of a message.
-
MessageSenderChat
-
The message was sent on behalf of a chat.
-
MessageSenders
-
Represents a list of message senders.
-
MessageSenderUser
-
The message was sent by a known user.
-
MessageSendingState
-
Contains information about the sending state of the message.
-
MessageSendingStateFailed
-
The message failed to be sent.
-
MessageSendingStatePending
-
The message is being sent now, but has not yet been delivered to the server.
-
MessageSendOptions
-
Options to be used when a message is sent.
-
MessageSource
-
Describes source of a message.
-
MessageSourceChatEventLog
-
The message is from a chat event log.
-
MessageSourceChatHistory
-
The message is from a chat history.
-
MessageSourceChatList
-
The message is from a chat list or a forum topic list.
-
MessageSourceForumTopicHistory
-
The message is from a forum topic history.
-
MessageSourceHistoryPreview
-
The message is from chat, message thread or forum topic history preview.
-
MessageSourceMessageThreadHistory
-
The message is from a message thread history.
-
MessageSourceNotification
-
The message is from a notification.
-
MessageSourceOther
-
The message is from some other source.
-
MessageSourceScreenshot
-
The message was screenshotted; the source must be used only if the message content was visible during the screenshot.
-
MessageSourceSearch
-
The message is from search results, including file downloads, local file list, outgoing document messages, calendar.
-
Information about the sponsor of a message.
-
Describes type of a message sponsor.
-
The sponsor is a bot.
-
The sponsor is a private channel chat.
-
The sponsor is a public channel chat.
-
The sponsor is a website.
-
MessageStatistics
-
A detailed statistics about a message.
-
MessageSticker
-
A sticker message.
-
MessageStory
-
A message with a forwarded story.
-
MessageSuggestProfilePhoto
-
A profile photo was suggested to a user in a private chat.
-
MessageSupergroupChatCreate
-
A newly created supergroup or channel.
-
MessageText
-
A text message.
-
MessageThreadInfo
-
Contains information about a message thread.
-
MessageUnsupported
-
A message content that is not supported in the current TDLib version.
-
MessageUserShared
-
The current user shared a user, which was requested by the bot.
-
MessageVenue
-
A message with information about a venue.
-
MessageVideo
-
A video message.
-
MessageVideoChatEnded
-
A message with information about an ended video chat.
-
MessageVideoChatScheduled
-
A new video chat was scheduled.
-
MessageVideoChatStarted
-
A newly created video chat.
-
MessageVideoNote
-
A video note message.
-
MessageViewer
-
Represents a viewer of a message.
-
MessageViewers
-
Represents a list of message viewers.
-
MessageVoiceNote
-
A voice note message.
-
MessageWebAppDataReceived
-
Data from a Web App has been received; for bots only.
-
MessageWebAppDataSent
-
Data from a Web App has been sent to a bot.
-
MessageWebsiteConnected
-
The current user has connected a website by logging in using Telegram Login Widget on it.
-
Minithumbnail
-
Thumbnail image of a very poor quality and low resolution.
-
NetworkStatistics
-
A full list of available network statistic entries.
-
NetworkStatisticsEntry
-
Contains statistics about network usage.
-
NetworkStatisticsEntryCall
-
Contains information about the total amount of data that was used for calls.
-
NetworkStatisticsEntryFile
-
Contains information about the total amount of data that was used to send and receive files.
-
NetworkType
-
Represents the type of a network.
-
NetworkTypeMobile
-
A mobile network.
-
NetworkTypeMobileRoaming
-
A mobile roaming network.
-
NetworkTypeNone
-
The network is not available.
-
NetworkTypeOther
-
A different network type (e.g., Ethernet network).
-
NetworkTypeWiFi
-
A Wi-Fi network.
-
Notification
-
Contains information about a notification.
-
NotificationGroup
-
Describes a group of notifications.
-
NotificationGroupType
-
Describes the type of notifications in a notification group.
-
NotificationGroupTypeCalls
-
A group containing notifications of type notificationTypeNewCall.
-
NotificationGroupTypeMentions
-
A group containing notifications of type notificationTypeNewMessage and notificationTypeNewPushMessage with unread mentions of the current user, replies to their messages, or a pinned message.
-
NotificationGroupTypeMessages
-
A group containing notifications of type notificationTypeNewMessage and notificationTypeNewPushMessage with ordinary unread messages.
-
NotificationGroupTypeSecretChat
-
A group containing a notification of type notificationTypeNewSecretChat.
-
NotificationSettingsScope
-
Describes the types of chats to which notification settings are relevant.
-
NotificationSettingsScopeChannelChats
-
Notification settings applied to all channel chats when the corresponding chat setting has a default value.
-
NotificationSettingsScopeGroupChats
-
Notification settings applied to all basic group and supergroup chats when the corresponding chat setting has a default value.
-
NotificationSettingsScopePrivateChats
-
Notification settings applied to all private and secret chats when the corresponding chat setting has a default value.
-
NotificationSound
-
Describes a notification sound in MP3 format.
-
NotificationSounds
-
Contains a list of notification sounds.
-
NotificationType
-
Contains detailed information about a notification.
-
NotificationTypeNewCall
-
New call was received.
-
NotificationTypeNewMessage
-
New message was received.
-
NotificationTypeNewPushMessage
-
New message was received through a push notification.
-
NotificationTypeNewSecretChat
-
New secret chat was created.
-
Ok
-
An object of this type is returned on a successful function call for certain functions.
-
OpenChat
-
Informs TDLib that the chat is opened by the user. Many useful activities depend on the chat being opened or closed (e.g., in supergroups and channels all updates are received only for opened chats).
-
OpenMessageContent
-
Informs TDLib that the message content has been opened (e.g., the user has opened a photo, video, document, location or venue, or has listened to an audio file or voice note message)..
-
OpenStory
-
Informs TDLib that a story is opened and is being viewed by the user.
-
OpenWebApp
-
Informs TDLib that a Web App is being opened from the attachment menu, a botMenuButton button, an internalLinkTypeAttachmentMenuBot link, or an inlineKeyboardButtonTypeWebApp button..
-
OptimizeStorage
-
Optimizes storage usage, i.e. deletes some files and returns new storage usage statistics. Secret thumbnails can't be deleted.
-
OptionValue
-
Represents the value of an option.
-
OptionValueBoolean
-
Represents a boolean option.
-
OptionValueEmpty
-
Represents an unknown option or an option which has a default value.
-
OptionValueInteger
-
Represents an integer option.
-
OptionValueString
-
Represents a string option.
-
OrderInfo
-
Order information.
-
PageBlock
-
Describes a block of an instant view web page.
-
PageBlockAnchor
-
An invisible anchor on a page, which can be used in a URL to open the page from the specified anchor.
-
PageBlockAnimation
-
An animation.
-
PageBlockAudio
-
An audio file.
-
PageBlockAuthorDate
-
The author and publishing date of a page.
-
PageBlockBlockQuote
-
A block quote.
-
PageBlockCaption
-
Contains a caption of an instant view web page block, consisting of a text and a trailing credit.
-
PageBlockChatLink
-
A link to a chat.
-
PageBlockCollage
-
A collage.
-
PageBlockCover
-
A page cover.
-
PageBlockDetails
-
A collapsible block.
-
PageBlockDivider
-
An empty block separating a page.
-
PageBlockEmbedded
-
An embedded web page.
-
PageBlockEmbeddedPost
-
An embedded post.
-
The footer of a page.
-
A header.
-
PageBlockHorizontalAlignment
-
Describes a horizontal alignment of a table cell content.
-
PageBlockHorizontalAlignmentCenter
-
The content must be center-aligned.
-
PageBlockHorizontalAlignmentLeft
-
The content must be left-aligned.
-
PageBlockHorizontalAlignmentRight
-
The content must be right-aligned.
-
PageBlockKicker
-
A kicker.
-
PageBlockList
-
A list of data blocks.
-
PageBlockListItem
-
Describes an item of a list page block.
-
PageBlockMap
-
A map.
-
PageBlockParagraph
-
A text paragraph.
-
PageBlockPhoto
-
A photo.
-
PageBlockPreformatted
-
A preformatted text paragraph.
-
PageBlockPullQuote
-
A pull quote.
-
PageBlockRelatedArticle
-
Contains information about a related article.
-
PageBlockRelatedArticles
-
Related articles.
-
PageBlockSlideshow
-
A slideshow.
-
A subheader.
-
PageBlockSubtitle
-
The subtitle of a page.
-
PageBlockTable
-
A table.
-
PageBlockTableCell
-
Represents a cell of a table.
-
PageBlockTitle
-
The title of a page.
-
PageBlockVerticalAlignment
-
Describes a Vertical alignment of a table cell content.
-
PageBlockVerticalAlignmentBottom
-
The content must be bottom-aligned.
-
PageBlockVerticalAlignmentMiddle
-
The content must be middle-aligned.
-
PageBlockVerticalAlignmentTop
-
The content must be top-aligned.
-
PageBlockVideo
-
A video.
-
PageBlockVoiceNote
-
A voice note.
-
ParseMarkdown
-
Parses Markdown entities in a human-friendly format, ignoring markup errors. Can be called synchronously.
-
ParseTextEntities
-
Parses Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, Code, Pre, PreCode, TextUrl and MentionName entities from a marked-up text. Can be called synchronously.
-
PassportAuthorizationForm
-
Contains information about a Telegram Passport authorization form that was requested.
-
PassportElement
-
Contains information about a Telegram Passport element.
-
PassportElementAddress
-
A Telegram Passport element containing the user's address.
-
PassportElementBankStatement
-
A Telegram Passport element containing the user's bank statement.
-
PassportElementDriverLicense
-
A Telegram Passport element containing the user's driver license.
-
PassportElementEmailAddress
-
A Telegram Passport element containing the user's email address.
-
PassportElementError
-
Contains the description of an error in a Telegram Passport element.
-
PassportElementErrorSource
-
Contains the description of an error in a Telegram Passport element.
-
PassportElementErrorSourceDataField
-
One of the data fields contains an error. The error will be considered resolved when the value of the field changes.
-
PassportElementErrorSourceFile
-
The file contains an error. The error will be considered resolved when the file changes.
-
PassportElementErrorSourceFiles
-
The list of attached files contains an error. The error will be considered resolved when the list of files changes.
-
PassportElementErrorSourceFrontSide
-
The front side of the document contains an error. The error will be considered resolved when the file with the front side changes.
-
PassportElementErrorSourceReverseSide
-
The reverse side of the document contains an error. The error will be considered resolved when the file with the reverse side changes.
-
PassportElementErrorSourceSelfie
-
The selfie with the document contains an error. The error will be considered resolved when the file with the selfie changes.
-
PassportElementErrorSourceTranslationFile
-
One of files with the translation of the document contains an error. The error will be considered resolved when the file changes.
-
PassportElementErrorSourceTranslationFiles
-
The translation of the document contains an error. The error will be considered resolved when the list of translation files changes.
-
PassportElementErrorSourceUnspecified
-
The element contains an error in an unspecified place. The error will be considered resolved when new data is added.
-
PassportElementIdentityCard
-
A Telegram Passport element containing the user's identity card.
-
PassportElementInternalPassport
-
A Telegram Passport element containing the user's internal passport.
-
PassportElementPassport
-
A Telegram Passport element containing the user's passport.
-
PassportElementPassportRegistration
-
A Telegram Passport element containing the user's passport registration pages.
-
PassportElementPersonalDetails
-
A Telegram Passport element containing the user's personal details.
-
PassportElementPhoneNumber
-
A Telegram Passport element containing the user's phone number.
-
PassportElementRentalAgreement
-
A Telegram Passport element containing the user's rental agreement.
-
PassportElements
-
Contains information about saved Telegram Passport elements.
-
PassportElementsWithErrors
-
Contains information about a Telegram Passport elements and corresponding errors.
-
PassportElementTemporaryRegistration
-
A Telegram Passport element containing the user's temporary registration.
-
PassportElementType
-
Contains the type of a Telegram Passport element.
-
PassportElementTypeAddress
-
A Telegram Passport element containing the user's address.
-
PassportElementTypeBankStatement
-
A Telegram Passport element containing the user's bank statement.
-
PassportElementTypeDriverLicense
-
A Telegram Passport element containing the user's driver license.
-
PassportElementTypeEmailAddress
-
A Telegram Passport element containing the user's email address.
-
PassportElementTypeIdentityCard
-
A Telegram Passport element containing the user's identity card.
-
PassportElementTypeInternalPassport
-
A Telegram Passport element containing the user's internal passport.
-
PassportElementTypePassport
-
A Telegram Passport element containing the user's passport.
-
PassportElementTypePassportRegistration
-
A Telegram Passport element containing the registration page of the user's passport.
-
PassportElementTypePersonalDetails
-
A Telegram Passport element containing the user's personal details.
-
PassportElementTypePhoneNumber
-
A Telegram Passport element containing the user's phone number.
-
PassportElementTypeRentalAgreement
-
A Telegram Passport element containing the user's rental agreement.
-
PassportElementTypeTemporaryRegistration
-
A Telegram Passport element containing the user's temporary registration.
-
PassportElementTypeUtilityBill
-
A Telegram Passport element containing the user's utility bill.
-
PassportElementUtilityBill
-
A Telegram Passport element containing the user's utility bill.
-
PassportRequiredElement
-
Contains a description of the required Telegram Passport element that was requested by a service.
-
PassportSuitableElement
-
Contains information about a Telegram Passport element that was requested by a service.
-
PasswordState
-
Represents the current state of 2-step verification.
-
PaymentForm
-
Contains information about an invoice payment form.
-
PaymentOption
-
Describes an additional payment option.
-
PaymentProvider
-
Contains information about a payment provider.
-
PaymentProviderOther
-
Some other payment provider, for which a web payment form must be shown.
-
PaymentProviderSmartGlocal
-
Smart Glocal payment provider.
-
PaymentProviderStripe
-
Stripe payment provider.
-
PaymentReceipt
-
Contains information about a successful payment.
-
PaymentResult
-
Contains the result of a payment request.
-
PersonalDetails
-
Contains the user's personal details.
-
PersonalDocument
-
A personal document, containing some information about a user.
-
PhoneNumberAuthenticationSettings
-
Contains settings for the authentication of the user's phone number.
-
PhoneNumberInfo
-
Contains information about a phone number.
-
Photo
-
Describes a photo.
-
PhotoSize
-
Describes an image in JPEG format.
-
PinChatMessage
-
Pins a message in a chat; requires can_pin_messages rights or can_edit_messages rights in the channel.
-
PingProxy
-
Computes time needed to receive a response from a Telegram server through a proxy. Can be called before authorization.
-
Point
-
A point on a Cartesian plane.
-
Poll
-
Describes a poll.
-
PollOption
-
Describes one answer option of a poll.
-
PollType
-
Describes the type of a poll.
-
PollTypeQuiz
-
A poll in quiz mode, which has exactly one correct answer option and can be answered only once.
-
PollTypeRegular
-
A regular poll.
-
PreliminaryUploadFile
-
Preliminary uploads a file to the cloud before sending it in a message, which can be useful for uploading of being recorded voice and video notes. Updates updateFile will be used.
-
PremiumFeature
-
Describes a feature available to Premium users.
-
PremiumFeatureAdvancedChatManagement
-
Ability to change position of the main chat list, archive and mute all new chats from non-contacts, and completely disable notifications about the user's contacts joined Telegram.
-
PremiumFeatureAnimatedProfilePhoto
-
Profile photo animation on message and chat screens.
-
PremiumFeatureAppIcons
-
Allowed to set a premium application icons.
-
PremiumFeatureChatBoost
-
The ability to boost chats.
-
PremiumFeatureCustomEmoji
-
Allowed to use custom emoji stickers in message texts and captions.
-
PremiumFeatureDisabledAds
-
Disabled ads.
-
PremiumFeatureEmojiStatus
-
An emoji status shown along with the user's name.
-
PremiumFeatureForumTopicIcon
-
The ability to set a custom emoji as a forum topic icon.
-
PremiumFeatureImprovedDownloadSpeed
-
Improved download speed.
-
PremiumFeatureIncreasedLimits
-
Increased limits.
-
PremiumFeatureIncreasedUploadFileSize
-
Increased maximum upload file size.
-
PremiumFeatureProfileBadge
-
A badge in the user's profile.
-
PremiumFeaturePromotionAnimation
-
Describes a promotion animation for a Premium feature.
-
PremiumFeatureRealTimeChatTranslation
-
Allowed to translate chat messages real-time.
-
PremiumFeatures
-
Contains information about features, available to Premium users.
-
PremiumFeatureUniqueReactions
-
Allowed to use more reactions.
-
PremiumFeatureUniqueStickers
-
Allowed to use premium stickers with unique effects.
-
PremiumFeatureUpgradedStories
-
Allowed to use many additional features for stories.
-
PremiumFeatureVoiceRecognition
-
The ability to convert voice notes to text.
-
PremiumLimit
-
Contains information about a limit, increased for Premium users.
-
PremiumLimitType
-
Describes type of a limit, increased for Premium users.
-
PremiumLimitTypeActiveStoryCount
-
The maximum number of active stories.
-
PremiumLimitTypeBioLength
-
The maximum length of the user's bio.
-
PremiumLimitTypeCaptionLength
-
The maximum length of sent media caption.
-
PremiumLimitTypeChatFolderChosenChatCount
-
The maximum number of pinned and always included, or always excluded chats in a chat folder.
-
PremiumLimitTypeChatFolderCount
-
The maximum number of chat folders.
-
PremiumLimitTypeChatFolderInviteLinkCount
-
The maximum number of invite links for a chat folder.
-
PremiumLimitTypeCreatedPublicChatCount
-
The maximum number of created public chats.
-
PremiumLimitTypeFavoriteStickerCount
-
The maximum number of favorite stickers.
-
PremiumLimitTypeMonthlySentStoryCount
-
The maximum number of stories sent per month.
-
PremiumLimitTypePinnedArchivedChatCount
-
The maximum number of pinned chats in the archive chat list.
-
PremiumLimitTypePinnedChatCount
-
The maximum number of pinned chats in the main chat list.
-
PremiumLimitTypeSavedAnimationCount
-
The maximum number of saved animations.
-
PremiumLimitTypeShareableChatFolderCount
-
The maximum number of added shareable chat folders.
-
PremiumLimitTypeStoryCaptionLength
-
The maximum length of captions of sent stories.
-
PremiumLimitTypeStorySuggestedReactionAreaCount
-
The maximum number of suggested reaction areas on a story.
-
PremiumLimitTypeSupergroupCount
-
The maximum number of joined supergroups and channels.
-
PremiumLimitTypeWeeklySentStoryCount
-
The maximum number of stories sent per week.
-
PremiumPaymentOption
-
Describes an option for buying Telegram Premium to a user.
-
PremiumSource
-
Describes a source from which the Premium features screen is opened.
-
PremiumSourceFeature
-
A user tried to use a Premium feature.
-
PremiumSourceLimitExceeded
-
A limit was exceeded.
-
PremiumSourceLink
-
A user opened an internal link of the type internalLinkTypePremiumFeatures.
-
PremiumSourceSettings
-
A user opened the Premium features screen from settings.
-
PremiumSourceStoryFeature
-
A user tried to use a Premium story feature.
-
PremiumState
-
Contains state of Telegram Premium subscription and promotion videos for Premium features.
-
PremiumStatePaymentOption
-
Describes an option for buying or upgrading Telegram Premium for self.
-
PremiumStoryFeature
-
Describes a story feature available to Premium users.
-
PremiumStoryFeatureCustomExpirationDuration
-
The ability to set custom expiration duration for stories.
-
PremiumStoryFeatureLinksAndFormatting
-
The ability to use links and formatting in story caption.
-
PremiumStoryFeaturePermanentViewsHistory
-
The ability to check who opened the current user's stories after they expire.
-
PremiumStoryFeaturePriorityOrder
-
User stories are displayed before stories of non-premium contacts and channels.
-
PremiumStoryFeatureSaveStories
-
The ability to save other's unprotected stories.
-
PremiumStoryFeatureStealthMode
-
The ability to hide the fact that the user viewed other's stories.
-
ProcessChatFolderNewChats
-
Process new chats added to a shareable chat folder by its owner.
-
ProcessChatJoinRequest
-
Handles a pending join request in a chat.
-
ProcessChatJoinRequests
-
Handles all pending join requests for a given link in a chat.
-
ProcessPushNotification
-
Handles a push notification. Returns error with code 406 if the push notification is not supported and connection to the server is required to fetch new data. Can be called before authorization.
-
ProfilePhoto
-
Describes a user profile photo.
-
Proxies
-
Represents a list of proxy servers.
-
Proxy
-
Contains information about a proxy server.
-
ProxyType
-
Describes the type of a proxy server.
-
ProxyTypeHttp
-
A HTTP transparent proxy server.
-
ProxyTypeMtproto
-
An MTProto proxy server.
-
ProxyTypeSocks5
-
A SOCKS5 proxy server.
-
PublicChatType
-
Describes a type of public chats.
-
PublicChatTypeHasUsername
-
The chat is public, because it has an active username.
-
PublicChatTypeIsLocationBased
-
The chat is public, because it is a location-based supergroup.
-
PushMessageContent
-
Contains content of a push message notification.
-
PushMessageContentAnimation
-
An animation message (GIF-style)..
-
PushMessageContentAudio
-
An audio message.
-
PushMessageContentBasicGroupChatCreate
-
A newly created basic group.
-
PushMessageContentChatAddMembers
-
New chat members were invited to a group.
-
PushMessageContentChatChangePhoto
-
A chat photo was edited.
-
PushMessageContentChatChangeTitle
-
A chat title was edited.
-
PushMessageContentChatDeleteMember
-
A chat member was deleted.
-
PushMessageContentChatJoinByLink
-
A new member joined the chat via an invite link.
-
PushMessageContentChatJoinByRequest
-
A new member was accepted to the chat by an administrator.
-
PushMessageContentChatSetBackground
-
A chat background was edited.
-
PushMessageContentChatSetTheme
-
A chat theme was edited.
-
PushMessageContentContact
-
A message with a user contact.
-
PushMessageContentContactRegistered
-
A contact has registered with Telegram.
-
PushMessageContentDocument
-
A document message (a general file).
-
PushMessageContentGame
-
A message with a game.
-
PushMessageContentGameScore
-
A new high score was achieved in a game.
-
PushMessageContentHidden
-
A general message with hidden content.
-
PushMessageContentInvoice
-
A message with an invoice from a bot.
-
PushMessageContentLocation
-
A message with a location.
-
PushMessageContentMediaAlbum
-
A media album.
-
PushMessageContentMessageForwards
-
A forwarded messages.
-
PushMessageContentPhoto
-
A photo message.
-
PushMessageContentPoll
-
A message with a poll.
-
PushMessageContentRecurringPayment
-
A new recurring payment was made by the current user.
-
PushMessageContentScreenshotTaken
-
A screenshot of a message in the chat has been taken.
-
PushMessageContentSticker
-
A message with a sticker.
-
PushMessageContentStory
-
A message with a story.
-
PushMessageContentSuggestProfilePhoto
-
A profile photo was suggested to the user.
-
PushMessageContentText
-
A text message.
-
PushMessageContentVideo
-
A video message.
-
PushMessageContentVideoNote
-
A video note message.
-
PushMessageContentVoiceNote
-
A voice note message.
-
PushReceiverId
-
Contains a globally unique push receiver identifier, which can be used to identify which account has received a push notification.
-
RateSpeechRecognition
-
Rates recognized speech in a video note or a voice note message.
-
ReactionType
-
Describes type of message reaction.
-
ReactionTypeCustomEmoji
-
A reaction with a custom emoji.
-
ReactionTypeEmoji
-
A reaction with an emoji.
-
ReadAllChatMentions
-
Marks all mentions in a chat as read.
-
ReadAllChatReactions
-
Marks all reactions in a chat or a forum topic as read.
-
ReadAllMessageThreadMentions
-
Marks all mentions in a forum topic as read.
-
ReadAllMessageThreadReactions
-
Marks all reactions in a forum topic as read.
-
ReadChatList
-
Traverse all chats in a chat list and marks all messages in the chats as read.
-
ReadFilePart
-
Reads a part of a file from the TDLib file cache and returns read bytes. This method is intended to be used only if the application has no direct access to TDLib's file system, because it is usually slower than a direct read from the file.
-
RecognizeSpeech
-
Recognizes speech in a video note or a voice note message. The message must be successfully sent and must not be scheduled. May return an error with a message "MSG_VOICE_TOO_LONG" if media duration is too big to be recognized.
-
RecommendedChatFolder
-
Describes a recommended chat folder.
-
RecommendedChatFolders
-
Contains a list of recommended chat folders.
-
RecoverAuthenticationPassword
-
Recovers the 2-step verification password with a password recovery code sent to an email address that was previously set up. Works only when the current authorization state is authorizationStateWaitPassword.
-
RecoverPassword
-
Recovers the 2-step verification password using a recovery code sent to an email address that was previously set up.
-
RecoveryEmailAddress
-
Contains information about the current recovery email address.
-
RegisterDevice
-
Registers the currently used device for receiving push notifications. Returns a globally unique identifier of the push notification subscription.
-
RegisterUser
-
Finishes user registration. Works only when the current authorization state is authorizationStateWaitRegistration.
-
RemoteFile
-
Represents a remote file.
-
RemoveAllFilesFromDownloads
-
Removes all files from the file download list.
-
RemoveBackground
-
Removes background from the list of installed backgrounds.
-
RemoveChatActionBar
-
Removes a chat action bar without any other action.
-
RemoveContacts
-
Removes users from the contact list.
-
RemoveFavoriteSticker
-
Removes a sticker from the list of favorite stickers.
-
RemoveFileFromDownloads
-
Removes a file from the file download list.
-
RemoveMessageReaction
-
Removes a reaction from a message. A chosen reaction can always be removed.
-
RemoveNotification
-
Removes an active notification from notification list. Needs to be called only if the notification is removed by the current user.
-
RemoveNotificationGroup
-
Removes a group of active notifications. Needs to be called only if the notification group is removed by the current user.
-
RemoveProxy
-
Removes a proxy server. Can be called before authorization.
-
RemoveRecentHashtag
-
Removes a hashtag from the list of recently used hashtags.
-
RemoveRecentlyFoundChat
-
Removes a chat from the list of recently found chats.
-
RemoveRecentSticker
-
Removes a sticker from the list of recently used stickers.
-
RemoveSavedAnimation
-
Removes an animation from the list of saved animations.
-
RemoveSavedNotificationSound
-
Removes a notification sound from the list of saved notification sounds.
-
RemoveStickerFromSet
-
Removes a sticker from the set to which it belongs; for bots only. The sticker set must have been created by the bot.
-
RemoveTopChat
-
Removes a chat from the list of frequently used chats. Supported only if the chat info database is enabled.
-
ReorderActiveUsernames
-
Changes order of active usernames of the current user.
-
ReorderBotActiveUsernames
-
Changes order of active usernames of a bot. Can be called only if userTypeBot.can_be_edited == true.
-
ReorderChatFolders
-
Changes the order of chat folders.
-
ReorderInstalledStickerSets
-
Changes the order of installed sticker sets.
-
ReorderSupergroupActiveUsernames
-
Changes order of active usernames of a supergroup or channel, requires owner privileges in the supergroup or channel.
-
ReplacePrimaryChatInviteLink
-
Replaces current primary invite link for a chat with a new primary invite link. Available for basic groups, supergroups, and channels. Requires administrator privileges and can_invite_users right.
-
ReplaceVideoChatRtmpUrl
-
Replaces the current RTMP URL for streaming to the chat; requires creator privileges.
-
ReplyMarkup
-
Contains a description of a custom keyboard and actions that can be done with it to quickly reply to bots.
-
ReplyMarkupForceReply
-
Instructs application to force a reply to this message.
-
ReplyMarkupInlineKeyboard
-
Contains an inline keyboard layout.
-
ReplyMarkupRemoveKeyboard
-
Instructs application to remove the keyboard once this message has been received. This kind of keyboard can't be received in an incoming message; instead, updateChatReplyMarkup with message_id == 0 will be sent.
-
ReplyMarkupShowKeyboard
-
Contains a custom keyboard layout to quickly reply to bots.
-
ReportChat
-
Reports a chat to the Telegram moderators. A chat can be reported only from the chat action bar, or if chat.can_be_reported.
-
ReportChatPhoto
-
Reports a chat photo to the Telegram moderators. A chat photo can be reported only if chat.can_be_reported.
-
ReportMessageReactions
-
Reports reactions set on a message to the Telegram moderators. Reactions on a message can be reported only if message.can_report_reactions.
-
ReportReason
-
Describes the reason why a chat is reported.
-
ReportReasonChildAbuse
-
The chat has child abuse related content.
-
ReportReasonCopyright
-
The chat contains copyrighted content.
-
ReportReasonCustom
-
A custom reason provided by the user.
-
ReportReasonFake
-
The chat represents a fake account.
-
ReportReasonIllegalDrugs
-
The chat has illegal drugs related content.
-
ReportReasonPersonalDetails
-
The chat contains messages with personal details.
-
ReportReasonPornography
-
The chat contains pornographic messages.
-
ReportReasonSpam
-
The chat contains spam messages.
-
ReportReasonUnrelatedLocation
-
The location-based chat is unrelated to its stated location.
-
ReportReasonViolence
-
The chat promotes violence.
-
ReportStory
-
Reports a story to the Telegram moderators.
-
ReportSupergroupAntiSpamFalsePositive
-
Reports a false deletion of a message by aggressive anti-spam checks; requires administrator rights in the supergroup. Can be called only for messages from chatEventMessageDeleted with can_report_anti_spam_false_positive == true.
-
ReportSupergroupSpam
-
Reports messages in a supergroup as spam; requires administrator rights in the supergroup.
-
RequestAuthenticationPasswordRecovery
-
Requests to send a 2-step verification password recovery code to an email address that was previously set up. Works only when the current authorization state is authorizationStateWaitPassword.
-
RequestPasswordRecovery
-
Requests to send a 2-step verification password recovery code to an email address that was previously set up.
-
RequestQrCodeAuthentication
-
Requests QR code authentication by scanning a QR code on another logged in device. Works only when the current authorization state is authorizationStateWaitPhoneNumber,.
-
ResendAuthenticationCode
-
Resends an authentication code to the user. Works only when the current authorization state is authorizationStateWaitCode, the next_code_type of the result is not null and the server-specified timeout has passed,.
-
ResendChangePhoneNumberCode
-
Resends the authentication code sent to confirm a new phone number for the current user. Works only if the previously received authenticationCodeInfo next_code_type was not null and the server-specified timeout has passed.
-
ResendEmailAddressVerificationCode
-
Resends the code to verify an email address to be added to a user's Telegram Passport.
-
ResendLoginEmailAddressCode
-
Resends the login email address verification code.
-
ResendMessages
-
Resends messages which failed to send. Can be called only for messages for which messageSendingStateFailed.can_retry is true and after specified in messageSendingStateFailed.retry_after time passed..
-
ResendPhoneNumberConfirmationCode
-
Resends phone number confirmation code.
-
ResendPhoneNumberVerificationCode
-
Resends the code to verify a phone number to be added to a user's Telegram Passport.
-
ResendRecoveryEmailAddressCode
-
Resends the 2-step verification recovery email address verification code.
-
ResetAllNotificationSettings
-
Resets all notification settings to their default values. By default, all chats are unmuted and message previews are shown.
-
ResetAuthenticationEmailAddress
-
Resets the login email address. May return an error with a message "TASK_ALREADY_EXISTS" if reset is still pending..
-
ResetBackgrounds
-
Resets list of installed backgrounds to its default value.
-
ResetNetworkStatistics
-
Resets all network data usage statistics to zero. Can be called before authorization.
-
ResetPassword
-
Removes 2-step verification password without previous password and access to recovery email address. The password can't be reset immediately and the request needs to be repeated after the specified time.
-
ResetPasswordResult
-
Represents result of 2-step verification password reset.
-
ResetPasswordResultDeclined
-
The password reset request was declined.
-
ResetPasswordResultOk
-
The password was reset.
-
ResetPasswordResultPending
-
The password reset request is pending.
-
RevokeChatInviteLink
-
Revokes invite link for a chat. Available for basic groups, supergroups, and channels. Requires administrator privileges and can_invite_users right in the chat for own links and owner privileges for other links..
-
RevokeGroupCallInviteLink
-
Revokes invite link for a group call. Requires groupCall.can_be_managed group call flag.
-
RichText
-
Describes a text object inside an instant-view web page.
-
RichTextAnchor
-
An anchor.
-
RichTextAnchorLink
-
A link to an anchor on the same web page.
-
RichTextBold
-
A bold rich text.
-
RichTextEmailAddress
-
A rich text email link.
-
RichTextFixed
-
A fixed-width rich text.
-
RichTextIcon
-
A small image inside the text.
-
RichTextItalic
-
An italicized rich text.
-
RichTextMarked
-
A marked rich text.
-
RichTextPhoneNumber
-
A rich text phone number.
-
RichTextPlain
-
A plain text.
-
RichTextReference
-
A reference to a richTexts object on the same web page.
-
RichTexts
-
A concatenation of rich texts.
-
RichTextStrikethrough
-
A strikethrough rich text.
-
RichTextSubscript
-
A subscript rich text.
-
RichTextSuperscript
-
A superscript rich text.
-
RichTextUnderline
-
An underlined rich text.
-
RichTextUrl
-
A rich text URL link.
-
RtmpUrl
-
Represents an RTMP URL.
-
SaveApplicationLogEvent
-
Saves application log event on the server. Can be called before authorization.
-
SavedCredentials
-
Contains information about saved payment credentials.
-
ScopeAutosaveSettings
-
Contains autosave settings for an autosave settings scope.
-
ScopeNotificationSettings
-
Contains information about notification settings for several chats.
-
SearchBackground
-
Searches for a background by its name.
-
SearchCallMessages
-
Searches for call messages. Returns the results in reverse chronological order (i.e., in order of decreasing message_id). For optimal performance, the number of returned messages is chosen by TDLib.
-
SearchChatMembers
-
Searches for a specified query in the first name, last name and usernames of the members of a specified chat. Requires administrator rights in channels.
-
SearchChatMessages
-
Searches for messages with given words in the chat. Returns the results in reverse chronological order, i.e. in order of decreasing message_id. Cannot be used in secret chats with a non-empty query.
-
SearchChatRecentLocationMessages
-
Returns information about the recent locations of chat members that were sent to the chat. Returns up to 1 location message per user.
-
SearchChats
-
Searches for the specified query in the title and username of already known chats; this is an offline request. Returns chats in the order seen in the main chat list.
-
SearchChatsNearby
-
Returns a list of users and location-based supergroups nearby. The list of users nearby will be updated for 60 seconds after the request by the updates updateUsersNearby..
-
SearchChatsOnServer
-
Searches for the specified query in the title and username of already known chats via request to the server. Returns chats in the order seen in the main chat list.
-
SearchContacts
-
Searches for the specified query in the first names, last names and usernames of the known user contacts.
-
SearchEmojis
-
Searches for emojis by keywords. Supported only if the file database is enabled.
-
SearchFileDownloads
-
Searches for files in the file download list or recently downloaded files from the list.
-
SearchHashtags
-
Searches for recently used hashtags by their prefix.
-
SearchInstalledStickerSets
-
Searches for installed sticker sets by looking for specified query in their title and name.
-
SearchMessages
-
Searches for messages in all chats except secret chats. Returns the results in reverse chronological order (i.e., in order of decreasing (date, chat_id, message_id))..
-
SearchMessagesFilter
-
Represents a filter for message search results.
-
SearchMessagesFilterAnimation
-
Returns only animation messages.
-
SearchMessagesFilterAudio
-
Returns only audio messages.
-
SearchMessagesFilterChatPhoto
-
Returns only messages containing chat photos.
-
SearchMessagesFilterDocument
-
Returns only document messages.
-
SearchMessagesFilterEmpty
-
Returns all found messages, no filter is applied.
-
SearchMessagesFilterFailedToSend
-
Returns only failed to send messages. This filter can be used only if the message database is used.
-
SearchMessagesFilterMention
-
Returns only messages with mentions of the current user, or messages that are replies to their messages.
-
SearchMessagesFilterPhoto
-
Returns only photo messages.
-
SearchMessagesFilterPhotoAndVideo
-
Returns only photo and video messages.
-
SearchMessagesFilterPinned
-
Returns only pinned messages.
-
SearchMessagesFilterUnreadMention
-
Returns only messages with unread mentions of the current user, or messages that are replies to their messages. When using this filter the results can't be additionally filtered by a query, a message thread or by the sending user.
-
SearchMessagesFilterUnreadReaction
-
Returns only messages with unread reactions for the current user. When using this filter the results can't be additionally filtered by a query, a message thread or by the sending user.
-
SearchMessagesFilterUrl
-
Returns only messages containing URLs.
-
SearchMessagesFilterVideo
-
Returns only video messages.
-
SearchMessagesFilterVideoNote
-
Returns only video note messages.
-
SearchMessagesFilterVoiceAndVideoNote
-
Returns only voice and video note messages.
-
SearchMessagesFilterVoiceNote
-
Returns only voice note messages.
-
SearchOutgoingDocumentMessages
-
Searches for outgoing messages with content of the type messageDocument in all chats except secret chats. Returns the results in reverse chronological order.
-
SearchPublicChat
-
Searches a public chat by its username. Currently, only private chats, supergroups and channels can be public. Returns the chat if found; otherwise, an error is returned.
-
SearchPublicChats
-
Searches public chats by looking for specified query in their username and title. Currently, only private chats, supergroups and channels can be public. Returns a meaningful number of results..
-
SearchRecentlyFoundChats
-
Searches for the specified query in the title and username of up to 50 recently found chats; this is an offline request.
-
SearchSecretMessages
-
Searches for messages in secret chats. Returns the results in reverse chronological order. For optimal performance, the number of returned messages is chosen by TDLib.
-
SearchStickers
-
Searches for stickers from public sticker sets that correspond to any of the given emoji.
-
SearchStickerSet
-
Searches for a sticker set by its name.
-
SearchStickerSets
-
Searches for ordinary sticker sets by looking for specified query in their title and name. Excludes installed sticker sets from the results.
-
SearchStringsByPrefix
-
Searches specified query by word prefixes in the provided strings. Returns 0-based positions of strings that matched. Can be called synchronously.
-
SearchUserByPhoneNumber
-
Searches a user by their phone number. Returns a 404 error if the user can't be found.
-
SearchUserByToken
-
Searches a user by a token from the user's link.
-
SearchWebApp
-
Returns information about a Web App by its short name. Returns a 404 error if the Web App is not found.
-
Seconds
-
Contains a value representing a number of seconds.
-
SecretChat
-
Represents a secret chat.
-
SecretChatState
-
Describes the current secret chat state.
-
SecretChatStateClosed
-
The secret chat is closed.
-
SecretChatStatePending
-
The secret chat is not yet created; waiting for the other user to get online.
-
SecretChatStateReady
-
The secret chat is ready to use.
-
SendAuthenticationFirebaseSms
-
Sends Firebase Authentication SMS to the phone number of the user. Works only when the current authorization state is authorizationStateWaitCode and the server returned code of the type authenticationCodeTypeFirebaseAndroid or authenticationCodeTypeFirebaseIos.
-
SendBotStartMessage
-
Invites a bot to a chat (if it is not yet a member) and sends it the /start command. Bots can't be invited to a private chat other than the chat with the bot. Bots can't be invited to channels (although they can be added as admins) and secret chats. Returns the sent message.
-
SendCallDebugInformation
-
Sends debug information for a call to Telegram servers.
-
SendCallLog
-
Sends log file for a call to Telegram servers.
-
SendCallRating
-
Sends a call rating.
-
SendCallSignalingData
-
Sends call signaling data.
-
SendChatAction
-
Sends a notification about user activity in a chat.
-
SendCustomRequest
-
Sends a custom request; for bots only.
-
SendEmailAddressVerificationCode
-
Sends a code to verify an email address to be added to a user's Telegram Passport.
-
SendInlineQueryResultMessage
-
Sends the result of an inline query as a message. Returns the sent message. Always clears a chat draft message.
-
SendMessage
-
Sends a message. Returns the sent message.
-
SendMessageAlbum
-
Sends 2-10 messages grouped together into an album. Currently, only audio, document, photo and video messages can be grouped into an album. Documents and audio files can be only grouped in an album with messages of the same type. Returns sent messages.
-
SendPassportAuthorizationForm
-
Sends a Telegram Passport authorization form, effectively sharing data with the service. This method must be called after getPassportAuthorizationFormAvailableElements if some previously available elements are going to be reused.
-
SendPaymentForm
-
Sends a filled-out payment form to the bot for final verification.
-
SendPhoneNumberConfirmationCode
-
Sends phone number confirmation code to handle links of the type internalLinkTypePhoneNumberConfirmation.
-
SendPhoneNumberVerificationCode
-
Sends a code to verify a phone number to be added to a user's Telegram Passport.
-
SendStory
-
Sends a new story to a chat; requires can_post_stories rights for channel chats. Returns a temporary story.
-
SendWebAppCustomRequest
-
Sends a custom request from a Web App.
-
SendWebAppData
-
Sends data received from a keyboardButtonTypeWebApp Web App to a bot.
-
SentWebAppMessage
-
Information about the message sent by answerWebAppQuery.
-
Session
-
Contains information about one session in a Telegram application used by the current user. Sessions must be shown to the user in the returned order.
-
Sessions
-
Contains a list of sessions.
-
SessionType
-
Represents the type of a session.
-
SessionTypeAndroid
-
The session is running on an Android device.
-
SessionTypeApple
-
The session is running on a generic Apple device.
-
SessionTypeBrave
-
The session is running on the Brave browser.
-
SessionTypeChrome
-
The session is running on the Chrome browser.
-
SessionTypeEdge
-
The session is running on the Edge browser.
-
SessionTypeFirefox
-
The session is running on the Firefox browser.
-
SessionTypeIpad
-
The session is running on an iPad device.
-
SessionTypeIphone
-
The session is running on an iPhone device.
-
SessionTypeLinux
-
The session is running on a Linux device.
-
SessionTypeMac
-
The session is running on a Mac device.
-
SessionTypeOpera
-
The session is running on the Opera browser.
-
SessionTypeSafari
-
The session is running on the Safari browser.
-
SessionTypeUbuntu
-
The session is running on an Ubuntu device.
-
SessionTypeUnknown
-
The session is running on an unknown type of device.
-
SessionTypeVivaldi
-
The session is running on the Vivaldi browser.
-
SessionTypeWindows
-
The session is running on a Windows device.
-
SessionTypeXbox
-
The session is running on an Xbox console.
-
SetAccountTtl
-
Changes the period of inactivity after which the account of the current user will automatically be deleted.
-
SetAlarm
-
Succeeds after a specified amount of time has passed. Can be called before initialization.
-
SetArchiveChatListSettings
-
Changes settings for automatic moving of chats to and from the Archive chat lists.
-
SetAuthenticationEmailAddress
-
Sets the email address of the user and sends an authentication code to the email address. Works only when the current authorization state is authorizationStateWaitEmailAddress.
-
SetAuthenticationPhoneNumber
-
Sets the phone number of the user and sends an authentication code to the user. Works only when the current authorization state is authorizationStateWaitPhoneNumber,.
-
SetAutoDownloadSettings
-
Sets auto-download settings.
-
SetAutosaveSettings
-
Sets autosave settings for the given scope. The method is guaranteed to work only after at least one call to getAutosaveSettings.
-
SetBackground
-
Changes the background selected by the user; adds background to the list of installed backgrounds.
-
SetBio
-
Changes the bio of the current user.
-
SetBotInfoDescription
-
Sets the text shown in the chat with a bot if the chat is empty. Can be called only if userTypeBot.can_be_edited == true.
-
SetBotInfoShortDescription
-
Sets the text shown on a bot's profile page and sent together with the link when users share the bot. Can be called only if userTypeBot.can_be_edited == true.
-
SetBotName
-
Sets the name of a bot. Can be called only if userTypeBot.can_be_edited == true.
-
SetBotProfilePhoto
-
Changes a profile photo for a bot.
-
SetBotUpdatesStatus
-
Informs the server about the number of pending bot updates if they haven't been processed for a long time; for bots only.
-
SetChatActiveStoriesList
-
Changes story list in which stories from the chat are shown.
-
SetChatAvailableReactions
-
Changes reactions, available in a chat. Available for basic groups, supergroups, and channels. Requires can_change_info administrator right.
-
SetChatBackground
-
Changes the background in a specific chat. Supported only in private and secret chats with non-deleted users.
-
SetChatClientData
-
Changes application-specific data associated with a chat.
-
SetChatDescription
-
Changes information about a chat. Available for basic groups, supergroups, and channels. Requires can_change_info administrator right.
-
SetChatDiscussionGroup
-
Changes the discussion group of a channel chat; requires can_change_info administrator right in the channel if it is specified.
-
SetChatDraftMessage
-
Changes the draft message in a chat.
-
SetChatLocation
-
Changes the location of a chat. Available only for some location-based supergroups, use supergroupFullInfo.can_set_location to check whether the method is allowed to use.
-
SetChatMemberStatus
-
Changes the status of a chat member, needs appropriate privileges. This function is currently not suitable for transferring chat ownership; use transferChatOwnership instead. Use addChatMember or banChatMember if some additional parameters needs to be passed.
-
SetChatMessageAutoDeleteTime
-
Changes the message auto-delete or self-destruct (for secret chats) time in a chat. Requires change_info administrator right in basic groups, supergroups and channels.
-
SetChatMessageSender
-
Selects a message sender to send messages in a chat.
-
SetChatNotificationSettings
-
Changes the notification settings of a chat. Notification settings of a chat with the current user (Saved Messages) can't be changed.
-
SetChatPermissions
-
Changes the chat members permissions. Supported only for basic groups and supergroups. Requires can_restrict_members administrator right.
-
SetChatPhoto
-
Changes the photo of a chat. Supported only for basic groups, supergroups and channels. Requires can_change_info administrator right.
-
SetChatSlowModeDelay
-
Changes the slow mode delay of a chat. Available only for supergroups; requires can_restrict_members rights.
-
SetChatTheme
-
Changes the chat theme. Supported only in private and secret chats.
-
SetChatTitle
-
Changes the chat title. Supported only for basic groups, supergroups and channels. Requires can_change_info administrator right.
-
SetCloseFriends
-
Changes the list of close friends of the current user.
-
SetCommands
-
Sets the list of commands supported by the bot for the given user scope and language; for bots only.
-
SetCustomEmojiStickerSetThumbnail
-
Sets a custom emoji sticker set thumbnail; for bots only.
-
SetCustomLanguagePack
-
Adds or changes a custom local language pack to the current localization target.
-
SetCustomLanguagePackString
-
Adds, edits or deletes a string in a custom local language pack. Can be called before authorization.
-
SetDatabaseEncryptionKey
-
Changes the database encryption key. Usually the encryption key is never changed and is stored in some OS keychain.
-
SetDefaultChannelAdministratorRights
-
Sets default administrator rights for adding the bot to channel chats; for bots only.
-
SetDefaultGroupAdministratorRights
-
Sets default administrator rights for adding the bot to basic group and supergroup chats; for bots only.
-
SetDefaultMessageAutoDeleteTime
-
Changes the default message auto-delete time for new chats.
-
SetDefaultReactionType
-
Changes type of default reaction for the current user.
-
SetEmojiStatus
-
Changes the emoji status of the current user; for Telegram Premium users only.
-
SetFileGenerationProgress
-
Informs TDLib on a file generation progress.
-
SetForumTopicNotificationSettings
-
Changes the notification settings of a forum topic.
-
SetGameScore
-
Updates the game score of the specified user in the game; for bots only.
-
SetGroupCallParticipantIsSpeaking
-
Informs TDLib that speaking state of a participant of an active group has changed.
-
SetGroupCallParticipantVolumeLevel
-
Changes volume level of a participant of an active group call. If the current user can manage the group call, then the participant's volume level will be changed for all users with the default volume level.
-
SetGroupCallTitle
-
Sets group call title. Requires groupCall.can_be_managed group call flag.
-
SetInactiveSessionTtl
-
Changes the period of inactivity after which sessions will automatically be terminated.
-
SetInlineGameScore
-
Updates the game score of the specified user in a game; for bots only.
-
SetLocation
-
Changes the location of the current user. Needs to be called if getOption("is_location_visible") is true and location changes for more than 1 kilometer.
-
SetLoginEmailAddress
-
Changes the login email address of the user. The email address can be changed only if the current user already has login email and passwordState.login_email_address_pattern is non-empty..
-
SetLogStream
-
Sets new log stream for internal logging of TDLib. Can be called synchronously.
-
SetLogTagVerbosityLevel
-
Sets the verbosity level for a specified TDLib internal log tag. Can be called synchronously.
-
SetLogVerbosityLevel
-
Sets the verbosity level of the internal logging of TDLib. Can be called synchronously.
-
Sets menu button for the given user or for all users; for bots only.
-
SetMessageSenderBlockList
-
Changes the block list of a message sender. Currently, only users and supergroup chats can be blocked.
-
SetName
-
Changes the first and last name of the current user.
-
SetNetworkType
-
Sets the current network type. Can be called before authorization. Calling this method forces all network connections to reopen, mitigating the delay in switching between different networks,.
-
SetOption
-
Sets the value of an option. (Check the list of available options on https://core.telegram.org/tdlib/options.) Only writable options can be set. Can be called before authorization.
-
SetPassportElement
-
Adds an element to the user's Telegram Passport. May return an error with a message "PHONE_VERIFICATION_NEEDED" or "EMAIL_VERIFICATION_NEEDED" if the chosen phone number or the chosen email address must be verified first.
-
SetPassportElementErrors
-
Informs the user that some of the elements in their Telegram Passport contain errors; for bots only. The user will not be able to resend the elements, until the errors are fixed.
-
SetPassword
-
Changes the 2-step verification password for the current user. If a new recovery email address is specified, then the change will not be applied until the new recovery email address is confirmed.
-
SetPinnedChats
-
Changes the order of pinned chats.
-
SetPinnedForumTopics
-
Changes the order of pinned forum topics.
-
SetPollAnswer
-
Changes the user answer to a poll. A poll in quiz mode can be answered only once.
-
SetProfilePhoto
-
Changes a profile photo for the current user.
-
SetRecoveryEmailAddress
-
Changes the 2-step verification recovery email address of the user. If a new recovery email address is specified, then the change will not be applied until the new recovery email address is confirmed..
-
SetScopeNotificationSettings
-
Changes notification settings for chats of a given type.
-
SetStickerEmojis
-
Changes the list of emoji corresponding to a sticker; for bots only. The sticker must belong to a regular or custom emoji sticker set created by the bot.
-
SetStickerKeywords
-
Changes the list of keywords of a sticker; for bots only. The sticker must belong to a regular or custom emoji sticker set created by the bot.
-
SetStickerMaskPosition
-
Changes the mask position of a mask sticker; for bots only. The sticker must belong to a mask sticker set created by the bot.
-
SetStickerPositionInSet
-
Changes the position of a sticker in the set to which it belongs; for bots only. The sticker set must have been created by the bot.
-
SetStickerSetThumbnail
-
Sets a sticker set thumbnail; for bots only.
-
SetStickerSetTitle
-
Sets a sticker set title; for bots only.
-
SetStoryPrivacySettings
-
Changes privacy settings of a story. Can be called only if story.can_be_edited == true.
-
SetStoryReaction
-
Changes chosen reaction on a story.
-
SetSupergroupStickerSet
-
Changes the sticker set of a supergroup; requires can_change_info administrator right.
-
SetSupergroupUsername
-
Changes the editable username of a supergroup or channel, requires owner privileges in the supergroup or channel.
-
SetTdlibParameters
-
Sets the parameters for TDLib initialization. Works only when the current authorization state is authorizationStateWaitTdlibParameters.
-
SetUsername
-
Changes the editable username of the current user.
-
SetUserPersonalProfilePhoto
-
Changes a personal profile photo of a contact user.
-
SetUserPrivacySettingRules
-
Changes user privacy settings.
-
SetUserSupportInfo
-
Sets support information for the given user; for Telegram support only.
-
SetVideoChatDefaultParticipant
-
Changes default participant identifier, on whose behalf a video chat in the chat will be joined.
-
ShareChatWithBot
-
Shares a chat after pressing a keyboardButtonTypeRequestChat button with the bot.
-
SharePhoneNumber
-
Shares the phone number of the current user with a mutual contact. Supposed to be called when the user clicks on chatActionBarSharePhoneNumber.
-
ShareUserWithBot
-
Shares a user after pressing a keyboardButtonTypeRequestUser button with the bot.
-
ShippingOption
-
One shipping option.
-
SpeechRecognitionResult
-
Describes result of speech recognition in a voice note.
-
SpeechRecognitionResultError
-
The speech recognition failed.
-
SpeechRecognitionResultPending
-
The speech recognition is ongoing.
-
SpeechRecognitionResultText
-
The speech recognition successfully finished.
-
Describes a sponsored message.
-
Contains a list of sponsored messages.
-
StartGroupCallRecording
-
Starts recording of an active group call. Requires groupCall.can_be_managed group call flag.
-
StartGroupCallScreenSharing
-
Starts screen sharing in a joined group call. Returns join response payload for tgcalls.
-
StartScheduledGroupCall
-
Starts a scheduled group call.
-
StatisticalGraph
-
Describes a statistical graph.
-
StatisticalGraphAsync
-
The graph data to be asynchronously loaded through getStatisticalGraph.
-
StatisticalGraphData
-
A graph data.
-
StatisticalGraphError
-
An error message to be shown to the user instead of the graph.
-
StatisticalValue
-
A value with information about its recent changes.
-
Sticker
-
Describes a sticker.
-
StickerFormat
-
Describes format of a sticker.
-
StickerFormatTgs
-
The sticker is an animation in TGS format.
-
StickerFormatWebm
-
The sticker is a video in WEBM format.
-
StickerFormatWebp
-
The sticker is an image in WEBP format.
-
StickerFullType
-
Contains full information about sticker type.
-
StickerFullTypeCustomEmoji
-
The sticker is a custom emoji to be used inside message text and caption. Currently, only Telegram Premium users can use custom emoji.
-
StickerFullTypeMask
-
The sticker is a mask in WEBP format to be placed on photos or videos.
-
StickerFullTypeRegular
-
The sticker is a regular sticker.
-
Stickers
-
Represents a list of stickers.
-
StickerSet
-
Represents a sticker set.
-
StickerSetInfo
-
Represents short information about a sticker set.
-
StickerSets
-
Represents a list of sticker sets.
-
StickerType
-
Describes type of a sticker.
-
StickerTypeCustomEmoji
-
The sticker is a custom emoji to be used inside message text and caption.
-
StickerTypeMask
-
The sticker is a mask in WEBP format to be placed on photos or videos.
-
StickerTypeRegular
-
The sticker is a regular sticker.
-
StopPoll
-
Stops a poll. A poll in a message can be stopped when the message has can_be_edited flag is set.
-
StorageStatistics
-
Contains the exact storage usage statistics split by chats and file type.
-
StorageStatisticsByChat
-
Contains the storage usage statistics for a specific chat.
-
StorageStatisticsByFileType
-
Contains the storage usage statistics for a specific file type.
-
StorageStatisticsFast
-
Contains approximate storage usage statistics, excluding files of unknown file type.
-
StorePaymentPurpose
-
Describes a purpose of an in-store payment.
-
StorePaymentPurposeGiftedPremium
-
The user gifted Telegram Premium to another user.
-
StorePaymentPurposePremiumSubscription
-
The user subscribed to Telegram Premium.
-
Stories
-
Represents a list of stories.
-
Story
-
Represents a story.
-
StoryArea
-
Describes a clickable rectangle area on a story media.
-
StoryAreaPosition
-
Describes position of a clickable rectangle area on a story media.
-
StoryAreaType
-
Describes type of a clickable rectangle area on a story media.
-
StoryAreaTypeLocation
-
An area pointing to a location.
-
StoryAreaTypeSuggestedReaction
-
An area pointing to a suggested reaction. App needs to show a clickable reaction on the area and call setStoryReaction when the are is clicked.
-
StoryAreaTypeVenue
-
An area pointing to a venue.
-
StoryContent
-
Contains the content of a story.
-
StoryContentPhoto
-
A photo story.
-
StoryContentUnsupported
-
A story content that is not supported in the current TDLib version.
-
StoryContentVideo
-
A video story.
-
StoryInfo
-
Contains basic information about a story.
-
StoryInteractionInfo
-
Contains information about interactions with a story.
-
StoryList
-
Describes a list of stories.
-
StoryListArchive
-
The list of stories, shown in the Arvhive chat list.
-
StoryListMain
-
The list of stories, shown in the main chat list and folder chat lists.
-
StoryPrivacySettings
-
Describes privacy settings of a story.
-
StoryPrivacySettingsCloseFriends
-
The story can be viewed by all close friends.
-
StoryPrivacySettingsContacts
-
The story can be viewed by all contacts except chosen users.
-
StoryPrivacySettingsEveryone
-
The story can be viewed by everyone.
-
StoryPrivacySettingsSelectedUsers
-
The story can be viewed by certain specified users.
-
StoryVideo
-
Describes a video file sent in a story.
-
StoryViewer
-
Represents a viewer of a story.
-
StoryViewers
-
Represents a list of story viewers.
-
SuggestedAction
-
Describes an action suggested to the current user.
-
SuggestedActionCheckPassword
-
Suggests the user to check whether they still remember their 2-step verification password.
-
SuggestedActionCheckPhoneNumber
-
Suggests the user to check whether authorization phone number is correct and change the phone number if it is inaccessible.
-
SuggestedActionConvertToBroadcastGroup
-
Suggests the user to convert specified supergroup to a broadcast group.
-
SuggestedActionEnableArchiveAndMuteNewChats
-
Suggests the user to enable archive_and_mute_new_chats_from_unknown_users setting in archiveChatListSettings.
-
SuggestedActionRestorePremium
-
Suggests the user to restore a recently expired Premium subscription.
-
SuggestedActionSetPassword
-
Suggests the user to set a 2-step verification password to be able to log in again.
-
SuggestedActionSubscribeToAnnualPremium
-
Suggests the user to subscribe to the Premium subscription with annual payments.
-
SuggestedActionUpgradePremium
-
Suggests the user to upgrade the Premium subscription from monthly payments to annual payments.
-
SuggestedActionViewChecksHint
-
Suggests the user to view a hint about the meaning of one and two check marks on sent messages.
-
SuggestUserProfilePhoto
-
Suggests a profile photo to another regular user with common messages.
-
Supergroup
-
Represents a supergroup or channel with zero or more members (subscribers in the case of channels). From the point of view of the system, a channel is a special kind of a supergroup:.
-
SupergroupFullInfo
-
Contains full information about a supergroup or channel.
-
SupergroupMembersFilter
-
Specifies the kind of chat members to return in getSupergroupMembers.
-
SupergroupMembersFilterAdministrators
-
Returns the owner and administrators.
-
SupergroupMembersFilterBanned
-
Returns users banned from the supergroup or channel; can be used only by administrators.
-
SupergroupMembersFilterBots
-
Returns bot members of the supergroup or channel.
-
SupergroupMembersFilterContacts
-
Returns contacts of the user, which are members of the supergroup or channel.
-
SupergroupMembersFilterMention
-
Returns users which can be mentioned in the supergroup.
-
SupergroupMembersFilterRecent
-
Returns recently active users in reverse chronological order.
-
SupergroupMembersFilterRestricted
-
Returns restricted supergroup members; can be used only by administrators.
-
SupergroupMembersFilterSearch
-
Used to search for supergroup or channel members via a (string) query.
-
SyncFunc
-
-
SynchronizeLanguagePack
-
Fetches the latest versions of all strings from a language pack in the current localization target from the server..
-
TargetChat
-
Describes the target chat to be opened.
-
TargetChatChosen
-
The chat needs to be chosen by the user among chats of the specified types.
-
TargetChatCurrent
-
The currently opened chat needs to be kept.
-
TargetChatInternalLink
-
The chat needs to be open with the provided internal link.
-
td_json_client
-
td_json_client.h File Reference.
-
TemporaryPasswordState
-
Returns information about the availability of a temporary password, which can be used for payments.
-
TerminateAllOtherSessions
-
Terminates all other sessions of the current user.
-
TerminateSession
-
Terminates a session of the current user.
-
TermsOfService
-
Contains Telegram terms of service.
-
TestBytes
-
A simple object containing a sequence of bytes; for testing only.
-
TestCallBytes
-
Returns the received bytes; for testing only. This is an offline method. Can be called before authorization.
-
TestCallEmpty
-
Does nothing; for testing only. This is an offline method. Can be called before authorization.
-
TestCallString
-
Returns the received string; for testing only. This is an offline method. Can be called before authorization.
-
TestCallVectorInt
-
Returns the received vector of numbers; for testing only. This is an offline method. Can be called before authorization.
-
TestCallVectorIntObject
-
Returns the received vector of objects containing a number; for testing only. This is an offline method. Can be called before authorization.
-
TestCallVectorString
-
Returns the received vector of strings; for testing only. This is an offline method. Can be called before authorization.
-
TestCallVectorStringObject
-
Returns the received vector of objects containing a string; for testing only. This is an offline method. Can be called before authorization.
-
TestGetDifference
-
Forces an updates.getDifference call to the Telegram servers; for testing only.
-
TestInt
-
A simple object containing a number; for testing only.
-
TestNetwork
-
Sends a simple network request to the Telegram servers; for testing only. Can be called before authorization.
-
TestProxy
-
Sends a simple network request to the Telegram servers via proxy; for testing only. Can be called before authorization.
-
TestReturnError
-
Returns the specified error and ensures that the Error object is used; for testing only. Can be called synchronously.
-
TestSquareInt
-
Returns the squared received number; for testing only. This is an offline method. Can be called before authorization.
-
TestString
-
A simple object containing a string; for testing only.
-
TestUseUpdate
-
Does nothing and ensures that the Update object is used; for testing only. This is an offline method. Can be called before authorization.
-
TestVectorInt
-
A simple object containing a vector of numbers; for testing only.
-
TestVectorIntObject
-
A simple object containing a vector of objects that hold a number; for testing only.
-
TestVectorString
-
A simple object containing a vector of strings; for testing only.
-
TestVectorStringObject
-
A simple object containing a vector of objects that hold a string; for testing only.
-
Text
-
Contains some text.
-
TextEntities
-
Contains a list of text entities.
-
TextEntity
-
Represents a part of the text that needs to be formatted in some unusual way.
-
TextEntityType
-
Represents a part of the text which must be formatted differently.
-
TextEntityTypeBankCardNumber
-
A bank card number. The getBankCardInfo method can be used to get information about the bank card.
-
TextEntityTypeBold
-
A bold text.
-
TextEntityTypeBotCommand
-
A bot command, beginning with "/".
-
TextEntityTypeCashtag
-
A cashtag text, beginning with "$" and consisting of capital English letters (e.g., "$USD").
-
TextEntityTypeCode
-
Text that must be formatted as if inside a code HTML tag.
-
TextEntityTypeCustomEmoji
-
A custom emoji. The text behind a custom emoji must be an emoji. Only premium users can use premium custom emoji.
-
TextEntityTypeEmailAddress
-
An email address.
-
TextEntityTypeHashtag
-
A hashtag text, beginning with "#".
-
TextEntityTypeItalic
-
An italic text.
-
TextEntityTypeMediaTimestamp
-
A media timestamp.
-
TextEntityTypeMention
-
A mention of a user, a supergroup, or a channel by their username.
-
TextEntityTypeMentionName
-
A text shows instead of a raw mention of the user (e.g., when the user has no username).
-
TextEntityTypePhoneNumber
-
A phone number.
-
TextEntityTypePre
-
Text that must be formatted as if inside a pre HTML tag.
-
TextEntityTypePreCode
-
Text that must be formatted as if inside pre, and code HTML tags.
-
TextEntityTypeSpoiler
-
A spoiler text.
-
TextEntityTypeStrikethrough
-
A strikethrough text.
-
TextEntityTypeTextUrl
-
A text description shown instead of a raw URL.
-
TextEntityTypeUnderline
-
An underlined text.
-
TextEntityTypeUrl
-
An HTTP URL.
-
TextParseMode
-
Describes the way the text needs to be parsed for text entities.
-
TextParseModeHTML
-
The text uses HTML-style formatting. The same as Telegram Bot API "HTML" parse mode.
-
TextParseModeMarkdown
-
The text uses Markdown-style formatting.
-
ThemeParameters
-
Contains parameters of the application theme.
-
ThemeSettings
-
Describes theme settings.
-
Thumbnail
-
Represents a thumbnail.
-
ThumbnailFormat
-
Describes format of a thumbnail.
-
ThumbnailFormatGif
-
The thumbnail is in static GIF format. It will be used only for some bot inline query results.
-
ThumbnailFormatJpeg
-
The thumbnail is in JPEG format.
-
ThumbnailFormatMpeg4
-
The thumbnail is in MPEG4 format. It will be used only for some animations and videos.
-
ThumbnailFormatPng
-
The thumbnail is in PNG format. It will be used only for background patterns.
-
ThumbnailFormatTgs
-
The thumbnail is in TGS format. It will be used only for TGS sticker sets.
-
ThumbnailFormatWebm
-
The thumbnail is in WEBM format. It will be used only for WEBM sticker sets.
-
ThumbnailFormatWebp
-
The thumbnail is in WEBP format. It will be used only for some stickers.
-
TlObject
-
-
TMeUrl
-
Represents a URL linking to an internal Telegram entity.
-
TMeUrls
-
Contains a list of t.me URLs.
-
TMeUrlType
-
Describes the type of a URL linking to an internal Telegram entity.
-
TMeUrlTypeChatInvite
-
A chat invite link.
-
TMeUrlTypeStickerSet
-
A URL linking to a sticker set.
-
TMeUrlTypeSupergroup
-
A URL linking to a public supergroup or channel.
-
TMeUrlTypeUser
-
A URL linking to a user.
-
ToggleAllDownloadsArePaused
-
Changes pause state of all files in the file download list.
-
Adds or removes a bot to attachment and side menu. Bot can be added to the menu, only if userTypeBot.can_be_added_to_attachment_menu == true.
-
ToggleBotUsernameIsActive
-
Changes active state for a username of a bot. The editable username can't be disabled. May return an error with a message "USERNAMES_ACTIVE_TOO_MUCH" if the maximum number of active usernames has been reached. Can be called only if userTypeBot.can_be_edited == true.
-
ToggleChatDefaultDisableNotification
-
Changes the value of the default disable_notification parameter, used when a message is sent to a chat.
-
ToggleChatHasProtectedContent
-
Changes the ability of users to save, forward, or copy chat content. Supported only for basic groups, supergroups and channels. Requires owner privileges.
-
ToggleChatIsMarkedAsUnread
-
Changes the marked as unread state of a chat.
-
ToggleChatIsPinned
-
Changes the pinned state of a chat. There can be up to getOption("pinned_chat_count_max")/getOption("pinned_archived_chat_count_max") pinned non-secret chats and the same number of secret chats in the main/archive chat list. The limit can be increased with Telegram Premium.
-
ToggleChatIsTranslatable
-
Changes the translatable state of a chat; for Telegram Premium users only.
-
ToggleDownloadIsPaused
-
Changes pause state of a file in the file download list.
-
ToggleForumTopicIsClosed
-
Toggles whether a topic is closed in a forum supergroup chat; requires can_manage_topics administrator right in the supergroup unless the user is creator of the topic.
-
ToggleForumTopicIsPinned
-
Changes the pinned state of a forum topic; requires can_manage_topics administrator right in the supergroup. There can be up to getOption("pinned_forum_topic_count_max") pinned forum topics.
-
ToggleGeneralForumTopicIsHidden
-
Toggles whether a General topic is hidden in a forum supergroup chat; requires can_manage_topics administrator right in the supergroup.
-
ToggleGroupCallEnabledStartNotification
-
Toggles whether the current user will receive a notification when the group call will start; scheduled group calls only.
-
ToggleGroupCallIsMyVideoEnabled
-
Toggles whether current user's video is enabled.
-
ToggleGroupCallIsMyVideoPaused
-
Toggles whether current user's video is paused.
-
ToggleGroupCallMuteNewParticipants
-
Toggles whether new participants of a group call can be unmuted only by administrators of the group call. Requires groupCall.can_toggle_mute_new_participants group call flag.
-
ToggleGroupCallParticipantIsHandRaised
-
Toggles whether a group call participant hand is rased.
-
ToggleGroupCallParticipantIsMuted
-
Toggles whether a participant of an active group call is muted, unmuted, or allowed to unmute themselves.
-
ToggleGroupCallScreenSharingIsPaused
-
Pauses or unpauses screen sharing in a joined group call.
-
ToggleSessionCanAcceptCalls
-
Toggles whether a session can accept incoming calls.
-
ToggleSessionCanAcceptSecretChats
-
Toggles whether a session can accept incoming secret chats.
-
ToggleStoryIsPinned
-
Toggles whether a story is accessible after expiration. Can be called only if story.can_toggle_is_pinned == true.
-
ToggleSupergroupHasAggressiveAntiSpamEnabled
-
Toggles whether aggressive anti-spam checks are enabled in the supergroup. Can be called only if supergroupFullInfo.can_toggle_aggressive_anti_spam == true.
-
ToggleSupergroupHasHiddenMembers
-
Toggles whether non-administrators can receive only administrators and bots using getSupergroupMembers or searchChatMembers. Can be called only if supergroupFullInfo.can_hide_members == true.
-
ToggleSupergroupIsAllHistoryAvailable
-
Toggles whether the message history of a supergroup is available to new members; requires can_change_info administrator right.
-
ToggleSupergroupIsBroadcastGroup
-
Upgrades supergroup to a broadcast group; requires owner privileges in the supergroup.
-
ToggleSupergroupIsForum
-
Toggles whether the supergroup is a forum; requires owner privileges in the supergroup. Discussion supergroups can't be converted to forums.
-
ToggleSupergroupJoinByRequest
-
Toggles whether all users directly joining the supergroup need to be approved by supergroup administrators; requires can_restrict_members administrator right.
-
ToggleSupergroupJoinToSendMessages
-
Toggles whether joining is mandatory to send messages to a discussion supergroup; requires can_restrict_members administrator right.
-
ToggleSupergroupSignMessages
-
Toggles whether sender signature is added to sent messages in a channel; requires can_change_info administrator right.
-
ToggleSupergroupUsernameIsActive
-
Changes active state for a username of a supergroup or channel, requires owner privileges in the supergroup or channel. The editable username can't be disabled..
-
ToggleUsernameIsActive
-
Changes active state for a username of the current user. The editable username can't be disabled. May return an error with a message "USERNAMES_ACTIVE_TOO_MUCH" if the maximum number of active usernames has been reached.
-
TopChatCategory
-
Represents the categories of chats for which a list of frequently used chats can be retrieved.
-
TopChatCategoryBots
-
A category containing frequently used private chats with bot users.
-
TopChatCategoryCalls
-
A category containing frequently used chats used for calls.
-
TopChatCategoryChannels
-
A category containing frequently used channels.
-
TopChatCategoryForwardChats
-
A category containing frequently used chats used to forward messages.
-
TopChatCategoryGroups
-
A category containing frequently used basic groups and supergroups.
-
TopChatCategoryInlineBots
-
A category containing frequently used chats with inline bots sorted by their usage in inline mode.
-
TopChatCategoryUsers
-
A category containing frequently used private chats with non-bot users.
-
TransferChatOwnership
-
Changes the owner of a chat. The current user must be a current owner of the chat. Use the method canTransferOwnership to check whether the ownership can be transferred from the current session. Available only for supergroups and channel chats.
-
TranslateMessageText
-
Extracts text or caption of the given message and translates it to the given language. If the current user is a Telegram Premium user, then text formatting is preserved.
-
TranslateText
-
Translates a text to the given language. If the current user is a Telegram Premium user, then text formatting is preserved.
-
TrendingStickerSets
-
Represents a list of trending sticker sets.
-
UnconfirmedSession
-
Contains information about an unconfirmed session.
-
UnpinAllChatMessages
-
Removes all pinned messages from a chat; requires can_pin_messages rights in the group or can_edit_messages rights in the channel.
-
UnpinAllMessageThreadMessages
-
Removes all pinned messages from a forum topic; requires can_pin_messages rights in the supergroup.
-
UnpinChatMessage
-
Removes a pinned message from a chat; requires can_pin_messages rights in the group or can_edit_messages rights in the channel.
-
UnreadReaction
-
Contains information about an unread reaction to a message.
-
Update
-
Contains notifications about data changes.
-
UpdateActiveEmojiReactions
-
The list of active emoji reactions has changed.
-
UpdateActiveNotifications
-
Contains active notifications that was shown on previous application launches. This update is sent only if the message database is used. In that case it comes once before any updateNotification and updateNotificationGroup update.
-
UpdateAddChatMembersPrivacyForbidden
-
Adding users to a chat has failed because of their privacy settings. An invite link can be shared with the users if appropriate.
-
UpdateAnimatedEmojiMessageClicked
-
Some animated emoji message was clicked and a big animated sticker must be played if the message is visible on the screen. chatActionWatchingAnimations with the text of the message needs to be sent if the sticker is played.
-
UpdateAnimationSearchParameters
-
The parameters of animation search through getOption("animation_search_bot_username") bot has changed.
-
The list of bots added to attachment or side menu has changed.
-
UpdateAuthorizationState
-
The user authorization state has changed.
-
UpdateAutosaveSettings
-
Autosave settings for some type of chats were updated.
-
UpdateBasicGroup
-
Some data of a basic group has changed. This update is guaranteed to come before the basic group identifier is returned to the application.
-
UpdateBasicGroupFullInfo
-
Some data in basicGroupFullInfo has been changed.
-
UpdateCall
-
New call was created or information about a call was updated.
-
UpdateChatAction
-
A message sender activity in the chat has changed.
-
UpdateChatActionBar
-
The chat action bar was changed.
-
UpdateChatActiveStories
-
The list of active stories posted by a specific chat has changed.
-
UpdateChatAvailableReactions
-
The chat available reactions were changed.
-
UpdateChatBackground
-
The chat background was changed.
-
UpdateChatBlockList
-
A chat was blocked or unblocked.
-
UpdateChatDefaultDisableNotification
-
The value of the default disable_notification parameter, used when a message is sent to the chat, was changed.
-
UpdateChatDraftMessage
-
A chat draft has changed. Be aware that the update may come in the currently opened chat but with old content of the draft. If the user has changed the content of the draft, this update mustn't be applied.
-
UpdateChatFolders
-
The list of chat folders or a chat folder has changed.
-
UpdateChatHasProtectedContent
-
A chat content was allowed or restricted for saving.
-
UpdateChatHasScheduledMessages
-
A chat's has_scheduled_messages field has changed.
-
UpdateChatIsMarkedAsUnread
-
A chat was marked as unread or was read.
-
UpdateChatIsTranslatable
-
Translation of chat messages was enabled or disabled.
-
UpdateChatLastMessage
-
The last message of a chat was changed. If last_message is null, then the last message in the chat became unknown. Some new unknown messages might be added to the chat in this case.
-
UpdateChatMember
-
User rights changed in a chat; for bots only.
-
UpdateChatMessageAutoDeleteTime
-
The message auto-delete or self-destruct timer setting for a chat was changed.
-
UpdateChatMessageSender
-
The message sender that is selected to send messages in a chat has changed.
-
UpdateChatNotificationSettings
-
Notification settings for a chat were changed.
-
UpdateChatOnlineMemberCount
-
The number of online group members has changed. This update with non-zero number of online group members is sent only for currently opened chats..
-
UpdateChatPendingJoinRequests
-
The chat pending join requests were changed.
-
UpdateChatPermissions
-
Chat permissions was changed.
-
UpdateChatPhoto
-
A chat photo was changed.
-
UpdateChatPosition
-
The position of a chat in a chat list has changed. An updateChatLastMessage or updateChatDraftMessage update might be sent instead of the update.
-
UpdateChatReadInbox
-
Incoming messages were read or the number of unread messages has been changed.
-
UpdateChatReadOutbox
-
Outgoing messages were read.
-
UpdateChatReplyMarkup
-
The default chat reply markup was changed. Can occur because new messages with reply markup were received or because an old reply markup was hidden by the user.
-
UpdateChatTheme
-
The chat theme was changed.
-
UpdateChatThemes
-
The list of available chat themes has changed.
-
UpdateChatTitle
-
The title of a chat was changed.
-
UpdateChatUnreadMentionCount
-
The chat unread_mention_count has changed.
-
UpdateChatUnreadReactionCount
-
The chat unread_reaction_count has changed.
-
UpdateChatVideoChat
-
A chat video chat state has changed.
-
UpdateConnectionState
-
The connection state has changed. This update must be used only to show a human-readable description of the connection state.
-
UpdateDefaultReactionType
-
The type of default reaction has changed.
-
UpdateDeleteMessages
-
Some messages were deleted.
-
UpdateDiceEmojis
-
The list of supported dice emojis has changed.
-
UpdateFavoriteStickers
-
The list of favorite stickers was updated.
-
UpdateFile
-
Information about a file was updated.
-
UpdateFileAddedToDownloads
-
A file was added to the file download list. This update is sent only after file download list is loaded for the first time.
-
UpdateFileDownload
-
A file download was changed. This update is sent only after file download list is loaded for the first time.
-
UpdateFileDownloads
-
The state of the file download list has changed.
-
UpdateFileGenerationStart
-
The file generation process needs to be started by the application.
-
UpdateFileGenerationStop
-
File generation is no longer needed.
-
UpdateFileRemovedFromDownloads
-
A file was removed from the file download list. This update is sent only after file download list is loaded for the first time.
-
UpdateForumTopicInfo
-
Basic information about a topic in a forum chat was changed.
-
UpdateGroupCall
-
Information about a group call was updated.
-
UpdateGroupCallParticipant
-
Information about a group call participant was changed. The updates are sent only after the group call is received through getGroupCall and only if the call is joined or being joined.
-
UpdateHavePendingNotifications
-
Describes whether there are some pending notification updates. Can be used to prevent application from killing, while there are some pending notifications.
-
UpdateInstalledStickerSets
-
The list of installed sticker sets was updated.
-
UpdateLanguagePackStrings
-
Some language pack strings have been updated.
-
UpdateMessageContent
-
The message content has changed.
-
UpdateMessageContentOpened
-
The message content was opened. Updates voice note messages to "listened", video note messages to "viewed" and starts the self-destruct timer.
-
UpdateMessageEdited
-
A message was edited. Changes in the message content will come in a separate updateMessageContent.
-
UpdateMessageInteractionInfo
-
The information about interactions with a message has changed.
-
UpdateMessageIsPinned
-
The message pinned state was changed.
-
UpdateMessageLiveLocationViewed
-
A message with a live location was viewed. When the update is received, the application is supposed to update the live location.
-
UpdateMessageMentionRead
-
A message with an unread mention was read.
-
UpdateMessageSendAcknowledged
-
A request to send a message has reached the Telegram server. This doesn't mean that the message will be sent successfully or even that the send message request will be processed..
-
UpdateMessageSendFailed
-
A message failed to send. Be aware that some messages being sent can be irrecoverably deleted, in which case updateDeleteMessages will be received instead of this update.
-
UpdateMessageSendSucceeded
-
A message has been successfully sent.
-
UpdateMessageUnreadReactions
-
The list of unread reactions added to a message was changed.
-
UpdateNewCallbackQuery
-
A new incoming callback query; for bots only.
-
UpdateNewCallSignalingData
-
New call signaling data arrived.
-
UpdateNewChat
-
A new chat has been loaded/created. This update is guaranteed to come before the chat identifier is returned to the application. The chat field changes will be reported through separate updates.
-
UpdateNewChatJoinRequest
-
A user sent a join request to a chat; for bots only.
-
UpdateNewChosenInlineResult
-
The user has chosen a result of an inline query; for bots only.
-
UpdateNewCustomEvent
-
A new incoming event; for bots only.
-
UpdateNewCustomQuery
-
A new incoming query; for bots only.
-
UpdateNewInlineCallbackQuery
-
A new incoming callback query from a message sent via a bot; for bots only.
-
UpdateNewInlineQuery
-
A new incoming inline query; for bots only.
-
UpdateNewMessage
-
A new message was received; can also be an outgoing message.
-
UpdateNewPreCheckoutQuery
-
A new incoming pre-checkout query; for bots only. Contains full information about a checkout.
-
UpdateNewShippingQuery
-
A new incoming shipping query; for bots only. Only for invoices with flexible price.
-
UpdateNotification
-
A notification was changed.
-
UpdateNotificationGroup
-
A list of active notifications in a notification group has changed.
-
UpdateOption
-
An option changed its value.
-
UpdatePoll
-
A poll was updated; for bots only.
-
UpdatePollAnswer
-
A user changed the answer to a poll; for bots only.
-
UpdateRecentStickers
-
The list of recently used stickers was updated.
-
Updates
-
Contains a list of updates.
-
UpdateSavedAnimations
-
The list of saved animations was updated.
-
UpdateSavedNotificationSounds
-
The list of saved notifications sounds was updated. This update may not be sent until information about a notification sound was requested for the first time.
-
UpdateScopeNotificationSettings
-
Notification settings for some type of chats were updated.
-
UpdateSecretChat
-
Some data of a secret chat has changed. This update is guaranteed to come before the secret chat identifier is returned to the application.
-
UpdateSelectedBackground
-
The selected background has changed.
-
UpdateServiceNotification
-
A service notification from the server was received. Upon receiving this the application must show a popup with the content of the notification.
-
UpdateStickerSet
-
A sticker set has changed.
-
UpdateStory
-
A story was changed.
-
UpdateStoryDeleted
-
A story became inaccessible.
-
UpdateStoryListChatCount
-
Number of chats in a story list has changed.
-
UpdateStorySendFailed
-
A story failed to send. If the story sending is canceled, then updateStoryDeleted will be received instead of this update.
-
UpdateStorySendSucceeded
-
A story has been successfully sent.
-
UpdateStoryStealthMode
-
Story stealth mode settings have changed.
-
UpdateSuggestedActions
-
The list of suggested to the user actions has changed.
-
UpdateSupergroup
-
Some data of a supergroup or a channel has changed. This update is guaranteed to come before the supergroup identifier is returned to the application.
-
UpdateSupergroupFullInfo
-
Some data in supergroupFullInfo has been changed.
-
UpdateTermsOfService
-
New terms of service must be accepted by the user. If the terms of service are declined, then the deleteAccount method must be called with the reason "Decline ToS update".
-
UpdateTrendingStickerSets
-
The list of trending sticker sets was updated or some of them were viewed.
-
UpdateUnconfirmedSession
-
The first unconfirmed session has changed.
-
UpdateUnreadChatCount
-
Number of unread chats, i.e. with unread messages or marked as unread, has changed. This update is sent only if the message database is used.
-
UpdateUnreadMessageCount
-
Number of unread messages in a chat list has changed. This update is sent only if the message database is used.
-
UpdateUser
-
Some data of a user has changed. This update is guaranteed to come before the user identifier is returned to the application.
-
UpdateUserFullInfo
-
Some data in userFullInfo has been changed.
-
UpdateUserPrivacySettingRules
-
Some privacy setting rules have been changed.
-
UpdateUsersNearby
-
The list of users nearby has changed. The update is guaranteed to be sent only 60 seconds after a successful searchChatsNearby request.
-
UpdateUserStatus
-
The user went online or offline.
-
UpdateWebAppMessageSent
-
A message was sent by an opened Web App, so the Web App needs to be closed.
-
UpgradeBasicGroupChatToSupergroupChat
-
Creates a new supergroup from an existing basic group and sends a corresponding messageChatUpgradeTo and messageChatUpgradeFrom; requires creator privileges. Deactivates the original basic group.
-
UploadStickerFile
-
Uploads a file with a sticker; returns the uploaded file.
-
User
-
Represents a user.
-
UserFullInfo
-
Contains full information about a user.
-
UserLink
-
Contains an HTTPS URL, which can be used to get information about a user.
-
Usernames
-
Describes usernames assigned to a user, a supergroup, or a channel.
-
UserPrivacySetting
-
Describes available user privacy settings.
-
UserPrivacySettingAllowCalls
-
A privacy setting for managing whether the user can be called.
-
UserPrivacySettingAllowChatInvites
-
A privacy setting for managing whether the user can be invited to chats.
-
UserPrivacySettingAllowFindingByPhoneNumber
-
A privacy setting for managing whether the user can be found by their phone number. Checked only if the phone number is not known to the other user. Can be set only to "Allow contacts" or "Allow all".
-
UserPrivacySettingAllowPeerToPeerCalls
-
A privacy setting for managing whether peer-to-peer connections can be used for calls.
-
UserPrivacySettingAllowPrivateVoiceAndVideoNoteMessages
-
A privacy setting for managing whether the user can receive voice and video messages in private chats.
-
UserPrivacySettingRule
-
Represents a single rule for managing user privacy settings.
-
UserPrivacySettingRuleAllowAll
-
A rule to allow all users to do something.
-
UserPrivacySettingRuleAllowChatMembers
-
A rule to allow all members of certain specified basic groups and supergroups to doing something.
-
UserPrivacySettingRuleAllowContacts
-
A rule to allow all contacts of the user to do something.
-
UserPrivacySettingRuleAllowUsers
-
A rule to allow certain specified users to do something.
-
UserPrivacySettingRuleRestrictAll
-
A rule to restrict all users from doing something.
-
UserPrivacySettingRuleRestrictChatMembers
-
A rule to restrict all members of specified basic groups and supergroups from doing something.
-
UserPrivacySettingRuleRestrictContacts
-
A rule to restrict all contacts of the user from doing something.
-
UserPrivacySettingRuleRestrictUsers
-
A rule to restrict all specified users from doing something.
-
UserPrivacySettingRules
-
A list of privacy rules. Rules are matched in the specified order. The first matched rule defines the privacy setting for a given user. If no rule matches, the action is not allowed.
-
UserPrivacySettingShowBio
-
A privacy setting for managing whether the user's bio is visible.
-
UserPrivacySettingShowLinkInForwardedMessages
-
A privacy setting for managing whether a link to the user's account is included in forwarded messages.
-
UserPrivacySettingShowPhoneNumber
-
A privacy setting for managing whether the user's phone number is visible.
-
UserPrivacySettingShowProfilePhoto
-
A privacy setting for managing whether the user's profile photo is visible.
-
UserPrivacySettingShowStatus
-
A privacy setting for managing whether the user's online status is visible.
-
Users
-
Represents a list of users.
-
UserStatus
-
Describes the last time the user was online.
-
UserStatusEmpty
-
The user status was never changed.
-
UserStatusLastMonth
-
The user is offline, but was online last month.
-
UserStatusLastWeek
-
The user is offline, but was online last week.
-
UserStatusOffline
-
The user is offline.
-
UserStatusOnline
-
The user is online.
-
UserStatusRecently
-
The user was online recently.
-
UserSupportInfo
-
Contains custom information about the user.
-
UserType
-
Represents the type of a user. The following types are possible: regular users, deleted users and bots.
-
UserTypeBot
-
A bot (see https://core.telegram.org/bots).
-
UserTypeDeleted
-
A deleted user or deleted bot. No information on the user besides the user identifier is available. It is not possible to perform any active actions on this type of user.
-
UserTypeRegular
-
A regular user.
-
UserTypeUnknown
-
No information on the user besides the user identifier is available, yet this user has not been deleted. This object is extremely rare and must be handled like a deleted user. It is not possible to perform any actions on users of this type.
-
ValidatedOrderInfo
-
Contains a temporary identifier of validated order information, which is stored for one hour, and the available shipping options.
-
ValidateOrderInfo
-
Validates the order information provided by a user and returns the available shipping options for a flexible invoice.
-
VectorPathCommand
-
Represents a vector path command.
-
VectorPathCommandCubicBezierCurve
-
A cubic Bézier curve to a given point.
-
VectorPathCommandLine
-
A straight line to a given point.
-
Venue
-
Describes a venue.
-
Video
-
Describes a video file.
-
VideoChat
-
Describes a video chat.
-
VideoNote
-
Describes a video note. The video must be equal in width and height, cropped to a circle, and stored in MPEG4 format.
-
ViewMessages
-
Informs TDLib that messages are being viewed by the user. Sponsored messages must be marked as viewed only when the entire text of the message is shown on the screen (excluding the button)..
-
ViewPremiumFeature
-
Informs TDLib that the user viewed detailed information about a Premium feature on the Premium features screen.
-
ViewTrendingStickerSets
-
Informs the server that some trending sticker sets have been viewed by the user.
-
VoiceNote
-
Describes a voice note. The voice note must be encoded with the Opus codec, and stored inside an OGG container. Voice notes can have only a single audio channel.
-
WebApp
-
Describes a Web App. Use getInternalLink with internalLinkTypeWebApp to share the Web App.
-
WebAppInfo
-
Contains information about a Web App.
-
WebPage
-
Describes a web page preview.
-
WebPageInstantView
-
Describes an instant view page for a web page.
-
WriteGeneratedFilePart
-
Writes a part of a generated file. This method is intended to be used only if the application has no direct access to TDLib's file system, because it is usually slower than a direct write to the destination file.