Two Factor Authentication (2FA) API Documentation
Introduction
The Two Factor Authentication (2FA) API allows clients to manage their 2FA settings on Telegram.
Endpoint
Method: POST
URL: /profile-2fa-change
Request Body
change_2fa
(Boolean, optional): Specifies whether to change the 2FA settings.remove_2fa
(Boolean, optional): Determines whether to remove the 2FA settings.specific_2fa
(String, optional): Specifies a specific 2FA code to set.folder
(String, required): The folder containing the accounts to be checked for spambots.phones
(List, required): The list of phones to be checkedbatch_size
(Optional, required): The size of each batch for processing.
Example Request Body
{
"folder": "active",
"phones": ["123456789", "123456780"],
"change_2fa": true | false,
"remove_2fa": true | false,
"specific_2fa": "specific_2fa_code",
}