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

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

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

Parameters

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

Returns

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