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

x/mtkruto/3_types.ts

[WIP] Cross-runtime JavaScript library for building Telegram clients
Go to Latest
import * as mtkruto from "https://deno.land/x/mtkruto@0.1.130/3_types.ts";

Functions

Interfaces

This object represents an animation file (GIF or H.264/MPEG-4 AVC video without sound).

An audio file.

The rights of a chat administrator.

A shared contact.

A rolled dice.

Forces the user's client to select the message as the one that is to be replied.

This object represents a game. Use BotFather to create and edit games, their short names will act as unique identifiers.

This object represents an inline keyboard that appears right next to the message it belongs to.

A message content that shares a contact.

A message content that shares a location.

A message content that shares a venue.

This object defines the criteria used to request a suitable chat. The identifier of the selected chat will be shared with the bot when the corresponding button is pressed.

This object defines the criteria used to request a suitable user. The identifier of the selected user will be shared with the bot when the corresponding button is pressed.

A keyboard button representing the type of the poll that is requested to be created.

A shared location.

This object represents a message.

This object represents a photo.

This object represents a custom keyboard with reply options.

Makes the user's client hide the current custom keyboard.

This object represents a sticker.

A file or sticker thumbnail.

This object represents a Telegram user or bot.

A shared venue.

This object represents a video file.

This object represents a video message (available in Telegram apps as of v.4.0).

A voice note.

Type Aliases

A sign of a possible action by a member of a conversation.

A chat identifier as provided by MTKruto or a string starting with a @ that is followed by a username.

This object represents a chat.

This object represents a chat photo.

This object represents one button of an inline keyboard. You must use exactly one of the optional fields.

This object represents one button of the reply keyboard. For simple text buttons, String can be used instead of this object to specify the button text. The optional fields web_app, request_user, request_chat, request_contact, request_location, and request_poll are mutually exclusive.

A single entity of a message's text or caption.

Message parse mode.