Skip to main content
Module

x/grm/mod.ts>sendCode

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

Parameters

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

Returns

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