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

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

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

Constructors

new
ChatListManager(c: C)

Methods

createChannel(title: string, params?: CreateChannelParams)
createGroup(title: string, params?: CreateGroupParams)
createSupergroup(title: string, params?: CreateSupergroupParams)
getChat(chatId: ID)
getChatMember(chatId: ID, userId: ID)
getChats(
from?: "archived" | "main",
after?: ChatListItem,
limit?,
): Promise<ChatListItem[]>
handleUpdate(update: ChatListManagerUpdate)
reassignChatLastMessage(
chatId: number,
add?,
sendUpdate?,
)
setMessageTtl(chatId: ID, messageTtl: number)

Static Methods

canHandleUpdate(update: Api.Update): update is ChatListManagerUpdate