Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/grm/src/tl/mod.ts>Button

MTProto API Client for Deno 🦕
Go to Latest
class Button
Re-export
import { Button } from "https://deno.land/x/grm@0.5.1/src/tl/mod.ts";

Constructors

new
Button(
button: Api.TypeKeyboardButton,
resize?: boolean,
singleUse?: boolean,
selective?: boolean,
)

Properties

button: Api.TypeKeyboardButton
resize: boolean | undefined
selective: boolean | undefined
singleUse: boolean | undefined

Static Methods

_isInline(button: Api.TypeKeyboardButton)
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)