Layer 227
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
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 AuthSentCodeObj constructor
obj := &tg.AuthSentCodeObj{
    Type: nil,
    PhoneCodeHash: "Hello, World!",
    NextType: nil,
    Timeout: nil,
}