* 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. Can be called before authorization when the current authorization state is authorizationStateWaitPassword.
13
*/
14
class DeleteAccount extends TdFunction
15
{
16
public const TYPE_NAME = 'deleteAccount';
17
18
/**
19
* The reason why the account was deleted; optional.
20
*
21
* @var string
22
*/
23
protected string $reason;
24
25
public function __construct(string $reason)
26
{
27
$this->reason = $reason;
28
}
29
30
public static function fromArray(array $array): DeleteAccount