MadelineProtoDocs/docs/API_docs/constructors/updateNewAuthorization.md
2024-05-01 14:53:46 +02:00

1.3 KiB

title description nav_exclude image
updateNewAuthorization A new session logged into the current user's account through an unknown device. true https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: updateNewAuthorization

Back to constructors index

A new session logged into the current user's account through an unknown device.

Attributes:

Name Type Required Description
unconfirmed Bool Optional Whether the session is unconfirmed, see here » for more info.
hash long Yes Hash for pagination, for more info click here
date int Optional Authorization date
device string Optional Name of device, for example Android
location string Optional Location, for example USA, NY (IP=1.2.3.4)

Type: Update

Example:

$updateNewAuthorization = ['_' => 'updateNewAuthorization', 'unconfirmed' => Bool, 'hash' => long, 'date' => int, 'device' => 'string', 'location' => 'string'];