Skip to main content
Module

x/grm/mod.ts>tgClient.AbstractTelegramClient#sendCode

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

Parameters

apiCredentials: types.ApiCredentials
phoneNumber: string
optional
forceSMS: boolean

Returns

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