Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

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

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

Parameters

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

Returns

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