Skip to main content
Go to Latest
method client.tgClient.AbstractTelegramClient.prototype.sendCode
import { client } from "https://deno.land/x/grm@0.5.4/mod.ts";
const { AbstractTelegramClient } = client.tgClient;

Parameters

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

Returns

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