Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

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

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

Parameters

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

Returns

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