Skip to main content
Module

x/grm/mod.ts>client.sendCode

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

Parameters

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

Returns

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