Skip to main content
Module

x/mtkruto/mod.ts

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

Classes

c
Storage
abstract
c
TLObject
abstract
c
Transport
abstract

Functions

Interfaces

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

An audio file.

A client's authorization state.

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.

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.

Properties shared between all message types.

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.

This object represents a photo.

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

This object represents 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.

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

A message was sent or received.

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.

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.

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

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

Message parse mode.