Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/mtkruto/tl/2_types.ts>AttachMenuBot_

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
class AttachMenuBot_
import { AttachMenuBot_ } from "https://deno.land/x/mtkruto@0.1.190/tl/2_types.ts";

Constructors

new
AttachMenuBot_(params: { inactive?: true; has_settings?: true; request_write_access?: true; show_in_attach_menu?: true; show_in_side_menu?: true; side_menu_disclaimer_needed?: true; bot_id: bigint; short_name: string; peer_types?: Array<enums.AttachMenuPeerType>; icons: Array<enums.AttachMenuBotIcon>; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
bot_id: bigint

Bot ID

optional
has_settings: true

Deprecated flag, can be ignored.

icons: Array<enums.AttachMenuBotIcon>

List of platform-specific static icons and animations to use for the attachment menu button

optional
inactive: true

If set, before launching the mini app the client should ask the user to add the mini app to the attachment/side menu, and only if the user accepts, after invoking messages.toggleBotInAttachMenu the app should be opened.

optional
peer_types: Array<enums.AttachMenuPeerType>

List of dialog types where this attachment menu entry should be shown

optional
request_write_access: true

Whether the bot would like to send messages to the user.

short_name: string

Attachment menu item name

optional
show_in_attach_menu: true

Whether, when installed, an attachment menu entry should be shown for the Mini App.

optional
show_in_side_menu: true

Whether, when installed, an entry in the main view side menu should be shown for the Mini App.

optional
side_menu_disclaimer_needed: true

If inactive if set and the user hasn't previously accepted the third-party mini apps Terms of Service for this bot, when showing the mini app installation prompt, an additional mandatory checkbox to accept the mini apps TOS and a disclaimer indicating that this Mini App is not affiliated to Telegram should be shown.

Static Properties

readonly
[name]: string
readonly
[paramDesc]: ParamDesc