Layer 231
AuthFirebasePnvSignUp
Register a new account after a Firebase phone number verification login returned auth. authorization Sign Up Required.
method
auth.firebasePnvSignUp#783f6b56 flags:# no_joined_notifications:flags.0?true first_name:string last_name:string = auth.Authorization;
Parameters
| Name | Type | Description |
|---|---|---|
| NoJoinedNotifications | flags.0?true | If set, contacts will not be notified that the user joined Telegram |
| FirstName | string | First name of the new user |
| LastName | string | Last name of the new user |
Returns
auth.AuthorizationGogram Example
auth, err := client.AuthFirebasePnvSignUp(false, "Alice", "Smith") if err != nil { log.Fatal(err) } if a, ok := auth.(*tg.AuthAuthorizationObj); ok { fmt.Printf("account created: %T\n", a.User) }