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

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

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

Parameters

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

Returns

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