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.144/mod.ts";

Classes

c
Storage
abstract
c
TLObject
abstract
c
Transport
abstract

Functions

Interfaces

Properties shared between all 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.

A shared contact.

A rolled dice.

A document.

A message content that shares a contact.

A message content that shares a location.

A message content that shares a venue.

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

A shared location.

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.

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

A location message.

Properties shared between media message types.

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.

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.

A photo.

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

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.

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

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

A message was sent or received.

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

A button of an inline keyboard.

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

Message parse mode.

An incoming update.