Layer 220
constructor
updateNewAuthorization#8951abef flags:# unconfirmed:flags.0?true hash:long date:flags.0?int device:flags.0?string location:flags.0?string = Update;

Parameters

Name Type Description
Flags # Flags, see TL conditional fields
Unconfirmed flags.0?true Whether the session is unconfirmed, see here for more info.
Hash long Hash used for caching, for more info click here
Date flags.0?int Authorization date
Device flags.0?string Name of device, for example Android
Location flags.0?string Location, for example USA, NY (IP=1.2.3.4)

Returns

Update

Gogram Example

// Creating UpdateNewAuthorization constructor
obj := &tg.UpdateNewAuthorization{
    Hash: int64(0),

    // Optional fields:
    // Unconfirmed: true,
    // Date: 0,
    // Device: "...",
    // Location: "...",
}