import { MessageManager } from "https://deno.land/x/mtkruto@0.6.3/client/3_message_manager.ts";
Properties
usernameResolver: UsernameResolver
Methods
addChatMembers(chatId: ID, userIds: ID[])
approveJoinRequest(chatId: ID, userId: ID)
approveJoinRequests(chatId: ID, params?: ApproveJoinRequestsParams)
constructMessage()
message_: Api.Message,
r?: boolean,
business?: { connectionId: string; replyToMessage?: Api.Message; },
createInviteLink(chatId: ID, params?: CreateInviteLinkParams)
declineJoinRequest(chatId: ID, userId: ID)
declineJoinRequests(chatId: ID, params?: DeclineJoinRequestsParams)
deleteChatMemberMessages(chatId: ID, memberId: ID)
deleteChatPhoto(chatId: number)
deleteChatStickerSet(chatId: ID)
deleteScheduledMessage(chatId: ID, messageId: number)
deleteScheduledMessages(chatId: ID, messageIds: number[])
disableJoinRequests(chatId: ID)
editInlineMessageReplyMarkup(inlineMessageId: string, params?: EditMessageReplyMarkupParams)
editMessageLiveLocation()
chatId: ID,
messageId: number,
latitude: number,
longitude: number,
params?: EditMessageLiveLocationParams,
enableJoinRequests(chatId: ID)
getCreatedInviteLinks(chatId: ID, params?: GetCreatedInviteLinksParams)
getHistory(chatId: ID, params?: GetHistoryParams)
getMessage(chatId: ID, messageId: number)
getMessages(chatId: ID, messageIds: number[])
getMessageWithReply(chatId: ID, messageId: number)
handleUpdate(update: MessageManagerUpdate): Promise<Update | null>
parseText(text_: string, params?: { parseMode?: ParseMode; entities?: MessageEntity[]; })
readMessages(chatId: ID, untilMessageId: number)
resolveFileId(maybeFileId: string, expectedFileType: FileType | FileType[])
sendDice(chatId: ID, params?: SendDiceParams)
sendInvoice()
chatId: ID,
title: string,
description: string,
payload: string,
currency: string,
prices: PriceTag[],
params?: SendInvoiceParams,
sendPoll()
chatId: ID,
question: string,
options: [string | PollOption, string | PollOption, ...(string | PollOption)[]],
params?: SendPollParams,
sendScheduledMessage(chatId: ID, messageId: number)
sendScheduledMessages(chatId: ID, messageIds: number[])
sendVenue()
chatId: ID,
latitude: number,
longitude: number,
title: string,
address: string,
params?: SendVenueParams,
setAvailableReactions(chatId: ID, availableReactions: "none" | "all" | Reaction[])
setBoostsRequiredToCircumventRestrictions(chatId: ID, boosts: number)
setChatPhoto(): Promise<void>
setChatStickerSet(chatId: ID, setName: string)
startBot(botId: ID, params?: StartBotParams)
stopPoll()
unbanChatMember(chatId: ID, memberId: ID)
unblockUser(userId: ID)
unpinMessages(chatId: ID)
Static Methods
canHandleUpdate(update: Api.Update): update is MessageManagerUpdate
parseText(): [string, MessageEntity[]]