* Sends a Telegram Passport authorization form, effectively sharing data with the service. This method must be called after getPassportAuthorizationFormAvailableElements if some previously available elements need to be used.
13
*/
14
class SendPassportAuthorizationForm extends TdFunction
15
{
16
public const TYPE_NAME = 'sendPassportAuthorizationForm';
17
18
/**
19
* Authorization form identifier.
20
*/
21
protected int $autorizationFormId;
22
23
/**
24
* Types of Telegram Passport elements chosen by user to complete the authorization form.
25
*
26
* @var PassportElementType[]
27
*/
28
protected array $types;
29
30
public function __construct(int $autorizationFormId, array $types)
31
{
32
$this->autorizationFormId = $autorizationFormId;
33
$this->types = $types;
34
}
35
36
public static function fromArray(array $array): SendPassportAuthorizationForm