Layer 220
constructor
auth.sentCode#5e002502 flags:# type:auth.SentCodeType phone_code_hash:string next_type:flags.1?auth.CodeType timeout:flags.2?int = auth.SentCode;

Parameters

Name Type Description
Flags # Flags, see TL conditional fields
Type auth.SentCodeType Phone code type
PhoneCodeHash string Phone code hash, to be stored and later re-used with auth. sign In
NextType flags.1?auth.CodeType Phone code type that will be sent next, if the phone code is not received within timeout seconds: to send it use auth. resend Code
Timeout flags.2?int Timeout for reception of the phone code

Returns

auth.SentCode

Gogram Example

// Creating AuthSentCode constructor
obj := &tg.AuthSentCode{
    Type: nil,
    PhoneCodeHash: "...",

    // Optional fields:
    // NextType: nil,
    // Timeout: 0,
}