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

x/mtkruto/client/2_message_manager.ts>MessageManager

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
class MessageManager
import { MessageManager } from "https://deno.land/x/mtkruto@0.1.141/client/2_message_manager.ts";

Constructors

new
MessageManager(c: C)

Methods

constructMessage(message_: enums.Message, r?: boolean)
deleteChatMemberMessages(chatId: ID, memberId: ID)
deleteMessages(
chatId: ID,
messageIds: number[],
)
editMessageReplyMarkup(
chatId: ID,
messageId: number,
)
editMessageText(
chatId: ID,
messageId: number,
text: string,
)
forwardMessages(
from: ID,
to: ID,
messageIds: number[],
)
getHistory(chatId: ID, params?: GetHistoryParams)
getMessage(chatId: ID, messageId: number)
getMessages(chatId: ID, messageIds: number[])
getMessageWithReply(chatId: ID, messageId: number)
getStickerSetName(inputStickerSet: types.InputStickerSetID, hash?)
pinMessage(
chatId: ID,
messageId: number,
)
sendAnimation(
chatId: ID,
animation: FileSource,
)
sendAudio(
chatId: ID,
audio: FileSource,
params?: SendAudioParams,
)
sendContact(
chatId: ID,
firstName: string,
number: string,
)
sendDice(chatId: ID, params?: SendDiceParams)
sendDocument(
chatId: ID,
document: FileSource,
)
sendLocation(
chatId: ID,
latitude: number,
longitude: number,
)
sendMessage(
chatId: ID,
text: string,
)
sendPhoto(
chatId: ID,
photo: FileSource,
params?: SendPhotoParams,
)
sendPoll(
chatId: ID,
question: string,
options: [string, string, ...string[]],
params?: SendPollParams,
)
sendVenue(
chatId: ID,
latitude: number,
longitude: number,
title: string,
address: string,
params?: SendVenueParams,
)
sendVideo(
chatId: ID,
video: FileSource,
params?: SendVideoParams,
)
sendVoice(
chatId: ID,
voice: FileSource,
params?: SendVoiceParams,
)
unpinMessage(chatId: ID, messageId: number)
unpinMessages(chatId: ID)