Skip to main content
Module

x/mtkruto/mod.ts

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
import * as mtkruto from "https://deno.land/x/mtkruto@0.1.154/mod.ts";

Classes

c
Storage
abstract
c
TLObject
abstract
c
Transport
abstract

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 bot command.

A received callback query.

The rights of a chat administrator.

The rights of a chat member.

Changes made to a chat member.

A chosen inline result.

A shared contact.

A rolled dice.

A document.

A game.

A giveaway.

Giveaway parameters.

An incoming inline query.

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

A message content that shares a contact.

A message content that shares a location.

A message content that shares a venue.

A chat invite link.

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

A link preview.

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 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.

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 sticker message.

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.

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 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 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.

One or more messages were deleted.

A story was deleted.

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

A message was edited.

An inline query was received. Bot-only.

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.

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 user.

A shared venue.

A video file.

A video note.

A voice note.

Type Aliases

A type specifying where bot commads are available.

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 chat photo.

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, or a 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 currently authorized account.

A button of an inline keyboard.

A single inline query result.

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

A story content when provided as an input.

A button of a custom keyboard.

Any type of message.

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.