Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/grm/mod.ts>client.UserAuthParams

MTProto API Client for Deno 🦕
Go to Latest
interface client.UserAuthParams
Re-export
import { type client } from "https://deno.land/x/grm@0.5.2/mod.ts";
const { UserAuthParams } = client;

Properties

phoneNumber: string | (() => MaybePromise<string>)
phoneCode: (isCodeViaApp?: boolean) => MaybePromise<string>
optional
password: (hint?: string) => MaybePromise<string>
optional
firstAndLastNames: () => Promise<[string, string]>
optional
qrCode: (qrCode: { token: Buffer; expires: number; }) => Promise<void>
onError: (err: Error) => Promise<boolean> | void
optional
forceSMS: boolean