Skip to main content
Module

x/grm/mod.ts>tl.Button

MTProto API Client for Deno 🦕
Go to Latest
class tl.Button
implements [Api.Button]
Re-export
import { tl } from "https://deno.land/x/grm@0.5.4/mod.ts";
const { Button } = tl;

Constructors

new
Button(
resize?: boolean,
singleUse?: boolean,
selective?: boolean,
)

Properties

resize: boolean | undefined
selective: boolean | undefined
singleUse: boolean | undefined

Static Methods

auth(
text: string,
url?: string,
bot?: Api.TypeEntityLike,
writeAccess?: boolean,
fwdText?: string,
)
inline(text: string, data?: Buffer)
requestLocation(
text: string,
resize?: boolean,
singleUse?: boolean,
selective?: boolean,
)
requestPhone(
text: string,
resize?: boolean,
singleUse?: boolean,
selective?: boolean,
)
requestPoll(
text: string,
resize?: boolean,
singleUse?: boolean,
selective?: boolean,
)
switchInline(
text: string,
query?,
samePeer?,
)
text(
text: string,
resize?: boolean,
singleUse?: boolean,
selective?: boolean,
)
url(text: string, url?: string)