auth.signIn
Layer 225
Constructor ID: 0x8d52a951
Returns: Authorization
Parameters
| Name | Type | Description |
|---|---|---|
phone_number | string | |
phone_code_hash | string | |
phone_code | string (flags.0, optional) | |
email_verification | EmailVerification (flags.1, optional) |
Example
go
result, err := client.Raw(&tg.SignInRequest{
phone_number: "",
phone_code_hash: "",
phone_code: "",
email_verification: nil, // EmailVerification
})
if err != nil {
panic(err)
}
print(result)