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

x/mtkruto/3_types.ts

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

Functions

Interfaces

Properties shared between all message types.

Properties shared between media message types.

An animation file (GIF or H.264/MPEG-4 AVC video without sound).

An audio file.

A client's authorization state.

A user's birthday.

A bot command.

A business connection.

A received callback query.

An answer to a callback query.

A reference to a usual button.

A reference to a button for opening the bot's game.

A reference to a password confirmation button.

The rights of a chat administrator.

The rights of a chat member.

Changes made to a chat member.

A chat photo.

A chosen inline result.

A shared contact.

A rolled dice.

A document.

A game.

A giveaway.

Giveaway parameters.

An inactive chat.

An inline keyboard button that, when pressed, sends back the specified callback data.

An inline keyboard that, when pressed, copies the text inside its copy field.

An inline keyboard button that, when pressed, launches the bot's game.

An inline keyboard button that, when pressed, logs the user into the specified URL.

An inline keyboard that, when pressed, initiates a payment.

An inline keyboard button that, when pressed, switches to inline mode in a chat chosen by the user.

An inline keyboard button that, when pressed, switches to inline mode in a chat chosen by the user from a limited subset of chats.

An inline keyboard button that, when pressed, switches to inline mode in the current chat.

An inline keyboard button that, when pressed, opens the specified URL.

An incoming inline query.

An answer to an inline query.

A button to be shown along with the results of an inline query.

A chat invite link.

A join request.

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

A link preview.

A live stream channel.

A shared location.

A login URL.

A mask position.

An animation message. Animations are GIFs or H.264/MPEG-4 AVC videos without sound.

An audio message.

A message that is received when a chat's auto-delete timer is changed.

A message that is received by user accounts when a channel is created. While bots don't receive them, they are able to see them if someone replies to them.

A message that is received when a group is migrated to a supergroup.

A message that is received when a supergroup is created as a result of a group migration.

A contact message.

A message content that shares a contact.

A message content that shares a location.

A message content that shares a venue.

A message that is received when a chat's photo is removed.

A dice message.

A document message.

A message that is received when a topic is closed in a forum.

A message that is received when a new topic is created in a forum.

A message that is received when a topic is edited in a forum.

A message that is received when a topic is reopened in a forum.

A game message.

A message that is received when a giveaway is started in a chat.

A message that is received by user accounts when a group is created. While bots don't receive them, they are able to see them if someone replies to them.

The interactions made with a message.

An invoice message.

A message that is received when a member leaves a chat.

A message with a link preview only.

A location message.

A message that is received when new members join a chat.

A message that is received when a chat's photo is changed.

A message that is received when a chat's title is changed.

A message that is received when a message is pinned in a chat.

A poll message.

Represents a type of reaction made to a message.

Information on the reactions made to a channel post.

The reactions of a user to a messages in a group.

Reference to a message.

A payment was successfully refunded. Bot-only.

A sticker message.

A payment was successfully received. Bot-only.

A message that is received by user accounts when a supergroup is created. While bots don't receive them, they are able to see them if someone replies to them.

A text message.

An unsupported message.

A message that is received when a bot account receives a shared user.

A venue message.

A video message.

A message that is received when a video chat is ended in a chat.

A message that is received when a video chat is scheduled in a chat.

A message that is received when a video chat is started in a chat.

A video note message.

A voice message.

A message that is received when a bot is allowed to message a user.

The necessary information to launch a mini app.

A client's network statistics.

An entry of a client's network statistics.

A photo.

A poll.

A poll option.

A price tag.

The count of a specific reaction.

A custom reaction.

A regular reaction.

A paid (star) reaction.

Information on a refunded payment.

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

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

A reference to a specific part of a message that is being replied to.

The reason for restricting an entity.

A shipping address.

A sticker.

A story.

The interactions made with a story.

Represents a type of reaction made to a story.

Reference to a story.

A file or sticker thumbnail.

A client's authorization state was changed.

A business connection was added, modified, or removed.

A callback query was made (a user presses an inline button). Bot-only.

The status of a chat member was changed.

An inline query result was chosen. Bot-only.

A client's connection state was changed.

A chat was removed from the chat list. User-only.

A story was deleted.

A chat in the chat list was edited. User-only.

An inline query was received. Bot-only.

A user requested to join a chat. Bot-only.

A message was edited.

The interactions of a message were updated. User-only.

The anonymous reactions made to a message were changed. Bot-only.

The reactions made to a message by a user were changed. Bot-only.

A message was scheduled. User-only.

One or more messages were deleted.

The status of the current account was changed in a chat.

A new chat was added to the chat list. User-only.

A message was sent or received.

A story was posted.

A video chat was started, scheduled, or ended.

A user.

A shared venue.

A video file.

An ongoing video chat.

An ended video chat.

A scheduled video chat.

A video note.

A voice note.

Type Aliases

A type specifying where bot commads are available.

A reference to a button that is to be clicked by a user.

A chat with more fields.

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

A chat member.

A chat with lesser fields.

A client's connection state.

The client is not connected.

The client is connected and not recovering from an update gap.

The client is connected but recovering from an update gap.

Source to a file. Can be a file ID, a file path, URL, a Uint8Array, a potentially async Uint8Array iterator, or a readable stream of Uint8Array, unless otherwise noted.

The identifier of a channel, a group, or a user (as provided by MTKruto), a username, or a chat link (e.g., https://mtkruto.t.me, https://telegram.me/mtkruto). "me" resolves to the current account.

A button of an inline keyboard.

A single inline query result.

A story content when provided as an input.

A button of a custom keyboard.

Any type of message.

The content of a message to be returned as an inline query result.

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

Message parse mode.

A reaction type.

A message's reply markup.

A story content.

A story's interactive area.

A story's privacy choice.

An incoming update.