Skip to main content
Deno 2 is finally here 🎉️
Learn more
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.6.0/mod.ts";
const { AbstractTelegramClient } = tgClient;

Parameters

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

Returns

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