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

x/mtkruto/client/3_chat_list_manager.ts>ChatListManager

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

Constructors

new
ChatListManager(c: C)

Methods

getChatAnywhere(chatId: number): [Chat | undefined, number]
getChats(
from?: "archived" | "main",
after?: Chat,
limit?,
): Promise<Chat[]>
handelUpdateFolderPeers(update: types.UpdateFolderPeers)
handleUpdateChannel(update: types.UpdateChannel)
handleUpdateChat(update: types.UpdateChat)
handleUpdatePinnedDialogs(update: types.UpdatePinnedDialogs)
handleUpdateUser(update: types.UpdateUser | types.UpdateUserName)
reassignChatLastMessage(
chatId: number,
add?,
sendUpdate?,
)
tryGetChatId(username: string)