Skip to main content
Module

x/grm/mod.ts>client.auth.sendCode

MTProto API Client for Deno 🦕
Latest
function client.auth.sendCode
import { client } from "https://deno.land/x/grm@0.8.2/mod.ts";
const { sendCode } = client.auth;

Parameters

apiCredentials: ApiCredentials
phoneNumber: string
optional
forceSMS = [UNSUPPORTED]

Returns

Promise<{ phoneCodeHash: string; isCodeViaApp: boolean; }>