Skip to main content
Module

x/grm/mod.ts>Button

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

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)