acceptAuthorization
Sends a Telegram Passport authorization form, effectively sharing data with the service
cancelPasswordEmail
Cancel the code that was sent to verify an email to use as 2FA recovery method.
changeAuthorizationSettings
Change settings related to a session.
changePhone
Change the phone number of the current account
checkUsername
Validates a username and checks availability.
clearRecentEmojiStatuses
Clears list of recently used emoji statuses
confirmBotConnection
confirmPasswordEmail
Verify an email to use as 2FA recovery method.
confirmPhone
Confirm a phone number to cancel account deletion, for more info click here ยป
createBusinessChatLink
Create a business chat deep link ยป.
createTheme
Create a theme
declinePasswordReset
Abort a pending 2FA password reset, see here for more info ยป
deleteAccount
Delete the user's account from the telegram servers. Can also be used to delete the account of a user that provided the login code, but forgot the 2FA password and no recovery method is configured, see here ยป for more info on password recovery, and here ยป for more info on account deletion.
deleteAutoSaveExceptions
Clear all peer-specific autosave settings.
deleteBusinessChatLink
Delete a business chat deep link ยป.
deletePasskey
Delete a passkey associated to the current account, see here ยป for more info.
deleteSecureValue
Delete stored Telegram Passport documents, for more info see the passport docs ยป
deleteWebBrowserSettingsExceptions
disablePeerConnectedBot
Permanently disconnect a specific chat from all business bots ยป (equivalent to specifying it in recipients.exclude_users during initial configuration with account updateConnectedBot ยป); to reconnect of a chat disconnected using this method the user must reconnect the entire bot by invoking account.updateConnectedBot ยป.
editBusinessChatLink
Edit a created business chat deep link ยป.
finishTakeoutSession
Terminate a takeout session, see here ยป for more info.
getAccountTTL
Get days to live of account
getAllSecureValues
Get all saved Telegram Passport documents, for more info see the passport docs ยป
getAuthorizationForm
Returns a Telegram Passport authorization form for sharing data with a service
getAuthorizations
Get logged-in sessions
getAutoDownloadSettings
Get media autodownload settings
getAutoSaveSettings
Get autosave settings
getBotBusinessConnection
Bots may invoke this method to re-fetch the updateBotBusinessConnect constructor associated with a specific business connection_id, see here ยป for more info on connected business bots. This is needed for example for freshly logged in bots that are receiving some updateBotNewBusinessMessage, etc. updates because some users have already connected to the bot before it could login. In this case, the bot is receiving messages from the business connection, but it hasn't cached the associated updateBotBusinessConnect with info about the connection (can it reply to messages? etc.) yet, and cannot receive the old ones because they were sent when the bot wasn't logged into the session yet. This method can be used to fetch info about a not-yet-cached business connection, and should not be invoked if the info is already cached or to fetch changes, as eventual changes will automatically be sent as new updateBotBusinessConnect updates to the bot using the usual update delivery methods ยป.
getBusinessChatLinks
List all created business chat deep links ยป.
getChannelDefaultEmojiStatuses
Get a list of default suggested channel emoji statuses.
getChannelRestrictedStatusEmojis
Returns fetch the full list of custom emoji IDs ยป that cannot be used in channel emoji statuses ยป.
getChatThemes
Get all available chat themes ยป.
getCollectibleEmojiStatuses
Obtain a list of emoji statuses ยป for owned collectible gifts.
getConnectedBots
List all currently connected business bots ยป
getContactSignUpNotification
Whether the user will receive notifications when contacts sign up
getContentSettings
Get sensitive content settings
getDefaultBackgroundEmojis
Get a set of suggested custom emoji stickers that can be used in an accent color pattern.
getDefaultEmojiStatuses
Get a list of default suggested emoji statuses
getDefaultGroupPhotoEmojis
Get a set of suggested custom emoji stickers that can be used as group picture
getDefaultProfilePhotoEmojis
Get a set of suggested custom emoji stickers that can be used as profile picture
getGlobalPrivacySettings
Get global privacy settings
getMultiWallPapers
Get info about multiple wallpapers
getNotifyExceptions
Returns list of chats with non-default notification settings
getNotifySettings
Gets current notification settings for a given user/group, from all users/all groups.
getPaidMessagesRevenue
Get the number of stars we have received from the specified user thanks to paid messages ยป; the received amount will be equal to the sent amount multiplied by stars_paid_message_commission_permille divided by 1000.
getPasskeys
List the passkeys associated to the current account that can be used to log in, see here ยป for more info on passkeys.
getPasswordSettings
Get private info associated to the password info (recovery email, telegram passport info & so on)
getPassword
Obtain configuration for two-factor authorization with password
getPrivacy
Get privacy settings of current account
getReactionsNotifySettings
Get the current reaction notification settings ยป.
getRecentEmojiStatuses
Get recently used emoji statuses
getSavedMusicIds
Fetch the full list of only the IDs of songs currently added to the profile, see here ยป for more info.
getSavedRingtones
Fetch saved notification sounds
getSecureValue
Get saved Telegram Passport document, for more info see the passport docs ยป
getTheme
Get theme information
getThemes
Get installed themes
getTmpPassword
Get temporary payment password
getUniqueGiftChatThemes
Obtain all chat themes ยป associated to owned collectible gifts ยป.
getWallPaper
Get info about a certain wallpaper
getWallPapers
Returns a list of available wallpapers.
getWebAuthorizations
Get web login widget authorizations
getWebBrowserSettings
initPasskeyRegistration
Initialize passkey registration for the current account, see here ยป for more info on the full flow.
initTakeoutSession
Initialize a takeout session, see here ยป for more info.
installTheme
Install a theme
installWallPaper
Install wallpaper
invalidateSignInCodes
Invalidate the specified login codes, see here ยป for more info.
registerDevice
Register device to receive PUSH notifications
registerPasskey
Complete passkey registration for the current account, see here ยป for more info on the full flow.
reorderUsernames
Reorder usernames associated with the currently logged-in user.
reportPeer
Report a peer for violation of telegram's Terms of Service
reportProfilePhoto
Report a profile photo of a dialog
resendPasswordEmail
Resend the code to verify an email to use as 2FA recovery method.
resetAuthorization
Log out an active authorized session by its hash
resetNotifySettings
Resets all notification settings from users and groups.
resetPassword
Initiate a 2FA password reset: can only be used if the user is already logged-in, see here for more info ยป
resetWallPapers
Delete all installed wallpapers, reverting to the default wallpaper set.
resetWebAuthorization
Log out an active web telegram login session
resetWebAuthorizations
Reset all active web telegram login sessions
resolveBusinessChatLink
Resolve a business chat deep link ยป.
saveAutoDownloadSettings
Change media autodownload settings
saveAutoSaveSettings
Modify autosave settings
saveMusic
Adds or removes a song from the current user's profile see here ยป for more info on the music tab of the profile page.
saveRingtone
Save or remove saved notification sound. If the notification sound is already in MP3 format, account.savedRingtone will be returned. Otherwise, it will be automatically converted and a account.savedRingtoneConverted will be returned, containing a new document object that should be used to refer to the ringtone from now on (ie when deleting it using the unsave parameter, or when downloading it).
saveSecureValue
Securely save Telegram Passport document, for more info see the passport docs ยป
saveTheme
Save a theme
saveWallPaper
Install/uninstall wallpaper
sendChangePhoneCode
Verify a new phone number to associate to the current account
sendConfirmPhoneCode
Send confirmation code to cancel account deletion, for more info click here ยป
sendVerifyEmailCode
Send an email verification code.
sendVerifyPhoneCode
Send the verification phone code for telegram passport.
setAccountTTL
Set account self-destruction period
setAuthorizationTTL
Set time-to-live of current session
setContactSignUpNotification
Toggle contact sign up notifications
setContentSettings
Set sensitive content settings (for viewing or hiding NSFW content)
setGlobalPrivacySettings
Set global privacy settings
setMainProfileTab
Changes the main profile tab of the current user, see here ยป for more info.
setPrivacy
Change privacy settings of current account
setReactionsNotifySettings
Change the reaction notification settings ยป.
toggleConnectedBotPaused
Pause or unpause a specific chat, temporarily disconnecting it from all business bots ยป.
toggleNoPaidMessagesException
Allow a user to send us messages without paying if paid messages ยป are enabled.
toggleSponsoredMessages
Disable or re-enable Telegram ads for the current Premium account. Useful for business owners that may want to launch and view their own Telegram ads via the Telegram ad platform ยป.
toggleUsername
Activate or deactivate a purchased fragment.com username associated to the currently logged-in user.
toggleWebBrowserSettingsException
unregisterDevice
Deletes a device by its token, stops sending PUSH-notifications to it.
updateBirthday
Update our birthday, see here ยป for more info.
updateBusinessAwayMessage
Set a list of Telegram Business away messages.
updateBusinessGreetingMessage
Set a list of Telegram Business greeting messages.
updateBusinessIntro
Set or remove the Telegram Business introduction ยป.
updateBusinessLocation
Businesses ยป may advertise their location using this method, see here ยป for more info. To remove business location information invoke the method without setting any of the parameters.
updateBusinessWorkHours
Specify a set of Telegram Business opening hours. This info will be contained in userFull.business_work_hours. To remove all opening hours, invoke the method without setting the business_work_hours field. Note that the opening hours specified by the user must be appropriately validated and transformed before invoking the method, as specified here ยป.
updateColor
Update the accent color and background custom emoji ยป of the current account.
updateConnectedBot
Connect a business bot ยป to the current account, or to change the current connection settings.
updateDeviceLocked
When client-side passcode lock feature is enabled, will not show message texts in incoming PUSH notifications.
updateEmojiStatus
Set an emoji status
updateNotifySettings
Edits notification settings from a given user/group, from all users/all groups.
updatePasswordSettings
Set a new 2FA password
updatePersonalChannel
Associate (or remove) a personal channel ยป, that will be listed on our personal profile page ยป. Changing it will emit an updateUser update.
updateProfile
Updates user profile.
updateStatus
Updates online user status.
updateTheme
Update theme
updateUsername
Changes username for the current user.
updateWebBrowserSettings
uploadRingtone
Upload notification sound, use account.saveRingtone to convert it and add it to the list of saved notification sounds.
uploadTheme
Upload theme
uploadWallPaper
Create and upload a new wallpaper
verifyEmail
Verify an email address.
verifyPhone
Verify a phone number for telegram passport.