Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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@v0.3.1/mod.ts";
const { AbstractTelegramClient } = tgClient;

Parameters

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

Returns

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